1
0
mirror of https://github.com/git/git.git synced 2024-10-05 08:01:31 +02:00
Git Source Code Mirror. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
Go to file
Pierre Habouzit ffe659f94d parse-options: make some arguments optional, add callbacks.
* add the possibility to use callbacks to parse some options, this can
  help implementing new options kinds with great flexibility. struct option
  gains a callback pointer and a `defval' where callbacks user can put
  either integers or pointers. callbacks also can use the `value' pointer
  for anything, preferably to the pointer to the final storage for the value
  though.

* add a `flag' member to struct option to make explicit that this option may
  have an optional argument. The semantics depends on the option type. For
  INTEGERS, it means that if the switch is not used in its
  --long-form=<value> form, and that there is no token after it or that the
  token does not starts with a digit, then it's assumed that the switch has
  no argument. For STRING or CALLBACK it works the same, except that the
  condition is that the next atom starts with a dash. This is needed to
  implement backward compatible behaviour with existing ways to parse the
  command line. Its use for new options is discouraged.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2007-10-29 21:03:30 -07:00
arm
compat Define compat version of mkdtemp for systems lacking it 2007-10-20 22:52:21 -04:00
contrib git.el: Run git-gc --auto after commits. 2007-10-28 14:08:28 -07:00
Documentation RelNotes-1.5.4: describe recent updates 2007-10-29 13:33:38 -07:00
git-gui Merge branch 'maint' of git://repo.or.cz/git-gui into maint 2007-10-20 23:19:22 -04:00
gitweb gitweb: speed up project listing on large work trees by limiting find depth 2007-10-17 01:23:33 -04:00
mozilla-sha1
perl
ppc
t Add tests for parse-options.c 2007-10-29 21:03:30 -07:00
templates hooks-pre-commit: use \t, rather than a literal TAB in regexp 2007-10-26 23:16:51 -07:00
xdiff
.gitignore Add tests for parse-options.c 2007-10-29 21:03:30 -07:00
.mailmap RelNotes-1.5.4: describe recent updates 2007-10-29 13:33:38 -07:00
alloc.c
archive-tar.c
archive-zip.c
archive.h
attr.c Merge branch 'maint' 2007-10-19 01:18:55 -04:00
attr.h
base85.c
blob.c
blob.h
builtin-add.c Merge branch 'maint' 2007-10-29 12:53:54 -07:00
builtin-annotate.c
builtin-apply.c Correct some sizeof(size_t) != sizeof(unsigned long) typing errors 2007-10-22 00:00:40 -04:00
builtin-archive.c Correct some sizeof(size_t) != sizeof(unsigned long) typing errors 2007-10-22 00:00:40 -04:00
builtin-blame.c Teach core.autocrlf to 'git blame' 2007-10-18 01:41:29 -04:00
builtin-branch.c
builtin-bundle.c
builtin-cat-file.c
builtin-check-attr.c
builtin-check-ref-format.c
builtin-checkout-index.c
builtin-commit-tree.c
builtin-config.c git-config: print error message if the config file cannot be read 2007-10-18 01:35:33 -04:00
builtin-count-objects.c
builtin-describe.c
builtin-diff-files.c
builtin-diff-index.c
builtin-diff-tree.c
builtin-diff.c
builtin-fetch--tool.c Improved const correctness for strings 2007-10-21 01:43:27 -04:00
builtin-fetch-pack.c Correct handling of upload-pack in builtin-fetch-pack 2007-10-29 20:32:22 -07:00
builtin-fetch.c git-fetch: do not fail when remote branch disappears 2007-10-28 14:06:39 -07:00
builtin-fmt-merge-msg.c
builtin-for-each-ref.c Merge branch 'ph/strbuf' 2007-10-03 03:06:02 -07:00
builtin-fsck.c
builtin-gc.c git-gc: improve wording of --auto notification 2007-10-18 22:23:50 -04:00
builtin-grep.c
builtin-http-fetch.c
builtin-init-db.c
builtin-log.c
builtin-ls-files.c Merge branch 'ph/strbuf' 2007-10-03 03:06:02 -07:00
builtin-ls-tree.c
builtin-mailinfo.c Improved const correctness for strings 2007-10-21 01:43:27 -04:00
builtin-mailsplit.c
builtin-merge-base.c
builtin-merge-file.c
builtin-mv.c
builtin-name-rev.c
builtin-pack-objects.c Merge branch 'jc/autogc' 2007-10-03 03:05:32 -07:00
builtin-pack-refs.c
builtin-prune-packed.c
builtin-prune.c
builtin-push.c Fix 'push --all branch...' error handling 2007-10-16 00:25:56 -04:00
builtin-read-tree.c
builtin-reflog.c
builtin-rerere.c
builtin-reset.c Improved const correctness for strings 2007-10-21 01:43:27 -04:00
builtin-rev-list.c Merge branch 'mv/unknown' 2007-10-03 04:28:24 -07:00
builtin-rev-parse.c
builtin-revert.c
builtin-rm.c
builtin-runstatus.c
builtin-shortlog.c
builtin-show-branch.c
builtin-show-ref.c
builtin-stripspace.c
builtin-symbolic-ref.c
builtin-tag.c
builtin-tar-tree.c
builtin-unpack-objects.c
builtin-update-index.c
builtin-update-ref.c
builtin-upload-archive.c
builtin-verify-pack.c
builtin-verify-tag.c
builtin-write-tree.c
builtin.h Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
bundle.c
bundle.h
cache-tree.c
cache-tree.h
cache.h Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
check-builtins.sh
check-racy.c
color.c
color.h
combine-diff.c
commit.c Merge branch 'maint' 2007-10-15 22:31:47 -04:00
commit.h
config.c
config.mak.in
configure.ac
connect.c Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
convert.c Fix in-place editing functions in convert.c 2007-10-15 21:38:09 -04:00
copy.c
COPYING
csum-file.c
csum-file.h
ctype.c
daemon.c Define NI_MAXSERV if not defined by operating system 2007-10-18 21:04:44 -04:00
date.c
decorate.c
decorate.h
delta.h
diff-delta.c
diff-lib.c
diff.c Correct some sizeof(size_t) != sizeof(unsigned long) typing errors 2007-10-22 00:00:40 -04:00
diff.h
diffcore-break.c Fix diffcore-break total breakage 2007-10-21 01:59:42 -04:00
diffcore-delta.c optimize diffcore-delta by sorting hash entries. 2007-10-04 00:05:36 -07:00
diffcore-order.c
diffcore-pickaxe.c
diffcore-rename.c
diffcore.h
dir.c Speedup scanning for excluded files. 2007-10-29 17:03:11 -07:00
dir.h Speedup scanning for excluded files. 2007-10-29 17:03:11 -07:00
dump-cache-tree.c
entry.c Correct some sizeof(size_t) != sizeof(unsigned long) typing errors 2007-10-22 00:00:40 -04:00
environment.c
exec_cmd.c
exec_cmd.h
fast-import.c fast-import.c: fix regression due to strbuf conversion 2007-10-26 15:28:09 -07:00
fetch-pack.h
fixup-builtins
generate-cmdlist.sh
git-add--interactive.perl git add -i: Remove unused variables 2007-10-15 21:00:40 -04:00
git-am.sh Merge branch 'jc/am-quiet' 2007-10-18 03:45:05 -04:00
git-archimport.perl
git-bisect.sh
git-checkout.sh
git-clean.sh
git-clone.sh honor the http.sslVerify option in shell scripts 2007-10-28 14:16:59 -07:00
git-commit.sh Merge branch 'jc/autogc' 2007-10-03 03:05:32 -07:00
git-compat-util.h Define compat version of mkdtemp for systems lacking it 2007-10-20 22:52:21 -04:00
git-cvsexportcommit.perl Merge branch 'maint' 2007-10-19 01:18:55 -04:00
git-cvsimport.perl
git-cvsserver.perl cvsserver: Use exit 1 instead of die when req_Root fails. 2007-10-18 03:02:15 -04:00
git-filter-branch.sh filter-branch: update current branch when rewritten 2007-10-16 22:47:51 -04:00
git-instaweb.sh Merge branch 'maint' 2007-10-16 23:32:03 -04:00
git-lost-found.sh
git-ls-remote.sh honor the http.sslVerify option in shell scripts 2007-10-28 14:16:59 -07:00
git-merge-octopus.sh
git-merge-one-file.sh
git-merge-ours.sh
git-merge-resolve.sh
git-merge-stupid.sh
git-merge.sh Merge branch 'lh/merge' 2007-10-03 03:05:58 -07:00
git-mergetool.sh
git-parse-remote.sh
git-pull.sh Teach git-pull about --[no-]ff, --no-squash and --commit 2007-10-29 13:32:52 -07:00
git-quiltimport.sh
git-rebase--interactive.sh git-rebase--interactive.sh: Quote arguments to test 2007-10-16 00:59:17 -04:00
git-rebase.sh
git-relink.perl
git-remote.perl Merge branch 'maint' 2007-10-26 23:17:23 -07:00
git-repack.sh Merge branch 'jc/autogc' 2007-10-03 03:05:32 -07:00
git-request-pull.sh
git-send-email.perl git-send-email: add a new sendemail.to configuration variable 2007-10-24 20:13:07 -07:00
git-sh-setup.sh
git-stash.sh Paper bag fix diff invocation in 'git stash show' 2007-10-19 02:18:14 -04:00
git-submodule.sh
git-svn.perl git-svn: simplify the handling of fatal errors 2007-10-17 02:47:37 -04:00
git-svnimport.perl
GIT-VERSION-GEN
git.c Merge branch 'db/fetch-pack' 2007-10-24 21:59:50 -07:00
git.spec.in
gitk gitk: Use the UI font for the diff/old version/new version radio buttons 2007-10-27 21:31:07 +10:00
grep.c
grep.h
hash-object.c
help.c help: remove extra blank line after "See 'git --help'" message 2007-10-26 23:26:41 -07:00
http-push.c Support 'push --dry-run' for http transport 2007-10-16 00:36:35 -04:00
http-walker.c
http.c
http.h
ident.c
imap-send.c
index-pack.c
INSTALL
interpolate.c Merge branch 'mv/unknown' 2007-10-03 04:28:24 -07:00
interpolate.h
list-objects.c
list-objects.h
lockfile.c
log-tree.c Merge branch 'maint' 2007-10-15 22:31:47 -04:00
log-tree.h
mailmap.c
mailmap.h
Makefile Add tests for parse-options.c 2007-10-29 21:03:30 -07:00
match-trees.c Improved const correctness for strings 2007-10-21 01:43:27 -04:00
merge-file.c
merge-index.c
merge-recursive.c Merge branch 'maint' 2007-10-29 12:53:54 -07:00
merge-tree.c
mktag.c
mktree.c
object-refs.c
object.c
object.h
pack-check.c
pack-redundant.c
pack-write.c
pack.h
pager.c
parse-options.c parse-options: make some arguments optional, add callbacks. 2007-10-29 21:03:30 -07:00
parse-options.h parse-options: make some arguments optional, add callbacks. 2007-10-29 21:03:30 -07:00
patch-delta.c
patch-id.c
patch-ids.c
patch-ids.h
path-list.c
path-list.h
path.c
peek-remote.c
pkt-line.c
pkt-line.h
progress.c
progress.h
quote.c
quote.h
reachable.c
reachable.h
read-cache.c Merge branch 'maint' 2007-10-18 03:11:17 -04:00
README
receive-pack.c Merge branch 'db/fetch-pack' 2007-10-24 21:59:50 -07:00
reflog-walk.c
reflog-walk.h
refs.c Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
refs.h
RelNotes Whip post 1.5.3.4 maintenance series into shape. 2007-10-15 22:29:50 -04:00
remote.c git-fetch: do not fail when remote branch disappears 2007-10-28 14:06:39 -07:00
remote.h git-fetch: do not fail when remote branch disappears 2007-10-28 14:06:39 -07:00
revision.c Merge branch 'maint' 2007-10-15 22:31:47 -04:00
revision.h
run-command.c
run-command.h
send-pack.c Merge branch 'db/fetch-pack' 2007-10-24 21:59:50 -07:00
server-info.c
setup.c Fix setup_git_directory_gently() with relative GIT_DIR & GIT_WORK_TREE 2007-10-16 20:18:04 -04:00
sha1_file.c Merge branch 'maint' 2007-10-29 12:53:54 -07:00
sha1_name.c
shallow.c
shell.c Support cvs via git-shell 2007-10-15 21:25:42 -04:00
show-index.c Use PRIuMAX instead of 'unsigned long long' in show-index 2007-10-21 02:16:57 -04:00
sideband.c
sideband.h
strbuf.c
strbuf.h
symlinks.c
tag.c
tag.h
tar.h
test-absolute-path.c
test-chmtime.c
test-date.c
test-delta.c
test-genrandom.c
test-match-trees.c
test-parse-options.c Add tests for parse-options.c 2007-10-29 21:03:30 -07:00
test-sha1.c
test-sha1.sh
trace.c
transport.c Support 'push --dry-run' for http transport 2007-10-16 00:36:35 -04:00
transport.h Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
tree-diff.c Fix diffcore-break total breakage 2007-10-21 01:59:42 -04:00
tree-walk.c
tree-walk.h
tree.c
tree.h
unpack-file.c
unpack-trees.c
unpack-trees.h
update-server-info.c
upload-pack.c
usage.c
utf8.c
utf8.h
var.c
walker.c Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
walker.h
write_or_die.c
wt-status.c
wt-status.h
xdiff-interface.c
xdiff-interface.h

////////////////////////////////////////////////////////////////

	GIT - the stupid content tracker

////////////////////////////////////////////////////////////////

"git" can mean anything, depending on your mood.

 - random three-letter combination that is pronounceable, and not
   actually used by any common UNIX command.  The fact that it is a
   mispronunciation of "get" may or may not be relevant.
 - stupid. contemptible and despicable. simple. Take your pick from the
   dictionary of slang.
 - "global information tracker": you're in a good mood, and it actually
   works for you. Angels sing, and a light suddenly fills the room.
 - "goddamn idiotic truckload of sh*t": when it breaks

Git is a fast, scalable, distributed revision control system with an
unusually rich command set that provides both high-level operations
and full access to internals.

Git is an Open Source project covered by the GNU General Public License.
It was originally written by Linus Torvalds with help of a group of
hackers around the net. It is currently maintained by Junio C Hamano.

Please read the file INSTALL for installation instructions.
See Documentation/tutorial.txt to get started, then see
Documentation/everyday.txt for a useful minimum set of commands,
and "man git-commandname" for documentation of each command.
CVS users may also want to read Documentation/cvs-migration.txt.

Many Git online resources are accessible from http://git.or.cz/
including full documentation and Git related tools.

The user discussion and development of Git take place on the Git
mailing list -- everyone is welcome to post bug reports, feature
requests, comments and patches to git@vger.kernel.org. To subscribe
to the list, send an email with just "subscribe git" in the body to
majordomo@vger.kernel.org. The mailing list archives are available at
http://marc.theaimsgroup.com/?l=git and other archival sites.

The messages titled "A note from the maintainer", "What's in
git.git (stable)" and "What's cooking in git.git (topics)" and
the discussion following them on the mailing list give a good
reference for project status, development direction and
remaining tasks.