New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added option to avoid replicating TFS merges during fetch #582
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -442,6 +442,16 @@ public bool WorkingCopyHasUnstagedOrUncommitedChanges | |
} | ||
} | ||
|
||
public bool ReplicateTfsMerges | ||
{ | ||
get | ||
{ | ||
string val = GetConfig("tfs.replicateTfsMerges"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This config value is in a different section that other global git-tfs settings. Please replace |
||
return val == null || val == "1"; | ||
} | ||
set { SetConfig("tfs.replicateTfsMerges", value ? "1" : "0"); } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's make this boolean consistent (store "true" or "false" rather than "1" or "0") with the export-metadata option. |
||
} | ||
|
||
public void CopyBlob(string sha, string outputFile) | ||
{ | ||
Blob blob; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch changes the default from
ReplicateTfsMerges = true
toReplicateTfsMerges = false
. @ivan-danilov, @pmiossec - what do you think the default behavior should be?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer default value to
ReplicateTfsMerges = true
...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would have been my guess. If
true
is a reasonable default, let's rename the option--ignore-tfs-merges
or--no-tfs-merges
.