pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/hub hub: Update net/hub to 2.3.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7671dcc14997
branches:  trunk
changeset: 308824:7671dcc14997
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri Jun 01 15:42:22 2018 +0000

description:
hub: Update net/hub to 2.3.0

pkgsrc changes:
 - Add a files/hub.1 to avoid picking up devel/ruby-ronn as a TOOL_DEPENDS

Changes:
2.3.0
-----
This is a long-awaited release of hub with an abudance of new features.
Thank you everyone for testing out prereleases, reporting bugs, and
submitting pull requests! The work of 76 contributors went into
this release.

## New commands

  * `hub issue`: list and create issues and labels

        Usage: hub issue [-a <ASSIGNEE>] [-c <CREATOR>] [-@ <USER>]
                         [-s <STATE>] [-f <FORMAT>] [-M <MILESTONE>]
                         [-l <LABELS>] [-d <DATE>] [-o <SORT_KEY> [-^]]
                         [-L <LIMIT>]
           hub issue create [-oc] [-m <MESSAGE>|-F <FILE>] [-a <USERS>]
                            [-M <MILESTONE>] [-l <LABELS>]
           hub issue labels [--color]

  * `hub pr list`: list pull requests for the current repository
  * `hub pr checkout <NUMBER>`: checkout a pull request by its number
  * `hub release`: list, create, edit, and delete releases and attachments

        Usage: hub release [--include-drafts] [--exclude-prereleases]
                           [-L <LIMIT>]
           hub release show <TAG>
           hub release create [-dpoc] [-a <FILE>] [-m <MESSAGE>|-F <FILE>]
                              [-t <TARGET>] <TAG>
           hub release edit [<options>] <TAG>
           hub release delete <TAG>

  * `hub sync`: fetch updates from remote repository and sync all local
    branches to their upstream equivalents, purging merged ones


## Improved commands

  * `hub pull-request` now has the ability to set assignees, labels,
    reviewers, and milestones.

        Usage: hub pull-request [-focp] [-b <BASE>] [-h <HEAD>]
                                [-r <REVIEWERS> ] [-a <ASSIGNEES>]
                                [-M <MILESTONE>] [-l <LABELS>]
           hub pull-request -m <MESSAGE>
           hub pull-request -F <FILE> [--edit]
           hub pull-request -i <ISSUE>

  * `hub pull-request` and `hub issue create` now support pull request and
     issue templates.
  * Commands that print the resulting URL, such as `hub pull-request` or
    `hub create`, now accept `--copy` to put the URL to the system clipboard
    instead.
  * `hub pull-request` now supports `--push` and `--open` flags to push the
    head branch to the remote and open the resulting PR in a web browser,
    respectively.
  * `hub pull-request` now strips away the `Signed-off-by` line and the commit
    signature when generating the default pull request message.
  * Commands that take input via `-m` or `-F` arguments now also respect
    `--edit` to additionally edit the text in a text editor before submitting.
  * Support `core.commentchar=auto` git configuration when editing
    pull request/issue/release message in a text editor.
  * Support `/OWNER/REPO/pull/XYZ/commits/SHA` format of URLs as argument to
    `cherry-pick`, `am`, and `apply`.
  * Commands such as `cherry-pick`, `merge <PR-URL>`, and `checkout <PR-URL>`
    don't leave leftover git remotes anymore.
  * New `hub compare -b BASE` flag.
  * New `hub fork --org=ORGANIZATION` flag.
  * New `hub fork --remote-name=NAME` flag to configure the new git remote.
  * New, manpage-based help system; see `hub help hub` and
    `hub help hub-<command>`.
  * Added fish shell completion script.
  * When prompted to authenticate with username/password, pasting a
    Personal Access Token now works just as well instead of the password.

diffstat:

 net/hub/Makefile    |   14 ++-
 net/hub/distinfo    |   10 +-
 net/hub/files/hub.1 |  190 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 204 insertions(+), 10 deletions(-)

diffs (247 lines):

diff -r 571a4093bdfc -r 7671dcc14997 net/hub/Makefile
--- a/net/hub/Makefile  Fri Jun 01 15:05:43 2018 +0000
+++ b/net/hub/Makefile  Fri Jun 01 15:42:22 2018 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2018/03/30 11:56:25 bsiegert Exp $
+# $NetBSD: Makefile,v 1.4 2018/06/01 15:42:22 leot Exp $
 
