Seth Falcon <seth@xxxxxxxxxxxxxxx> wrote: > Hi Eric, > > I think this may have slipped by without your notice as I gather > things have been busy for you. > > Could you take a look at this patch and let me know if you like > it/hate it/have a suggestion? > > My motivation was wanting to automate some commit rewritting and > wanting a script to be able to determine what the local upstream > branch is... This patch looks reasonable to me. Acked-by: Eric Wong <normalperson@xxxxxxxx> > * On 2008-05-19 at 20:29 -0700 Seth Falcon wrote: > > @@ -553,6 +554,11 @@ sub cmd_rebase { > > die "Unable to determine upstream SVN information from ", > > "working tree history\n"; > > } > > + if ($_dry_run) { > > + print "remote-branch: " . $gs->refname . "\n"; > > + print "svn-url: " . $url . "\n"; > > + return; > > + } > > if (command(qw/diff-index HEAD --/)) { > > print STDERR "Cannot rebase with uncommited changes:\n"; > > command_noisy('status'); One minor nit is 'url' not being capitalized in the output. Perhaps: Remote Branch: foo SVN URL: http://asdf/foo/trunk Which would make it consistent with 'git svn info' using spaces: RFC822-style headers would be alright, too. Remote-Branch: foo SVN-URL: http://asdf/foo/trunk I do however harbor a deep dislike of camel-case (used by 'git log --pretty=fuller' and .git/config). RemoteBranch: foo SvnUrl: http://asdf/foo/trunk Hmm, I don't think I've even _noticed_ a real bike shed in decades. Perhaps they should be painted purple with yellow polkadots and have the words "BIKE SHED" on a flashing neon sign. -- Eric Wong -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html