working file option
This commit is contained in:
parent
702188bc22
commit
384391add1
@ -5,6 +5,9 @@ public class CommitDetail
|
||||
private List<string>? _authors;
|
||||
private SortedList<string, int>? _commitDetails;
|
||||
private string _currentBranch;
|
||||
private string? _outputOption;
|
||||
private string? _branchOption;
|
||||
private string? _tagOption;
|
||||
private string? _selectedDir;
|
||||
|
||||
public List<string>? Authors
|
||||
@ -25,18 +28,28 @@ public class CommitDetail
|
||||
set { _currentBranch = value; }
|
||||
}
|
||||
|
||||
public string SelectedDir
|
||||
public string? SelectedDir
|
||||
{
|
||||
get { return _selectedDir; }
|
||||
set { _selectedDir = value; }
|
||||
}
|
||||
|
||||
public CommitDetail(string dir)
|
||||
public CommitDetail(string? dir)
|
||||
{
|
||||
if (!String.IsNullOrEmpty(dir)) {
|
||||
_selectedDir = dir;
|
||||
} else {
|
||||
_selectedDir = Directory.GetCurrentDirectory();
|
||||
}
|
||||
|
||||
_authors = new List<string>();
|
||||
_commitDetails = new SortedList<string, int>();
|
||||
_currentBranch = GetCurrentBranch();
|
||||
_selectedDir = Directory.Exists(dir) ? dir : Directory.GetCurrentDirectory();
|
||||
|
||||
// unused, might be used later for a refactor
|
||||
_outputOption = null;
|
||||
_branchOption = null;
|
||||
_tagOption = null;
|
||||
}
|
||||
|
||||
public void GetCurrentCommitsByName()
|
||||
|
Loading…
Reference in New Issue
Block a user