Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Walking the Actual Git Tree #22

Open
wmwolf opened this issue Sep 4, 2020 · 1 comment
Open

Allow Walking the Actual Git Tree #22

wmwolf opened this issue Sep 4, 2020 · 1 comment

Comments

@wmwolf
Copy link
Member

wmwolf commented Sep 4, 2020

Each commit knows what its parents and children are in the database. In theory, we could have the "next" and "previous" buttons that toggle through commits allow choosing between multiple children/parents for merge/branch commits. This is relatively easy. Harder would be to make the list views of commits allow for walking the true structure, since a graph can't really be mapped cleanly to a list.

Any thoughts on what would be a more useful linear organization of commits? Currently we just sort by commit time in a single branch, but after a different branch is merged in, all of its commits become part of the mainline branch, and time-ordering does not guarantee that one commit is a parent of the next in the list.

@rjfarmer
Copy link

rjfarmer commented Sep 7, 2020

I think just sticking with next/previous (following parent/child links) but when you get to a merge point then there would be two previous buttons.

git rev-parse HASH^@

gets you the commit hashes of all the parents. I don't think we'll want general merges anyway so for now we can sweep the problem away and not handle merges (only fast forward merges which put everything at the head commit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants