1. 02 Mar, 2015 1 commit
    • Ben Walton's avatar
      kwset: use unsigned char to store values with high-bit set · 189c860c
      Ben Walton authored
      Sun Studio on Solaris issues warnings about improper initialization
      values being used when defining tolower_trans_tbl[] in ctype.c.  The
      array wants to store values with high-bit set and treat them as
      values between 128 to 255.  Unlike the rest of the Git codebase
      where we explicitly specify 'unsigned char' for such variables and
      arrays, however, kwset code we borrowed from elsewhere uses 'char'
      for this and other variables.
      
      Fix the declarations to explicitly use 'unsigned char' where
      necessary to bring it in line with the rest of the Git.
      Signed-off-by: default avatarBen Walton <bdwalton@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      189c860c
  2. 15 Oct, 2012 2 commits
  3. 28 Feb, 2012 1 commit
    • Junio C Hamano's avatar
      grep: use static trans-case table · 0f871cf5
      Junio C Hamano authored
      In order to prepare the kwset machinery for a case-insensitive search, we
      used to use a static table of 256 elements and filled it every time before
      calling kwsalloc().  Because the kwset machinery will never modify this
      table, just allocate a single instance globally and fill it at the compile
      time.
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      0f871cf5
  4. 10 Feb, 2012 1 commit
  5. 08 Apr, 2011 1 commit
    • Junio C Hamano's avatar
      magic pathspec: futureproof shorthand form · 2f6c9760
      Junio C Hamano authored
      The earlier design was to take whatever non-alnum that the short format
      parser happens to support, leaving the rest as part of the pattern, so a
      version of git that knows '*' magic and a version that does not would have
      behaved differently when given ":*Makefile".  The former would have
      applied the '*' magic to the pattern "Makefile", while the latter would
      used no magic to the pattern "*Makefile".
      
      Instead, just reserve all non-alnum ASCII letters that are neither glob
      nor regexp special as potential magic signature, and when we see a magic
      that is not supported, die with an error message, just like the longhand
      codepath does.
      
      With this, ":%#!*Makefile" will always mean "%#!" magic applied to the
      pattern "*Makefile", no matter what version of git is used (it is a
      different matter if the version of git supports all of these three magic
      matching rules).
      
      Also make ':' without anything else to mean "there is no pathspec".  This
      would allow differences between "git log" and "git log ." run from the top
      level of the working tree (the latter simplifies no-op commits away from
      the history) to be expressed from a subdirectory by saying "git log :".
      Helped-by: Duy Nguyen's avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      2f6c9760
  6. 31 May, 2010 1 commit
    • Gary V. Vaughan's avatar
      enums: omit trailing comma for portability · 4b05548f
      Gary V. Vaughan authored
      Without this patch at least IBM VisualAge C 5.0 (I have 5.0.2) on AIX
      5.1 fails to compile git.
      
      enum style is inconsistent already, with some enums declared on one
      line, some over 3 lines with the enum values all on the middle line,
      sometimes with 1 enum value per line... and independently of that the
      trailing comma is sometimes present and other times absent, often
      mixing with/without trailing comma styles in a single file, and
      sometimes in consecutive enum declarations.
      
      Clearly, omitting the comma is the more portable style, and this patch
      changes all enum declarations to use the portable omitted dangling
      comma style consistently.
      Signed-off-by: default avatarGary V. Vaughan <gary@thewrittenword.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      4b05548f
  7. 01 May, 2009 1 commit
  8. 18 Jan, 2009 3 commits
  9. 29 Aug, 2008 1 commit
  10. 27 Aug, 2008 1 commit
  11. 07 Jun, 2007 1 commit
    • Junio C Hamano's avatar
      War on whitespace · a6080a0a
      Junio C Hamano authored
      This uses "git-apply --whitespace=strip" to fix whitespace errors that have
      crept in to our source files over time.  There are a few files that need
      to have trailing whitespaces (most notably, test vectors).  The results
      still passes the test, and build result in Documentation/ area is unchanged.
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      a6080a0a
  12. 15 Oct, 2005 1 commit