1. 20 7月, 2009 1 次提交
  2. 19 7月, 2009 6 次提交
  3. 17 7月, 2009 2 次提交
  4. 16 7月, 2009 1 次提交
    • J
      Revert "mailinfo: Remove only one set of square brackets" · 4525e8e4
      Junio C Hamano 提交于
      This reverts commit 650d30d8.
      
      Some mailing lists are configured add prefix "[listname] " to all their
      messages, and also people hand-edit subject lines, be it an output from
      format-patch or a patch generated by some other means.
      
      We cannot stop people from mucking with the subject line, and with the
      change, there always will be need for hand editing the subject when that
      happens.  People have depended on the leading [bracketed string] removal.
      4525e8e4
  5. 15 7月, 2009 3 次提交
    • L
      Fix extraneous lstat's in 'git checkout -f' · 05c1da2f
      Linus Torvalds 提交于
      In our 'oneway_merge()' we always do an 'lstat()' to see if we might
      need to mark the entry for updating.
      
      But we really shouldn't need to do that when the cache entry is already
      marked as being ce_uptodate(), and this makes us do unnecessary lstat()
      calls if we have index preloading enabled.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      05c1da2f
    • L
      Improve on the 'invalid object' error message at commit time · a3883734
      Linus Torvalds 提交于
      Not that anybody should ever get it, but somebody did (probably because
      of a flaky filesystem, but whatever).  And each time I see an error
      message that I haven't seen before, I decide that next time it will look
      better.
      
      So this makes us write more relevant information about exactly which
      file ended up having issues with a missing object.  Which will tell
      whether it was a tree object, for example, or just a regular file in the
      index (and which one).
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a3883734
    • L
      Make 'git show' more useful · f222abde
      Linus Torvalds 提交于
      For some reason, I ended up doing
      
      	git show HEAD~5..
      
      as an odd way of asking for a log. I realize I should just have used "git
      log", but at the same time it does make perfect conceptual sense. After
      all, you _could_ have done
      
      	git show HEAD HEAD~1 HEAD~2 HEAD~3 HEAD~4
      
      and saying "git show HEAD~5.." is pretty natural. It's not like "git show"
      only ever showed a single commit (or other object) before either! So
      conceptually, giving a commit range is a very sensible operation, even
      though you'd traditionally have used "git log" for that.
      
      However, doing that currently results in an error
      
      	fatal: object ranges do not make sense when not walking revisions
      
      which admittedly _also_ makes perfect sense - from an internal git
      implementation standpoint in 'revision.c'.
      
      However, I think that asking to show a range makes sense to a user, while
      saying "object ranges no not make sense when not walking revisions" only
      makes sense to a git developer.
      
      So on the whole, of the two different "makes perfect sense" behaviors, I
      think I originally picked the wrong one. And quite frankly, I don't really
      see anybody actually _depending_ on that error case. So why not change it?
      
      So rather than error out, just turn that non-walking error case into a
      "silently turn on walking" instead.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f222abde
  6. 14 7月, 2009 3 次提交
  7. 12 7月, 2009 3 次提交
  8. 11 7月, 2009 9 次提交
  9. 10 7月, 2009 4 次提交
  10. 09 7月, 2009 8 次提交
    • J
      Makefile: install 'git' in execdir · 4ecbc178
      Jeff King 提交于
      When a git command executes a subcommand, it uses the "git
      foo" form, which relies on finding "git" in the PATH.
      Normally this should not be a problem, since the same "git"
      that was used to invoke git in the first place will be
      found.  And if somebody invokes a "git" outside of the PATH
      (e.g., by giving its absolute path), this case is already
      covered: we put that absolute path onto the front of PATH.
      
      However, if one is using "sudo", then sudo will execute the
      "git" from the PATH, but pass along a restricted PATH that
      may not contain the original "git" directory. In this case,
      executing a subcommand will fail.
      
      To solve this, we put the "git" wrapper itself into the
      execdir; this directory is prepended to the PATH when git
      starts, so the wrapper will always be found.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4ecbc178
    • L
      Avoid doing extra 'lstat()'s for d_type if we have an up-to-date cache entry · caa6b782
      Linus Torvalds 提交于
      On filesystems without d_type, we can look at the cache entry first.
      Doing an lstat() can be expensive.
      
      Reported by Dmitry Potapov for Cygwin.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      caa6b782
    • L
      Simplify read_directory[_recursive]() arguments · dba2e203
      Linus Torvalds 提交于
      Stop the insanity with separate 'path' and 'base' arguments that must
      match.  We don't need that crazy interface any more, since we cleaned up
      handling of 'path' in commit da4b3e8c.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      dba2e203
    • L
      Add 'fill_directory()' helper function for directory traversal · 1d8842d9
      Linus Torvalds 提交于
      Most of the users of "read_directory()" actually want a much simpler
      interface than the whole complex (but rather powerful) one.
      
      In fact 'git add' had already largely abstracted out the core interface
      issues into a private "fill_directory()" function that was largely
      applicable almost as-is to a number of callers.  Yes, 'git add' wants to
      do some extra work of its own, specific to the add semantics, but we can
      easily split that out, and use the core as a generic function.
      
      This function does exactly that, and now that much simplified
      'fill_directory()' function can be shared with a number of callers,
      while also ensuring that the rather more complex calling conventions of
      read_directory() are used by fewer call-sites.
      
      This also makes the 'common_prefix()' helper function private to dir.c,
      since all callers are now in that file.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1d8842d9
    • J
      Merge branch 'ld/push-porcelain-output-format' · 3125be17
      Junio C Hamano 提交于
      * ld/push-porcelain-output-format:
        add --porcelain option to git-push
      3125be17
    • J
      Merge branch 'gb/gitweb-avatar' · 1d4bf0b3
      Junio C Hamano 提交于
      * gb/gitweb-avatar:
        gitweb: add empty alt text to avatar img
        gitweb: picon avatar provider
        gitweb: gravatar url cache
        gitweb: (gr)avatar support
        gitweb: use git_print_authorship_rows in 'tag' view too
        gitweb: uniform author info for commit and commitdiff
        gitweb: refactor author name insertion
      1d4bf0b3
    • J
      Merge branch 'ml/http' · c535d767
      Junio C Hamano 提交于
      * ml/http:
        http.c: add http.sslCertPasswordProtected option
        http.c: prompt for SSL client certificate password
      
      Conflicts:
      	http.c
      c535d767
    • J
      Merge branch 'rs/grep-p' · 128a9d86
      Junio C Hamano 提交于
      * rs/grep-p:
        grep: simplify -p output
        grep -p: support user defined regular expressions
        grep: add option -p/--show-function
        grep: handle pre context lines on demand
        grep: print context hunk marks between files
        grep: move context hunk mark handling into show_line()
        userdiff: add xdiff_clear_find_func()
      128a9d86