Show HN: Git-Add–Interactive with Enhancements
31–40 of 45 posts
Re: Show HN: Git-Add–Interactive with Enhancements
#32Re: Show HN: Git-Add–Interactive with Enhancements
#33Then I discovered Vim fugitive. It allows to go through the diff and stage chunks so intuitively, it changed the way I work. Just j/k to move around, = to expand file, s to stage selection, c to commit. The process of reviewing changes became very natural and actually enjoyable. I like the feeling of control it gives and how it makes focused commits painless while not disrupting the flow.
Re: Show HN: Git-Add–Interactive with Enhancements
#34Re: Show HN: Git-Add–Interactive with Enhancements
#35 i = !git add -N . && git add -p
`git i` lets you interactively add new files as well as existing onesRe: Show HN: Git-Add–Interactive with Enhancements
#36I've used `tig` for this sort of thing for well over a decade. `tig status` lets you see all files, interactively add things, whatever.
Re: Show HN: Git-Add–Interactive with Enhancements
#37I used to hate leaving Vim for Git’s interactive staging mode or some separate GUI to pick apart a hairy set of changes. As a result I usually tried to avoid these messy situations. Then I discovered Vim fugitive. It allows to go through the diff and stage chunks so intuitively, it changed the way I work. Just j/k to move around, = to expand file, s to stage selection, c to commit. The process of reviewing changes be…
Re: Show HN: Git-Add–Interactive with Enhancements
#38I like the idea of 'G' to filter hunks. The perl script does not exist since git v2.40.0 so I don't think the installation instructions work for recent versions of git as there is no way to stop 'git add -p' from running the builtin version. I see this is MIT licenced but the code is very closely based on the perl script which is licensed under the GPLv2.
As for licensing, I'm happy to change the license. I have no strong feelings on the subject, and don't know what restrictions GPLv2 imposes on a port to another language.
Re: Show HN: Git-Add–Interactive with Enhancements
#39Re: Show HN: Git-Add–Interactive with Enhancements
#40I used to hate leaving Vim for Git’s interactive staging mode or some separate GUI to pick apart a hairy set of changes. As a result I usually tried to avoid these messy situations. Then I discovered Vim fugitive. It allows to go through the diff and stage chunks so intuitively, it changed the way I work. Just j/k to move around, = to expand file, s to stage selection, c to commit. The process of reviewing changes be…
And if you use magit for Emacs, it's also extremely easy to stage hunks selectively and easily: s to stage, cc to commit staged, ca to amend with staged, etc. This is the way: don't use the git CLI. Use your editor.