mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
Merge branch 'develop'
This commit is contained in:
commit
e3cc987682
6 changed files with 16 additions and 2 deletions
|
@ -12,7 +12,7 @@ namespace SourceGit.Commands
|
||||||
Args = $"rev-list -{max} --parents --branches --remotes ^{commit}";
|
Args = $"rev-list -{max} --parents --branches --remotes ^{commit}";
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<string> Result()
|
public List<string> Result()
|
||||||
{
|
{
|
||||||
Exec();
|
Exec();
|
||||||
return _lines;
|
return _lines;
|
||||||
|
|
|
@ -615,7 +615,7 @@ namespace SourceGit.ViewModels
|
||||||
var cmdChildren = new Commands.QueryCommitChildren(_repo.FullPath, _commit.SHA, max) { Cancel = _cancelToken };
|
var cmdChildren = new Commands.QueryCommitChildren(_repo.FullPath, _commit.SHA, max) { Cancel = _cancelToken };
|
||||||
var children = cmdChildren.Result();
|
var children = cmdChildren.Result();
|
||||||
if (!cmdChildren.Cancel.Requested)
|
if (!cmdChildren.Cancel.Requested)
|
||||||
Dispatcher.UIThread.Post(() => Children.AddRange(children));
|
Dispatcher.UIThread.Post(() => Children = children);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,11 @@
|
||||||
Theirs = merge.Source;
|
Theirs = merge.Source;
|
||||||
Mine = repo.CurrentBranch;
|
Mine = repo.CurrentBranch;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Theirs = "Stash or Patch";
|
||||||
|
Mine = repo.CurrentBranch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UseTheirs()
|
public void UseTheirs()
|
||||||
|
|
|
@ -525,6 +525,7 @@ namespace SourceGit.ViewModels
|
||||||
}
|
}
|
||||||
|
|
||||||
_ignoreIndexChange = false;
|
_ignoreIndexChange = false;
|
||||||
|
Preferences.Instance.Save();
|
||||||
GC.Collect();
|
GC.Collect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -189,6 +189,7 @@ namespace SourceGit.Views
|
||||||
new Commands.Config(null).Set($"gpg.{GPGFormat.Value}.program", GPGExecutableFile);
|
new Commands.Config(null).Set($"gpg.{GPGFormat.Value}.program", GPGExecutableFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ViewModels.Preferences.Instance.Save();
|
||||||
base.OnClosing(e);
|
base.OnClosing(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -239,6 +239,13 @@
|
||||||
<TextBlock Margin="4,0,0,0" Text="{Binding Subject}"/>
|
<TextBlock Margin="4,0,0,0" Text="{Binding Subject}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate DataType="x:String">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Path Width="12" Height="12" Data="{StaticResource Icons.Changes}"/>
|
||||||
|
<TextBlock Margin="4,0,0,0" Text="{Binding}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
</StackPanel.DataTemplates>
|
</StackPanel.DataTemplates>
|
||||||
|
|
||||||
<Path Width="64" Height="64" Data="{StaticResource Icons.Conflict}" Fill="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/>
|
<Path Width="64" Height="64" Data="{StaticResource Icons.Conflict}" Fill="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue