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

Re: [PATCH v3] builtin-fast-export: Add importing and exporting of revision marks

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 11, 2008, 21:43 UTC
Message-ID
<7vr6b3bqc5.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1213183024-60013-1-git-send-email-pdebie@ai.rug.nl>
Pieter de Bie <pdebie@ai.rug.nl> writes:
Show 5 quoted lines
> This adds the --import-marks and --export-marks to fast-export. These import
> and export the marks used to for all revisions exported in a similar fashion
> to what fast-import does. The format is the same as fast-import, so you can
> create a bidirectional importer / exporter by using the same marks file on
> both sides.

Heh, I've long queued a fixed-up version in 'pu' as 4ba0575 (builtin-fast-export: Add importing and exporting of revision marks, 2008-06-05).

I think renaming the "mark_object" to "mark_next_object" makes quite a lot of sense, and I do not have any preference between mark2deco vs mark_to_ptr nor between a macro vs a static inline function for something small like these.

You still use export_filename and import_filename uninitialized in cmd_fast_export() and breaks everybody who does not use export-marks option. Has this patch (and the previous one I fixed up before queuing it in 'pu') ever been tested?

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 17 of 18 in “builtin-fast-export: Add importing and exporting of revision marks”
  1. builtin-fast-export: Add importing and exporting of revision marksPieter de Bie, Jun 4, 2008
  2. Johannes SchindelinJun 5, 2008
  3. Pieter de BieJun 5, 2008
  4. builtin-fast-export: Add importing and exporting of revision marksPieter de Bie, Jun 5, 2008
  5. Johannes SchindelinJun 5, 2008
  6. Junio C HamanoJun 6, 2008
  7. Pieter de BieJun 7, 2008
  8. Johannes SchindelinJun 7, 2008
  9. Junio C HamanoJun 7, 2008
  10. Johannes SchindelinJun 11, 2008
  11. Documentation/fast-export: Document --import-marks and --export-marks optionsPieter de Bie, Jun 7, 2008
  12. Johannes SchindelinJun 7, 2008
  13. Junio C HamanoJun 10, 2008
  14. builtin-fast-export: Add importing and exporting of revision marksPieter de Bie, Jun 11, 2008
  15. Pieter de BieJun 11, 2008
  16. Johannes SchindelinJun 11, 2008
  17. Junio C HamanoJun 11, 2008
  18. Johannes SchindelinJun 5, 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.