diff options
author | Thomas Gummerer <t.gummerer@gmail.com> | 2017-11-29 20:04:51 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-06 17:47:35 (GMT) |
commit | e92445a73173cf21a11b8e79cb7be16485deec69 (patch) | |
tree | f23d5693f2c33306d7f17bea1165d65a602c045a /Documentation/git-worktree.txt | |
parent | 71d6682d8ca9870cbe457cf55c83402c33b41030 (diff) | |
download | git-e92445a73173cf21a11b8e79cb7be16485deec69.zip git-e92445a73173cf21a11b8e79cb7be16485deec69.tar.gz git-e92445a73173cf21a11b8e79cb7be16485deec69.tar.bz2 |
add worktree.guessRemote config option
Some users might want to have the --guess-remote option introduced in
the previous commit on by default, so they don't have to type it out
every time they create a new worktree.
Add a config option worktree.guessRemote that allows users to configure
the default behaviour for themselves.
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-worktree.txt')
-rw-r--r-- | Documentation/git-worktree.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt index 2a4ea76..f850e8f 100644 --- a/Documentation/git-worktree.txt +++ b/Documentation/git-worktree.txt @@ -121,6 +121,9 @@ OPTIONS branch in exactly one remote matching the basename of `<path>, base the new branch on the remote-tracking branch, and mark the remote-tracking branch as "upstream" from the new branch. ++ +This can also be set up as the default behaviour by using the +`worktree.guessRemote` config option. --[no-]track:: When creating a new branch, if `<commit-ish>` is a branch, |