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

Re: git fast-import --export-marks flag

From
Shawn Pearce <spearce@spearce.org>
Date
Mar 28, 2011, 16:25 UTC
Message-ID
<AANLkTinpZ=PjGpFozCAWscfms6uWBSO2y+XqCGGqB2KP@mail.gmail.com>
In-Reply-To
<4D90B457.9040607@codicesoftware.com>

On Mon, Mar 28, 2011 at 09:16, psantosl@codicesoftware.com <psantosl@codicesoftware.com> wrote:

Show 11 quoted lines
> git fast-import --export-marks is able to export to a file the marks and
> its associated commit hashes created during import.
>
> So far I've seen the marks are not the ones provided in the input but
> some "internal ones" not related with the input.
>
> Wouldn't it be much better, for import/export interop, if it kept the
> original marks?
>
> It would be certainly easier to do incremental import/export with
> external systems not dealing with SHAs...

I don't know what you are looking at, but fast-import uses the same mark numbers that were supplied in the input stream inside of the exported marks file. Otherwise as you pointed out, the marks are useless.

-- 
Shawn.
Previous: psantosl@codicesoftware.comNext: psantosl@codicesoftware.com
Message 2 of 4 in “git fast-import --export-marks flag”
  1. psantosl@codicesoftware.comMar 28, 2011
  2. Shawn PearceMar 28, 2011
  3. psantosl@codicesoftware.comMar 28, 2011
  4. psantosl@codicesoftware.comMar 28, 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.