mirror of
https://github.com/git/git.git
synced 2024-12-12 11:24:02 +08:00
d0bfd026a8
This adds the basic infrastructure to assign attributes to paths, in a way similar to what the exclusion mechanism does based on $GIT_DIR/info/exclude and .gitignore files. An attribute is just a simple string that does not contain any whitespace. They can be specified in $GIT_DIR/info/attributes file, and .gitattributes file in each directory. Each line in these files defines a pattern matching rule. Similar to the exclusion mechanism, a later match overrides an earlier match in the same file, and entries from .gitattributes file in the same directory takes precedence over the ones from parent directories. Lines in $GIT_DIR/info/attributes file are used as the lowest precedence default rules. A line is either a comment (an empty line, or a line that begins with a '#'), or a rule, which is a whitespace separated list of tokens. The first token on the line is a shell glob pattern. The rest are names of attributes, each of which can optionally be prefixed with '!'. Such a line means "if a path matches this glob, this attribute is set (or unset -- if the attribute name is prefixed with '!'). For glob matching, the same "if the pattern does not have a slash in it, the basename of the path is matched with fnmatch(3) against the pattern, otherwise, the path is matched with the pattern with FNM_PATHNAME" rule as the exclusion mechanism is used. This does not define what an attribute means. Tying an attribute to various effects it has on git operation for paths that have it will be specified separately. Signed-off-by: Junio C Hamano <junkio@cox.net>
170 lines
2.2 KiB
Plaintext
170 lines
2.2 KiB
Plaintext
GIT-CFLAGS
|
|
GIT-GUI-VARS
|
|
GIT-VERSION-FILE
|
|
git
|
|
git-add
|
|
git-add--interactive
|
|
git-am
|
|
git-annotate
|
|
git-apply
|
|
git-applymbox
|
|
git-applypatch
|
|
git-archimport
|
|
git-archive
|
|
git-bisect
|
|
git-blame
|
|
git-branch
|
|
git-bundle
|
|
git-cat-file
|
|
git-check-attr
|
|
git-check-ref-format
|
|
git-checkout
|
|
git-checkout-index
|
|
git-cherry
|
|
git-cherry-pick
|
|
git-clean
|
|
git-clone
|
|
git-commit
|
|
git-commit-tree
|
|
git-config
|
|
git-convert-objects
|
|
git-count-objects
|
|
git-cvsexportcommit
|
|
git-cvsimport
|
|
git-cvsserver
|
|
git-daemon
|
|
git-diff
|
|
git-diff-files
|
|
git-diff-index
|
|
git-diff-tree
|
|
git-describe
|
|
git-fast-import
|
|
git-fetch
|
|
git-fetch--tool
|
|
git-fetch-pack
|
|
git-findtags
|
|
git-fmt-merge-msg
|
|
git-for-each-ref
|
|
git-format-patch
|
|
git-fsck
|
|
git-fsck-objects
|
|
git-gc
|
|
git-get-tar-commit-id
|
|
git-grep
|
|
git-hash-object
|
|
git-http-fetch
|
|
git-http-push
|
|
git-imap-send
|
|
git-index-pack
|
|
git-init
|
|
git-init-db
|
|
git-instaweb
|
|
git-local-fetch
|
|
git-log
|
|
git-lost-found
|
|
git-ls-files
|
|
git-ls-remote
|
|
git-ls-tree
|
|
git-mailinfo
|
|
git-mailsplit
|
|
git-merge
|
|
git-merge-base
|
|
git-merge-index
|
|
git-merge-file
|
|
git-merge-tree
|
|
git-merge-octopus
|
|
git-merge-one-file
|
|
git-merge-ours
|
|
git-merge-recursive
|
|
git-merge-resolve
|
|
git-merge-stupid
|
|
git-merge-subtree
|
|
git-mergetool
|
|
git-mktag
|
|
git-mktree
|
|
git-name-rev
|
|
git-mv
|
|
git-pack-redundant
|
|
git-pack-objects
|
|
git-pack-refs
|
|
git-parse-remote
|
|
git-patch-id
|
|
git-peek-remote
|
|
git-prune
|
|
git-prune-packed
|
|
git-pull
|
|
git-push
|
|
git-quiltimport
|
|
git-read-tree
|
|
git-rebase
|
|
git-receive-pack
|
|
git-reflog
|
|
git-relink
|
|
git-remote
|
|
git-repack
|
|
git-repo-config
|
|
git-request-pull
|
|
git-rerere
|
|
git-reset
|
|
git-rev-list
|
|
git-rev-parse
|
|
git-revert
|
|
git-rm
|
|
git-runstatus
|
|
git-send-email
|
|
git-send-pack
|
|
git-sh-setup
|
|
git-shell
|
|
git-shortlog
|
|
git-show
|
|
git-show-branch
|
|
git-show-index
|
|
git-show-ref
|
|
git-ssh-fetch
|
|
git-ssh-pull
|
|
git-ssh-push
|
|
git-ssh-upload
|
|
git-status
|
|
git-stripspace
|
|
git-svn
|
|
git-svnimport
|
|
git-symbolic-ref
|
|
git-tag
|
|
git-tar-tree
|
|
git-unpack-file
|
|
git-unpack-objects
|
|
git-update-index
|
|
git-update-ref
|
|
git-update-server-info
|
|
git-upload-archive
|
|
git-upload-pack
|
|
git-var
|
|
git-verify-pack
|
|
git-verify-tag
|
|
git-whatchanged
|
|
git-write-tree
|
|
git-core-*/?*
|
|
gitk-wish
|
|
gitweb/gitweb.cgi
|
|
test-chmtime
|
|
test-date
|
|
test-delta
|
|
test-dump-cache-tree
|
|
test-match-trees
|
|
common-cmds.h
|
|
*.tar.gz
|
|
*.dsc
|
|
*.deb
|
|
git-core.spec
|
|
*.exe
|
|
*.[ao]
|
|
*.py[co]
|
|
config.mak
|
|
autom4te.cache
|
|
config.cache
|
|
config.log
|
|
config.status
|
|
config.mak.autogen
|
|
config.mak.append
|
|
configure
|