private string GetSortedRefsCommand()
{
if (AppSettings.ShowSuperprojectRemoteBranches)
return "for-each-ref --sort=-committerdate --format=\"%(objectname) %(refname)\" refs/";
if (AppSettings.ShowSuperprojectBranches || AppSettings.ShowSuperprojectTags)
return "for-each-ref --sort=-committerdate --format=\"%(objectname) %(refname)\""
+ (AppSettings.ShowSuperprojectBranches ? " refs/heads/" : null)
+ (AppSettings.ShowSuperprojectTags ? " refs/tags/" : null);
return null;
}