author | Christian Couder <chriscool@tuxfamily.org> | |
Mon, 2 Feb 2009 05:12:44 +0000 (06:12 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 1 Jun 2009 00:02:59 +0000 (17:02 -0700) | ||
commit | 54b0c1e041e50cc08b1520b7d557770916d0b7ab | |
tree | f1f3d72c24a5210c423e2e8601c3db1bbbb5e956 | tree | snapshot |
parent | dae556bdb1e2ad6fb5eafe82e975bde01029fca9 | commit | 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
<krh@redhat.com> and Carlos Rica <jasampler@gmail.com> that was itself
based on git-tag.sh and mktag.c by Linus Torvalds.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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
<krh@redhat.com> and Carlos Rica <jasampler@gmail.com> that was itself
based on git-tag.sh and mktag.c by Linus Torvalds.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
builtin-replace.c | [new file with mode: 0644] | blob |
builtin.h | diff | blob | history | |
git.c | diff | blob | history | |
t/t6050-replace.sh | diff | blob | history |