Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-02-07 19:40:08 +0300
committerJunio C Hamano <gitster@pobox.com>2008-02-10 10:16:51 +0300
commite496c00348140e73bdd202443df52192f6928541 (patch)
tree4c14c048a7cf56b8c5cc4a1ef5d51eb24cde04c8 /branch.h
parente1b3a2cad79a8138d18593c6eb3c46906ad2ee42 (diff)
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 0000000000..8bcd9dc217
--- /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