Go to file
Johannes Sixt 6ac6f87818 Windows: Work around intermittent failures in mingw_rename
We have replaced rename() with a version that can rename a file to a
destination that already exists. Nevertheless, many users, the author
included, observe failures in the code that are not reproducible.

The theory is that the failures are due to some other process that happens
to have opened the destination file briefly at the wrong moment. (And there
is no way on Windows to delete or replace a file that is currently open.)
The most likely candidate for such a process is a virus scanner. The
failure is more often observed while there is heavy git activity (for
example while the test suite is running or during a rebase operation).

We work around the failure by retrying the rename operation if it failed
due to ERROR_ACCESS_DENIED. The retries are delayed a bit: The first only
by giving up the time slice, the next after the minimal scheduling
granularity, and if more retries are needed, then we wait some non-trivial
amount of time with exponential back-off.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-04-20 03:42:53 -07:00
Documentation Sync with 1.6.2.4 2009-04-19 17:38:40 -07:00
arm
…
compat Windows: Work around intermittent failures in mingw_rename 2009-04-20 03:42:53 -07:00
contrib Merge branch 'da/difftool' 2009-04-17 21:42:12 -07:00
git-gui
…
gitk-git
…
gitweb gitweb: Fix snapshots requested via PATH_INFO 2009-04-20 03:42:23 -07:00
mozilla-sha1
…
perl add --html-path to get the location of installed HTML docs 2009-04-04 23:57:59 -07:00
ppc
…
t Work around ash "alternate value" expansion bug 2009-04-18 21:37:46 -07:00
templates hook/update: example of how to prevent branch creation 2009-04-17 21:26:11 -07:00
xdiff Fix various dead stores found by the clang static analyzer 2009-03-15 18:25:24 -07:00
.gitattributes
…
.gitignore Merge branch 'da/difftool' 2009-04-17 21:42:12 -07:00
.mailmap
…
COPYING
…
GIT-VERSION-GEN GIT 1.6.2.4 2009-04-19 17:34:26 -07:00
INSTALL
…
Makefile Sync with 1.6.2.4 2009-04-19 17:38:40 -07:00
README
…
RelNotes Describe fixes since 1.6.2.3 2009-04-18 14:45:29 -07:00
abspath.c
…
alias.c
…
alloc.c
…
archive-tar.c
…
archive-zip.c
…
archive.c archive: do not read .gitattributes in working directory 2009-04-17 21:05:49 -07:00
archive.h archive: do not read .gitattributes in working directory 2009-04-17 21:05:49 -07:00
attr.c attr: add GIT_ATTR_INDEX "direction" 2009-04-17 21:05:49 -07:00
attr.h attr: add GIT_ATTR_INDEX "direction" 2009-04-17 21:05:49 -07:00
base85.c
…
bisect.c rev-list: add "int bisect_show_flags" in "struct rev_list_info" 2009-04-07 22:12:44 -07:00
bisect.h rev-list: add "int bisect_show_flags" in "struct rev_list_info" 2009-04-07 22:12:44 -07:00
blob.c
…
blob.h
…
branch.c strbuf_check_branch_ref(): a helper to check a refname for a branch 2009-03-22 23:52:11 -07:00
branch.h
…
builtin-add.c Merge branch 'mv/parseopt-ls-files' 2009-03-20 14:30:51 -07:00
builtin-annotate.c
…
builtin-apply.c git-apply: fix option description 2009-04-16 16:32:17 -07:00
builtin-archive.c recv_sideband: Bands #2 and #3 always go to stderr 2009-03-10 23:23:02 -07:00
builtin-bisect--helper.c bisect--helper: implement "git bisect--helper" 2009-04-05 01:29:44 -07:00
builtin-blame.c Merge branch 'jc/maint-1.6.0-blame-s' into maint-1.6.1 2009-04-08 23:02:17 -07:00
builtin-branch.c shorten_unambiguous_ref(): add strict mode 2009-04-13 09:36:44 -07:00
builtin-bundle.c
…
builtin-cat-file.c
…
builtin-check-attr.c
…
builtin-check-ref-format.c strbuf_check_branch_ref(): a helper to check a refname for a branch 2009-03-22 23:52:11 -07:00
builtin-checkout-index.c
…
builtin-checkout.c Merge branch 'js/maint-submodule-checkout' into maint 2009-04-18 14:18:29 -07:00
builtin-clean.c
…
builtin-clone.c builtin-clone.c: no need to strdup for setenv 2009-04-01 08:58:55 -07:00
builtin-commit-tree.c
…
builtin-commit.c Merge branch 'maint-1.6.1' into maint 2009-04-05 01:04:54 -07:00
builtin-config.c config: test for --replace-all with one argument and fix documentation. 2009-03-17 09:30:00 -07:00
builtin-count-objects.c Merge branch 'jc/maint-1.6.0-keep-pack' into maint 2009-04-08 23:21:10 -07:00
builtin-describe.c
…
builtin-diff-files.c
…
builtin-diff-index.c
…
builtin-diff-tree.c Remove unused assignments 2009-03-14 13:36:34 -07:00
builtin-diff.c
…
builtin-fast-export.c builtin-fast-export.c: handle nested tags 2009-04-19 12:29:26 -07:00
builtin-fetch--tool.c
…
builtin-fetch-pack.c builtin-fetch-pack: use warning() instead of fprintf(stderr, "warning: ") 2009-03-23 21:02:26 -07:00
builtin-fetch.c Merge branch 'db/push-cleanup' 2009-03-26 00:28:46 -07:00
builtin-fmt-merge-msg.c Move local variables to narrower scopes 2009-03-07 20:52:23 -08:00
builtin-for-each-ref.c for-each-ref: utilize core.warnAmbiguousRefs for :short-format 2009-04-13 09:36:52 -07:00
builtin-fsck.c Merge branch 'jc/maint-1.6.0-keep-pack' into maint 2009-04-08 23:21:10 -07:00
builtin-gc.c gc --aggressive: make it really aggressive 2009-03-18 19:11:34 -07:00
builtin-grep.c grep: prefer builtin over external one when coloring results 2009-03-17 17:03:33 -07:00
builtin-help.c
…
builtin-http-fetch.c
…
builtin-init-db.c Merge branch 'maint' 2009-04-18 14:45:59 -07:00
builtin-log.c Merge branch 'sb/format-patch-patchname' 2009-04-06 00:42:23 -07:00
builtin-ls-files.c ls-files: require worktree when --deleted is given 2009-03-21 23:19:27 -07:00
builtin-ls-remote.c
…
builtin-ls-tree.c Produce a nicer output in case of sha1_object_info failures in ls-tree -l 2009-03-20 09:35:21 -07:00
builtin-mailinfo.c Remove unused assignments 2009-03-14 13:36:34 -07:00
builtin-mailsplit.c
…
builtin-merge-base.c
…
builtin-merge-file.c
…
builtin-merge-ours.c
…
builtin-merge-recursive.c
…
builtin-merge.c strbuf_branchname(): a wrapper for branch name shorthands 2009-03-22 23:44:08 -07:00
builtin-mv.c
…
builtin-name-rev.c
…
builtin-pack-objects.c Merge branch 'lt/pack-object-memuse' 2009-04-18 14:46:17 -07:00
builtin-pack-refs.c
…
builtin-prune-packed.c
…
builtin-prune.c
…
builtin-push.c Merge branch 'fg/push-default' 2009-03-26 00:26:25 -07:00
builtin-read-tree.c
…
builtin-receive-pack.c
…
builtin-reflog.c Speed up reflog pruning of unreachable commits 2009-04-19 12:31:56 -07:00
builtin-remote.c git remote update: Fallback to remote if group does not exist 2009-04-07 21:52:26 -07:00
builtin-rerere.c
…
builtin-reset.c
…
builtin-rev-list.c Merge branch 'lt/pack-object-memuse' 2009-04-18 14:46:17 -07:00
builtin-rev-parse.c rev-parse: --abbrev-ref option to shorten ref name 2009-04-13 09:42:55 -07:00
builtin-revert.c Merge branch 'maint-1.6.1' into maint 2009-03-07 21:00:27 -08:00
builtin-rm.c builtin-rm: use warning() instead of fprintf(stderr, "warning: ") 2009-03-23 21:02:27 -07:00
builtin-send-pack.c builtin-send-pack.c: avoid empty structure initialization 2009-03-26 21:01:34 -07:00
builtin-shortlog.c Remove unused assignments 2009-03-14 13:36:34 -07:00
builtin-show-branch.c builtin-show-branch: use warning() instead of fprintf(stderr, "warning: ") 2009-03-23 21:02:27 -07:00
builtin-show-ref.c builtin-show-ref: use warning() instead of fprintf(stderr, "warning: ") 2009-03-23 21:02:27 -07:00
builtin-stripspace.c
…
builtin-symbolic-ref.c
…
builtin-tag.c
…
builtin-tar-tree.c archive: do not read .gitattributes in working directory 2009-04-17 21:05:49 -07:00
builtin-unpack-objects.c
…
builtin-update-index.c Merge branch 'kb/checkout-optim' 2009-03-17 18:54:31 -07:00
builtin-update-ref.c
…
builtin-upload-archive.c
…
builtin-verify-pack.c
…
builtin-verify-tag.c
…
builtin-write-tree.c
…
builtin.h bisect--helper: implement "git bisect--helper" 2009-04-05 01:29:44 -07:00
bundle.c
…
bundle.h
…
cache-tree.c
…
cache-tree.h cache-tree.c: make cache_tree_find() static 2008-07-16 08:50:27 -07:00
cache.h Merge branch 'jc/shared-literally' into maint 2009-04-08 23:23:41 -07:00
check-builtins.sh
…
check-racy.c
…
check_bindir
…
color.c
…
color.h graph API: Added logic for colored edges 2009-04-13 22:41:25 -07:00
combine-diff.c Merge branch 'kb/checkout-optim' 2009-03-17 18:54:31 -07:00
command-list.txt difftool: move 'git-difftool' out of contrib 2009-04-07 22:19:56 -07:00
commit.c
…
commit.h
…
config.c Merge branch 'lt/bool-on-off' 2009-04-18 14:46:22 -07:00
config.mak.in
…
configure.ac configure: rework pthread handling to allow for user defined flags 2009-03-12 23:23:39 -07:00
connect.c Remove unused assignments 2009-03-14 13:36:34 -07:00
convert.c
…
copy.c
…
csum-file.c
…
csum-file.h
…
ctype.c
…
daemon.c
…
date.c
…
decorate.c
…
decorate.h
…
delta.h
…
diff-delta.c
…
diff-lib.c Merge branch 'kb/checkout-optim' 2009-03-17 18:54:31 -07:00
diff-no-index.c Merge branch 'maint' 2009-03-28 01:16:46 -07:00
diff.c Allow users to un-configure rename detection 2009-04-11 22:22:00 -07:00
diff.h
…
diffcore-break.c Remove unused function scope local variables 2009-03-07 20:52:17 -08:00
diffcore-delta.c
…
diffcore-order.c
…
diffcore-pickaxe.c pickaxe: count regex matches only once 2009-03-21 23:18:53 -07:00
diffcore-rename.c
…
diffcore.h
…
dir.c Merge branch 'mv/parseopt-ls-files' 2009-03-20 14:30:51 -07:00
dir.h
…
editor.c
…
entry.c
…
environment.c New config push.default to decide default behavior for push 2009-03-17 14:50:21 -07:00
exec_cmd.c Merge branch 'js/maint-1.6.0-exec-path-env' into maint-1.6.1 2009-04-08 23:01:10 -07:00
exec_cmd.h
…
fast-import.c Merge branch 'jc/shared-literally' 2009-04-06 00:42:52 -07:00
fetch-pack.h
…
fixup-builtins
…
fsck.c Remove unused function scope local variables 2009-03-07 20:52:17 -08:00
fsck.h
…
generate-cmdlist.sh
…
git-add--interactive.perl Merge branch 'mm/maint-add-p-quit' 2009-04-20 03:39:38 -07:00
git-am.sh Work around ash "alternate value" expansion bug 2009-04-18 21:37:46 -07:00
git-archimport.perl
…
git-bisect.sh Merge branch 'cc/bisect-filter' 2009-04-12 16:46:40 -07:00
git-compat-util.h Merge branch 'jc/maint-1.6.0-pack-directory' into maint-1.6.1 2009-03-21 22:53:36 -07:00
git-cvsexportcommit.perl
…
git-cvsimport.perl
…
git-cvsserver.perl
…
git-difftool--helper.sh mergetool--lib: simplify API usage by removing more global variables 2009-04-12 15:19:12 -07:00
git-difftool.perl difftool: add support for a difftool.prompt config variable 2009-04-07 22:19:56 -07:00
git-filter-branch.sh git-filter-branch: avoid collisions with variables in eval'ed commands 2009-03-25 16:35:52 -07:00
git-instaweb.sh git-instaweb: fix lighttpd configuration on cygwin 2009-03-10 23:16:52 -07:00
git-lost-found.sh
…
git-merge-octopus.sh
…
git-merge-one-file.sh
…
git-merge-resolve.sh
…
git-mergetool--lib.sh mergetool--lib: simplify API usage by removing more global variables 2009-04-12 15:19:12 -07:00
git-mergetool.sh mergetool--lib: simplify API usage by removing more global variables 2009-04-12 15:19:12 -07:00
git-parse-remote.sh
…
git-pull.sh Merge branch 'maint' 2009-04-08 23:47:23 -07:00
git-quiltimport.sh
…
git-rebase--interactive.sh
…
git-rebase.sh rebase: fix typo (force_rebas -> force-rebas) 2009-03-27 14:26:34 -07:00
git-relink.perl
…
git-repack.sh Merge branch 'jc/maint-1.6.0-keep-pack' into maint 2009-04-08 23:21:10 -07:00
git-request-pull.sh
…
git-send-email.perl send-email: fix nasty bug in ask() function 2009-04-04 22:53:32 -07:00
git-sh-setup.sh
…
git-stash.sh
…
git-submodule.sh Work around ash "alternate value" expansion bug 2009-04-18 21:37:46 -07:00
git-svn.perl git-svn: always initialize with core.autocrlf=false 2009-04-11 22:21:59 -07:00
git-web--browse.sh
…
git.c Merge branch 'cc/bisect-filter' 2009-04-12 16:46:40 -07:00
git.spec.in
…
graph.c graph API: Added logic for colored edges 2009-04-13 22:41:25 -07:00
graph.h
…
grep.c git log: avoid segfault with --all-match 2009-03-18 19:10:40 -07:00
grep.h grep: add support for coloring with external greps 2009-03-07 11:34:59 -08:00
hash-object.c Merge branch 'en/maint-hash-object' into maint 2009-03-11 13:51:59 -07:00
hash.c
…
hash.h
…
help.c
…
help.h
…
http-push.c Replace ",<,>,& with their respective XML entities in DAV requests 2009-04-11 22:21:59 -07:00
http-walker.c Move chmod(foo, 0444) into move_temp_to_file() 2009-03-27 22:10:58 -07:00
http.c Allow curl to rewind the read buffers 2009-04-02 13:04:07 -07:00
http.h Allow curl to rewind the read buffers 2009-04-02 13:04:07 -07:00
ident.c
…
imap-send.c Remove unused assignments 2009-03-14 13:36:34 -07:00
index-pack.c Merge branch 'jc/shared-literally' 2009-04-06 00:42:52 -07:00
levenshtein.c
…
levenshtein.h
…
list-objects.c Merge branch 'lt/pack-object-memuse' 2009-04-18 14:46:17 -07:00
list-objects.h Merge branch 'lt/pack-object-memuse' 2009-04-18 14:46:17 -07:00
ll-merge.c
…
ll-merge.h
…
lockfile.c
…
log-tree.c log-tree: fix patch filename computation in "git format-patch" 2009-03-27 01:10:27 -07:00
log-tree.h format-patch: --attach/inline uses filename instead of SHA1 2009-03-22 21:45:19 -07:00
mailmap.c Merge branch 'maint' 2009-04-01 22:46:31 -07:00
mailmap.h
…
match-trees.c
…
merge-file.c
…
merge-index.c
…
merge-recursive.c Merge branch 'cb/maint-merge-recursive-submodule-fix' 2009-04-07 22:32:56 -07:00
merge-recursive.h
…
merge-tree.c
…
mktag.c
…
mktree.c
…
name-hash.c
…
object.c
…
object.h
…
pack-check.c
…
pack-redundant.c
…
pack-refs.c
…
pack-refs.h
…
pack-revindex.c
…
pack-revindex.h
…
pack-write.c Merge branch 'jc/maint-1.6.0-pack-directory' into maint-1.6.1 2009-03-21 22:53:36 -07:00
pack.h
…
pager.c
…
parse-options.c parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together 2009-03-09 15:32:50 -07:00
parse-options.h parseopt: add PARSE_OPT_NO_INTERNAL_HELP 2009-03-08 13:36:27 -07:00
patch-delta.c
…
patch-id.c
…
patch-ids.c patch-ids: use the new generic "sha1_pos" function to lookup sha1 2009-04-04 22:57:42 -07:00
patch-ids.h
…
path.c set_shared_perm(): sometimes we know what the final mode bits should look like 2009-03-28 08:02:15 -07:00
pkt-line.c
…
pkt-line.h
…
preload-index.c
…
pretty.c format_sanitized_subject: Don't trim past initial length of strbuf 2009-04-01 11:05:31 -07:00
progress.c
…
progress.h
…
quote.c quote: add "sq_dequote_to_argv" to put unwrapped args in an argv array 2009-03-30 01:22:53 -07:00
quote.h quote: add "sq_dequote_to_argv" to put unwrapped args in an argv array 2009-03-30 01:22:53 -07:00
reachable.c process_{tree,blob}: Remove useless xstrdup calls 2009-04-08 22:58:43 -07:00
reachable.h
…
read-cache.c checkout bugfix: use stat.mtime instead of stat.ctime in two places 2009-03-15 12:56:40 -07:00
reflog-walk.c make oneline reflog dates more consistent with multiline format 2009-03-20 00:57:27 -07:00
reflog-walk.h make oneline reflog dates more consistent with multiline format 2009-03-20 00:57:27 -07:00
refs.c shorten_unambiguous_ref(): add strict mode 2009-04-13 09:36:44 -07:00
refs.h shorten_unambiguous_ref(): add strict mode 2009-04-13 09:36:44 -07:00
remote.c Merge branch 'bw/short-ref-strict' 2009-04-17 21:42:12 -07:00
remote.h remote: New function remote_is_configured() 2009-04-07 21:51:59 -07:00
rerere.c
…
rerere.h
…
revision.c Merge branch 'lt/pack-object-memuse' 2009-04-18 14:46:17 -07:00
revision.h Merge branch 'lt/pack-object-memuse' 2009-04-18 14:46:17 -07:00
run-command.c
…
run-command.h fix portability problem with IS_RUN_COMMAND_ERR 2009-04-01 11:05:54 -07:00
send-pack.h Move push matching and reporting logic into transport.c 2009-03-09 15:41:20 -07:00
server-info.c
…
setup.c "core.sharedrepository = 0mode" should set, not loosen 2009-03-27 21:51:04 -07:00
sha1-lookup.c sha1-lookup: fix up the assertion message 2009-04-06 00:56:27 -07:00
sha1-lookup.h sha1-lookup: add new "sha1_pos" function to efficiently lookup sha1 2009-04-04 22:57:39 -07:00
sha1_file.c Merge branch 'jc/shared-literally' into maint 2009-04-08 23:23:41 -07:00
sha1_name.c Rename interpret/substitute nth_last_branch functions 2009-03-22 23:36:47 -07:00
shallow.c
…
shell.c git-shell: Add 'git-upload-archive' to allowed commands. 2009-04-11 11:01:15 -07:00
shortlog.h
…
show-index.c
…
sideband.c recv_sideband: Bands #2 and #3 always go to stderr 2009-03-10 23:23:02 -07:00
sideband.h recv_sideband: Bands #2 and #3 always go to stderr 2009-03-10 23:23:02 -07:00
sigchain.c
…
sigchain.h
…
strbuf.c strbuf_check_branch_ref(): a helper to check a refname for a branch 2009-03-22 23:52:11 -07:00
strbuf.h strbuf_check_branch_ref(): a helper to check a refname for a branch 2009-03-22 23:52:11 -07:00
string-list.c
…
string-list.h
…
symlinks.c Revert "lstat_cache(): print a warning if doing ping-pong between cache types" 2009-03-17 12:10:58 -07:00
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
…
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 'db/push-cleanup' 2009-03-26 00:28:46 -07:00
transport.h Move push matching and reporting logic into transport.c 2009-03-09 15:41:20 -07:00
tree-diff.c tree_entry_interesting: a pathspec only matches at directory boundary 2009-04-01 19:35:16 -07:00
tree-walk.c
…
tree-walk.h
…
tree.c Merge branch 'bs/maint-1.6.0-tree-walk-prefix' into maint 2009-04-18 14:18:32 -07:00
tree.h
…
unimplemented.sh Makefile: allow building without perl 2009-04-08 22:14:56 -07:00
unpack-file.c
…
unpack-trees.c unpack-trees: do not muck with attributes when we are not checking out 2009-04-17 21:05:49 -07:00
unpack-trees.h
…
update-server-info.c
…
upload-pack.c Merge branch 'lt/pack-object-memuse' 2009-04-18 14:46:17 -07:00
usage.c Increase the size of the die/warning buffer to avoid truncation 2009-03-24 16:58:20 -07:00
userdiff.c
…
userdiff.h
…
utf8.c
…
utf8.h
…
var.c
…
walker.c
…
walker.h
…
wrapper.c Merge branch 'jc/maint-1.6.0-pack-directory' into maint-1.6.1 2009-03-21 22:53:36 -07:00
write_or_die.c
…
ws.c
…
wt-status.c Merge branch 'mv/parseopt-ls-files' 2009-03-20 14:30:51 -07:00
wt-status.h
…
xdiff-interface.c Remove unused function scope local variables 2009-03-07 20:52:17 -08:00
xdiff-interface.h
…

README

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

	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.