1. 30 7月, 2005 8 次提交
    • P
      [PATCH] Trivial tidyups · 0b124bb4
      Petr Baudis 提交于
      Simple whitespace-related tidyups ensuring style consistency.
      
      This is carried over from my old git-pb branch.
      Signed-off-by: NPetr Baudis <pasky@ucw.cz>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      0b124bb4
    • P
      [PATCH] mmap error handling · e35f9824
      Pavel Roskin 提交于
      I have reviewed all occurrences of mmap() in git and fixed three types
      of errors/defects:
      
      1) The result is not checked.
      2) The file descriptor is closed if mmap() succeeds, but not when it
      fails.
      3) Various casts applied to -1 are used instead of MAP_FAILED, which is
      specifically defined to check mmap() return value.
      
      [jc: This is a second round of Pavel's patch.  He fixed up the problem
      that close() potentially clobbering the errno from mmap, which
      the first round had.]
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e35f9824
    • J
      Documentation and tests: ls-files exclude pattern. · 1df092d2
      Junio C Hamano 提交于
      Update the tests and documentation to match the new "last one
      determines its fate" semantics.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1df092d2
    • J
      ls-files: rework exclude patterns. · fee88256
      Junio C Hamano 提交于
      Pasky and others raised many valid points on the problems
      initial exclude pattern enhancement work had.  Based on the
      list discussion, rework the exclude logic to use "last match
      determines its fate" rule, and order the list by exclude-from
      (the fallback default pattern file), exclude-per-directory
      (shallower to deeper, so deeper ones can override), and then
      command line exclude patterns.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fee88256
    • L
      [PATCH] Fix interesting git-rev-list corner case · 6c3b84c8
      Linus Torvalds 提交于
      This corner-case was triggered by a kernel commit that was not in date
      order, due to a misconfigured time zone that made the commit appear three
      hours older than it was.
      
      That caused git-rev-list to traverse the commit tree in a non-obvious
      order, and made it parse several of the _parents_ of the misplaced commit
      before it actually parsed the commit itself. That's fine, but it meant
      that the grandparents of the commit didn't get marked uninteresting,
      because they had been reached through an "interesting" branch.
      
      The reason was that "mark_parents_uninteresting()" (which is supposed to
      mark all existing parents as being uninteresting - duh) didn't actually
      traverse more than one level down the parent chain.
      
      NORMALLY this is fine, since with the date-based traversal order,
      grandparents won't ever even have been looked at before their parents (so
      traversing the chain down isn't needed, because the next time around when
      we pick out the parent we'll mark _its_ parents uninteresting), but since
      we'd gotten out of order, we'd already seen the parent and thus never got
      around to mark the grandparents.
      
      Anyway, the fix is simple. Just traverse parent chains recursively.
      Normally the chain won't even exist (since the parent hasn't been parsed
      yet), so this is not actually going to trigger except in this strange
      corner-case.
      
      Add a comment to the simple one-liner, since this was a bit subtle, and I
      had to really think things through to understand how it could happen.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      6c3b84c8
    • J
      Tutorial: use a bit longer sample filenames. · a05ed8cb
      Junio C Hamano 提交于
      Darrin Thompson noticed when he was showing off GIT to others
      that the use of filenames "a" and "b" in the tutorial example
      was unnecessarily confusing, especially with our "patch -p1"
      prefix a/ and b/, without giving us any patch.  I was very
      tempted to change them back to l/ and k/ prefixes, but decided
      to restrain myself and update the tutorial instead ;-).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a05ed8cb
    • J
      [PATCH] support older versions of libcurl · 4a30976e
      Johannes Schindelin 提交于
      Some newer features of libcurl are used which are not strictly necessary
      for http-pull. Use them only if libcurl is new enough to know about them.
      
      [jc: I just reworked #ifdef sprinkled all over the code into a
      single section that defines a set of macros.]
      Signed-off-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4a30976e
    • J
      Merge with gitk. · 89ab859e
      Junio C Hamano 提交于
      89ab859e
  2. 29 7月, 2005 6 次提交
  3. 28 7月, 2005 17 次提交
  4. 27 7月, 2005 3 次提交
  5. 26 7月, 2005 6 次提交