Revision command now shows the tracked remote commit if it exists

This commit is contained in:
Cyberboss
2017-09-13 10:39:01 -04:00
parent aacf5e5152
commit 494aa41f2e
5 changed files with 15 additions and 9 deletions
+5 -2
View File
@@ -58,16 +58,19 @@ namespace TGCommandLine
if (!busy)
{
OutputProc("Repo: Idle");
var head = Repo.GetHead(out string error);
var head = Repo.GetHead(false, out string error);
if (head == null)
head = "Error: " + error;
var remotehead = Repo.GetHead(true, out error);
if (remotehead == null)
remotehead = "Error: " + error;
var branch = Repo.GetBranch(out error);
if (branch == null)
branch = "Error: " + error;
var remote = Repo.GetRemote(out error);
if (remote == null)
remote = "Error: " + error;
OutputProc("Remote: " + remote);
OutputProc("Remote: " + remote + " (" + remotehead + ")");
OutputProc("Branch: " + branch);
OutputProc("HEAD: " + head);
}