Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 901495 - dev-vcs/git-absorb: automatically identify which commits are safe to modify and which staged changes belong to each of those commits (New Package)
Summary: dev-vcs/git-absorb: automatically identify which commits are safe to modify a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/tummychow/git-absorb
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-16 17:28 UTC by Leho Kraav (:macmaN @lkraav)
Modified: 2023-03-20 15:06 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!