git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* "man gitattributes" doesn't explain comma-separated attribute values
@ 2019-03-16 12:22 Robert P. J. Day
  2019-03-16 13:13 ` Ævar Arnfjörð Bjarmason
  2019-03-16 21:58 ` Johannes Sixt
  0 siblings, 2 replies; 7+ messages in thread
From: Robert P. J. Day @ 2019-03-16 12:22 UTC (permalink / raw)
  To: Git Mailing list


  more nitpicking, but i'm working my way through the intricacies of
attributes and putting together some (allegedly) simple examples for a
class i'm giving on monday, and i noted a couple possible shortcomings
in "man gitattributes".

  as a working example, i looked at the top-level .gitattributes file
in the git source code itself, which opens with:

  * whitespace=!indent,trail,space
  *.[ch] whitespace=indent,trail,space diff=cpp
  *.sh whitespace=indent,trail,space eol=lf
  ... snip ...

first observation is that i see nothing in the man page that explains
the notion of a comma-separated list of attribute values. maybe i
missed it or maybe it's supposed to be intuitively obvious, but
there's nothing i can see that mentions the possibility.

  related to that is that there is no explanation as to how to
interpret:

  * whitespace=!indent,trail,space

does the "!" apply to "indent" or to the entire list? the man page
doesn't say.

  just being pedantic again.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-03-18 10:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-16 12:22 "man gitattributes" doesn't explain comma-separated attribute values Robert P. J. Day
2019-03-16 13:13 ` Ævar Arnfjörð Bjarmason
2019-03-16 13:48   ` Robert P. J. Day
2019-03-16 21:58 ` Johannes Sixt
2019-03-16 22:09   ` Robert P. J. Day
2019-03-17  8:18     ` Johannes Sixt
2019-03-18 10:10       ` Philip Oakley

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).