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