devel/git-arc: New port for FreeBSD code reviews
FreeBSD code review with git-arc: https://freebsdfoundation.org/wp-content/uploads/2021/11/FreeBSD-Code-Review-with-git-arc.pdf
This commit is contained in:
parent
f64391dd01
commit
366ffdefb4
4 changed files with 60 additions and 0 deletions
|
@ -830,6 +830,7 @@
|
|||
SUBDIR += gindent
|
||||
SUBDIR += gio-sharp
|
||||
SUBDIR += git
|
||||
SUBDIR += git-arc
|
||||
SUBDIR += git-absorb
|
||||
SUBDIR += git-bug
|
||||
SUBDIR += git-cinnabar
|
||||
|
|
38
devel/git-arc/Makefile
Normal file
38
devel/git-arc/Makefile
Normal file
|
@ -0,0 +1,38 @@
|
|||
PORTNAME= git-arc
|
||||
PORTVERSION= 20211118
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= https://cgit.freebsd.org/src/plain/tools/tools/git/
|
||||
DISTFILES= ${PORTNAME}.sh?id=${_REV} \
|
||||
${PORTNAME}.1?id=${_REV}
|
||||
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
|
||||
|
||||
MAINTAINER= jrm@FreeBSD.org
|
||||
COMMENT= FreeBSD Phabricator reviews based on git commits
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
|
||||
RUN_DEPENDS= arc:devel/arcanist \
|
||||
git:devel/git \
|
||||
jq:textproc/jq
|
||||
|
||||
EXTRACT_CMD= ${CP}
|
||||
EXTRACT_BEFORE_ARGS= # empty
|
||||
EXTRACT_AFTER_ARGS= .
|
||||
NO_ARCH= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
PLIST_FILES= bin/${PORTNAME} \
|
||||
man/man1/${PORTNAME}.1.gz
|
||||
|
||||
_REV= 964035c409b1b7229c7bc0220e7455e4a038ed4b
|
||||
|
||||
post-patch:
|
||||
@${MV} ${WRKSRC}/${PORTNAME}.sh?id=* ${WRKSRC}/${PORTNAME}.sh
|
||||
@${MV} ${WRKSRC}/${PORTNAME}.1?id=* ${WRKSRC}/${PORTNAME}.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/git-arc/distinfo
Normal file
5
devel/git-arc/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
|||
TIMESTAMP = 1637946965
|
||||
SHA256 (git-arc/git-arc.sh?id=964035c409b1b7229c7bc0220e7455e4a038ed4b) = 3b2f8e0a519b30063bcfee8c191e9c151ceb5422d1e4d2aa07dce43e7a290e8b
|
||||
SIZE (git-arc/git-arc.sh?id=964035c409b1b7229c7bc0220e7455e4a038ed4b) = 16149
|
||||
SHA256 (git-arc/git-arc.1?id=964035c409b1b7229c7bc0220e7455e4a038ed4b) = ff882a81081cbe12b90a8008d9be9cf6d8175e583c319240a6c76b8e17361dc0
|
||||
SIZE (git-arc/git-arc.1?id=964035c409b1b7229c7bc0220e7455e4a038ed4b) = 6609
|
16
devel/git-arc/pkg-descr
Normal file
16
devel/git-arc/pkg-descr
Normal file
|
@ -0,0 +1,16 @@
|
|||
The git-arc utility creates and manages FreeBSD Phabricator reviews
|
||||
based on git commits. It is a git plugin that provides a wrapper around
|
||||
arc.
|
||||
|
||||
The arc command has a few limitations that make it awkward for FreeBSD
|
||||
development:
|
||||
|
||||
- Arcanist uses its own commit log template with a format does not match
|
||||
FreeBSD's template.
|
||||
|
||||
- Arcanist presumes a model where all the commits in a development
|
||||
branch are uploaded for review as a single Differential revision.
|
||||
When working on a feature branch with multiple commits, it is usually
|
||||
more efficient to review each commit individually.
|
||||
|
||||
git-arc mitigates these limitations.
|
Loading…
Reference in a new issue