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

Re: Dumb "continuous" commit dumb question

From
Avery Pennarun <apenwarr@gmail.com>
Date
Aug 19, 2008, 14:54 UTC
Message-ID
<32541b130808190754l43f053abnc4e3c5c064d6ade7@mail.gmail.com>
In-Reply-To
<e1dab3980808190732i303f06ach50e36e13a624bd23@mail.gmail.com>
On Tue, Aug 19, 2008 at 10:32 AM, David Tweed <david.tweed@gmail.com> wrote:
Show 6 quoted lines
> One problem with chronological backups is that they often don't
> compile/run so you can't bisect on them. One thing I have been trying
> to figure out is if there's an easy way to modify my build system so
> that it makes a commit approximately every 10 minutes but just after a
> successful compile. However, that looks to be a bit too complex and
> error prone for the moment.

You could just have a makefile rule or bash alias that does something like "make && git commit -a -m temp". Then remember to always run that instead of 'make' when you're building.

Of course, committing on a side branch and not screwing with the index would be much less intrusive.

Avery
Previous: Jeff KingNext: David Tweed
Message 6 of 9 in “Dumb "continuous" commit dumb question”
  1. Pat LeSmitheAug 19, 2008
  2. Marcus GriepAug 19, 2008
  3. David TweedAug 19, 2008
  4. Shawn O. PearceAug 19, 2008
  5. Jeff KingAug 19, 2008
  6. Avery PennarunAug 19, 2008
  7. David TweedAug 19, 2008
  8. Avery PennarunAug 19, 2008
  9. David TweedAug 19, 2008

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.