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

Re: Git Questions

From
JHJan Hudec <bulb@ucw.cz>
Date
Aug 20, 2007, 18:35 UTC
Message-ID
<20070820183533.GC8542@efreet.light.src>
In-Reply-To
<e1dab3980708200559v3f1def4ft85e31afb08394790@mail.gmail.com>
On Mon, Aug 20, 2007 at 13:59:41 +0100, David Tweed wrote:
Show 29 quoted lines
> > On Monday 2007 August 20, Tom Schinckel wrote:
> >
> > > The reason I want to do that is so I can set up blind commits that I can
> > > add in a anacron job or something. The information about the files isn't
> > > really important
> 
> Regarding your basic intention, I've worked on something _similar_
> using git and put it up on the web (although not got around to editing
> the git wiki) at
> 
> http://www.personal.rdg.ac.uk/~sis05dst/chronoversion.htm
> 
> (with a minor update is going to go up when 1.5.3 gets released & I
> test it works.) There are two important differences with what you want
> to do:
> 
> 1. As I recall someone else saying when talking about using SCM
> on their home directory (Joey Hess?), if you blanket record
> everything you then end up being careful about, eg, piping a
> grep search into a temporary file for some purpose, etc. So
> chronoversion takes a python function that decides if a file
> is "worth recording" (which can be by suffix or more general
> analysis).
> 
> 2. As I've got a nervous tick of saving every couple of minutes
> (in case the editor or network I'm on dies), recording on save
> is too fine a granularity for me, so the script is designed to
> run from a cron job (I have it at once an hour) and not make
> a commit if it finds nothing has changed.

There's inotify interface in recent Linux and there is an incron (http://inotify.aiken.cz/) tool to run action when a file changes. I didn't actually use that tool, but from description of the Debian package it looks like it could be used to run git whenever you save something.

> As I say, not exactly what you're looking for but it might be
> in the right direction.
-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: David TweedNext: Matthieu Moy
Message 7 of 9 in “Git Questions”
  1. Tom SchinckelAug 20, 2007
  2. Jeff KingAug 20, 2007
  3. David KågedalAug 20, 2007
  4. Tom SchinckelAug 20, 2007
  5. Andy ParkinsAug 20, 2007
  6. David TweedAug 20, 2007
  7. Jan HudecAug 20, 2007
  8. Matthieu MoyAug 20, 2007
  9. David TweedAug 20, 2007

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.