mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 21:24:59 +00:00
enhance: shows current histories filters and add a button to clear all histories filters (#184)
This commit is contained in:
parent
09d88455c0
commit
99afc74871
6 changed files with 73 additions and 2 deletions
|
@ -81,6 +81,16 @@ namespace SourceGit.Converters
|
|||
return true;
|
||||
});
|
||||
|
||||
public static readonly FuncValueConverter<string, string> TrimRefsPrefix =
|
||||
new FuncValueConverter<string, string>(v =>
|
||||
{
|
||||
if (v.StartsWith("refs/heads/", StringComparison.Ordinal))
|
||||
return v.Substring(11);
|
||||
if (v.StartsWith("refs/remotes/", StringComparison.Ordinal))
|
||||
return v.Substring(13);
|
||||
return v;
|
||||
});
|
||||
|
||||
[GeneratedRegex(@"^[\s\w]*(\d+)\.(\d+)[\.\-](\d+).*$")]
|
||||
private static partial Regex REG_GIT_VERSION();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue