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

Re: [PATCH] hash-object: don't rely on order of --stdin, -w arguments

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 13, 2008, 19:50 UTC
Message-ID
<7v7ih8pre6.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080213190338.7393.qmail@d70c5cbe18d4bd.315fe32.mid.smarden.org>
Gerrit Pape <pape@smarden.org> writes:
> Fix 'git hash-object --stdin -w' to actually write the object, just as
> 'git hash-object -w --stdin' does.
Can we have additions to the test scripts to illustrate:
 - what used to happen if you had "--stdin -w" on the command
   line (presumably you did not get the object written, which is
   a buggy behaviour and the patch should fix it);
 - what used to happen if you had "-w --stdin --stdin" on the
   command line (I imagine you used to be able to feed two
   separate streams when you are on a terminal by typing ^Ds in
   between?);
 - any other combination that may deserve testing.

in order to (1) show existing bugs the patch is trying to address, (2) demonstrate that the patch fixes them without regressing, and (3) protect the fix from being broken by future changes, pretty please?

Previous: Gerrit PapeNext: Gerrit Pape
Message 2 of 7 in “hash-object: don't rely on order of --stdin, -w arguments”
  1. hash-object: don't rely on order of --stdin, -w argumentsGerrit Pape, Feb 13, 2008
  2. Junio C HamanoFeb 13, 2008
  3. hash-object: don't rely on order of --stdin, -w argumentsGerrit Pape, Feb 13, 2008
  4. Junio C HamanoFeb 13, 2008
  5. hash-object: cleanup handling of command line optionsGerrit Pape, Feb 14, 2008
  6. Junio C HamanoFeb 15, 2008
  7. hash-object: cleanup handling of command line optionsGerrit Pape, Feb 21, 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.