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

fast-import bug?

From
Dave Abrahams <dave@boostpro.com>
Date
Jun 21, 2013, 09:21 UTC
Message-ID
<m2zjuj2504.fsf@cube.gateway.2wire.net>

The docs for fast-import seem to imply that I can use "ls" to get the SHA1 of a commit for which I have a mark:

       Reading from a named tree
           The <dataref> can be a mark reference (:<idnum>) or the full 40-byte
           SHA-1 of a Git tag, commit, or tree object, preexisting or waiting to
           be written. The path is relative to the top level of the tree named by
           <dataref>.
                       'ls' SP <dataref> SP <path> LF
       See filemodify above for a detailed description of <path>.
       Output uses the same format as git ls-tree <tree> -- <path>:
           <mode> SP ('blob' | 'tree' | 'commit') SP <dataref> HT <path> LF
       The <dataref> represents the blob, tree, or commit object at <path> and
                                                   ^^^^^^
       can be used in later cat-blob, filemodify, or ls commands.

but I can't get it to work. It's not entirely clear it's supposed to work. What path would I pass? Passing an empty path simply causes git to report "missing ".

TIA, Dave

-- 
Dave Abrahams
Next: John Keeping
Message 1 of 6 in “fast-import bug?”
  1. Dave AbrahamsJun 21, 2013
  2. John KeepingJun 22, 2013
  3. Dave AbrahamsJun 23, 2013
  4. John KeepingJun 23, 2013
  5. Dave AbrahamsJun 23, 2013
  6. John KeepingJun 23, 2013

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.