Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 901495

Summary: dev-vcs/git-absorb: automatically identify which commits are safe to modify and which staged changes belong to each of those commits (New Package)
Product: Gentoo Linux Reporter: Leho Kraav (:macmaN @lkraav) <leho>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: enhancement CC: dlan, jstein, leho, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/tummychow/git-absorb
Whiteboard:
Package list:
Runtime testing required: ---

Description Leho Kraav (:macmaN @lkraav) 2023-03-16 17:28:07 UTC
This sounds too good to be true :)

> Instead of manually finding commit SHAs for git commit --fixup, or running a manual interactive rebase, do this:

> git add $FILES_YOU_FIXED
> git absorb --and-rebase

> 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 fixup! commits for each of those changes.

Reproducible: Always
Comment 1 Leho Kraav (:macmaN @lkraav) 2023-03-16 17:29:09 UTC
Maybe @dlan could help, since this is also a Rust Cargo package, like dev-vcs/stgit.
Comment 2 Larry the Git Cow gentoo-dev 2023-03-20 15:00:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3588cf3ef186b48ed171944521ac36910c91f300

commit 3588cf3ef186b48ed171944521ac36910c91f300
Author:     Yixun Lan <dlan@gentoo.org>
AuthorDate: 2023-03-20 14:51:57 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2023-03-20 14:58:20 +0000

    dev-vcs/git-absorb: new package, add 0.6.9
    
    Closes: https://bugs.gentoo.org/901495
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 dev-vcs/git-absorb/Manifest                |  68 +++++++++++++++++++
 dev-vcs/git-absorb/git-absorb-0.6.9.ebuild | 101 +++++++++++++++++++++++++++++
 dev-vcs/git-absorb/metadata.xml            |  11 ++++
 3 files changed, 180 insertions(+)
Comment 3 Leho Kraav (:macmaN @lkraav) 2023-03-20 15:06:44 UTC
U r hero @dlan!