1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-18 15:04:49 +01:00
git/Documentation/technical
Stephen Boyd df217ed643 parse-opts: add OPT_FILENAME and transition builtins
Commit dbd0f5c (Files given on the command line are relative to $cwd,
2008-08-06) introduced parse_options_fix_filename() as a minimal fix.
OPT_FILENAME is intended to be a more robust fix for the same issue.
OPT_FILENAME and its associated enum OPTION_FILENAME are used to
represent filename options within the parse options API.

This option is similar to OPTION_STRING. If --no is prefixed to the
option the filename is unset. If no argument is given and the default
value is set, the filename is set to the default value. The difference
is that the filename is prefixed with the prefix passed to
parse_options() (or parse_options_start()).

Update git-apply, git-commit, git-fmt-merge-msg, and git-tag to use
OPT_FILENAME with their filename options. Also, rename
parse_options_fix_filename() to fix_filename() as it is no longer
extern.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-05-25 01:07:33 -07:00
..
.gitignore
api-allocation-growing.txt
api-builtin.txt Documentation: fix a grammatical error in api-builtin.txt 2009-04-27 09:36:40 -07:00
api-decorate.txt
api-diff.txt
api-directory-listing.txt
api-gitattributes.txt
api-grep.txt
api-hash.txt
api-history-graph.txt Documentation: update graph api example. 2009-03-30 08:59:45 -07:00
api-in-core-index.txt
api-index-skel.txt
api-index.sh
api-lockfile.txt
api-object-access.txt
api-parse-options.txt parse-opts: add OPT_FILENAME and transition builtins 2009-05-25 01:07:33 -07:00
api-quote.txt
api-remote.txt
api-revision-walking.txt Revision walking documentation: document most important functions 2008-05-31 14:32:56 -07:00
api-run-command.txt run_hook(): allow more than 9 hook arguments 2009-01-17 17:57:15 -08:00
api-setup.txt
api-strbuf.txt Documentation: Typo / spelling / formatting fixes 2009-03-03 21:43:19 -08:00
api-string-list.txt Fix two leftovers from path_list->string_list 2008-07-22 15:28:22 -07:00
api-tree-walking.txt
api-xdiff-interface.txt
pack-format.txt Add description of OFS_DELTA to the pack format description 2008-04-06 17:22:46 -07:00
pack-heuristics.txt
pack-protocol.txt
racy-git.txt Fix typos in documentation 2008-12-09 21:39:23 -08:00
send-pack-pipeline.txt
shallow.txt
trivial-merge.txt