]> git.ipfire.org Git - thirdparty/git.git/blobdiff - branch.h
branch: add a dry_run parameter to create_branch()
[thirdparty/git.git] / branch.h
index cf3a4d3ff3694ab662c0b1fdf12c53017cfe13c0..509cfcc34e989e5987886cc0d31c14f7ae1ae2fe 100644 (file)
--- a/branch.h
+++ b/branch.h
@@ -62,11 +62,14 @@ void dwim_and_setup_tracking(struct repository *r, const char *new_ref,
  *   - track causes the new branch to be configured to merge the remote branch
  *     that start_name is a tracking branch for (if any).
  *
+ *   - dry_run causes the branch to be validated but not created.
+ *
  */
 void create_branch(struct repository *r,
                   const char *name, const char *start_name,
                   int force, int clobber_head_ok,
-                  int reflog, int quiet, enum branch_track track);
+                  int reflog, int quiet, enum branch_track track,
+                  int dry_run);
 
 /*
  * Check if 'name' can be a valid name for a branch; die otherwise.