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

option directive to fast-import

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Aug 2, 2009, 01:29 UTC
Message-ID
<fabb9a1e0908011829j3843c132ka5081d994aad973f@mail.gmail.com>
Heya,
What would you think of a 'option' directive to fast-import?
'option' SP <option> SP <value> LF
Where <option> is:

import-marks export-marks force_update quiet stats date-format depth active-branches export-pack-edges

I just checked them all, and as far as I can see, as long as the option directives come before any data, there should be no negative side-effects to setting these values 'late'. The upside would be that the frontend can tell git fast-import it's preferences, so that the user does not have to type a humongous commandline, but instead can suffice to just go with 'foo fast-export | git fast-import'. Of course, the user might want to override these options manually, so the option directives should only be honored if no commandline flag is given.

Would you accept such a patch? If yes, I'll whip something up :).
-- 
Cheers,

Sverre Rabbelier
Next: Sverre Rabbelier
Message 1 of 8 in “option directive to fast-import”
  1. Sverre RabbelierAug 2, 2009
  2. 0/3 fast-import: add option commandSverre Rabbelier, Aug 2, 2009
  3. 1/2 fast-import: put option parsing code in seperate functionsSverre Rabbelier, Aug 2, 2009
  4. 2/2 fast-import: add option commandSverre Rabbelier, Aug 2, 2009
  5. 3/3 fast-import: test the new option commandSverre Rabbelier, Aug 2, 2009
  6. 1/3 fast-import: put option parsing code in seperate functionsSverre Rabbelier, Aug 2, 2009
  7. Shawn O. PearceAug 3, 2009
  8. Sverre RabbelierAug 3, 2009

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.