Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'lc/filter-branch-too-many-refs'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 17 Oct 2013 22:55:12 +0000
(15:55 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 17 Oct 2013 22:55:12 +0000
(15:55 -0700)
"git filter-branch" in a repository with many refs blew limit of
command line length.
* lc/filter-branch-too-many-refs:
Allow git-filter-branch to process large repositories with lots of branches.
git-filter-branch.sh
patch
|
blob
|
history
raw
(from parent 1:
ff6e1b8
)
diff --git
a/git-filter-branch.sh
b/git-filter-branch.sh
index 98e8fe43d2fdde1b76e8f10f4c9473e23c8f347c..86d6994619151fb63327848e6763b07971017ad7 100755
(executable)
--- a/
git-filter-branch.sh
+++ b/
git-filter-branch.sh
@@
-255,7
+255,7
@@
else
remap_to_ancestor=t
fi
-rev_args=$(git rev-parse --revs-only "$@")
+git rev-parse --revs-only "$@" >../parse
case "$filter_subdir" in
"")
@@
-268,7
+268,7
@@
case "$filter_subdir" in
esac
git rev-list --reverse --topo-order --default HEAD \
- --parents --simplify-merges
$rev_args "$@" >
../revs ||
+ --parents --simplify-merges
--stdin "$@" <../parse >
../revs ||
die "Could not get the commits"
commits=$(wc -l <../revs | tr -d " ")