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

[PATCH/RFC 0/2] fast-import: commit from null_sha1

From
Dmitry Ivankov <divanorama@gmail.com>
Date
Sep 18, 2011, 21:20 UTC
Message-ID
<1316380846-15845-1-git-send-email-divanorama@gmail.com>

Not so sure how null_sha1 parent should be treated in fast-import. Absent parent is represented as null_sha1 to the user in reflog, but isn't allowed as an argument for porcelain nor shows in most plumbing commands afaik.

These patches make fast-import treat
    commit refs/heads/master
    ...
    from `null_sha1`
like any other missing parent sha1 - reject such input.
Note: if we'll want this input to be valid, some other adjustments
to fast-import logic may be needed for consistency.
Dmitry Ivankov (2):
  fast-import: add 'commit from 0{40}' failing test
  fast-import: fix 'from 0{40}' test
 fast-import.c          |   17 ++++++-----------
 t/t9300-fast-import.sh |   12 ++++++++++++
 2 files changed, 18 insertions(+), 11 deletions(-)
-- 
1.7.3.4
Next: Dmitry Ivankov
Message 1 of 5 in “fast-import: commit from null_sha1”
  1. 0/2 fast-import: commit from null_sha1Dmitry Ivankov, Sep 18, 2011
  2. 1/2 fast-import: add 'commit from 0{40}' failing testDmitry Ivankov, Sep 18, 2011
  3. 2/2 fast-import: fix 'from 0{40}' testDmitry Ivankov, Sep 18, 2011
  4. Jonathan NiederSep 18, 2011
  5. Dmitry IvankovSep 18, 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.