1
0
mirror of https://github.com/git/git.git synced 2024-10-04 07:32:33 +02:00
Git Source Code Mirror. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
Go to file
Shawn O. Pearce 2c33f75754 Teach git-describe --exact-match to avoid expensive tag searches
Sometimes scripts want (or need) the annotated tag name that exactly
matches a specific commit, or no tag at all.  In such cases it can be
difficult to determine if the output of `git describe $commit` is a
real tag name or a tag+abbreviated commit.  A common idiom is to run
git-describe twice:

  if test $(git describe $commit) = $(git describe --abbrev=0 $commit)
  ...

but this is a huge waste of time if the caller is just going to pick a
different method to describe $commit or abort because it is not exactly
an annotated tag.

Setting the maximum number of candidates to 0 allows the caller to ask
for only a tag that directly points at the supplied commit, or to have
git-describe abort if no such item exists.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-02-24 10:01:24 -08:00
arm
compat Merge branch 'bc/fopen' 2008-02-20 16:13:19 -08:00
contrib git.el: Set process-environment instead of invoking env 2008-02-20 11:25:14 -08:00
Documentation Teach git-describe --exact-match to avoid expensive tag searches 2008-02-24 10:01:24 -08:00
git-gui Sync with 1.5.4.3 2008-02-23 11:49:34 -08:00
gitk-git Merge git://git.kernel.org/pub/scm/gitk/gitk 2008-02-16 17:41:38 -08:00
gitweb gitweb: Fix bugs in git_search_grep_body: it's length(), not len() 2008-02-23 14:22:01 -08:00
mozilla-sha1
perl
ppc
t send-email: fix In-Reply-To regression 2008-02-21 21:25:49 -08:00
templates git-commit: add a prepare-commit-msg hook 2008-02-06 02:26:55 -08:00
xdiff
.gitattributes Define the project whitespace policy 2008-02-11 13:23:15 -08:00
.gitignore Adjust .gitignore for 5884f1(Rename 'git-help--browse.sh'...) 2008-02-09 23:27:09 -08:00
.mailmap Sync with 1.5.4.2 and start 1.5.5 Release Notes 2008-02-17 01:51:46 -08:00
alloc.c
archive-tar.c archive-tar.c: guard config parser from value=NULL 2008-02-11 13:11:36 -08:00
archive-zip.c
archive.c
archive.h
attr.c gitattributes: fix relative path matching 2008-02-07 00:04:50 -08:00
attr.h
base85.c
blob.c
blob.h
builtin-add.c git-add: adjust to the get_pathspec() changes. 2008-02-05 00:44:10 -08:00
builtin-annotate.c
builtin-apply.c Merge branch 'sp/safecrlf' 2008-02-16 17:59:20 -08:00
builtin-archive.c
builtin-blame.c Merge branch 'jc/setup' 2008-02-20 16:13:16 -08:00
builtin-branch.c Add color.ui variable which globally enables colorization if set 2008-02-18 00:00:38 -08:00
builtin-bundle.c
builtin-cat-file.c
builtin-check-attr.c
builtin-check-ref-format.c
builtin-checkout-index.c
builtin-clean.c git-clean: handle errors if removing files fails 2008-02-20 20:21:39 -08:00
builtin-commit-tree.c
builtin-commit.c Add color.ui variable which globally enables colorization if set 2008-02-18 00:00:38 -08:00
builtin-config.c Merge branch 'jk/noetcconfig' 2008-02-16 17:56:51 -08:00
builtin-count-objects.c
builtin-describe.c Teach git-describe --exact-match to avoid expensive tag searches 2008-02-24 10:01:24 -08:00
builtin-diff-files.c
builtin-diff-index.c
builtin-diff-tree.c
builtin-diff.c Add color.ui variable which globally enables colorization if set 2008-02-18 00:00:38 -08:00
builtin-fast-export.c check return code of prepare_revision_walk 2008-02-17 23:51:12 -08:00
builtin-fetch--tool.c
builtin-fetch-pack.c Reduce the number of connects when fetching 2008-02-05 00:40:18 -08:00
builtin-fetch.c Reduce the number of connects when fetching 2008-02-05 00:40:18 -08:00
builtin-fmt-merge-msg.c check return code of prepare_revision_walk 2008-02-17 23:51:12 -08:00
builtin-for-each-ref.c
builtin-fsck.c Merge branch 'lt/in-core-index' 2008-02-11 16:46:20 -08:00
builtin-gc.c builtin-gc.c: guard config parser from value=NULL 2008-02-11 13:11:36 -08:00
builtin-grep.c Teach git-grep --name-only as synonym for -l 2008-02-20 20:36:20 -08:00
builtin-http-fetch.c
builtin-init-db.c Fix misuse of prefix_path() 2008-02-05 01:44:10 -08:00
builtin-log.c Merge branch 'mk/color' 2008-02-20 16:13:56 -08:00
builtin-ls-files.c Merge branch 'jc/setup' 2008-02-20 16:13:16 -08:00
builtin-ls-remote.c Reduce the number of connects when fetching 2008-02-05 00:40:18 -08:00
builtin-ls-tree.c
builtin-mailinfo.c mailinfo: feed only one line to handle_filter() for QP input 2008-02-15 22:16:34 -08:00
builtin-mailsplit.c
builtin-merge-base.c
builtin-merge-file.c
builtin-merge-ours.c
builtin-mv.c builtin-mv: minimum fix to avoid losing files 2008-02-05 00:44:10 -08:00
builtin-name-rev.c
builtin-pack-objects.c check return code of prepare_revision_walk 2008-02-17 23:51:12 -08:00
builtin-pack-refs.c
builtin-prune-packed.c
builtin-prune.c Make git prune remove temporary packs that look like write failures 2008-02-11 12:22:58 -08:00
builtin-push.c push: indicate partialness of error message 2008-02-19 20:44:47 -08:00
builtin-read-tree.c Name hash fixups: export (and rename) remove_hash_entry 2008-02-22 21:24:47 -08:00
builtin-reflog.c builtin-reflog.c: guard config parser from value=NULL 2008-02-11 13:11:36 -08:00
builtin-rerere.c
builtin-reset.c
builtin-rev-list.c Merge branch 'lt/revision-walker' 2008-02-20 16:13:24 -08:00
builtin-rev-parse.c
builtin-revert.c
builtin-rm.c
builtin-send-pack.c
builtin-shortlog.c check return code of prepare_revision_walk 2008-02-17 23:51:12 -08:00
builtin-show-branch.c builtin-show-branch.c: guard config parser from value=NULL 2008-02-11 13:11:36 -08:00
builtin-show-ref.c deref_tag: handle return value NULL 2008-02-17 23:46:55 -08:00
builtin-stripspace.c
builtin-symbolic-ref.c
builtin-tag.c builtin-tag.c: remove cruft 2008-02-22 07:02:40 -08:00
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
bundle.c check return code of prepare_revision_walk 2008-02-17 23:51:12 -08:00
bundle.h
cache-tree.c Merge branch 'jc/error-message-in-cherry-pick' 2008-02-11 16:46:27 -08:00
cache-tree.h
cache.h Use helper function for copying index entry information 2008-02-22 21:24:47 -08:00
check-builtins.sh
check-racy.c
color.c Add color.ui variable which globally enables colorization if set 2008-02-18 00:00:38 -08:00
color.h Add color.ui variable which globally enables colorization if set 2008-02-18 00:00:38 -08:00
combine-diff.c
command-list.txt
commit.c check return value from parse_commit() in various functions 2008-02-18 20:49:13 -08:00
commit.h
config.c git_config_*: don't assume we are parsing a config file 2008-02-20 20:21:43 -08:00
config.mak.in
configure.ac
connect.c Merge branch 'db/no-separate-ls-remote-connection' (early part) 2008-02-11 16:47:07 -08:00
convert.c Merge branch 'sp/safecrlf' 2008-02-16 17:59:20 -08:00
copy.c
COPYING
csum-file.c
csum-file.h
ctype.c
daemon.c
date.c
decorate.c
decorate.h
delta.h
diff-delta.c
diff-lib.c
diff.c diff: fix java funcname pattern for solaris 2008-02-20 20:21:43 -08:00
diff.h Add color.ui variable which globally enables colorization if set 2008-02-18 00:00:38 -08:00
diffcore-break.c
diffcore-delta.c
diffcore-order.c
diffcore-pickaxe.c
diffcore-rename.c
diffcore.h
dir.c Merge branch 'jc/gitignore-ends-with-slash' 2008-02-16 17:57:06 -08:00
dir.h gitignore: lazily find dtype 2008-02-05 00:46:49 -08:00
dump-cache-tree.c
entry.c
environment.c Merge branch 'sp/safecrlf' 2008-02-16 17:59:20 -08:00
exec_cmd.c
exec_cmd.h
fast-import.c Finish current packfile during fast-import crash handler 2008-02-16 00:47:07 -08:00
fetch-pack.h Reduce the number of connects when fetching 2008-02-05 00:40:18 -08:00
fixup-builtins
generate-cmdlist.sh
git-add--interactive.perl add--interactive: handle initial commit better 2008-02-16 01:02:44 -08:00
git-am.sh
git-archimport.perl
git-bisect.sh bisect view: check for MinGW32 and MacOSX in addition to X11 2008-02-17 19:27:40 -08:00
git-checkout.sh Be more verbose when checkout takes a long time 2008-02-24 10:01:13 -08:00
git-clone.sh git-clone.sh: properly configure remote even if remote's head is dangling 2008-02-20 11:31:17 -08:00
git-compat-util.h Merge branch 'bc/fopen' 2008-02-20 16:13:19 -08:00
git-cvsexportcommit.perl Merge branch 'js/maint-cvsexport' 2008-02-20 16:13:52 -08:00
git-cvsimport.perl cvsimport: have default merge regex also match beginning of commit message 2008-02-13 14:22:54 -08:00
git-cvsserver.perl
git-filter-branch.sh filter-branch: handle filenames that need quoting 2008-02-15 23:57:26 -08:00
git-instaweb.sh instaweb: use 'git-web--browse' to launch browser. 2008-02-05 01:01:49 -08:00
git-lost-found.sh
git-merge-octopus.sh
git-merge-one-file.sh
git-merge-resolve.sh
git-merge-stupid.sh
git-merge.sh
git-mergetool.sh
git-parse-remote.sh
git-pull.sh pull: pass --strategy along to to rebase 2008-02-22 21:44:46 -08:00
git-quiltimport.sh
git-rebase--interactive.sh rebase -i: accept -m as advertised in the man page 2008-02-11 12:18:53 -08:00
git-rebase.sh
git-relink.perl
git-remote.perl Make git-remote.perl "use strict" compliant 2008-02-06 13:50:21 -08:00
git-repack.sh
git-request-pull.sh
git-send-email.perl send-email: fix In-Reply-To regression 2008-02-21 21:25:49 -08:00
git-sh-setup.sh Simplify setup of $GIT_DIR in git-sh-setup.sh 2008-02-18 21:53:44 -08:00
git-stash.sh
git-submodule.sh
git-svn.perl Add `git svn blame' command 2008-02-11 13:23:14 -08:00
GIT-VERSION-GEN Sync with 1.5.4.3 2008-02-23 11:49:34 -08:00
git-web--browse.sh Merge branch 'cc/browser' 2008-02-16 17:57:47 -08:00
git.c git.c: guard config parser from value=NULL 2008-02-11 13:11:37 -08:00
git.spec.in Rename git-core rpm to just git and rename the meta-pacakge to git-all. 2008-02-19 22:17:22 -08:00
grep.c
grep.h
hash-object.c
hash.c hash: fix lookup_hash semantics 2008-02-22 13:39:20 -08:00
hash.h
help.c help.c: use 'git_config_string' to get 'help_default_format'. 2008-02-17 20:54:01 -08:00
http-push.c Merge branch 'js/maint-http-push' 2008-02-20 16:13:32 -08:00
http-walker.c
http.c http.c: guard config parser from value=NULL 2008-02-11 13:11:37 -08:00
http.h
ident.c
imap-send.c imap-send.c: guard config parser from value=NULL 2008-02-11 13:14:25 -08:00
index-pack.c
INSTALL INSTALL: git-merge no longer uses cpio 2008-02-05 23:31:17 -08:00
interpolate.c
interpolate.h
list-objects.c list-objects.c::process_tree/blob: check for NULL 2008-02-18 19:25:26 -08:00
list-objects.h
lockfile.c
log-tree.c Add "--show-all" revision walker flag for debugging 2008-02-13 15:59:26 -08:00
log-tree.h
mailmap.c
mailmap.h
Makefile Merge branch 'maint' 2008-02-24 10:01:19 -08:00
match-trees.c
merge-file.c
merge-index.c git-merge-index documentation: clarify synopsis 2008-02-22 07:02:40 -08:00
merge-recursive.c deref_tag: handle return value NULL 2008-02-17 23:46:55 -08: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 sending errors to stdout under $PAGER 2008-02-17 12:47:01 -08:00
parse-options.c
parse-options.h
patch-delta.c
patch-id.c
patch-ids.c
patch-ids.h
path-list.c
path-list.h
path.c
pkt-line.c
pkt-line.h
pretty.c Avoid a useless prefix lookup in strbuf_expand() 2008-02-09 23:57:08 -08:00
progress.c
progress.h
quote.c
quote.h
reachable.c Merge branch 'mk/maint-parse-careful' 2008-02-18 20:56:01 -08:00
reachable.h
read-cache.c Name hash fixups: export (and rename) remove_hash_entry 2008-02-22 21:24:47 -08:00
README
receive-pack.c
reflog-walk.c
reflog-walk.h
refs.c Optimize peel_ref for the current ref of a for_each_ref callback 2008-02-24 10:01:24 -08:00
refs.h
RelNotes GIT 1.5.4.3 2008-02-23 11:31:04 -08:00
remote.c Validate nicknames of remote branches to prohibit confusing ones 2008-02-15 14:23:22 -08:00
remote.h
revision.c Merge branch 'lt/revision-walker' 2008-02-20 16:13:24 -08:00
revision.h Add "--show-all" revision walker flag for debugging 2008-02-13 15:59:26 -08:00
run-command.c
run-command.h
send-pack.h
server-info.c
setup.c prefix_path: use is_absolute_path() instead of *orig == '/' 2008-02-20 20:21:43 -08:00
sha1_file.c Merge branch 'jk/empty-tree' 2008-02-20 16:13:28 -08:00
sha1_name.c Merge branch 'mk/maint-parse-careful' 2008-02-18 20:56:01 -08:00
shallow.c Merge branch 'mk/maint-parse-careful' 2008-02-18 20:56:01 -08:00
shell.c
show-index.c
sideband.c
sideband.h
strbuf.c Avoid a useless prefix lookup in strbuf_expand() 2008-02-09 23:57:08 -08:00
strbuf.h Avoid a useless prefix lookup in strbuf_expand() 2008-02-09 23:57:08 -08:00
symlinks.c
tag.c deref_tag: handle tag->tagged = NULL 2008-02-17 23:49:33 -08:00
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
test-sha1.c
test-sha1.sh
trace.c
transport.c Merge branch 'db/no-separate-ls-remote-connection' (early part) 2008-02-11 16:47:07 -08:00
transport.h
tree-diff.c
tree-walk.c
tree-walk.h
tree.c
tree.h
unpack-file.c
unpack-trees.c Be more verbose when checkout takes a long time 2008-02-24 10:01:13 -08:00
unpack-trees.h
update-server-info.c
upload-pack.c Merge branch 'mk/maint-parse-careful' 2008-02-18 20:56:01 -08:00
usage.c
utf8.c
utf8.h
var.c
walker.c
walker.h
write_or_die.c
ws.c
wt-status.c Add color.ui variable which globally enables colorization if set 2008-02-18 00:00:38 -08: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/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.