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

128 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 49ba771a36 update documentation about cloning your own repos 2011-11-24 00:58:45 +01:00
Mislav Marohnić d88e9a4260 `hub checkout` can fetch and checkout a pull request
Closes #75
2011-11-23 23:12:19 +01:00
Mislav Marohnić 95a6dd5fbe improve pull-request 2011-11-23 21:17:30 +01:00
Mislav Marohnić a0a9a3f711 update Readme, History 2011-10-27 13:48:42 +02:00
Mislav Marohnić 30e7ac3c16 opt in for HTTPS as git protocol: `hub config hub.protocol https`
Closes #93, references #65, references #49
2011-10-27 00:30:56 +02:00
Mislav Marohnić 132eb6f274 `pull-request` aborts if unpushed commits; opens editor for title/body 2011-10-24 04:16:36 +02:00
Mislav Marohnić 7ae4895ab9 refactor and improve `pull-request` 2011-10-24 04:15:09 +02:00
Christian Oudard dbedb078f9 implement working `hub pull-request` 2011-10-24 03:48:06 +02:00
Mislav Marohnić 26963ef525 add documentation about `hub apply` 2011-10-20 15:40:40 +02:00
Mislav Marohnić 01243c5b96 tired of duplicating examples between README & .ronn file 2011-10-19 17:41:10 +02:00
Mislav Marohnić fc0e05c437 `hub create <name>` to create GitHub repository with custom name
Closes #91
2011-10-19 16:15:54 +02:00
Stephen Bannasch d84e8266d4 test and document `hub browse` a single commit 2011-10-19 15:45:08 +02:00
Mislav Marohnić 670c984eb7 replace two dots (`sha1..sha2`) with three in the `compare` command
GitHub doesn't support ranges with two dots, only three. With these two
being equivalent in case of linear history, it's generally safe to convert
the range pasted on the command-line to three dots. This is to avoid
confusion where GitHub would display a 404 page otherwise.

See "specifying ranges" in the `git-rev-parse` man page.

closes #80
2011-06-12 18:16:30 +02:00
Beau Dacious 81caf79a88 added missing word in README. 2011-04-26 14:30:31 -07:00
Chris Wanstrath 0b49d56d20 gem rename: git-hub => hub 2011-03-24 12:38:17 -07:00
Justin Quick 830edb0b2a typo in browse docs 2011-03-23 13:38:53 +08:00
Chris Wanstrath b14fa766c4 markdown master 2011-03-22 11:26:40 -07:00
Chris Wanstrath 282d7a7cdd chriswanstrath.com => defunkt.io 2011-03-21 15:49:17 -07:00
Chris Wanstrath f0a79fedf8 weird markdown thing, kinda cool 2011-03-20 13:07:24 -07:00
Chris Wanstrath 5234704659 help its slow 2011-03-20 13:06:24 -07:00
Mislav Marohnić de3ab4165b browse/compare/cherry-pick: compensate for GitHub switch to HTTPS
Changes:
 - `browse` and `compare` always open HTTPS
 - the `-p` flag for these commands has no effect anymore
 - updated `browse` URL for wiki pages
 - cherry-picking a URL doesn't add a new remote as private
2010-12-28 14:01:48 +01:00
Chris Wanstrath c2e575fa09 Support for GITHUB_USER and GITHUB_TOKEN env variables. 2010-11-22 12:58:11 -08:00
Chris Wanstrath a01b256f84 more than just me 2010-11-22 12:56:50 -08:00
Chris Wanstrath ac78783360 webmock, not webhelper 2010-11-22 12:49:02 -08:00
Mislav Marohnić 5b49ad0e66 installation: follow redirects in the future 2010-11-06 23:21:17 +01:00
Philip Arndt 8432ba8dfb Update URL to get standalone
Closes GH-56.
2010-11-06 23:01:06 +01:00
Justin Weiss d098694438 Added documentation on `hub create` 2010-07-26 21:17:39 -07:00
Mislav Marohnić 3c6af16c8c magic `cherry-pick` supports GitHub commit URLs and "user@sha" notation
Creates new remotes if needed and fetches objects before cherry-picking.

    $ git cherry-pick http://github.com/mislav/REPO/commit/SHA
    > git remote add -f mislav git://github.com/mislav/REPO.git
    > git cherry-pick SHA
2010-04-29 09:50:03 -07:00
Mislav Marohnić 7ac3b020db enhanced `git fetch <fork>` to add new remotes if missing
A remote must be an existing repo on GitHub.

    $ git fetch mislav
    > git remote add mislav git://github.com/mislav/REPO.git
    > git fetch mislav
