diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2008-02-07 19:40:08 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-10 10:16:51 +0300 |
commit | e496c00348140e73bdd202443df52192f6928541 (patch) | |
tree | 4c14c048a7cf56b8c5cc4a1ef5d51eb24cde04c8 /branch.h | |
parent | e1b3a2cad79a8138d18593c6eb3c46906ad2ee42 (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.h | 8 |
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 |