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

Re: [RFC PATCH] Support gitlinks in fast-import/export.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jul 18, 2008, 20:43 UTC
Message-ID
<20080718204338.GB27528@spearce.org>
In-Reply-To
<200807182103.37272.angavrilov@gmail.com>
Alexander Gavrilov <angavrilov@gmail.com> wrote:
Show 6 quoted lines
> Currently fast-import/export cannot be used for
> repositories with submodules. This patch extends
> the relevant programs to make them correctly
> process gitlinks.
> 
> Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Show 11 quoted lines
> 	I noticed that fast-export & fast-import cannot work with
> 	repositories using submodules: import complains about
> 	an invalid mode, and export fails while trying to open the SHA
> 	as a blob.
> 
> 	As I didn't see any particular reason for it to be so, I tried to
> 	implement support for gitlinks.
> 
> 	What I'm unsure of is, should fast-export try to reuse commit
> 	marks for gitlinks where it happened to recognize the object,
> 	or always output the SHA as it is stored in the tree?

Its unlikely that the commit objects are in the repository the export is running in, so its unlikely you can use a mark. Its fine to just always output the SHA-1 I think.

-- 
Shawn.
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 5 of 6 in “Support gitlinks in fast-import/export.”
  1. Support gitlinks in fast-import/export.Alexander Gavrilov, Jul 18, 2008
  2. Johannes SchindelinJul 18, 2008
  3. Alexander GavrilovJul 18, 2008
  4. Johannes SchindelinJul 18, 2008
  5. Shawn O. PearceJul 18, 2008
  6. Johannes SchindelinJul 19, 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.