Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić f60fb89274 Escape slashes in compare URLs with semicolon
Fixes #466
2014-01-19 03:58:29 +01:00
Mislav Marohnić 06999d907e Improve detecting of origin remote and remote branch
In hub lingo, "origin remote" is the remote pointing to the canonical
GitHub project, i.e. where pull requests should be sent. "Remote branch"
is where hub guesses the user has pushed their changes from the current
local branch.

The origin remote can now be called "upstream", "github", or "origin",
in that order of precedence.

The `browse`, `compare`, and especially `pull-request` commands need to
know the remote branch. Previously we relied on git upstream
configuration, but that wasn't enough. This behavior is now only kept if
git "push.default" is set to "upstream" or "tracking".

For "push.default" values "current", "simple" (git 2.0 default), or
"matching" (git 1.x default), we can safely assume that the user
probably pushes to the same-named branches on some remote, and we ignore
upstream configuration.

To find the remote where the user pushed their changes, we search for
the same-named branch on:

1. the remote which points to a GitHub project owned by the current user;
2. "origin", "github", and "upstream" remotes.

When a match is found, it is assumed that the user pushed there and it
is taken as the implicit pull-request head.

Fixes #158, fixes #360, fixes #381
2013-12-22 00:25:28 +01:00
Mislav Marohnić 0aed04f758 make `compare` and `browse` default branch-aware 2013-07-18 00:08:14 +02:00
Mislav Marohnić 26a1e76da6 fix `compare` for ranges containing "owner:branch" notation
Fixes #280
2013-01-21 13:54:20 +01:00
Mislav Marohnić 4877ba957f ported `compare` tests to cukes 2013-01-21 13:45:10 +01:00