aboutsummaryrefslogtreecommitdiff
path: root/branch.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-02-07 11:40:08 -0500
committerJunio C Hamano <gitster@pobox.com>2008-02-09 23:16:51 -0800
commite496c00348140e73bdd202443df52192f6928541 (patch)
tree4c14c048a7cf56b8c5cc4a1ef5d51eb24cde04c8 /branch.h
parente1b3a2cad79a8138d18593c6eb3c46906ad2ee42 (diff)
downloadgit-e496c00348140e73bdd202443df52192f6928541.tar.gz
git-e496c00348140e73bdd202443df52192f6928541.tar.xz
Move create_branch into a library file
You can also create branches, in exactly the same way, with checkout -b. This introduces branch.{c,h} library files for doing porcelain-level operations on branches (such as creating them with their appropriate default configuration). Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Diffstat (limited to 'branch.h')
-rw-r--r--branch.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/branch.h b/branch.h
new file mode 100644
index 000000000..8bcd9dc21
--- /dev/null
+++ b/branch.h
@@ -0,0 +1,8 @@
+#ifndef BRANCH_H
+#define BRANCH_H
+
+void create_branch(const char *head,
+ const char *name, const char *start_name,
+ int force, int reflog, int track);
+
+#endif