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

657 Коммитов

Автор SHA1 Сообщение Дата
Elliott Beach 4539860f12 compare repos using sameAs not strcmp 2017-08-12 15:22:28 -05:00
Elliott Beach 26bb43a4ce fix whitespace issues 2017-08-10 19:36:24 -05:00
Elliott Beach bde4e6e771 Let fork succeed when forked remote exists 2017-08-10 19:11:07 -05:00
Mislav Marohnić 35ca65b907 Merge pull request #1425 from pocket7878/add-plan9port-rc-support
Add plan9port rc shell support
2017-06-28 11:41:12 +02:00
Mislav Marohnić 9a0c525b42 Merge pull request #1327 from wesbland/delete_release
Add ability to delete releases
2017-06-26 23:44:43 +02:00
Mislav Marohnić 7548421208 Show hub version even if `git version` fails
Fixes https://github.com/github/hub/issues/1423
2017-06-26 20:22:11 +02:00
Mislav Marohnić c6425bfc38 Fix `git --(exec|html|man|info)-path`
When any of these global flags are passed, don't try to decorate the
output as if `git help` was invoked.

Fixes https://github.com/github/hub/issues/1446
2017-06-26 20:22:11 +02:00
Mislav Marohnić 01c3099abe Fix crash in `WorkdirName` when within bare git repo
`git rev-parse --show-toplevel` returns an empty string with success
status when inside a bare git repo.

This avoids the go crash and also tweaks `hub issue` and `hub
pull-request` to work even if current working directory name couldn't be
obtained because it's only used for looking up issue/PR templates, which
isn't critical functionality.

Fixes https://github.com/github/hub/issues/1331
2017-06-26 20:22:11 +02:00
Josh Betz 11888028e8 Sort hub commands
The rest of the sections are sorted alphabetically. This makes the hub
commands easier to read by sorting them the same way.
2017-06-23 11:42:25 -05:00
Mislav Marohnić 9a929485e8 Merge remote-tracking branch 'origin/master' into tomasv-request-reviewers-2 2017-04-24 17:57:37 +02:00
Mislav Marohnić 76631ce551 Merge pull request #1403 from walles/walles/hub-review
Add a "hub pr checkout" command
2017-04-18 12:03:31 +02:00
Tomas Varneckas 0fad51944f
Add support for review requests in pull-request command 2017-04-17 18:34:54 +03:00
Mislav Marohnić 629d13908f Merge branch 'no-prerelease' 2017-04-10 23:09:52 +02:00
Mislav Marohnić acc85a0aa9 Make it `release --exclude-prereleases` (plural)
This is for consistency with `--include-drafts` (also plural).
2017-04-10 23:09:11 +02:00
Mislav Marohnić 3584589af5 Remove now obsolete go tests 2017-04-08 22:23:36 +02:00
Mislav Marohnić 6be9d54fc2 Reuse most logic betwen `checkout` and `pr` commands 2017-04-08 22:17:18 +02:00
Mislav Marohnić 19a5167d1a Simplify remote lookup in `fork` 2017-04-08 20:57:37 +02:00
Johan Walles e198d64a73 Remove debug code used during development 2017-04-08 10:43:48 +02:00
Johan Walles 9572eaf1e8 Don't request PR info twice 2017-04-08 10:43:48 +02:00
Johan Walles f9e49847c6 Pass the first cucumber test! 2017-04-08 10:43:48 +02:00
Johan Walles dcccc204f9 Add missing Background for "pr" feature
We need to be in a git repo for the tests to work.
2017-04-08 10:43:48 +02:00
Johan Walles de7da33d79 Add to-file logging
This is the only way I know how to get info out from hub while running
the cucumber feature tests.

Should be removed before submitting as a PR.
2017-04-08 10:43:48 +02:00
Johan Walles 3a8df8d99e Inline the long help 2017-04-08 10:43:26 +02:00
Johan Walles aeda9a67f4 Validate "hub pr" without subcommand
It prints the help text.
2017-04-08 10:43:26 +02:00
Johan Walles 4fe4d1f4bf "hub pr checkout 514" now works
"hub pr" still untested.

Help still untested.
2017-04-08 10:43:26 +02:00
Johan Walles 1f13bba90a Make a "hub pr checkout" subcommand
WARNINGS:
* Entirely untested
* "hub pr" currently works as a synonym for "hub checkout", it should
do something else
2017-04-08 10:43:25 +02:00
Johan Walles 2eb3056a8c Rename "review"->"pr"
The current functionality should really be moved to "hub pr checkout".
This is a step on the way.
2017-04-08 10:43:25 +02:00
Johan Walles dc7abb5c12 Add a "hub review" command
It wraps functionality already provided by "hub checkout". The advantage
with "hub review" are twofold:

* Discoverability. It wasn't until I started browsing the hub source
  code that I realized this functionality was present.
* Usability. Just typing the PR number is easier than having to figure
  out its URL.