-DISTNAME=      hub-2.2.9
-PKGREVISION=   2
+DISTNAME=      hub-2.3.0
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=github/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -19,7 +18,7 @@
 SUBST_CLASSES+=                man
 SUBST_STAGE.man=       pre-configure
 SUBST_MESSAGE.man=     Fix hub name in hub(1) man page
-SUBST_FILES.man=       man/hub.1
+SUBST_FILES.man=       share/man/man1/hub.1
 SUBST_SED.man+=                -e 's/\\fBgit/\\fBhub/g'
 SUBST_SED.man+=                -e 's/\$$ git/$$ hub/'
 SUBST_SED.man+=                -e '/\$$ GITHUB_HOST=/ s/ git clone / hub clone /'
@@ -29,9 +28,14 @@
 
 CHECK_RELRO_SKIP+=     bin/hub
 
+# XXX: To avoid to (tool_)depends on devel/ruby-ronn, we (manually) generate
+# XXX: it via `ronn' and copy it to FILESDIR.
+pre-patch:
+       ${CP} ${FILESDIR}/hub.1 ${WRKSRC}/share/man/man1
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKDIR}/bin/hub ${DESTDIR}${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/man/hub.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_DATA} ${WRKSRC}/share/man/man1/hub.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../lang/go/go-package.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 571a4093bdfc -r 7671dcc14997 net/hub/distinfo
--- a/net/hub/distinfo  Fri Jun 01 15:05:43 2018 +0000
+++ b/net/hub/distinfo  Fri Jun 01 15:42:22 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2018/02/27 17:08:35 leot Exp $
+$NetBSD: distinfo,v 1.2 2018/06/01 15:42:22 leot Exp $
 
