Hacker Newsnew | past | comments | ask | show | jobs | submit | koreno's commentslogin

Git, Python, Tracebacks, Blame... need I say more?


nice!


Finally someone handles the challenge properly...


At the request of some users, this is now a proper github project: https://github.com/koreno/prebase

I also renamed it 'git-prebase' so that it's easily added to git's autocomplete behavior and does not interfere with 'rebase'.


couldn't find that specific commit for some reason... But I found the bug (indeed too many files, but I coped with it earlier...)


The characters cycle (wrap-around), but since you have the columns intact that shouldn't be an issue... :)


Actually, there was a bug there, but now it's fixed.


'rebaser' improves on 'git rebase -i' by adding information per commit regarding which files it touched.

Each file gets an alpha-numeric character at a particular column, a list of which appears below the commit list.

Commits can be moved up and down safely (no conflicts) as long as they don't have any clashing columns.


What does clashing column mean?


Two commits touching the same file, represented by the identifier at the end of the rebase's commit line. If you look at each file as a column, you can see which commits would clash.


Potentially clash; the commits may touch completely different parts of the same file without conflict.


This is the main prize. Using emacs + magit I can rebase and look at per commit files whilst having a buffer open to re-order commits.

In fact magit could probably do some of this with a hook on reordering commits which would not require more git metadata.

I'm not sure I care about any of this though as if I do rebase, reorder and then hit a conflict I can't resolve I can always abort the rebase.


True that!

My original idea was to somehow show the actual conflicts, but then I figured this gets the desired 80% for 2% of the effort...


Nice! wasn't familiar was autostash.


It gets more complicated if you have some other modified content that you wanna leave untouched. You then need to stash it or commit it separately.

The point of the alias is to make it all more user-friendly and less error-prone.


That's what the `--autostash` is for. It also has the advantage that the stash will be restored at the end of the rebase even if it hits problems and needs to be continued or aborted.


The point of the alias is to make it more user-friendly and less error-prone.


Yep, git inject uses this feature :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: