Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] git-filter-branch: document --original option

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:31

David Kastrup [off-list ref] writes:
Junio C Hamano [off-list ref] writes:
...
quoted
 	--original)
+		case "$OPTARG" in */) ;; *) OPTARG="$OPTARG/" ;; esac
 		orig_namespace="$OPTARG"
 		;;
 	*)
orig_namespace="${OPTARG%/}/"

Sure, it does not win the "portable to Version 7" price, but our
scripts don't do that, anyway.
I agree we do not give the "portable to version 7" prize
anymore.  But you made me realize another thing.

I think it should make sure orig_namespace has one and only one
trailing slash, because otherwise "--original refs/heads//"
would lead you to the same disaster.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help