GNU bug report logs -
#44810
[PATCH] gnu: Add git-open.
Previous Next
Reported by: EuAndreh <eu <at> euandre.org>
Date: Mon, 23 Nov 2020 01:18:02 UTC
Severity: normal
Tags: patch
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/version-control.scm (git-open): New variable.
---
Fixed warning given by "guix lint" on quotes in description field.
gnu/packages/version-control.scm | 34 +++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 1842528ff6..34b35d1c94 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -14,7 +14,7 @@
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me <at> tobias.gr>
;;; Copyright © 2017 Vasile Dumitrascu <va511e <at> yahoo.com>
;;; Copyright © 2017 Clément Lassieur <clement <at> lassieur.org>
-;;; Copyright © 2017 André <eu <at> euandre.org>
+;;; Copyright © 2017, 2020 EuAndreh <eu <at> euandre.org>
;;; Copyright © 2017, 2018, 2020 Marius Bakke <mbakke <at> fastmail.com>
;;; Copyright © 2017 Stefan Reichör <stefan <at> xsteve.at>
;;; Copyright © 2017, 2020 Oleg Pykhalov <go.wigust <at> gmail.com>
@@ -2718,6 +2718,38 @@ videos, datasets, and graphics with text pointers inside Git, while storing the
file contents on a remote server.")
(license license:expat)))
+(define-public git-open
+ (package
+ (name "git-open")
+ (version "2.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/paulirish/git-open")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "11n46bngvca5wbdbfcxzjhjbfdbad7sgf7h9gf956cb1q8swsdm0"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let ((source (assoc-ref %build-inputs "source"))
+ (out (assoc-ref %outputs "out")))
+ (mkdir-p (string-append out "/bin"))
+ (copy-file (string-append source "/git-open")
+ (string-append out "/bin/git-open"))
+ #t))))
+ (home-page "https://github.com/paulirish/git-open")
+ (synopsis "Shortcut for opening the repository's homepage on the browser")
+ (description
+ "@code{git open} opens the repository's website from the command-line,
+guessing the URL pattern from the @code{origin} remote.")
+ (license license:expat)))
+
(define-public tla
(package
(name "gnu-arch")
--
2.29.2
This bug report was last modified 4 years and 173 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.