Open bantu opened 11 years ago
Not sure about this one. You expect this to work even when you don't have the "Prosk8er/phpbb3" repo cloned locally? hub is designed for operations pertaining to the local git repo, so this doesn't fit in that philosophy. The only commands that don't require a local repo are hub clone
and hub browse USER/REPO
.
And if you have the commit URL, then you just viewed that commit online. Why would you want to view it again in the terminal?
I edited the report earlier. Not sure whether you noticed. Hub show in the upstream repository (i.e. a clone of phpbb/phpbb3) would be sufficient for me.
Someone may send me a link e.g. via IRC. Also, the webinterface makes some things impossible to see. E.g. chars per line in commit message or whitespace changes (tabs vs spaces) in the diff.
Good point about IRC. What happens if you paste a URL that doesn't match the current project?
Care to take a stab at the implementation? It shouldn't be hard.
@mislav Not sure when I'll have the time to do this. It has rather low priority for me.
What about hub show --browse
? Way easier than hub browse -- commit/$(git rev-parse HEAD)
for refs
:+1:
@glittershark That's not a bad idea. I wish it were shorter to type, though.
The expected result would be having the commit show just like
git show
shows commits, i.e.