author | Pierre Habouzit <madcoder@debian.org> | |
Fri, 31 Oct 2008 09:12:21 +0000 (10:12 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 11 Jan 2009 01:35:58 +0000 (17:35 -0800) | ||
commit | d3240d935c4b844db71e4570eeedfac4cff73f78 | |
tree | c6ad63efa78ac0133564147be4958280c70b3bc8 | tree | snapshot |
parent | c123b7c5fb596d93cd015645212c379fc3c381d5 | commit | diff |
filter-branch: add git_commit_non_empty_tree and --prune-empty.
git_commit_non_empty_tree is added to the functions that can be run from
commit filters. Its effect is to commit only commits actually touching the
tree and that are not merge points either.
The option --prune-empty is added. It defaults the commit-filter to
'git_commit_non_empty_tree "$@"', and can be used with any other
combination of filters, except --commit-hook that must used
'git_commit_non_empty_tree "$@"' where one puts 'git commit-tree "$@"'
usually to achieve the same result.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git_commit_non_empty_tree is added to the functions that can be run from
commit filters. Its effect is to commit only commits actually touching the
tree and that are not merge points either.
The option --prune-empty is added. It defaults the commit-filter to
'git_commit_non_empty_tree "$@"', and can be used with any other
combination of filters, except --commit-hook that must used
'git_commit_non_empty_tree "$@"' where one puts 'git commit-tree "$@"'
usually to achieve the same result.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-filter-branch.txt | diff | blob | history | |
git-filter-branch.sh | diff | blob | history | |
t/t7003-filter-branch.sh | diff | blob | history |