Reputation: 642
We have recently moved new version control GIT (earlier we used to work on TFS 2008), we had .net utility which used to communicate with TFS and used to give list of change sets (input parameter is data time to the utility) and exports to a text file.
I want equivalent/similar command in GIT, i found below command
git diff --name-status `git log --reverse --since="2012-11-13" --until="1012-11-15" --format=format:%H | sed -n '1p;$p
the above command will give the overall changes made to repository (for example the changes done on xyz folder), what i want is if there are sub folders inside a repository under GIT, i need to pass the path (folder or sub folder) so that i will get the changeset to specific directory rather than getting all the details of xyz.
Thanks, Chetan
Upvotes: 0
Views: 84
Reputation: 206
What are you trying to do with sed? And is this what you want?
git log --name-status --since="2012-11-1" --until="2012-11-15" --format="format:%H" wp-content (where wp-content is the subdirectory to 'read')
Upvotes: 1