git/Documentation
Andreas Ericsson 833e3df171 pack-objects: Add runtime detection of online CPU's
Packing objects can be done in parallell nowadays, but it's
only done if the config option pack.threads is set to a value
above 1. Because of that, the code-path used is often not the
most optimal one.

This patch adds a routine to detect the number of online CPU's
at runtime (online_cpus()). When pack.threads (or --threads=) is
given a value of 0, the number of threads is set to the number of
online CPU's. This feature is also documented.

As per Nicolas Pitre's recommendations, the default is still to
run pack-objects single-threaded unless explicitly activated,
either by configuration or by command line parameter.

The routine online_cpus() is a rework of "numcpus.c", written by
one Philip Willoughby <pgw99@doc.ic.ac.uk>. numcpus.c is in the
public domain and can presently be downloaded from
http://csgsoft.doc.ic.ac.uk/numcpus/

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-02-23 12:00:32 -08:00
..
howto Add using merge subtree How-To 2008-01-14 18:04:51 -08:00
technical Technical documentation of the run-command API. 2008-02-19 21:37:36 -08:00
.gitattributes Define the project whitespace policy 2008-02-11 13:23:15 -08:00
.gitignore Start preparing the API documents. 2007-12-14 22:29:38 -08:00
asciidoc.conf Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
blame-options.txt Fix typo in 'blame' documentation. 2008-02-09 20:22:23 -08:00
build-docdep.perl Documentation/build-docdep.perl: Fix dependencies for included asciidoc files 2007-03-01 13:24:54 -08:00
callouts.xsl Revert "tweak manpage formatting" 2007-08-10 11:32:42 -07:00
cat-texi.perl Documentation: add gitman.info target 2007-12-10 01:36:13 -08:00
cmd-list.perl Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
CodingGuidelines Add Documentation/CodingGuidelines 2007-11-07 17:05:53 -08:00
config.txt pack-objects: Add runtime detection of online CPU's 2008-02-23 12:00:32 -08:00
core-tutorial.txt core-tutorial typofix 2008-01-17 22:55:25 -08:00
cvs-migration.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
diff-format.txt git-diff --numstat -z: make it machine readable 2007-12-12 10:59:22 -08:00
diff-generate-patch.txt Include diff options in the git-log manpage 2007-12-05 01:57:40 -08:00
diff-options.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
diffcore.txt War on whitespace 2007-06-07 00:04:01 -07:00
docbook-xsl.css War on whitespace 2007-06-07 00:04:01 -07:00
docbook.xsl Mark user-manual as UTF-8 2007-07-24 00:47:05 -07:00
everyday.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
fetch-options.txt git pull manpage: don't include -n from fetch-options.txt 2008-01-25 22:42:36 -08:00
fix-texi.perl Add support for an info version of the user manual 2007-08-10 23:16:18 -07:00
git-add.txt Clarified the meaning of git-add -u in the documentation 2008-02-20 16:08:48 -08:00
git-am.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-annotate.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-apply.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-archimport.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-archive.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-bisect.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-blame.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-branch.txt Document that the default of branch.autosetupmerge is true 2008-02-11 12:14:03 -08:00
git-bundle.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-cat-file.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-check-attr.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-check-ref-format.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-checkout-index.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-checkout.txt Document that the default of branch.autosetupmerge is true 2008-02-11 12:14:03 -08:00
git-cherry-pick.txt doc typo: s/prior committing/prior to committing/ 2008-01-19 11:25:37 -08:00
git-cherry.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-citool.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-clean.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-clone.txt git clone -s documentation: force a new paragraph for the NOTE 2008-02-13 14:15:44 -08:00
git-commit-tree.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-commit.txt git-commit: add a prepare-commit-msg hook 2008-02-06 02:26:55 -08:00
git-config.txt fix doc typos 2008-01-29 22:00:34 -08:00
git-count-objects.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-cvsexportcommit.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-cvsimport.txt git-cvsimport.txt: fix '-M' description. 2008-02-13 11:08:41 -08:00
git-cvsserver.txt Documentation/git-cvsserver: Fix typo 2008-01-30 18:50:41 -08:00
git-daemon.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-describe.txt Merge branch 'ph/describe-match' 2008-02-11 16:35:41 -08:00
git-diff-files.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-diff-index.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-diff-tree.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-diff.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-fast-export.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-fast-import.txt Update fast-import documentation to discuss crash reports 2008-02-16 00:47:08 -08:00
git-fetch-pack.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-fetch.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-filter-branch.txt Revert "filter-branch docs: remove brackets so not to imply revision arg is optional" 2008-01-31 13:51:42 -08:00
git-fmt-merge-msg.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-for-each-ref.txt Make for-each-ref's grab_date() support per-atom formatting 2007-09-29 20:31:59 -07:00
git-format-patch.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-fsck-objects.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-fsck.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-gc.txt Change git-gc documentation to reflect gc.packrefs implementation. 2008-01-09 12:25:24 -08:00
git-get-tar-commit-id.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-grep.txt Teach git-grep --name-only as synonym for -l 2008-02-20 20:36:20 -08:00
git-gui.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-hash-object.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-help.txt Documentation: add 'git-web--browse.txt' and simplify other docs. 2008-02-16 00:46:33 -08:00
git-http-fetch.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-http-push.txt Clarify that http-push being temporarily disabled with older cURL 2008-01-22 00:48:29 -08:00
git-imap-send.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-index-pack.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-init-db.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-init.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-instaweb.txt Documentation: add 'git-web--browse.txt' and simplify other docs. 2008-02-16 00:46:33 -08:00
git-log.txt Include rev-list options in git-log manpage. 2008-01-18 15:09:08 -08:00
git-lost-found.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-ls-files.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-ls-remote.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-ls-tree.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-mailinfo.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-mailsplit.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-merge-base.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-merge-file.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-merge-index.txt git-merge-index documentation: clarify synopsis 2008-02-22 07:02:40 -08:00
git-merge-one-file.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-merge-tree.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-merge.txt Documentation: fix and clarify grammar in git-merge docs. 2008-01-16 11:37:57 -08:00
git-mergetool.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-mktag.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-mktree.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-mv.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-name-rev.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-pack-objects.txt pack-objects: Add runtime detection of online CPU's 2008-02-23 12:00:32 -08:00
git-pack-redundant.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-pack-refs.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-parse-remote.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-patch-id.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-peek-remote.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-prune-packed.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-prune.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-pull.txt Correct git-pull documentation 2008-02-19 21:31:33 -08:00
git-push.txt push: document the status output 2008-02-19 20:46:15 -08:00
git-quiltimport.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-read-tree.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-rebase.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-receive-pack.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-reflog.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-relink.txt git-relink.txt: describe more clearly how hard linking occurs 2008-01-11 18:06:55 -08:00
git-remote.txt git-remote documentation: fix synopsis to match description 2008-02-03 16:02:12 -08:00
git-repack.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-repo-config.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-request-pull.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-rerere.txt Fix git-rerere documentation 2008-01-14 16:14:29 -08:00
git-reset.txt Documentation/git-reset: Add an example of resetting selected paths 2008-02-16 10:57:05 -08:00
git-rev-list.txt Include rev-list options in git-log manpage. 2008-01-18 15:09:08 -08:00
git-rev-parse.txt git rev-parse manpage: spelling fix 2008-01-31 13:59:00 -08:00
git-revert.txt doc typo: s/prior committing/prior to committing/ 2008-01-19 11:25:37 -08:00
git-rm.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-send-email.txt Merge branch 'mw/send-email' 2008-02-11 16:46:36 -08:00
git-send-pack.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-sh-setup.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-shell.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-shortlog.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-show-branch.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-show-index.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-show-ref.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-show.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-stash.txt Documentation/git-stash: document options for git stash list 2008-02-20 11:23:58 -08:00
git-status.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-stripspace.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-submodule.txt submodule: Document the details of the command line syntax 2008-01-21 00:57:51 -08:00
git-svn.txt Add `git svn blame' command 2008-02-11 13:23:14 -08:00
git-symbolic-ref.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-tag.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-tar-tree.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-tools.txt Remove outdated references to cogito in documentation 2007-10-29 12:53:50 -07:00
git-unpack-file.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-unpack-objects.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-update-index.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-update-ref.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-update-server-info.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-upload-archive.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-upload-pack.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-var.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-verify-pack.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-verify-tag.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-web--browse.txt Documentation: add 'git-web--browse.txt' and simplify other docs. 2008-02-16 00:46:33 -08:00
git-whatchanged.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git-write-tree.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
git.txt Sync with 1.5.4.3 2008-02-23 11:49:34 -08:00
gitattributes.txt safecrlf: Add mechanism to warn about irreversible crlf conversions 2008-02-06 13:07:28 -08:00
gitcli.txt Documentation: typofix 2008-01-07 14:02:00 -08:00
gitignore.txt gitignore(5): Allow "foo/" in ignore list to match directory "foo" 2008-02-05 00:46:49 -08:00
gitk.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
gitmodules.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
glossary.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
hooks.txt git-commit: add a prepare-commit-msg hook 2008-02-06 02:26:55 -08:00
howto-index.sh
i18n.txt Fix grammar nits in documentation and in code comments. 2008-01-03 09:15:17 -08:00
install-doc-quick.sh Fix "make GZ=1 quick-install-doc" 2007-08-06 21:16:21 -07:00
install-webdoc.sh Start preparing the API documents. 2007-12-14 22:29:38 -08:00
Makefile man pages are littered with .ft C and others 2008-02-11 12:51:55 -08:00
manpage-1.72.xsl man pages are littered with .ft C and others 2008-02-11 12:51:55 -08:00
merge-options.txt git-merge: add --ff and --no-ff options 2007-09-23 17:14:03 -07:00
merge-strategies.txt
pretty-formats.txt Support output ISO 8601 format dates 2007-07-13 22:47:49 -07:00
pretty-options.txt pretty-options.txt: tiny doc fix 2007-07-25 00:06:38 -07:00
pull-fetch-param.txt War on whitespace 2007-06-07 00:04:01 -07:00
RelNotes-1.5.0.1.txt
RelNotes-1.5.0.2.txt GIT 1.5.0.2 2007-02-26 00:26:06 -08:00
RelNotes-1.5.0.3.txt GIT 1.5.0.3 2007-03-04 17:20:38 -08:00
RelNotes-1.5.0.4.txt War on whitespace 2007-06-07 00:04:01 -07:00
RelNotes-1.5.0.5.txt War on whitespace 2007-06-07 00:04:01 -07:00
RelNotes-1.5.0.6.txt War on whitespace 2007-06-07 00:04:01 -07:00
RelNotes-1.5.0.7.txt GIT 1.5.0.7 2007-04-03 19:27:41 -07:00
RelNotes-1.5.0.txt
RelNotes-1.5.1.1.txt git-svn: don't allow globs to match regular files 2007-04-18 12:39:04 -07:00
RelNotes-1.5.1.2.txt GIT 1.5.1.2 2007-04-21 13:57:07 -07:00
RelNotes-1.5.1.3.txt War on whitespace 2007-06-07 00:04:01 -07:00
RelNotes-1.5.1.4.txt GIT v1.5.1.4 2007-05-08 22:11:17 -07:00
RelNotes-1.5.1.5.txt GIT 1.5.1.6 2007-05-20 00:15:53 -07:00
RelNotes-1.5.1.6.txt GIT 1.5.1.6 2007-05-20 00:15:53 -07:00
RelNotes-1.5.1.txt GIT 1.5.1 2007-04-03 22:47:01 -07:00
RelNotes-1.5.2.1.txt GIT 1.5.2.1 2007-06-02 16:02:49 -07:00
RelNotes-1.5.2.2.txt GIT 1.5.2.2 2007-06-16 01:13:35 -07:00
RelNotes-1.5.2.3.txt GIT 1.5.2.3 2007-07-02 00:35:58 -07:00
RelNotes-1.5.2.4.txt GIT 1.5.2.4 2007-07-12 12:01:47 -07:00
RelNotes-1.5.2.5.txt GIT 1.5.2.5 2007-08-15 15:01:20 -07:00
RelNotes-1.5.2.txt GIT 1.5.2 2007-05-20 00:30:39 -07:00
RelNotes-1.5.3.1.txt GIT 1.5.3.1: obsolete git-p4 in RPM spec file. 2007-09-03 01:28:37 -07:00
RelNotes-1.5.3.2.txt GIT 1.5.3.2 2007-09-19 03:11:28 -07:00
RelNotes-1.5.3.3.txt fix doc typos 2008-01-29 22:00:34 -08:00
RelNotes-1.5.3.4.txt GIT 1.5.3.4 2007-10-03 02:33:48 -07:00
RelNotes-1.5.3.5.txt RelNotes-1.5.3.5: fix another typo 2007-11-07 11:37:15 -08:00
RelNotes-1.5.3.6.txt GIT 1.5.3.6 2007-11-18 14:00:38 -08:00
RelNotes-1.5.3.7.txt GIT 1.5.3.7 2007-12-01 11:20:00 -08:00
RelNotes-1.5.3.8.txt GIT 1.5.3.8 2008-01-07 22:41:43 -08:00
RelNotes-1.5.3.txt Typofix: 1.5.3 release notes 2007-09-02 15:03:26 -07:00
RelNotes-1.5.4.1.txt GIT 1.5.4.2 2008-02-17 00:20:38 -08:00
RelNotes-1.5.4.2.txt GIT 1.5.4.2 2008-02-17 00:20:38 -08:00
RelNotes-1.5.4.3.txt GIT 1.5.4.3 2008-02-23 11:31:04 -08:00
RelNotes-1.5.4.txt GIT 1.5.4 2008-02-01 19:10:10 -08:00
RelNotes-1.5.5.txt Sync with 1.5.4.2 and start 1.5.5 Release Notes 2008-02-17 01:51:46 -08:00
repository-layout.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
rev-list-options.txt Include rev-list options in git-log manpage. 2008-01-18 15:09:08 -08:00
SubmittingPatches Documentation/SubmittingPatches - a suggested patch flow 2008-02-16 17:33:31 -08:00
tutorial-2.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
tutorial.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
urls-remotes.txt Add urls.txt to git-clone man page 2007-07-05 21:43:48 -07:00
urls.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
user-manual.conf Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00
user-manual.txt Documentation: rename gitlink macro to linkgit 2008-01-06 18:41:44 -08:00