Re: [PATCH] Teach filter-branch about subdirectory filtering
- From
Johannes Sixt <j.sixt@eudaptics.com>
- Date
- Jun 8, 2007, 13:19 UTC
- Message-ID
- <46695763.D65CDC30@eudaptics.com>
- In-Reply-To
- <Pine.LNX.4.64.0706080130000.4046@racer.site>
Johannes Schindelin wrote:
Show 11 quoted lines
> # list all parent's object names for a given commit
> get_parents () {
> - git-rev-list -1 --parents "$1" | sed "s/^[0-9a-f]*//"
> + case "$filter_subdir" in
> + "")
> + git-rev-list -1 --parents "$1"
> + ;;
> + *)
> + git-rev-list -1 --parents "$1" -- "$filter_subdir"
> + esac | sed "s/^[0-9a-f]*//"
> }I think --full-history in the subdir case would make a lot of sense.
-- Hannes