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

454 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 231366d1b9 tracking branches awarness; `git browse` subpages (e.g. `git browse repo issues`)
New abilities:

  $ hub compare
  -> When on a branch that tracks "remotebranch", for example,
     this opens "github.com/user/repo/compare/remotebranch".
     In effect if the tracked branch is not "master".

  $ hub browse reque issues
  -> open http://github.com/user/resque/issues

  $ hub browse
  -> When on a branch that tracks "remotebranch", for example,
     this opens "github.com/user/repo/tree/remotebranch".
     In effect if the tracked branch is not "master".

  $ hub browse -- commits
  -> open http://github.com/user/repo/commits/master

  If this branch is tracking a remote branch:
  -> open http://github.com/user/repo/commits/remotebranch

Supported subpages:

  - "tree" (default)
  - "wiki"
  - "commits"
  - "issues", "network", "downloads" or any other arbitrary
    string is simply appended to URL path
2010-04-27 15:10:43 +02:00
Mislav Marohnić 26af67abc0 ensure that tests can't shell out to our real `git` and `open` executables
Fake `git` and `open` executables are pushed to PATH in testing and error
out when invoked. This is because there are tests that shell out to `git init`
and `git clone`, or open the browser, and bugs and failures in these tests
would previously cause them to poke around the system uncontrolled.
2010-04-27 15:10:37 +02:00
Mislav Marohnić 8bc3189970 tests for browser launching improvements
tests now simulate ruby platform and commands being present
or missing on the system.
2010-04-22 13:08:01 +02:00
Mislav Marohnić 743649e9ed create Hub::Context and refactor how hub interacts with git
Less juggling of constants, more ruby methods. Information that requires
shelling out (e.g. GitHub username, token, repo name ...) is now loaded
on demand, meaning no shelling out for commands that don't need it.

Tests are now safer; they are prevented from shelling out to get info.
All test data is stubbed.

New `github_url` method builds needed URLs while keeping sensible defaults.

Commands that open the browser (`compare`, `browse`) now share a bit of
underlying implementation and recognize the same flags (`-p`, `-u`).
2010-04-22 13:07:54 +02:00
Chris Wanstrath 2d3a9cdad2 Merge branch 'master' of github.com:defunkt/hub 2010-04-21 15:43:35 -07:00
Justin Ridgewell 0089a940cb Fix up `hub submodule` 2010-04-21 15:42:47 -07:00
Chris Brown 177eeb8238 Fixed a missing require when raking the rakefile. 2010-04-22 06:33:39 +08:00
Chris Wanstrath d918ca2776 doc bug 2010-04-21 15:31:50 -07:00
Chris Brown 282e90591e Updated to use the newer ronn instead of ron.
Fixed a problem in the ronn file this caused.
2010-04-21 14:30:15 -07:00
Chris Wanstrath ad583684b9 Browser launching improvements
Uses open(1) if on OS X, xdg-open(1) or cygstart(1) if either is available,
and prefers $BROWSER above all else.
2010-04-21 14:21:41 -07:00
Chris Wanstrath 07ae0347a2 Switch to mg 2010-04-11 18:19:49 -04:00
Chris Wanstrath 3c9b44c9c5 v1.2.0 2010-04-11 17:37:17 -04:00
Chris Wanstrath cede3b9712 Add tests for `hub compare` 2010-04-11 17:36:17 -04:00
Joshua Roesslein 2155debcb9 Add "compare" command.
This command allows you to view a compare view in the browser
from a START to an END commit.

Example:
  hub compare AWESOME_PATCH...MASTER
2010-04-11 17:30:08 -04:00
Chris Wanstrath c0010d1205 Merge branch 'master' of github.com:defunkt/hub 2010-04-07 15:17:33 -07:00
Chris Wanstrath c7780c5d30 v1.1.0 2010-04-07 10:24:22 -07:00
Chris Wanstrath 75d0013aaa update man with hub-fork 2010-04-07 10:24:02 -07:00
Chris Wanstrath ddf79ca0c6 Tweaks, 80c, docs, -f 2010-04-07 10:11:52 -07:00
Chris Wanstrath c4bda898d1 Colors 2010-04-07 09:50:42 -07:00
Mislav Marohnić 6e444c7103 `hub fork` forks a project on GitHub and adds the new remote
Usage example:

  $ git fork
  (forks "defunkt/hub" on GitHub)
  (git remote add mislav git@github.com:mislav/hub.git)
  new remote: mislav

