Subject: Re: [PATCH] Teach filter-branch about subdirectory filtering

From: Johannes Sixt <[email-masked]>
Date: Fri, 08 Jun 2007 15:19:31 +0200

Johannes Schindelin wrote:
>  # 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