2017-04-08 10:43:25 +02:00
Marc Abramowitz 33f2eb64d8 Update No origin git remote found error msg 2017-03-08 22:27:41 -08:00
Marc Abramowitz 8a4d8dd0eb fork: Add --remote-name option
Allows the user to choose the remote name for their fork instead of
always using their GitHub username. This is useful for workflows where
folks name the remote for their private fork origin `origin` and
the upstream repo remote is named `upstream`. We happen to use this
workflow at work, because it makes the remote names more predictable and
easy to manage (you always push your new commits to `origin` rather than
a remote name that is dependent on your username).

```
$ git remote -v
upstream	git@github.com:github/hub (fetch)
upstream	git@github.com:github/hub (push)

$ ./bin/hub fork --remote-name=origin
Updating origin
From ssh://github.com/github/hub
 * [new branch]      1.11-stable     -> origin/1.11-stable
 * [new branch]      1.12-stable     -> origin/1.12-stable
 * [new branch]      2.2-stable      -> origin/2.2-stable
 * [new branch]      code-coverage   -> origin/code-coverage
 * [new branch]      gh-pages        -> origin/gh-pages
 * [new branch]      master          -> origin/master
 * [new branch]      travis-packages -> origin/travis-packages
new remote: origin

$ git remote -v
origin	git@github.com:msabramo/hub.git (fetch)
origin	git@github.com:msabramo/hub.git (push)
upstream	git@github.com:github/hub (fetch)
upstream	git@github.com:github/hub (push)
```

I haven't written tests yet, but I can if this is a feature that the
maintainers are amenable to merging...
2017-03-04 10:05:55 -08:00
Pocket7878 efa376225f Add rc alias support 2017-03-02 10:16:24 +09:00
Mislav Marohnić 34081973ea Merge pull request #1413 from vermiculus/show-pulls-again
Add option to show pull requests again
2017-02-15 17:11:02 +01:00
Juan Ignacio Donoso cdd7a65e05 Add a `--org` flag to `hub fork` 2017-02-15 10:20:03 -05:00
Sean Allred abeb048c53 Rename --show-pulls to --include-pulls 2017-02-15 07:33:44 -06:00
Sean Allred 6a4212b514 Add option to show pull requests again
This change adds a long-form flag `--show-pulls` to `hub issue` that
directs hub to include pull requests in the issue listing.  The
default value is false; the default behavior does not change.

Temporary fix until a better abstraction for pull requests can be
designed.

Related: #1303
Related: vermiculus/magithub#44
2017-02-15 00:32:52 -06:00
Mislav Marohnić 3d3facba2c Merge branch 'master' of https://github.com/github/hub 2017-02-06 15:29:57 +01:00
Mislav Marohnić 7c892ca99f Merge pull request #1396 from nex3/checkout-set-remote
Set merge configuration on checkout.

Fixes #1376, fixes #821
2017-02-05 12:18:39 +01:00
Natalie Weizenbaum f93e53798f Code review changes. 2017-02-03 15:54:44 -08:00
Natalie Weizenbaum 93df826636 Set merge configuration on checkout.
When checking out a pull request that doesn't match an existing remote,
this sets the branch's remote and merge configuration fields. If the
pull request is modifiable by the maintainer, it uses the SSH URL to
that you can push to the pull request.
2017-02-02 23:53:44 -08:00
Michihito Shigemura 6089677173 Preserve description 2017-01-26 00:49:09 +09:00
Michihito Shigemura 22edf59710 Fix fish alias and testing
cannot find hub completion when using git alias
2017-01-24 22:45:50 +09:00
Mislav Marohnić fe5b59b548 Merge pull request #1375 from tomas-edwardsson/browse-clipboard
Add clipboard copy (-c) to browse command
2017-01-10 16:04:10 +01:00
Tomas Edwardsson e1fe86ffbc Add clipboard copy (-c) to browse command
The -c parameter will put the url into the clipboard instead of
opening in the browser.
2017-01-06 13:34:16 +00:00
Sandro Santilli 97f40df80f Fix <USER> in usage string 2017-01-05 22:23:36 +01:00
Natalie Weizenbaum fb40cab7fd Add --set-upstream to git push commands.
This ensures that a branch pushed using "hub pull-request" has its
upstream branch set to the target of the push.
2016-12-07 13:47:46 -08:00
Mislav Marohnić d400838ecf Remove obsolete self-updating functionality
We might bring back the self-updater at some point, but right now it's
dead code and it's not clear to me how to implement it in a fashion
where it also updates dependent files such as shell completion scripts
and man pages.
2016-12-05 22:07:31 +01:00
Mislav Marohnić 1a3a934714 Fix issue/PR template lookup when in a subdirectory
Always start template lookup from the toplevel directory of the repo.

Fixes #1242
2016-11-21 13:00:57 +01:00
Mislav Marohnić 3021e584ee Merge branch 'akshatgoel-issue1305'
Closes #1332, fixes #1305
2016-11-07 14:39:00 +01:00
Goel 3792b5e7f9 Do not expand aliases which are in-built git and hub commands 2016-11-07 14:30:45 +01:00
Wesley Bland 4f419aa4fe Add ability to delete releases
To mirror all the other `hub release` commands, allow the user to delete
releases from the command line. The new subcommand takes only one
argument (the tag of the release being deleted).

Fixes #1326
2016-11-01 15:47:15 -05:00