2010-04-29 09:50:03 -07:00
Chris Wanstrath 98a5a28076 Merge remote branch 'mislav/tracking' 2010-04-29 09:31:00 -07:00
Chris Brown 853f40fd5e Some small fixes and additions to help and documentation. 2010-04-30 00:28:53 +08:00
Mislav Marohnić 21225f8663 update manpage & readme tweaks. don't suggest to uninstall the "git-hub" gem
If users keep the gem installed, they have a chance to be notified of updates
and they can refresh their standalone script. Also, executables in ~/bin should
have precedence over gem executables, so no need to uninstall.
2010-04-27 15:10:43 +02:00
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ć 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
Justin Ridgewell 0089a940cb Fix up `hub submodule` 2010-04-21 15:42:47 -07: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 ddf79ca0c6 Tweaks, 80c, docs, -f 2010-04-07 10:11:52 -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
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
Mislav Marohnić ef3271a896 `hub browse` with no repository specified defaults to current repo
useful for jumping to the GitHub page of the repo checked out in the current directory
2010-02-24 03:06:45 -02:00
Chris Wanstrath 6f084364e1 Add `hub remote origin` shortcut. Assumes your GitHub login. 2010-02-13 01:42:07 -08:00
Chris Wanstrath 8d87891aa2 Add `hub standalone` for installation of standalone via RubyGems 2010-01-23 14:19:50 -08:00
Chris Wanstrath 11d96c3070 Add `hub browse` command for opening a repo in a browser. 2010-01-23 14:15:27 -08:00
Chris Wanstrath f1eaafd1b1 Why to not use hub with RubyGems 2010-01-23 14:10:03 -08:00
Chris Wanstrath b2d389b9e9 Simpler install command 2010-01-23 14:09:55 -08:00
Chris Wanstrath cff1869f3a hub.http-clone config setting 2009-12-24 13:55:07 -05:00
Chris Wanstrath 624662f14d update docs with new git-push info 2009-12-24 10:32:39 -08:00
Chris Wanstrath d8f47ba321 Merge branch 'master' of github.com:defunkt/hub 2009-12-13 02:42:00 -08:00
Chris Wanstrath 087416f65a gemcutter is a source 2009-12-12 16:03:55 -08:00
defunkt 42af545de0 Give brew install some formatting love 2009-12-12 10:50:56 -07:00
Joshua Peek 58497ee3f7 Added install task to Rakefile to install standalone script and man
pages.

caveat: had to override jewelers install task
2009-12-11 09:09:23 -08:00
Chris Wanstrath e015b871b4 mention git help hub 2009-12-10 12:59:01 -08:00
Caio Chassot c497ac637e README: fix capitalization of Rubygems (to RubyGems) 2009-12-10 08:14:32 -02:00
Caio Chassot a431e9d3b4 README: fix standalone install line 2009-12-10 08:06:39 -02:00
Caio Chassot 4a34b845ca README: Replace mentions of "path" with "$PATH" 2009-12-10 08:05:30 -02:00
Konstantin Haase 3c6b476734 README fix 2009-12-09 22:59:39 +08:00
Chris Wanstrath f8d612c034 fix urls 2009-12-08 21:32:02 -08:00
Chris Wanstrath 2390eb20d0 gemcutter 2009-12-08 21:28:15 -08:00
Chris Wanstrath 519c9c01c1 already a hub on gemcutter, seriously 2009-12-08 21:25:00 -08:00
Chris Wanstrath f238f21030 consistency 2009-12-08 21:14:05 -08:00
Chris Wanstrath a0fc0344bb add `git clone blah` which will use your github login to clone your repo 2009-12-08 21:06:34 -08:00
Chris Wanstrath 272a9ef3f2 lookin' good 2009-12-08 20:31:04 -08:00
Chris Wanstrath 65041dca1a tweaks 2009-12-08 20:10:12 -08:00
Chris Wanstrath 3dd4764a12 more readme 2009-12-08 20:08:36 -08:00
Chris Wanstrath 871faf9cbf rake and readme updates 2009-12-08 20:05:17 -08:00
Chris Wanstrath 5010d55f9f readme tweaks 2009-12-08 17:40:45 -08:00
Chris Wanstrath b7abecfa89 README install => alias 2009-12-08 17:35:27 -08:00
Chris Wanstrath 92f75924f7 hub install => hub alias 2009-12-08 17:34:37 -08:00
Chris Wanstrath 6633a3b4c4 readme / install tweaks 2009-12-08 02:12:29 -08:00
Chris Wanstrath 3f5679b1da tweaks 2009-12-08 01:12:53 -08:00
Chris Wanstrath 0a74e27c10 no docs site this time 2009-12-08 01:12:48 -08:00
Chris Wanstrath fa0889c1d0 standalone bundler 2009-12-08 01:12:32 -08:00
Chris Wanstrath e3ece88d1e more readme 2009-12-08 00:34:29 -08:00
Chris Wanstrath c67a9c41a4 tweak readme 2009-12-08 00:29:29 -08:00
Chris Wanstrath f2719eb5c1 readme love 2009-12-08 00:18:55 -08:00
Chris Wanstrath e0980a6d28 make the readme less of a liar 2009-12-07 21:28:38 -08:00
Chris Wanstrath 187144a591 readme 2009-12-07 13:21:12 -08:00