News for hackers. Stuff that matters.
Re:US Constitution – A Git repo with history of edits by omarhaneef on Wednesday October 23, 2019 @04:19PM (#21338538)
This is great. Is there a tool to do this?

I mean, can I edit the times and the authors and create a history that I need with some software? Or did the author painstakingly go in and manually look up all the dates and make the commits? And then roll back for an error and just keep going?

The issue is how would you change a single commit from 8 commits ago if there was an error there?

And then how would you visualize the whole thing just to keep it straight in your head?

Re:US Constitution – A Git repo with history of edits by Buetol on Wednesday October 23, 2019 @06:53PM (#21339919)
> This is great. Is there a tool to do this?

Here's a script doing the same thing but with another text [1].

In this case, we're storing each version as plain text files and then we make the git repo by compiling all of them.

> And then how would you visualize the whole thing just to keep it straight in your head ?

Like this for example [2].

[1]: https://github.com/regardscitoyens/historique_reglements_AN/...

[2]: https://web.archive.org/web/20160315050131/http://visualisie...

Re:US Constitution – A Git repo with history of edits by giancarlostoro on Wednesday October 23, 2019 @04:28PM (#21338623)
> The issue is how would you change a single commit from 8 commits ago if there was an error there?

Rebase would be my first hunch. There's plenty of GUI based git editors, as long as it's all historically in order it's all fine and dandy.

Re:US Constitution – A Git repo with history of edits by dhritzkiv on Wednesday October 23, 2019 @04:40PM (#21338760)
Rebase and then force-push to reset the remote
Re:US Constitution – A Git repo with history of edits by shakna on Wednesday October 23, 2019 @04:39PM (#21338746)
My approach would be to generate the git repo using a script of some kind. It wouldn't be particularly difficult, and then fixing a change is just a rebuild.
Re:US Constitution – A Git repo with history of edits by pintxo on Wednesday October 23, 2019 @05:30PM (#21339207)
Would that be a constituting script in this case?
Re:US Constitution – A Git repo with history of edits by he_the_great on Sunday October 27, 2019 @12:53PM (#21370857)
No tools, just manual lookup. There is now a history rewrite based on the feedback happening.