]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-filter-branch.sh
rebase -i: mention the option to split commits in the man page
[thirdparty/git.git] / git-filter-branch.sh
index 01900602e1f64483d2999f48aecea530f7afbc0b..c166c978ec2a6e1dc26d8fb117c12ae59ca5b7fd 100755 (executable)
@@ -8,7 +8,13 @@
 # a new branch. You can specify a number of filters to modify the commits,
 # files and trees.
 
-USAGE="git-filter-branch [-d TEMPDIR] [FILTERS] [REV-RANGE]"
+USAGE="[--env-filter <command>] [--tree-filter <command>] \
+[--index-filter <command>] [--parent-filter <command>] \
+[--msg-filter <command>] [--commit-filter <command>] \
+[--tag-name-filter <command>] [--subdirectory-filter <directory>] \
+[--original <namespace>] [-d <directory>] [-f | --force] \
+[<rev-list options>...]"
+
 . git-sh-setup
 
 warn () {
@@ -134,7 +140,7 @@ do
                filter_subdir="$OPTARG"
                ;;
        --original)
-               orig_namespace="$OPTARG"
+               orig_namespace=$(expr "$OPTARG/" : '\(.*[^/]\)/*$')/
                ;;
        *)
                usage