-SHA1 (hub-2.2.9.tar.gz) = 2389395a7f64bdc122a48d513e03b7b751f0389d
-RMD160 (hub-2.2.9.tar.gz) = eb83e4d6ec843d485d56da7b2e862e32ba328f3b
-SHA512 (hub-2.2.9.tar.gz) = eec9624e77937787b2a8c6a70ae0cb0ffd5db021c665e8e3b9d0b1293ea3f54b1d540cd1e9a45569967b2e5e16ee41289479a19c9fc0868076e904755a7d2438
-Size (hub-2.2.9.tar.gz) = 318298 bytes
+SHA1 (hub-2.3.0.tar.gz) = 5e88d5f1226d21f129d844d7a2daaf72297fd040
+RMD160 (hub-2.3.0.tar.gz) = 9f1ce6f14d35f550e5bc3b7c845519cf5b5d9aac
+SHA512 (hub-2.3.0.tar.gz) = 560b4efde80d9074111b2adcf7fe29ce751d2bc185d5e5f9a86b05dbc62f9df9d712a5684c8ff9acd73047d2eb99735beb087a69f23cf162a14488655fd77bdf
+Size (hub-2.3.0.tar.gz) = 978882 bytes
diff -r 571a4093bdfc -r 7671dcc14997 net/hub/files/hub.1
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hub/files/hub.1       Fri Jun 01 15:42:22 2018 +0000
@@ -0,0 +1,190 @@
+.\" generated with Ronn/v0.7.3
+.\" http://github.com/rtomayko/ronn/tree/0.7.3
+.
+.TH "HUB" "1" "May 2018" "" ""
+.
+.SH "NAME"
+\fBhub\fR \- make git easier with GitHub
+.
+.SH "SYNOPSIS"
+\fBhub\fR [\fB\-\-noop\fR] \fICOMMAND\fR [\fIOPTIONS\fR]
+.
+.br
+\fBhub alias\fR [\fB\-s\fR] [\fISHELL\fR]
+.
+.br
+\fBhub help\fR hub\-\fICOMMAND\fR
+.
+.SH "DESCRIPTION"
+Hub is a tool that wraps git in order to extend it with extra functionality that makes it better when working with GitHub\.
+.
+.SH "COMMANDS"
+Available commands are split into two groups: those that are already present in git but that are extended through hub, and custom ones that hub provides\.
+.
+.SS "Extended git commands"
+.
+.TP
+hub\-am(1)
+Replicate commits from a GitHub pull request locally\.
+.
+.TP
+hub\-apply(1)
+Download a patch from GitHub and apply it locally\.
+.
+.TP
+hub\-checkout(1)
+Check out the head of a pull request as a local branch\.
+.
+.TP
+hub\-cherry\-pick(1)
+Cherry\-pick a commit from a fork on GitHub\.
+.
+.TP
+hub\-clone(1)
+Clone a repository from GitHub\.
+.
+.TP
+hub\-fetch(1)
+Add missing remotes prior to performing git fetch\.
+.
+.TP
+hub\-init(1)
+Initialize a git repository and create it on GitHub\.
+.
+.TP
+hub\-merge(1)
+Merge a pull request with a message like the GitHub Merge Button\.
+.
+.TP
+hub\-push(1)
+Push a git branch to each of the listed remotes\.
+.
+.TP
+hub\-remote(1)
+Add a git remote for a GitHub repository\.
+.
+.TP
+hub\-submodule(1)
+Add a git submodule for a GitHub repository\.
+.
+.SS "New commands provided by hub"
+.
+.TP
+hub\-alias(1)
+Show shell instructions for wrapping git\.
+.
+.TP
+hub\-browse(1)
+Open a GitHub repository in a web browser\.
+.
+.TP
+hub\-ci\-status(1)
+Display GitHub Status information for a commit\.
+.
+.TP
+hub\-compare(1)
+Open a GitHub compare page in a web browser\.
+.
+.TP
+hub\-create(1)
+Create a new repository on GitHub and add a git remote for it\.
+.
+.TP
+hub\-fork(1)
+Fork the current project on GitHub and add a git remote for it\.
+.
+.TP
+hub\-pull\-request(1)
+Create a GitHub pull request\.
+.
+.TP
+hub\-issue(1)
+List and create GitHub issues\.
+.
+.TP
+hub\-release(1)
+List and create GitHub releases\.
+.
+.TP
+hub\-sync(1)
+Fetch from upstream and update local branches\.
+.
+.SH "CONFIGURATION"
+.
+.SS "GitHub OAuth authentication"
+Hub will prompt for GitHub username & password the first time it needs to access the API and exchange it for an OAuth token, which it saves in \fB~/\.config/hub\fR\.
+.
+.P
+To avoid being prompted, use \fBGITHUB_USER\fR and \fBGITHUB_PASSWORD\fR environment variables\.
+.
+.P
+Alternatively, you may provide \fBGITHUB_TOKEN\fR, an access token with \fBrepo\fR permissions\. This will not be written to \fB~/\.config/hub\fR\.
+.
+.SS "HTTPS instead of git protocol"
+If you prefer the HTTPS protocol for git operations, you can configure hub to generate all URLs with \fBhttps:\fR instead of \fBgit:\fR or \fBssh:\fR:
+.
+.IP "" 4
+.
+.nf
+
+$ git config \-\-global hub\.protocol https
+.
+.fi
+.
+.IP "" 0
+.
+.P
+This will affect \fBclone\fR, \fBfork\fR, \fBremote add\fR and other hub commands that expand shorthand references to GitHub repo URLs\.
+.
+.SS "GitHub Enterprise"
+By default, hub will only work with repositories that have remotes which point to \fBgithub\.com\fR\. GitHub Enterprise hosts need to be whitelisted to configure hub to treat such remotes same as 
github\.com:
+.
+.IP "" 4
+.
+.nf
+
+$ git config \-\-global \-\-add hub\.host MY\.GIT\.ORG
+.
+.fi
+.
+.IP "" 0
+.
+.P
+The default host for commands like \fBinit\fR and \fBclone\fR is still \fBgithub\.com\fR, but this can be affected with the \fBGITHUB_HOST\fR environment variable:
+.
+.IP "" 4
+.
+.nf
+
+$ GITHUB_HOST=my\.git\.org git clone myproject
+.
+.fi
+.
+.IP "" 0
+.
+.SS "Environment variables"
+.
+.TP
+\fBHUB_VERBOSE\fR
+Enable verbose output from hub commands\.
+.
+.TP
+\fBHUB_CONFIG\fR
+Set the location of a custom config file (default: \fB~/\.config/hub\fR)\.
+.
+.TP
+\fBHUB_PROTOCOL\fR
+Use one of "https|ssh|git" as preferred protocol for git clone/push\.
+.
+.TP
+\fBGITHUB_TOKEN\fR
+OAuth token to use for GitHub API requests\.
+.
+.SH "BUGS"
+\fIhttps://github\.com/github/hub/issues\fR
+.
+.SH "AUTHORS"
+\fIhttps://github\.com/github/hub/contributors\fR
+.
+.SH "SEE ALSO"
+git(1), git\-clone(1), git\-remote(1), git\-init(1), \fIhttps://github\.com/github/hub\fR



Home | Main Index | Thread Index | Old Index