0

We are using git for TFS. I'm looking for something that can do essentially a git-diff on all commits between two dates and times. We know we can build something manually, but for compliance reasons, it's easier to get something through if it already exists.

Jason N. Gaylord
  • 7,910
  • 15
  • 56
  • 95
  • Software recommendations are off-topic on Stack Overflow, sorry. – jub0bs Apr 16 '15 at 20:42
  • I've updated the question as I'm not looking for just software recommendations. I use git with TFS and am looking to see how others have been able to produce diff reports to provide to compliance officers. – Jason N. Gaylord Apr 17 '15 at 12:11

1 Answers1

1

To show the diffs for a single commit, do

git show $thatcommit

To show the diffs from one commit to any other commit, do

git diff $theonecommit $theothercommit

To show the individual diffs for each of a set of commits, do e.g.

git log -c -p master..topic    # to get all the unmerged topic commits
jthill
  • 55,082
  • 5
  • 77
  • 137
  • I'm currently using git diff $theonecommit $theothercommit, but the formatting isn't the best to just copy and paste. Looking for either (a) report in TFS (b) some example that shows this in a nice format (html, pdf, etc) without the need to copy and paste. – Jason N. Gaylord Apr 17 '15 at 12:10
  • I confess I can't think of any reason to want a diff in pdf format. Could you update your question to explain what use you have in mind here? – jthill Apr 17 '15 at 23:56