rev-parse: --show-cdup
authorJunio C Hamano <junkio@cox.net>
Fri, 23 Dec 2005 06:35:38 +0000 (22:35 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 23 Dec 2005 06:35:38 +0000 (22:35 -0800)
When --show-prefix is useful, sometimes it is easier to cd up to
the toplevel of the tree. This is equivalent to:

git rev-parse --show-prefix | sed -e 's|[^/][^/]*|..|g'

but we do not have to invoke sed for that.

Signed-off-by: Junio C Hamano <junkio@cox.net>
No differences found