1. 29 Oct, 2018 1 commit
    • Duy Nguyen's avatar
      wildmatch: change behavior of "foo**bar" in WM_PATHNAME mode · e5bbe09e
      Duy Nguyen authored
      In WM_PATHNAME mode (or FNM_PATHNAME), '*' does not match '/' and '**'
      can but only in three patterns:
      - '**/' matches zero or more leading directories
      - '/**/' matches zero or more directories in between
      - '/**' matches zero or more trailing directories/files
      When '**' is present but not in one of these patterns, the current
      behavior is consider the pattern invalid and stop matching. In other
      words, 'foo**bar' never matches anything, whatever you throw at it.
      This behavior is arguably a bit confusing partly because we can't
      really tell the user their pattern is invalid so that they can fix
      it. So instead, tolerate it and make '**' act like two regular '*'s
      (which is essentially the same as a single asterisk). This behavior
      seems more predictable.
      Noticed-by: dana's avatardana <dana@dana.is>
      Signed-off-by: Duy Nguyen's avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
  2. 24 Jun, 2017 1 commit
  3. 06 May, 2016 1 commit
    • Li Peng's avatar
      typofix: assorted typofixes in comments, documentation and messages · 832c0e5e
      Li Peng authored
      Many instances of duplicate words (e.g. "the the path") and
      a few typoes are fixed, originally in multiple patches.
          wildmatch: fix duplicate words of "the"
          t: fix duplicate words of "output"
          transport-helper: fix duplicate words of "read"
          Git.pm: fix duplicate words of "return"
          path: fix duplicate words of "look"
          pack-protocol.txt: fix duplicate words of "the"
          precompose-utf8: fix typo of "sequences"
          split-index: fix typo
          worktree.c: fix typo
          remote-ext: fix typo
          utf8: fix duplicate words of "the"
          git-cvsserver: fix duplicate words
      Signed-off-by: 's avatarLi Peng <lip@dtdream.com>
      Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
  4. 02 Jun, 2013 1 commit
    • Anthony Ramine's avatar
      wildmatch: properly fold case everywhere · b79c0c37
      Anthony Ramine authored
      Case folding is not done correctly when matching against the [:upper:]
      character class and uppercased character ranges (e.g. A-Z).
      Specifically, an uppercase letter fails to match against any of them
      when case folding is requested because plain characters in the pattern
      and the whole string are preemptively lowercased to handle the base case
      That optimization is kept and ISLOWER() is used in the [:upper:] case
      when case folding is requested, while matching against a character range
      is retried with toupper() if the character was lowercase, as the bounds
      of the range itself cannot be modified (in a case-insensitive context,
      [A-_] is not equivalent to [a-_]).
      Signed-off-by: 's avatarAnthony Ramine <n.oxyde@gmail.com>
      Reviewed-by: Duy Nguyen's avatarDuy Nguyen <pclouds@gmail.com>
      Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
  5. 01 Jan, 2013 7 commits
  6. 15 Oct, 2012 9 commits