diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-03 08:42:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-03 08:42:48 +0200 |
commit | 3b48045c6c73a51834a2f83440a30225485ee431 (patch) | |
tree | ca7e9460aaadd4e6f26414c86bd72df6ab371fb8 /refs/refs-internal.h | |
parent | Merge branch 'bc/rev-parse-parseopt-fix' (diff) | |
parent | branch: fix "copy" to never touch HEAD (diff) | |
download | git-3b48045c6c73a51834a2f83440a30225485ee431.tar.xz git-3b48045c6c73a51834a2f83440a30225485ee431.zip |
Merge branch 'sd/branch-copy'
"git branch" learned "-c/-C" to create a new branch by copying an
existing one.
* sd/branch-copy:
branch: fix "copy" to never touch HEAD
branch: add a --copy (-c) option to go with --move (-m)
branch: add test for -m renaming multiple config sections
config: create a function to format section headers
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r-- | refs/refs-internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h index d7d344de73..8821e27ed9 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -559,6 +559,9 @@ typedef int delete_refs_fn(struct ref_store *ref_store, const char *msg, typedef int rename_ref_fn(struct ref_store *ref_store, const char *oldref, const char *newref, const char *logmsg); +typedef int copy_ref_fn(struct ref_store *ref_store, + const char *oldref, const char *newref, + const char *logmsg); /* * Iterate over the references in `ref_store` whose names start with @@ -657,6 +660,7 @@ struct ref_storage_be { create_symref_fn *create_symref; delete_refs_fn *delete_refs; rename_ref_fn *rename_ref; + copy_ref_fn *copy_ref; ref_iterator_begin_fn *iterator_begin; read_raw_ref_fn *read_raw_ref; |