Permalink
Browse files

git get branch-remote

  • Loading branch information...
1 parent 6a2f81e commit d7945ec48c4d6b21a22b50abf2a2cd39b6392328 @mjdominus committed Feb 25, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 git-get
View
@@ -15,6 +15,12 @@ sub current_branch_name {
_run("git rev-parse --symbolic-full-name --abbrev-ref HEAD");
}
+sub branch_remote {
+ my ($branch) = @_;
+ $branch ||= current_branch_name();
+ _run("git config --get 'branch.$branch.remote'");
+}
+
sub working_tree_dirty {
my ($arg) = @_;
die "Unimplemented\n";

0 comments on commit d7945ec

Please sign in to comment.