Reputation: 841
Does anyone know full list of command line parameters for command: TortoiseGitProc.exe /command:showcompare
. I don't know how to pass two revisions to compare. There is no info in help file.
Upvotes: 2
Views: 1624
Reputation: 1324515
You can see in that diff the expected parameters
if (parser.HasVal(_T("revision1")))
rev1 = SVNRev(parser.GetVal(_T("revision1"))); 32 rev1 = parser.GetVal(_T("revision1"));
if (parser.HasVal(_T("revision2"))) 33 if (parser.HasVal(_T("revision2")))
rev2 = SVNRev(parser.GetVal(_T("revision2"))); 34 rev2 = parser.GetVal(_T("revision2"));
It should be used as in this gist:
tgit showcompare /revision1:$($commits[-1]) /revision2:$($commits[0])
For example, when used directly in command-line in a repo (as opposed to the above example, which is part of a script):
TortoiseGitProc.exe /command:showcompare /revision1:HEAD /revision2:HEAD~
Upvotes: 2