git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: Maintaining historical data in a git repo

From
HLHolding, Lawrence <lawrence.holding@cubic.com>
Date
Apr 1, 2012, 04:14 UTC
Message-ID
<A5E8E180685CEF45AB9E737A010799805DFAA8@cdnz-ex1.corp.cubic.cub>
In-Reply-To
<CAHREChiNbEVGR1+xvOhAa2Yg35N2O+JreF-mVm793bZGWzu+rw@mail.gmail.com>
Show 16 quoted lines
> Mark Lodato wrote:
> On Fri, Mar 30, 2012 at 4:39 PM, Yuval Adam <yuv.adm@gmail.com> wrote:
> > However, we perceive git as a very powerful tool, that can fit
> > beautifully with the way legislation works today.
> > The challenge for us - should we choose to accept it ;) - is to build
> > a set of wrapper tools that allow us to use git in such a way, while
> > enabling us to build up past history.
> 
> If you're willing to put some time into either writing new tools or
> doing complicated work by hand, you could use git to keep track of the
> history's history.  Have two branches: a real "master" branch and a
> "meta" branch to keep track of master's history.  The former is what
> end users would see: the most accurate history of the code to date.
> The latter is what "developers" would use to rebuild the master branch
> with new information (say, adding A before B and C).
> 
Why not just skip the master branch altogether? Create a branch named for today's date and commit to it the history of the law as seen at today. When historic changes are discovered, create a branch where it fits into the record (named for the date of the discovery), commit the new version, then cherry pick the remainder of the history from then on top of it. Ending up with two parallel historic records showing what you thought the history of the document was up until last Wednesday and the new branch of what we know now. Having the same version of the document in multiple branches has no storage penalties in git.
Previous: Mark LodatoNext: Ævar Arnfjörð Bjarmason
Message 10 of 13 in “Maintaining historical data in a git repo”
  1. Yuval AdamMar 30, 2012
  2. Seth RobertsonMar 30, 2012
  3. Yuval AdamMar 30, 2012
  4. Seth RobertsonMar 30, 2012
  5. Jakub NarebskiMar 30, 2012
  6. Junio C HamanoMar 30, 2012
  7. Yuval AdamMar 30, 2012
  8. david@lang.hmMar 30, 2012
  9. Mark LodatoMar 31, 2012
  10. Holding, LawrenceApr 1, 2012
  11. Ævar Arnfjörð BjarmasonApr 2, 2012
  12. Markus ElfringApr 3, 2012
  13. Andreas StrickerApr 3, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.