git-svn: add git svn propget
commit151534515682695348a8172f399f4bf025154a5f
authorBenoit Sigoure <tsuna@lrde.epita.fr>
Tue, 16 Oct 2007 14:36:50 +0000 (16 16:36 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 17 Oct 2007 06:47:37 +0000 (17 02:47 -0400)
tree316fabc58bc4a4704526b2a7db0400efd5f022fe
parentd05ddec51e4e23923f8f6c633f0a125c9a27a391
git-svn: add git svn propget

This allows one to easily retrieve a single SVN property from within
git-svn without requiring svn or remembering the URL of a repository

* git-svn.perl (%cmd): Add the new command `propget'.
($cmd_dir_prefix): New global.
(&get_svnprops): New helper.
(&cmd_propget): New.  Use &get_svnprops.
* t/t9101-git-svn-props.sh: Add a test case for propget.

[ew: make sure the rev-parse --show-prefix call doesn't break
     the `git-svn clone' command]

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-svn.perl
t/t9101-git-svn-props.sh