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

Re: [PATCH 1/3] t5403.1: simplify commit creation

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Oct 13, 2011, 03:54 UTC
Message-ID
<CACsJy8DuJzW-=86FOs8F4YqhG68dEzx4790vpM3D9yPfeV87qA@mail.gmail.com>
In-Reply-To
<4E95A0BF.2060003@viscovery.net>
2011/10/13 Johannes Sixt <j.sixt@viscovery.net>:
Show 18 quoted lines
> Am 10/12/2011 11:35, schrieb Nguyễn Thái Ngọc Duy:
>>  test_expect_success setup '
>>       echo Data for commit0. >a &&
>>       echo Data for commit0. >b &&
>> -     git update-index --add a &&
>> -     git update-index --add b &&
>> -     tree0=$(git write-tree) &&
>> -     commit0=$(echo setup | git commit-tree $tree0) &&
>> -     git update-ref refs/heads/master $commit0 &&
>> +     git add a b &&
>> +     git commit -m setup &&
>>       git clone ./. clone1 &&
>>       git clone ./. clone2 &&
>>       GIT_DIR=clone2/.git git branch new2 &&
>
> I don't think this change is necessary. It doesn't hurt to use plumbing
> commands here and there in the test suite to exercise them to a degree
> that they deserve.
I'm fine either way, for the record.
-- 
Duy
Previous: Johannes Sixt
Message 7 of 7 in “t5403.1: simplify commit creation”
  1. 1/3 t5403.1: simplify commit creationNguyễn Thái Ngọc Duy, Oct 12, 2011
  2. 2/3 t5403: convert leading spaces to tabsNguyễn Thái Ngọc Duy, Oct 12, 2011
  3. 3/3 t5403: do not use access repos with GIT_DIR when worktree is involvedNguyễn Thái Ngọc Duy, Oct 12, 2011
  4. Junio C HamanoOct 13, 2011
  5. Nguyen Thai Ngoc DuyOct 13, 2011
  6. Johannes SixtOct 12, 2011
  7. Nguyen Thai Ngoc DuyOct 13, 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.