git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/23] Add --all option to git-check-attr
@ 2011-08-04  4:36 Michael Haggerty
  2011-08-04  4:36 ` [PATCH v3 01/23] doc: Add a link from gitattributes(5) to git-check-attr(1) Michael Haggerty
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: Michael Haggerty @ 2011-08-04  4:36 UTC (permalink / raw)
  To: git; +Cc: gitster, Michael Haggerty

This re-roll differs in the following ways from v2:

* The following series of refactoring patches were inserted:

      Teach prepare_attr_stack() to figure out dirlen itself
      Extract a function collect_all_attrs()
      Remove redundant call to bootstrap_attr_stack()
      Remove redundant check

  This change, in turn, simplifies patch

      Allow querying all attributes on a file

* The new API function is named git_all_attrs() instead of
  git_allattrs().

* Additionally, git_checkattr() is renamed to git_check_attr() at the
  suggestion of Junio.

* The renaming of struct git_attr_check to git_attr_value is no longer
  part of the patch series.

Thanks to Junio for the great feedback.  I believe that I have
addressed all of your comments.

Michael Haggerty (23):
  doc: Add a link from gitattributes(5) to git-check-attr(1)
  doc: Correct git_attr() calls in example code
  Remove anachronism from comment
  Disallow the empty string as an attribute name
  git-check-attr: Add missing "&&"
  git-check-attr: Add tests of command-line parsing
  Provide access to the name attribute of git_attr
  git-check-attr: Use git_attr_name()
  Teach prepare_attr_stack() to figure out dirlen itself
  Extract a function collect_all_attrs()
  Remove redundant call to bootstrap_attr_stack()
  Remove redundant check
  Allow querying all attributes on a file
  git-check-attr: Extract a function output_attr()
  git-check-attr: Introduce a new variable
  git-check-attr: Extract a function error_with_usage()
  git-check-attr: Handle each error separately
  git-check-attr: Process command-line args more systematically
  git-check-attr: Error out if no pathnames are specified
  git-check-attr: Add an --all option to show all attributes
  git-check-attr: Drive two tests using the same raw data
  git-check-attr: Fix command-line handling to match docs
  Rename git_checkattr() to git_check_attr()

 Documentation/git-check-attr.txt              |   23 ++++-
 Documentation/gitattributes.txt               |    3 +
 Documentation/technical/api-gitattributes.txt |   63 +++++++++-----
 archive.c                                     |    2 +-
 attr.c                                        |   79 ++++++++++++----
 attr.h                                        |   20 ++++-
 builtin/check-attr.c                          |  121 +++++++++++++++++--------
 builtin/pack-objects.c                        |    2 +-
 convert.c                                     |    2 +-
 ll-merge.c                                    |    4 +-
 t/t0003-attributes.sh                         |   61 +++++++++----
 userdiff.c                                    |    2 +-
 ws.c                                          |    2 +-
 13 files changed, 272 insertions(+), 112 deletions(-)

-- 
1.7.6.8.gd2879

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

end of thread, other threads:[~2011-08-04  4:38 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-04  4:36 [PATCH v3 00/23] Add --all option to git-check-attr Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 01/23] doc: Add a link from gitattributes(5) to git-check-attr(1) Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 02/23] doc: Correct git_attr() calls in example code Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 03/23] Remove anachronism from comment Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 04/23] Disallow the empty string as an attribute name Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 05/23] git-check-attr: Add missing "&&" Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 06/23] git-check-attr: Add tests of command-line parsing Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 07/23] Provide access to the name attribute of git_attr Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 08/23] git-check-attr: Use git_attr_name() Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 09/23] Teach prepare_attr_stack() to figure out dirlen itself Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 10/23] Extract a function collect_all_attrs() Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 11/23] Remove redundant call to bootstrap_attr_stack() Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 12/23] Remove redundant check Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 13/23] Allow querying all attributes on a file Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 14/23] git-check-attr: Extract a function output_attr() Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 15/23] git-check-attr: Introduce a new variable Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 16/23] git-check-attr: Extract a function error_with_usage() Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 17/23] git-check-attr: Handle each error separately Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 18/23] git-check-attr: Process command-line args more systematically Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 19/23] git-check-attr: Error out if no pathnames are specified Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 20/23] git-check-attr: Add an --all option to show all attributes Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 21/23] git-check-attr: Drive two tests using the same raw data Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 22/23] git-check-attr: Fix command-line handling to match docs Michael Haggerty
2011-08-04  4:36 ` [PATCH v3 23/23] Rename git_checkattr() to git_check_attr() Michael Haggerty

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 NNTP newsgroup(s).