all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 52296@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#52296] [PATCH 4/4] gnu: Add git-absorb.
Date: Sun,  5 Dec 2021 02:01:28 -0500	[thread overview]
Message-ID: <20211205070128.1212-4-jgart@dismail.de> (raw)
In-Reply-To: <20211205070128.1212-1-jgart@dismail.de>

* gnu/packages/rust-apps.scm (git-absorb): New variable.
---
 gnu/packages/rust-apps.scm | 47 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index be60f3f376..6ce98610f5 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
+;;; Copyright © 2021 jgart <jgart@dismail.de>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1204,6 +1205,52 @@ (define-public tealdeer
 Full featured offline client with caching support.")
     (license (list license:expat license:asl2.0))))
 
+(define-public git-absorb
+  (package
+    (name "git-absorb")
+    (version "0.6.6")
+    (source
+     (origin
+       ;; crates.io does not include the manual page.
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tummychow/git-absorb")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "04v10bn24acify34vh5ayymsr1flcyb05f3az9k1s2m6nlxy5gb9"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-anyhow" ,rust-anyhow-1)
+         ("rust-clap" ,rust-clap-2)
+         ("rust-git2" ,rust-git2-0.13)
+         ("rust-memchr" ,rust-memchr-2.3)
+         ("rust-slog" ,rust-slog-2)
+         ("rust-slog-async" ,rust-slog-async-2.5)
+         ("rust-slog-term" ,rust-slog-term-2))
+        #:cargo-development-inputs
+        (("rust-tempfile" ,rust-tempfile-3.1))
+        #:phases
+        (modify-phases %standard-phases
+         (add-after 'install 'install-manual-page
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out   (assoc-ref outputs "out"))
+                    (man   (string-append out "/share/man/man1")))
+               (install-file "Documentation/git-absorb.1" man)))))))
+    (inputs
+     `(("zlib" ,zlib)))
+    (home-page "https://github.com/tummychow/git-absorb")
+    (synopsis "Git tool for making automatic fixup commits")
+    (description
+"@code{git absorb} allows the user to automatically absorb staged changes
+into their current branch.  @code{git absorb} will automatically identify
+which commits are safe to modify, and which staged changes belong to each
+of those commits.  It will then write @code{fixup!} commits for each of
+those changes.")
+    (license license:bsd-3)))
+
 (define-public zoxide
   (package
     (name "zoxide")
-- 
2.34.0





  parent reply	other threads:[~2021-12-05  7:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-05  6:57 [bug#52296] [PATCH 1/4] gnu: Add git-absorb jgart via Guix-patches via
2021-12-05  7:01 ` [bug#52296] [PATCH 1/4] gnu: Add rust-memchr-2.3 jgart via Guix-patches via
2021-12-05  7:01   ` [bug#52296] [PATCH 2/4] gnu: Add rust-slog-async-2.5 jgart via Guix-patches via
2021-12-05  7:01   ` [bug#52296] [PATCH 3/4] gnu: Add rust-tempfile-3.1 jgart via Guix-patches via
2021-12-05  7:01   ` jgart via Guix-patches via [this message]
2021-12-05 13:05   ` [bug#52296] [PATCH 1/4] gnu: Add rust-memchr-2.3 Nicolas Goaziou
2021-12-05 15:06     ` jgart via Guix-patches via
2021-12-05 18:13       ` Nicolas Goaziou
2021-12-06  3:16 ` [bug#52296] [PATCH v2] gnu: Add git-absorb jgart via Guix-patches via
2021-12-06  9:49   ` Nicolas Goaziou
2021-12-06  9:56     ` jgart via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211205070128.1212-4-jgart@dismail.de \
    --to=guix-patches@gnu.org \
    --cc=52296@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.