Skip to content
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 for opt-out of TFS merge replicating #929

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivan-danilov
Copy link
Member

Sometimes TFS guys do merge changesets apparently at random, while in git merge-commit has meaning that all commits in the parent branches are merged. Thus preserving all of the merges sometimes do more harm than good. New setting is tfs.replicateTfsMerges and could be "0" or "1". This setting is turned on by default (i.e. if there's no such value in the git config file - it treats as "1") and is global (not tied to particular tfs remote/branch - mostly because on the per-tfs-remote basis it can do much confusion if configured differently in different places.

Also init command now has -m+ or --replicateTfsMerges+ option, that is true by default, but can be opted out like -m- or --replicateTfsMerges- (not sure it is the best syntax, but by the NDesk.Options docs it is the one used for bools).

@spraints
Copy link
Member

Cool, this looks good, and it's pretty simple. Could you add the new stuff to the docs, at least for init and clone and config?

Also init command now has -m+ or --replicateTfsMerges+ option, that is true by default, but can be opted out like -m- or --replicateTfsMerges- (not sure it is the best syntax, but by the NDesk.Options docs it is the one used for bools).

I don't like that. Maybe --no-replicate-tfs-merges?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants