summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c41b439)
raw | patch | inline | side by side (parent: c41b439)
author | Brandon Casey <casey@nrlssc.navy.mil> | |
Wed, 30 Jan 2008 19:33:04 +0000 (13:33 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 31 Jan 2008 02:50:25 +0000 (18:50 -0800) |
filter-branch previously took the first non-option argument as the name for
a new branch. Since dfd05e38, it now takes a revision or a revision range
and modifies the current branch. Update to operate on HEAD by default to
conform with standard git interface practice.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
a new branch. Since dfd05e38, it now takes a revision or a revision range
and modifies the current branch. Update to operate on HEAD by default to
conform with standard git interface practice.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-filter-branch.sh | patch | blob | history |
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 753bf50c6dd86a9798e11e096c032e26a8868cca..ed54e20b2f048051c57e3af87cfd3cdc6612526f 100755 (executable)
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
force=
while :
do
- test $# = 0 && usage
case "$1" in
--)
shift
export GIT_DIR GIT_WORK_TREE
# The refs should be updated if their heads were rewritten
-git rev-parse --no-flags --revs-only --symbolic-full-name "$@" |
+git rev-parse --no-flags --revs-only --symbolic-full-name --default HEAD "$@" |
sed -e '/^^/d' >"$tempdir"/heads
test -s "$tempdir"/heads ||