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>
This commit is contained in:
Daniel Barkalow
2008-02-07 11:40:08 -05:00
committed by Junio C Hamano
parent e1b3a2cad7
commit e496c00348
4 changed files with 151 additions and 137 deletions

8
branch.h Normal file
View File

@ -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