Skip to content

Commit f9037b3

Browse files
author
Andrew
committed
updated version
1 parent eb3579d commit f9037b3

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

GitCommander/Branches.cs

+22-6
Original file line numberDiff line numberDiff line change
@@ -290,22 +290,38 @@ public static bool MergeBranchIntoActive(string branch)
290290

291291
public static bool IsUpToDateWithRemote(string remote, string branch, out bool yes)
292292
{
293+
// check for changes not in sync
293294
yes = true;
294295
bool isUpToDate = true;
295-
var stdCallback = new StdCallbackMethod(delegate(string line)
296+
var stdCallback_log = new StdCallbackMethod(delegate(string line)
296297
{
297-
//var match = Regex.Match(line, @"Your branch is ahead of '(.*)' by (\d*) commit.");
298298
var match = Regex.Match(line, @"commit (.*)");
299299
if (match.Success) isUpToDate = false;
300300
});
301-
302-
//var result = Tools.RunExe("git", "status", stdCallback:stdCallback);
303-
var result = Tools.RunExe("git", string.Format("log {0}/{1}..{1}", remote, branch), stdCallback:stdCallback);
301+
302+
var result = Tools.RunExe("git", string.Format("log {0}/{1}..{1}", remote, branch), stdCallback:stdCallback_log);
304303
lastResult = result.Item1;
305304
lastError = result.Item2;
306-
307305
yes = isUpToDate;
306+
//if (!string.IsNullOrEmpty(lastError)) return false;
307+
//else if (!isUpToDate) return true;
308308
return string.IsNullOrEmpty(lastError);
309+
310+
// if git log doesn't pick up anything try status
311+
/*var stdCallback_status = new StdCallbackMethod(delegate(string line)
312+
{
313+
var match = Regex.Match(line, @"Your branch is ahead of '(.*)' by (\d*) commit.");
314+
if (match.Success) isUpToDate = false;
315+
316+
match = Regex.Match(line, @"Your branch is behind '(.*)' by (\d*) commits");
317+
if (match.Success) isUpToDate = false;
318+
});
319+
320+
result = Tools.RunExe("git", "status", stdCallback:stdCallback_status);
321+
lastResult = result.Item1;
322+
lastError = result.Item2;
323+
yes = isUpToDate;
324+
return string.IsNullOrEmpty(lastError);*/
309325
}
310326
}
311327
}

GitItGUI.Core/Properties/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
public static class VersionInfo
3939
{
40-
public const string version = "0.2.3";
40+
public const string version = "0.2.4";
4141
#if DEBUG
4242
public const string versionType = version + "b";
4343
#else

GitItGUI/VersionInfo.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<VersionInfo>
3-
<AppVersion>0.2.3</AppVersion>
3+
<AppVersion>0.2.4</AppVersion>
44
</VersionInfo>

Installer/Git-It-GUI_Installer.aip

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<ROW Property="ARPURLUPDATEINFO" Value="https://github.com/reignstudios/Git-It-GUI/releases"/>
1414
<ROW Property="CTRLS" Value="2"/>
1515
<ROW Property="Manufacturer" Value="Reign-Studios"/>
16-
<ROW Property="ProductCode" Value="1033:{537D8294-66A1-485B-AA23-05AEA45B81BA} " Type="16"/>
16+
<ROW Property="ProductCode" Value="1033:{0BE6ABA4-D424-4D83-BB12-E271EFEE9154} " Type="16"/>
1717
<ROW Property="ProductLanguage" Value="1033"/>
1818
<ROW Property="ProductName" Value="Git-It-GUI"/>
19-
<ROW Property="ProductVersion" Value="0.2.3" Type="32"/>
19+
<ROW Property="ProductVersion" Value="0.2.4" Type="32"/>
2020
<ROW Property="RUNAPPLICATION" Value="1" Type="4"/>
2121
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
2222
<ROW Property="UpgradeCode" Value="{FD4A5E78-F668-42CE-90BC-D1DDAA792189}"/>

0 commit comments

Comments
 (0)