path: root/builtin.h
diff options
authorChristian Couder <>2009-02-02 05:12:44 (GMT)
committerJunio C Hamano <>2009-06-01 00:02:59 (GMT)
commit54b0c1e041e50cc08b1520b7d557770916d0b7ab (patch)
treef1f3d72c24a5210c423e2e8601c3db1bbbb5e956 /builtin.h
parentdae556bdb1e2ad6fb5eafe82e975bde01029fca9 (diff)
Add new "git replace" command
This command can only be used now to list replace refs in "refs/replace/" and to delete them. The option to list replace refs is "-l". The option to delete replace refs is "-d". The behavior should be consistent with how "git tag" and "git branch" are working. The code has been copied from "builtin-tag.c" by Kristian Høgsberg <> and Carlos Rica <> that was itself based on and mktag.c by Linus Torvalds. Signed-off-by: Christian Couder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin.h b/builtin.h
index 20427d2..38ceddc 100644
--- a/builtin.h
+++ b/builtin.h
@@ -112,5 +112,6 @@ extern int cmd_write_tree(int argc, const char **argv, const char *prefix);
extern int cmd_verify_pack(int argc, const char **argv, const char *prefix);
extern int cmd_show_ref(int argc, const char **argv, const char *prefix);
extern int cmd_pack_refs(int argc, const char **argv, const char *prefix);
+extern int cmd_replace(int argc, const char **argv, const char *prefix);