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

Re: [PATCH] Hash name is SHA-1

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 26, 2007, 11:34 UTC
Message-ID
<epcouq$co3$1@sea.gmane.org>
In-Reply-To
<1169729410294-git-send-email-vonbrand@inf.utfsm.cl>
[Cc: git@vger.kernel.org]
Horst H. von Brand wrote:
Show 12 quoted lines
> @@ -30,12 +30,12 @@ and executable, it is called with three parameters:
>  
>         $GIT_DIR/hooks/update refname sha1-old sha1-new
>  
> -The refname parameter is relative to $GIT_DIR; e.g. for the
> -master head this is "refs/heads/master".  Two sha1 are the
> -object names for the refname before and after the update.  Note
> -that the hook is called before the refname is updated, so either
> -sha1-old is 0{40} (meaning there is no such ref yet), or it
> -should match what is recorded in refname.
> +The refname parameter is relative to $GIT_DIR; e.g. for the master
> +head this is "refs/heads/master".  The two sha1 are the object names
                                              ^^^^
> +for the refname before and after the update.  Note that the hook is
> +called before the refname is updated, so either sha1-old is 0{40}
> +(meaning there is no such ref yet), or it should match what is
> +recorded in refname.

First, it does some reformatting instead of making documentation always use SHA-1. Second, it does not replace sha1 by SHA-1 (sic!).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C Hamano
Message 11 of 11 in “Some cleanups”
  1. Horst H. von BrandJan 25, 2007
  2. Hash name is SHA-1Horst H. von Brand, Jan 25, 2007
  3. Shawn O. PearceJan 25, 2007
  4. Nicolas PitreJan 25, 2007
  5. Horst H. von BrandJan 25, 2007
  6. Shawn O. PearceJan 25, 2007
  7. Matthias LederhoferJan 25, 2007
  8. Junio C HamanoJan 25, 2007
  9. Andy ParkinsJan 26, 2007
  10. Junio C HamanoJan 26, 2007
  11. Jakub NarebskiJan 26, 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.