mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(checkout): add ability to dry run checkout
This commit is contained in:
parent
75b9ed6b57
commit
101cf90875
2 changed files with 21 additions and 0 deletions
|
@ -550,6 +550,10 @@ class GitCheckout {
|
|||
/// Normally checkout writes the index upon completion; this prevents that.
|
||||
static const dontWriteIndex = GitCheckout._(8388608, 'dontWriteIndex');
|
||||
|
||||
/// Show what would be done by a checkout. Stop after sending
|
||||
/// notifications; don't update the working directory or index.
|
||||
static const dryRun = GitCheckout._(16777216, 'dryRun');
|
||||
|
||||
static const List<GitCheckout> values = [
|
||||
none,
|
||||
safe,
|
||||
|
@ -571,6 +575,7 @@ class GitCheckout {
|
|||
conflictStyleDiff3,
|
||||
dontRemoveExisting,
|
||||
dontWriteIndex,
|
||||
dryRun
|
||||
];
|
||||
|
||||
int get value => _value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue