1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-18 15:04:49 +01:00
Find a file
Christian Couder 451bb210f8 parse-options: add new function "usage_msg_opt"
This function can be used instead of "usage_with_options" when you
want to print an error message before the usage string.

It may be useful because:

if (condition)
	usage_msg_opt("condition is false", usage, opts);

is shorter than:

if (condition) {
	fprintf(stderr, "condition is false\n\n");
	usage_with_options(usage, opts);
}

and may be more consistent.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-05-31 17:03:40 -07:00
arm
compat MinGW: Add a simple getpass() 2009-05-23 01:54:45 -07:00
contrib bash: remove always true if statement from __git_ps1() 2009-05-31 15:39:32 -07:00
Documentation Merge branch 'sb/opt-filename' 2009-05-31 16:57:42 -07:00
git-gui Merge git://repo.or.cz/git-gui 2009-05-01 22:11:57 -07:00
gitk-git Merge git://git.kernel.org/pub/scm/gitk/gitk 2009-04-30 19:56:28 -07:00
gitweb Merge branch 'jn/gitweb-cleanup' 2009-05-23 01:44:06 -07:00
mozilla-sha1
perl Git.pm: Always set Repository to absolute path if autodetecting 2009-05-09 08:25:55 -07:00
ppc
t builtin-replace: teach "git replace" to actually replace 2009-05-31 17:03:00 -07:00
templates Merge branch 'hv/sample-update' 2009-05-23 01:39:15 -07:00
xdiff
.gitattributes
.gitignore
.mailmap
abspath.c
alias.c Merge branch 'jk/maint-1.6.0-trace-argv' into maint 2009-05-25 19:03:20 -07:00
alloc.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
archive-tar.c archive-tar.c: squelch a type mismatch warning 2009-05-08 23:57:29 -07:00
archive-zip.c
archive.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
archive.h
attr.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
attr.h
base85.c
bisect.c bisect: check ancestors without forking a "git rev-list" process 2009-05-17 23:29:17 -07:00
bisect.h bisect: make "git bisect" use new "--next-all" bisect-helper function 2009-05-10 14:30:33 -07:00
blob.c
blob.h
branch.c
branch.h
builtin-add.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-annotate.c
builtin-apply.c Merge branch 'sb/opt-filename' 2009-05-31 16:57:42 -07:00
builtin-archive.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-bisect--helper.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-blame.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-branch.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-bundle.c
builtin-cat-file.c Merge branch 'sb/opt-filename' 2009-05-31 16:57:42 -07:00
builtin-check-attr.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-check-ref-format.c
builtin-checkout-index.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-checkout.c Merge branch 'lt/maint-diff-reduce-lstat' into maint 2009-05-25 19:04:08 -07:00
builtin-clean.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-clone.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-commit-tree.c
builtin-commit.c parse-opts: add OPT_FILENAME and transition builtins 2009-05-25 01:07:33 -07:00
builtin-config.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-count-objects.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-describe.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-diff-files.c
builtin-diff-index.c
builtin-diff-tree.c
builtin-diff.c
builtin-fast-export.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-fetch--tool.c
builtin-fetch-pack.c Merge branch 'ar/unlink-err' into maint 2009-05-25 19:01:50 -07:00
builtin-fetch.c Merge branch 'sb/opt-filename' 2009-05-31 16:57:42 -07:00
builtin-fmt-merge-msg.c Merge branch 'sb/maint-1.6.2-opt-filename-fix' 2009-05-29 15:01:16 -07:00
builtin-for-each-ref.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-fsck.c environment: add global variable to disable replacement 2009-05-31 17:02:59 -07:00
builtin-gc.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-grep.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-help.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-http-fetch.c
builtin-init-db.c
builtin-log.c Merge branch 'sb/opt-filename' 2009-05-31 16:57:42 -07:00
builtin-ls-files.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-ls-remote.c
builtin-ls-tree.c
builtin-mailinfo.c builtin-mailinfo.c: use "ISO8859-1" instead of "latin1" as fallback encoding 2009-05-18 20:53:15 -07:00
builtin-mailsplit.c
builtin-merge-base.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-merge-file.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-merge-ours.c
builtin-merge-recursive.c MinGW: Fix compiler warning in merge-recursive 2009-05-23 01:54:45 -07:00
builtin-merge.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-mktree.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-mv.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-name-rev.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-pack-objects.c environment: add global variable to disable replacement 2009-05-31 17:02:59 -07:00
builtin-pack-refs.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-prune-packed.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-prune.c environment: add global variable to disable replacement 2009-05-31 17:02:59 -07:00
builtin-push.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-read-tree.c
builtin-receive-pack.c Merge branch 'np/push-delta' into maint 2009-05-25 19:02:11 -07:00
builtin-reflog.c
builtin-remote.c Merge branch 'sb/opt-filename' 2009-05-31 16:57:42 -07:00
builtin-replace.c parse-options: add new function "usage_msg_opt" 2009-05-31 17:03:40 -07:00
builtin-rerere.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-reset.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-rev-list.c rev-list: remove stringed output flag from "show_bisect_vars" 2009-05-10 00:30:28 -07:00
builtin-rev-parse.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-revert.c Merge branch 'sb/opt-filename' 2009-05-31 16:57:42 -07:00
builtin-rm.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-send-pack.c Merge branch 'fc/decorate-tag' 2009-05-23 01:43:50 -07:00
builtin-shortlog.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-show-branch.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-show-ref.c
builtin-stripspace.c
builtin-symbolic-ref.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-tag.c parse-opts: add OPT_FILENAME and transition builtins 2009-05-25 01:07:33 -07:00
builtin-tar-tree.c
builtin-unpack-objects.c environment: add global variable to disable replacement 2009-05-31 17:02:59 -07:00
builtin-update-index.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
builtin-update-ref.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
builtin-upload-archive.c
builtin-verify-pack.c
builtin-verify-tag.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
builtin-write-tree.c
builtin.h Add new "git replace" command 2009-05-31 17:02:59 -07:00
bundle.c Terminate argv with NULL before calling setup_revisions() 2009-05-21 08:56:24 -07:00
bundle.h
cache-tree.c
cache-tree.h
cache.h environment: add global variable to disable replacement 2009-05-31 17:02:59 -07:00
check-builtins.sh
check-racy.c
check_bindir
color.c
color.h
combine-diff.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
command-list.txt
commit.c commit: add function to unparse a commit and its parents 2009-05-17 23:19:32 -07:00
commit.h replace_object: add mechanism to replace objects found in "refs/replace/" 2009-05-31 17:02:59 -07:00
config.c improve error message in config.c 2009-05-05 22:49:43 -07:00
config.mak.in
configure.ac
connect.c connect: replace inet_ntop with getnameinfo 2009-04-25 09:29:38 -07:00
convert.c
copy.c
COPYING
csum-file.c
csum-file.h
ctype.c ctype.c: fix typo in comment 2009-05-01 16:07:29 -07:00
daemon.c daemon.c: fix segfault on OS X 2009-04-29 16:50:21 -07:00
date.c Work around BSD whose typeof(tv.tv_sec) != time_t 2009-05-05 22:19:14 -07:00
decorate.c Unify signedness in hashing calls 2009-05-20 00:02:24 -07:00
decorate.h
delta.h
diff-delta.c
diff-lib.c Merge branch 'lt/maint-diff-reduce-lstat' into maint 2009-05-25 19:04:08 -07:00
diff-no-index.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
diff.c Merge branch 'ar/unlink-err' into maint 2009-05-25 19:01:50 -07:00
diff.h
diffcore-break.c
diffcore-delta.c
diffcore-order.c
diffcore-pickaxe.c
diffcore-rename.c
diffcore.h
dir.c git-add: no need for -f when resolving a conflict in already tracked path 2009-05-31 15:59:16 -07:00
dir.h
editor.c
entry.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
environment.c environment: add global variable to disable replacement 2009-05-31 17:02:59 -07:00
exec_cmd.c
exec_cmd.h
fast-import.c Merge branch 'ar/unlink-err' into maint 2009-05-25 19:01:50 -07:00
fetch-pack.h
fixup-builtins
fsck.c
fsck.h
generate-cmdlist.sh
git-add--interactive.perl Revert "git-add--interactive: remove hunk coalescing" 2009-05-16 18:52:12 -07:00
git-am.sh am: simplify "sq" function by using "git rev-parse --sq-quote" 2009-05-10 00:30:29 -07:00
git-archimport.perl
git-bisect.sh bisect: make "git bisect" use new "--next-all" bisect-helper function 2009-05-10 14:30:33 -07:00
git-compat-util.h Teach Solaris that _XOPEN_SOURCE=600 really menas XPG6 2009-05-22 22:52:00 -07:00
git-cvsexportcommit.perl
git-cvsimport.perl
git-cvsserver.perl
git-difftool--helper.sh
git-difftool.perl Explain seemingly pointless use of system in difftool 2009-04-24 01:20:35 -07:00
git-filter-branch.sh
git-instaweb.sh
git-lost-found.sh
git-merge-octopus.sh
git-merge-one-file.sh Clarify kind of conflict in merge-one-file helper 2009-05-09 00:27:39 -07:00
git-merge-resolve.sh
git-mergetool--lib.sh mergetool--lib: specialize diff options for emerge and ecmerge 2009-05-09 08:25:22 -07:00
git-mergetool.sh
git-parse-remote.sh
git-pull.sh
git-quiltimport.sh
git-rebase--interactive.sh
git-rebase.sh
git-relink.perl
git-repack.sh Merge branch 'jc/maint-1.6.0-keep-pack' into maint-1.6.1 2009-05-03 15:01:31 -07:00
git-request-pull.sh
git-send-email.perl Merge branch 'mw/send-email' 2009-05-31 16:16:52 -07:00
git-sh-setup.sh
git-stash.sh
git-submodule.sh Add --reference option to git submodule. 2009-05-09 08:27:52 -07:00
git-svn.perl git-svn: refuse to dcommit non-UTF-8 messages 2009-05-28 00:57:07 -07:00
GIT-VERSION-GEN GIT 1.6.3.1 2009-05-12 22:30:29 -07:00
git-web--browse.sh
git.c Add new "git replace" command 2009-05-31 17:02:59 -07:00
git.spec.in
graph.c Merge branch 'ac/graph-horizontal-line' 2009-05-18 08:59:30 -07:00
graph.h
grep.c grep: fix word-regexp at the beginning of lines 2009-05-23 16:29:05 -07:00
grep.h grep: use parseopt 2009-05-09 00:29:56 -07:00
hash-object.c parse-opts: prepare for OPT_FILENAME 2009-05-25 01:07:25 -07:00
hash.c
hash.h
help.c
help.h
http-push.c http-push: reuse existing is_null_ref 2009-05-31 15:38:32 -07:00
http-walker.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
http.c
http.h
ident.c
imap-send.c imap-send: add support for IPv6 2009-05-26 22:22:47 -07:00
index-pack.c
INSTALL
levenshtein.c
levenshtein.h
list-objects.c
list-objects.h
ll-merge.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
ll-merge.h
lockfile.c Merge branch 'ar/unlink-err' into maint 2009-05-25 19:01:50 -07:00
log-tree.c Prettify log decorations even more 2009-05-13 20:55:49 -07:00
log-tree.h
mailmap.c
mailmap.h
Makefile Add new "git replace" command 2009-05-31 17:02:59 -07:00
match-trees.c
merge-file.c
merge-index.c
merge-recursive.c Merge branch 'do/maint-merge-recursive-fix' into maint 2009-05-25 19:03:43 -07:00
merge-recursive.h
merge-tree.c
mktag.c mktag: call "check_sha1_signature" with the replacement sha1 2009-05-31 17:02:59 -07:00
name-hash.c
object.c object: call "check_sha1_signature" with the replacement sha1 2009-05-31 17:02:59 -07:00
object.h
pack-check.c
pack-redundant.c
pack-refs.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
pack-refs.h
pack-revindex.c
pack-revindex.h
pack-write.c
pack.h
pager.c
parse-options.c parse-options: add new function "usage_msg_opt" 2009-05-31 17:03:40 -07:00
parse-options.h parse-options: add new function "usage_msg_opt" 2009-05-31 17:03:40 -07:00
patch-delta.c
patch-id.c
patch-ids.c
patch-ids.h
path.c
pkt-line.c
pkt-line.h
preload-index.c
pretty.c Use 'UTF-8' rather than 'utf-8' everywhere for backward compatibility 2009-05-18 20:53:12 -07:00
progress.c progress bar: round to the nearest instead of truncating down 2009-04-25 08:54:18 -07:00
progress.h
quote.c
quote.h
reachable.c
reachable.h
read-cache.c
README
reflog-walk.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
reflog-walk.h
refs.c refs: add a "for_each_replace_ref" function 2009-05-31 17:02:59 -07:00
refs.h refs: add a "for_each_replace_ref" function 2009-05-31 17:02:59 -07:00
RelNotes Prepare for 1.6.3.2 2009-05-25 19:20:39 -07:00
remote.c Merge branch 'mg/track' 2009-05-23 01:44:00 -07:00
remote.h
replace_object.c environment: add global variable to disable replacement 2009-05-31 17:02:59 -07:00
rerere.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
rerere.h
revision.c Merge branch 'lt/pack-object-memuse' into maint 2009-05-03 15:02:40 -07:00
revision.h Merge branch 'lt/pack-object-memuse' into maint 2009-05-03 15:02:40 -07:00
run-command.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
run-command.h
send-pack.h allow OFS_DELTA objects during a push 2009-05-01 22:06:41 -07:00
server-info.c Merge branch 'ar/unlink-err' into maint 2009-05-25 19:01:50 -07:00
setup.c
sha1-lookup.c
sha1-lookup.h
sha1_file.c sha1_file: add a "read_sha1_file_repl" function 2009-05-31 17:02:59 -07:00
sha1_name.c
shallow.c
shell.c
shortlog.h
show-index.c
sideband.c
sideband.h
sigchain.c
sigchain.h
strbuf.c
strbuf.h
string-list.c
string-list.h
symlinks.c
tag.c
tag.h
tar.h
test-chmtime.c
test-ctype.c
test-date.c
test-delta.c
test-dump-cache-tree.c
test-genrandom.c
test-match-trees.c
test-parse-options.c parse-opts: add OPT_FILENAME and transition builtins 2009-05-25 01:07:33 -07:00
test-path-utils.c
test-sha1.c
test-sha1.sh
test-sigchain.c
thread-utils.c
thread-utils.h
trace.c
transport.c Merge branch 'fc/decorate-tag' 2009-05-23 01:43:50 -07:00
transport.h
tree-diff.c
tree-walk.c
tree-walk.h
tree.c
tree.h
unimplemented.sh
unpack-file.c
unpack-trees.c replace direct calls to unlink(2) with unlink_or_warn 2009-04-29 18:37:41 -07:00
unpack-trees.h
update-server-info.c
upload-pack.c environment: add global variable to disable replacement 2009-05-31 17:02:59 -07:00
usage.c
userdiff.c
userdiff.h
utf8.c
utf8.h
var.c
walker.c
walker.h
wrapper.c Introduce an unlink(2) wrapper which gives warning if unlink failed 2009-04-29 18:37:41 -07:00
write_or_die.c
ws.c
wt-status.c Fix a bunch of pointer declarations (codestyle) 2009-05-01 15:17:31 -07:00
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/gittutorial.txt to get started, then see
Documentation/everyday.txt for a useful minimum set of commands, and
Documentation/git-commandname.txt for documentation of each command.
If git has been correctly installed, then the tutorial can also be
read with "man gittutorial" or "git help tutorial", and the
documentation of each command with "man git-commandname" or "git help
commandname".

CVS users may also want to read Documentation/gitcvs-migration.txt
("man gitcvs-migration" or "git help cvs-migration" if git is
installed).

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.