git/Documentation
Junio C Hamano cf1b7869f0 Use gitattributes to define per-path whitespace rule
The `core.whitespace` configuration variable allows you to define what
`diff` and `apply` should consider whitespace errors for all paths in
the project (See gitlink:git-config[1]).  This attribute gives you finer
control per path.

For example, if you have these in the .gitattributes:

    frotz   whitespace
    nitfol  -whitespace
    xyzzy   whitespace=-trailing

all types of whitespace problems known to git are noticed in path 'frotz'
(i.e. diff shows them in diff.whitespace color, and apply warns about
them), no whitespace problem is noticed in path 'nitfol', and the
default types of whitespace problems except "trailing whitespace" are
noticed for path 'xyzzy'.  A project with mixed Python and C might want
to have:

    *.c    whitespace
    *.py   whitespace=-indent-with-non-tab

in its toplevel .gitattributes file.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2007-12-06 00:45:30 -08:00
..
howto Fixed update-hook example allow-users format. 2007-09-18 17:38:52 -07:00
technical War on whitespace 2007-06-07 00:04:01 -07:00
.gitignore Ignore all man sections as they are generated files. 2007-04-23 22:19:36 -07:00
Makefile documentation: replace Discussion section by link to user-manual chapter 2007-09-15 22:17:24 -04:00
RelNotes-1.5.0.1.txt
RelNotes-1.5.0.2.txt
RelNotes-1.5.0.3.txt
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 Whip post 1.5.3.3 maintenance series into shape. 2007-10-01 02:07:47 -07: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 GIT 1.5.3.5 2007-10-31 12:20:05 -07:00
RelNotes-1.5.3.txt Typofix: 1.5.3 release notes 2007-09-02 15:03:26 -07:00
RelNotes-1.5.4.txt RelNotes-1.5.4: describe recent updates 2007-10-29 13:33:38 -07:00
SubmittingPatches Update my contact address as the maintainer. 2007-09-01 04:09:51 -07:00
asciidoc.conf Merge branch 'maint' 2007-07-18 17:00:36 -07:00
blame-options.txt Fix formatting of git-blame documentation. 2007-08-10 00:47:53 -07:00
build-docdep.perl
callouts.xsl Revert "tweak manpage formatting" 2007-08-10 11:32:42 -07:00
cmd-list.perl No longer install git-svnimport, move to contrib/examples 2007-10-30 21:36:29 -07:00
config.txt core.whitespace: documentation updates. 2007-11-24 16:47:08 -08:00
core-tutorial.txt Merge branch 'maint' 2007-11-02 16:56:42 -07:00
cvs-migration.txt
diff-format.txt git-diff.txt: add section "output format" describing the diff formats 2007-11-01 17:07:22 -07:00
diff-options.txt fixed link in documentation of diff-options 2007-10-01 23:27:20 -07: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: quote commit messages consistently. 2007-11-02 15:38:24 -07:00
fetch-options.txt War on whitespace 2007-06-07 00:04:01 -07: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 Update manpages to reflect new short and long option aliases 2007-10-29 21:03:31 -07:00
git-am.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-annotate.txt Update git-annotate/git-blame documentation 2007-04-16 01:14:46 -07:00
git-apply.txt core.whitespace: documentation updates. 2007-11-24 16:47:08 -08:00
git-archimport.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-archive.txt git-archive: document --exec 2007-10-15 21:10:54 -04:00
git-bisect.txt Bisect run: "skip" current commit if script exit code is 125. 2007-10-26 23:27:24 -07:00
git-blame.txt git-blame -w: ignore whitespace 2007-06-09 18:34:58 -07:00
git-branch.txt Update manpages to reflect new short and long option aliases 2007-10-29 21:03:31 -07:00
git-bundle.txt git-bundle: fix commandline examples in the manpage 2007-09-29 15:40:17 -07:00
git-cat-file.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-check-attr.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-check-ref-format.txt
git-checkout-index.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-checkout.txt Say when --track is useful in the git-checkout docs. 2007-10-02 17:26:40 -07:00
git-cherry-pick.txt git-cherry-pick: improve description of -x. 2007-10-22 01:38:19 -04:00
git-cherry.txt Merge branch 'maint' 2007-06-12 00:15:16 -07:00
git-citool.txt Document git-gui, git-citool as mainporcelain manual pages 2007-06-22 22:32:32 -07:00
git-clean.txt Fix minor documentation errors 2007-05-07 15:39:57 -07:00
git-clone.txt git-clone.txt: Improve --depth description. 2007-11-01 15:14:38 -07:00
git-commit-tree.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07:00
git-commit.txt Documentation/git-commit.txt: correct bad list formatting. 2007-08-06 23:25:10 -07:00
git-config.txt Documentation/git-config.txt: AsciiDoc tweak to avoid leading dot 2007-09-14 14:51:08 -07:00
git-count-objects.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-cvsexportcommit.txt Documentation/git-cvsexportcommit.txt: s/mgs/msg/ in example 2007-10-30 11:39:47 -07:00
git-cvsimport.txt Merge branch 'aw/cvs' 2007-06-12 21:04:52 -07:00
git-cvsserver.txt Documentation: For consistency, use CVS instead of cvs. 2007-08-24 18:54:37 -07:00
git-daemon.txt Documentation: minor AsciiDoc mark-up fixes. 2007-09-01 04:06:13 -07:00
git-describe.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-diff-files.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-diff-index.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-diff-tree.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-diff.txt Merge branch 'gp/maint-diffdoc' 2007-11-02 16:12:04 -07:00
git-fast-import.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07:00
git-fetch-pack.txt
git-fetch.txt Add urls.txt to git-clone man page 2007-07-05 21:43:48 -07:00
git-filter-branch.txt Remove escaping of '|' in manpage option sections 2007-11-02 15:38:24 -07:00
git-fmt-merge-msg.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07: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 git-format-patch.txt: fix explanation of an example. 2007-11-01 15:19:43 -07:00
git-fsck-objects.txt
git-fsck.txt fsck --lost-found: write blob's contents, not their SHA-1 2007-07-22 15:59:27 -07:00
git-gc.txt Documentation/git-gc: improve description of --auto 2007-10-18 22:29:25 -04:00
git-get-tar-commit-id.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-grep.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-gui.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07:00
git-hash-object.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-http-fetch.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07:00
git-http-push.txt Support 'push --dry-run' for http transport 2007-10-16 00:36:35 -04:00
git-imap-send.txt
git-index-pack.txt Fix some typos, punctuation, missing words, minor markup. 2007-10-15 22:11:02 -04:00
git-init-db.txt Add an option to quiet git-init. 2007-06-27 22:22:17 -07:00
git-init.txt Add an option to quiet git-init. 2007-06-27 22:22:17 -07:00
git-instaweb.txt instaweb: support for Ruby's WEBrick server 2007-10-15 21:36:19 -04:00
git-local-fetch.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07:00
git-log.txt Porcelain level "log" family should recurse when diffing. 2007-08-28 00:10:21 -07:00
git-lost-found.txt Documentation/git-lost-found.txt: drop unnecessarily duplicated name. 2007-09-21 12:53:08 -07:00
git-ls-files.txt Document ls-files --with-tree=<tree-ish> 2007-09-17 23:57:35 -07:00
git-ls-remote.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-ls-tree.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-mailinfo.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-mailsplit.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-merge-base.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-merge-file.txt
git-merge-index.txt Fix some typos, punctuation, missing words, minor markup. 2007-10-15 22:11:02 -04:00
git-merge-one-file.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-merge-tree.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-merge.txt Merge branch 'maint' into HEAD 2007-10-30 21:44:43 -07:00
git-mergetool.txt mergetool: add support for ECMerge 2007-10-18 03:46:24 -04:00
git-mktag.txt mktag: minimally update the description. 2007-06-10 16:00:36 -07:00
git-mktree.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-mv.txt Update manpages to reflect new short and long option aliases 2007-10-29 21:03:31 -07:00
git-name-rev.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07:00
git-pack-objects.txt Merge branch 'maint' 2007-09-23 17:13:55 -07:00
git-pack-redundant.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-pack-refs.txt
git-parse-remote.txt
git-patch-id.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-peek-remote.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-prune-packed.txt Conjugate "search" correctly in the git-prune-packed man page. 2007-09-21 12:54:24 -07:00
git-prune.txt Merge branch 'maint' 2007-06-09 11:52:43 -07:00
git-pull.txt Add urls.txt to git-clone man page 2007-07-05 21:43:48 -07:00
git-push.txt Add a --dry-run option to git-push. 2007-10-15 22:02:52 -04:00
git-quiltimport.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-read-tree.txt Document git read-tree --trivial 2007-06-16 13:08:09 -07:00
git-rebase.txt git-rebase: document suppression of duplicate commits 2007-10-16 01:18:43 -04:00
git-receive-pack.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07:00
git-reflog.txt git-reflog: document --verbose 2007-10-15 21:10:54 -04:00
git-relink.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-remote.txt remote: document the 'rm' subcommand 2007-09-18 17:41:25 -07:00
git-repack.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07:00
git-repo-config.txt
git-request-pull.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-rerere.txt Enable "git rerere" by the config variable rerere.enabled 2007-07-06 22:39:15 -07:00
git-reset.txt Documentation: quote commit messages consistently. 2007-11-02 15:38:24 -07:00
git-rev-list.txt rev-list documentation: add "--bisect-all". 2007-10-26 23:27:23 -07:00
git-rev-parse.txt Document what the stage numbers in the :$n:path syntax mean. 2007-08-19 22:56:10 -07:00
git-revert.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-rm.txt Update manpages to reflect new short and long option aliases 2007-10-29 21:03:31 -07:00
git-runstatus.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-send-email.txt git-send-email: add a new sendemail.to configuration variable 2007-10-24 20:13:07 -07:00
git-send-pack.txt Add a --dry-run option to git-send-pack. 2007-10-15 22:02:52 -04:00
git-sh-setup.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-shell.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-shortlog.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-show-branch.txt
git-show-index.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-show-ref.txt Documentation: show-ref: document --exclude-existing 2007-04-09 18:54:52 -07:00
git-show.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-ssh-fetch.txt Mark disused commit walkers officially deprecated. 2007-07-02 23:29:54 -07:00
git-ssh-upload.txt Mark disused commit walkers officially deprecated. 2007-07-02 23:29:54 -07:00
git-stash.txt Fix some typos, punctuation, missing words, minor markup. 2007-10-15 22:11:02 -04:00
git-status.txt Add a note about the index being updated by git-status in some cases 2007-08-06 23:47:18 -07:00
git-stripspace.txt Remove escaping of '|' in manpage option sections 2007-11-02 15:38:24 -07:00
git-submodule.txt git-submodule - allow a relative path as the subproject url 2007-09-25 00:31:12 -07:00
git-svn.txt Fix some typos, punctuation, missing words, minor markup. 2007-10-15 22:11:02 -04:00
git-symbolic-ref.txt Update manpages to reflect new short and long option aliases 2007-10-29 21:03:31 -07:00
git-tag.txt Documentation/git-tag.txt: Document how to backdate tags 2007-10-16 01:18:37 -04:00
git-tar-tree.txt Documentation: update tar.umask default 2007-08-22 15:19:41 -07:00
git-tools.txt Remove outdated references to cogito in documentation 2007-10-29 12:53:50 -07:00
git-unpack-file.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-unpack-objects.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-update-index.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-update-ref.txt git-update-ref: add --no-deref option for overwriting/detaching ref 2007-05-10 15:24:44 -07:00
git-update-server-info.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-upload-archive.txt
git-upload-pack.txt
git-var.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-verify-pack.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-verify-tag.txt Make verify-tag a builtin. 2007-07-26 22:51:27 -07:00
git-whatchanged.txt War on whitespace 2007-06-07 00:04:01 -07:00
git-write-tree.txt War on whitespace 2007-06-07 00:04:01 -07:00
git.txt Merge branch 'maint' to catch up with 1.5.3.5 2007-10-31 14:13:38 -07:00
gitattributes.txt Use gitattributes to define per-path whitespace rule 2007-12-06 00:45:30 -08:00
gitignore.txt Fix spelling of overridden in documentation 2007-09-25 23:38:42 -07:00
gitk.txt gitk.txt: Fix markup. 2007-10-19 23:13:28 -04:00
gitmodules.txt gitmodules(5): remove leading period from synopsis 2007-06-15 22:46:04 -07:00
glossary.txt manual: add some markup. 2007-10-15 22:11:03 -04:00
hooks.txt post-checkout hook, tests, and docs 2007-09-29 21:11:21 -07:00
howto-index.sh
i18n.txt
install-doc-quick.sh Fix "make GZ=1 quick-install-doc" 2007-08-06 21:16:21 -07:00
install-webdoc.sh
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
repository-layout.txt War on whitespace 2007-06-07 00:04:01 -07:00
tutorial-2.txt tutorials: add user-manual links 2007-05-19 00:57:19 -04:00
tutorial.txt Documentation: Correct various misspellings and typos. 2007-08-24 18:54:37 -07:00
urls-remotes.txt Add urls.txt to git-clone man page 2007-07-05 21:43:48 -07:00
urls.txt URL: allow port specification in ssh:// URLs 2007-09-01 03:35:29 -07:00
user-manual.conf
user-manual.txt manual: use 'URL' instead of 'url'. 2007-10-15 22:11:03 -04:00