Use `git fork --no-remote` to skip adding the new remote.

Tests use Webmock for stubbing out HTTP requests:

  $ gem install webmock
2010-04-07 09:49:53 -07:00
Mike Lundy 51e0e8436a ignore standalone hub 2010-03-31 03:45:41 +08:00
Chris Wanstrath 782897f9e8 generate man pages 2010-03-10 17:08:50 -08:00
Chris Wanstrath ab48ccf168 v1.0.3 2010-03-10 17:08:02 -08:00
Chris Hoffman 1c0381fa1c Refactor remote command logic 2010-03-11 09:06:15 +08:00
Chris Hoffman 8a049a11b3 Test for normal public remote add 2010-03-11 09:06:15 +08:00
Chris Hoffman 3cd7998e1b Bail out early for remote adds that are normal 2010-03-11 09:06:15 +08:00
Chris Hoffman fc74ffc621 Reject anything that has two / as not a user/repo for a remote add 2010-03-11 09:06:15 +08:00
Chris Hoffman b75032fd0d Failing test for remotes with repo that have a '-' in name 2010-03-11 09:06:14 +08:00
Chris Wanstrath b748b1ebfe Add failing test as a TODO 2010-03-09 11:14:52 -08:00
Chris Wanstrath 41484aca43 man:build 2010-03-09 01:13:09 -08:00
Chris Wanstrath 72c047d305 `sh` 2010-03-09 01:10:33 -08:00
Chris Wanstrath 414eafe95c whatever 2010-03-07 19:03:56 -08:00
Chris Wanstrath 84cd1eb5dc update manual 2010-03-07 19:02:02 -08:00
Chris Wanstrath cc58163857 1.0.2 2010-03-07 19:00:43 -08:00
Chris Wanstrath 2a0a630d3f Bugfix: zsh quoting [thommay] 2010-03-07 19:00:39 -08:00
Chris Wanstrath a1845d219a Fix `git remote add -f user` 2010-03-07 18:58:30 -08:00
Chris Wanstrath ca1e956b78 Hardcode browser for tests 2010-03-07 18:51:34 -08:00
Chris Wanstrath b460c59faf v1.0.1 2010-03-05 18:56:17 -08:00
Chris Wanstrath 570f716563 history 2010-03-05 18:55:57 -08:00
Chris Wanstrath 0751340e23 Fix `hub remote -f` (which rocks, sorry I broke it!) 2010-03-05 18:55:33 -08:00
Chris Wanstrath b0a62250ec Args#words and Args#flags 2010-03-05 18:55:16 -08:00
Chris Wanstrath 5d8e751f5e print the command during test failures to ease debugging 2010-03-05 18:24:55 -08:00
Chris Wanstrath df617994ba tweak 2010-03-05 18:05:44 -08:00
Mislav Marohnić 03b7867470 remove noisy clone output from usage examples in README 2010-03-05 17:23:43 -08:00
Stephen Celis aef16d85c6 Use cat for pager by default. 2010-03-05 17:21:54 -08:00
Chris Wanstrath 74d66aa6fa 1.0.0 2010-03-03 02:27:41 -08:00
Chris Wanstrath 304e79228d `remote add -p origin rtomayko/tilt` 2010-03-03 02:27:08 -08:00
Chris Wanstrath 66171f77dc hub remote add rtomayko/tilt 2010-03-03 02:11:20 -08:00
Chris Wanstrath 3fe4558625 update history 2010-03-03 02:05:40 -08:00
Stephen Celis a86a16b165 Add submodule to manpages. 2010-03-03 02:03:35 -08:00