aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2008-05-10 15:36:29 -0700
committerJunio C Hamano <gitster@pobox.com>2008-05-11 09:28:52 -0700
commitc998ae9baa1cc5f507646da9850731de634d2ee7 (patch)
tree0df6f1a71d2a6e5de4737c4ea784d67cdd760340 /cache.h
parentd1a8d0ea5fb2d4d43d0ea8f2fe45ec1fce7ec4bc (diff)
downloadgit-c998ae9baa1cc5f507646da9850731de634d2ee7.tar.gz
git-c998ae9baa1cc5f507646da9850731de634d2ee7.tar.xz
Allow tracking branches to set up rebase by default.
Change cd67e4d4 introduced a new configuration parameter that told pull to automatically perform a rebase instead of a merge. This change provides a configuration option to enable this feature automatically when creating a new branch. If the variable branch.autosetuprebase applies for a branch that's being created, that branch will have branch.<name>.rebase set to true. Signed-off-by: Dustin Sallings <dustin@spy.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 7fb8f3359..3442130a5 100644
--- a/cache.h
+++ b/cache.h
@@ -434,7 +434,15 @@ enum branch_track {
BRANCH_TRACK_EXPLICIT,
};
+enum rebase_setup_type {
+ AUTOREBASE_NEVER = 0,
+ AUTOREBASE_LOCAL,
+ AUTOREBASE_REMOTE,
+ AUTOREBASE_ALWAYS,
+};
+
extern enum branch_track git_branch_track;
+extern enum rebase_setup_type autorebase;
#define GIT_REPO_VERSION 0
extern int repository_format_version;