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

Re: Commiting automatically (2)

From
MMaaartin <grajcar1@seznam.cz>
Date
Dec 21, 2010, 08:36 UTC
Message-ID
<loom.20101221T092948-59@post.gmane.org>
In-Reply-To
<20101220073312.GA23482@nibiru.local>
Enrico Weigelt <weigelt <at> metux.de> writes:
Show 10 quoted lines
> * Maaartin <grajcar1 <at> seznam.cz> wrote:
> 
> > Yes, I wonder why it wasn't already implemented. I do something like
> > make all; git snapshot; send_the_executable_to_the_customer
> > which is IMHO needed quite often.
> 
> Perhaps it's wise to just use a separate repository on the same 
> repository. Maybe make it more convenient using some little
> shell functions. I'm also using that for backup purposes, where
> the repo lies outside the to-be-backed-up tree.

I considered using a separate repository, too, but having "all in one" feels somehow better. It allows me to push everything to a single remote repo and compare the snapshots to ordinal commits, etc.

I let the snapshot point to the current head, which is where I get a problem now: git show-ref HEAD returns nothing, git show-ref --head returns HEAD and all branches and tags. Isn't it a bug? How can I get the HEAD reference? I'm using git version 1.7.2.3 on cygwin.

Previous: Enrico WeigeltNext: Jakub Narebski
Message 9 of 13 in “Commiting automatically (2)”
  1. MaaartinDec 19, 2010
  2. Taylor HedbergDec 19, 2010
  3. Jonathan NiederDec 19, 2010
  4. Jonathan NiederDec 19, 2010
  5. MaaartinDec 20, 2010
  6. Junio C HamanoDec 19, 2010
  7. MaaartinDec 20, 2010
  8. Enrico WeigeltDec 20, 2010
  9. MaaartinDec 21, 2010
  10. Jakub NarebskiDec 21, 2010
  11. Jakub NarebskiDec 27, 2010
  12. Maaartin-1Jan 3, 2011
  13. Jakub NarebskiJan 3, 2011

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.