1
0
mirror of https://github.com/git/git.git synced 2024-10-03 14:01:22 +02:00
git/Documentation
Junio C Hamano 0f6f5a4022 git config --get-colorbool
This adds an option to help scripts find out color settings from
the configuration file.

    git config --get-colorbool color.diff

inspects color.diff variable, and exits with status 0 (i.e. success) if
color is to be used.  It exits with status 1 otherwise.

If a script wants "true"/"false" answer to the standard output of the
command, it can pass an additional boolean parameter to its command
line, telling if its standard output is a terminal, like this:

    git config --get-colorbool color.diff true

When called like this, the command outputs "true" to its standard output
if color is to be used (i.e. "color.diff" says "always", "auto", or
"true"), and "false" otherwise.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2007-12-05 17:57:11 -08:00
..
howto Addendum to "MaintNotes" 2007-11-22 17:41:45 -08:00
technical
.gitignore
asciidoc.conf Documentation: Fix man page breakage with DocBook XSL v1.72 2007-11-14 02:01:54 -08:00
blame-options.txt
build-docdep.perl
callouts.xsl
cmd-list.perl Consolidate command list to one. 2007-12-01 23:48:28 -08:00
CodingGuidelines
config.txt Documentation: color.* = true means "auto" 2007-12-05 17:50:53 -08:00
core-tutorial.txt Documentation: Fix references to deprecated commands 2007-11-18 20:50:57 -05:00
cvs-migration.txt
diff-format.txt
diff-options.txt Documentation: customize diff-options depending on particular command 2007-11-15 22:44:17 -08:00
diffcore.txt
docbook-xsl.css
docbook.xsl
everyday.txt
fetch-options.txt
fix-texi.perl
git-add.txt Documentation: add --patch option to synopsis of git-add 2007-12-05 11:08:00 -08:00
git-am.txt
git-annotate.txt
git-apply.txt
git-archimport.txt
git-archive.txt
git-bisect.txt
git-blame.txt
git-branch.txt Merge branch 'jc/branch-contains' 2007-12-01 13:58:54 -08:00
git-bundle.txt
git-cat-file.txt
git-check-attr.txt
git-check-ref-format.txt
git-checkout-index.txt
git-checkout.txt
git-cherry-pick.txt
git-cherry.txt
git-citool.txt
git-clean.txt
git-clone.txt Documentation: fix git-clone manpage not to refer to itself 2007-11-17 00:57:05 -08:00
git-commit-tree.txt
git-commit.txt git-commit documentation: fix unfinished sentence. 2007-12-03 13:35:26 -08:00
git-config.txt git config --get-colorbool 2007-12-05 17:57:11 -08:00
git-count-objects.txt
git-cvsexportcommit.txt
git-cvsimport.txt
git-cvsserver.txt
git-daemon.txt
git-describe.txt
git-diff-files.txt
git-diff-index.txt
git-diff-tree.txt
git-diff.txt Documentation: customize diff-options depending on particular command 2007-11-15 22:44:17 -08:00
git-fast-export.txt fast-export: rename the signed tag mode 'ignore' to 'verbatim' 2007-12-03 23:43:07 -08:00
git-fast-import.txt
git-fetch-pack.txt
git-fetch.txt
git-filter-branch.txt
git-fmt-merge-msg.txt
git-for-each-ref.txt
git-format-patch.txt Documentation: customize diff-options depending on particular command 2007-11-15 22:44:17 -08:00
git-fsck-objects.txt
git-fsck.txt
git-gc.txt
git-get-tar-commit-id.txt Documentation: Fix references to deprecated commands 2007-11-18 20:50:57 -05:00
git-grep.txt
git-gui.txt
git-hash-object.txt
git-help.txt Formatting fix for Documentation/git-help.txt 2007-12-04 00:29:32 -08:00
git-http-fetch.txt
git-http-push.txt
git-imap-send.txt
git-index-pack.txt
git-init-db.txt
git-init.txt
git-instaweb.txt
git-log.txt
git-lost-found.txt
git-ls-files.txt git-ls-files: add --exclude-standard 2007-11-15 22:24:10 -08:00
git-ls-remote.txt
git-ls-tree.txt
git-mailinfo.txt
git-mailsplit.txt
git-merge-base.txt
git-merge-file.txt
git-merge-index.txt
git-merge-one-file.txt
git-merge-tree.txt
git-merge.txt
git-mergetool.txt
git-mktag.txt
git-mktree.txt
git-mv.txt
git-name-rev.txt
git-pack-objects.txt
git-pack-redundant.txt
git-pack-refs.txt
git-parse-remote.txt
git-patch-id.txt
git-peek-remote.txt Deprecate peek-remote 2007-11-24 17:41:18 -08:00
git-prune-packed.txt
git-prune.txt Add "--expire <time>" option to 'git prune' 2007-11-30 15:47:01 -08:00
git-pull.txt Teach 'git pull' about --rebase 2007-11-28 17:32:23 -08:00
git-push.txt Merge branch 'aw/mirror-push' into jk/send-pack 2007-11-14 03:13:30 -08:00
git-quiltimport.txt
git-read-tree.txt
git-rebase.txt
git-receive-pack.txt
git-reflog.txt Doc fix for git-reflog: mention @{...} syntax, and <ref> in synopsys. 2007-11-20 00:15:13 -08:00
git-relink.txt
git-remote.txt Merge branch 'maint' 2007-11-19 00:19:15 -08:00
git-repack.txt
git-repo-config.txt
git-request-pull.txt
git-rerere.txt Documentation: rerere is enabled by default these days. 2007-12-04 00:40:55 -08:00
git-reset.txt
git-rev-list.txt rev-list: Introduce --quiet to avoid /dev/null redirects 2007-11-11 17:09:55 -08:00
git-rev-parse.txt
git-revert.txt
git-rm.txt
git-runstatus.txt
git-send-email.txt
git-send-pack.txt push: use same rules as git-rev-parse to resolve refspecs 2007-11-18 18:39:01 -08:00
git-sh-setup.txt
git-shell.txt
git-shortlog.txt
git-show-branch.txt
git-show-index.txt
git-show-ref.txt
git-show.txt
git-stash.txt
git-status.txt
git-stripspace.txt
git-submodule.txt
git-svn.txt git-svn: info --url [path] 2007-11-21 20:11:11 -08:00
git-symbolic-ref.txt
git-tag.txt builtin-tag: accept and process multiple -m just like git-commit 2007-11-22 23:18:09 -08:00
git-tar-tree.txt
git-tools.txt
git-unpack-file.txt
git-unpack-objects.txt
git-update-index.txt
git-update-ref.txt
git-update-server-info.txt
git-upload-archive.txt
git-upload-pack.txt
git-var.txt
git-verify-pack.txt
git-verify-tag.txt
git-whatchanged.txt
git-write-tree.txt
git.txt Documentation/git.txt: typofix 2007-12-04 00:47:04 -08:00
gitattributes.txt Merge branch 'maint' 2007-11-14 03:37:18 -08:00
gitignore.txt
gitk.txt
gitmodules.txt
glossary.txt
hooks.txt
howto-index.sh
i18n.txt
install-doc-quick.sh
install-webdoc.sh
Makefile install-sh from automake does not like -m without delimiting space 2007-12-03 22:11:53 -08:00
merge-options.txt
merge-strategies.txt
pretty-formats.txt
pretty-options.txt
pull-fetch-param.txt
RelNotes-1.5.0.1.txt
RelNotes-1.5.0.2.txt
RelNotes-1.5.0.3.txt
RelNotes-1.5.0.4.txt
RelNotes-1.5.0.5.txt
RelNotes-1.5.0.6.txt
RelNotes-1.5.0.7.txt
RelNotes-1.5.0.txt
RelNotes-1.5.1.1.txt
RelNotes-1.5.1.2.txt
RelNotes-1.5.1.3.txt
RelNotes-1.5.1.4.txt
RelNotes-1.5.1.5.txt
RelNotes-1.5.1.6.txt
RelNotes-1.5.1.txt
RelNotes-1.5.2.1.txt
RelNotes-1.5.2.2.txt
RelNotes-1.5.2.3.txt
RelNotes-1.5.2.4.txt
RelNotes-1.5.2.5.txt
RelNotes-1.5.2.txt
RelNotes-1.5.3.1.txt
RelNotes-1.5.3.2.txt
RelNotes-1.5.3.3.txt
RelNotes-1.5.3.4.txt
RelNotes-1.5.3.5.txt
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.txt
RelNotes-1.5.4.txt Update draft release notes for 1.5.4 2007-12-03 23:43:07 -08:00
repository-layout.txt
SubmittingPatches SubmittingPatches: improve the 'Patch:' section of the checklist 2007-11-08 23:59:44 -08:00
tutorial-2.txt
tutorial.txt
urls-remotes.txt
urls.txt Documentation: fix git-clone manpage not to refer to itself 2007-11-17 00:57:05 -08:00
user-manual.conf
user-manual.txt Merge branch 'maint' 2007-11-30 16:21:33 -08:00