mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-28 23:52:36 +01:00
Revision command now shows the tracked remote commit if it exists
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user