Skip to content

Improve automatic setup of tracking for new branches

Ben Boeckel git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1config: support setting up a remote tracking branch upon creationDocumentation/config/branch.txt branch.c branch.h +3 more+111 -103 replies
1/1config: support a default remote tracking setup upon branch creationDocumentation/config/branch.txt branch.c branch.h +3 more+79 -106 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] Improve automatic setup of tracking for new branches

Hi,

I recently discovered some of the nicer behaviors of the --track option for local branches (courtesy of vim-fugitive's status rendering). However, after a few weeks of slowly working -t origin/master into my workflow, I figured that Git could help me out here.

This patch adds three new configuration variables to initialize the branch.<name>.* settings for tracking remote branches.

I suspect there are more tests that should be added.

Thanks,

--Ben

Ben Boeckel (1):
config: support setting up a remote tracking branch upon creation

 Documentation/config/branch.txt | 15 +++++++++
 branch.c                        | 28 ++++++++++------
 branch.h                        |  3 ++
 config.c                        | 15 +++++++++
 environment.c                   |  3 ++
 t/t3200-branch.sh               | 57 +++++++++++++++++++++++++++++++++
 6 files changed, 111 insertions(+), 10 deletions(-)

base-commit: eb27b338a3e71c7c4079fbac8aeae3f8fbb5c687

Signature · 1 line
2.31.1