1. 02 2月, 2010 1 次提交
  2. 25 1月, 2010 1 次提交
  3. 15 1月, 2010 1 次提交
    • J
      commit: allow suppression of implicit identity advice · b706fcfe
      Jeff King 提交于
      We now nag the user with a giant warning when their identity
      was pulled from the username, hostname, and gecos
      information, in case it is not correct. Most users will
      suppress this by simply setting up their information
      correctly.
      
      However, there may be some users who consciously want to use
      that information, because having the value change from host
      to host contains useful information. These users can now set
      advice.implicitidentity to false to suppress the message.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b706fcfe
  4. 13 1月, 2010 3 次提交
    • J
      grep: rip out support for external grep · bbc09c22
      Junio C Hamano 提交于
      We still allow people to pass --[no-]ext-grep on the command line,
      but the option is ignored.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bbc09c22
    • J
      commit: support commit.status, --status, and --no-status · bed575e4
      James P. Howard, II 提交于
      A new configuration variable commit.status, and new command line
      options --status, and --no-status control whether or not the git
      status information is included in the commit message template
      when using an editor to prepare the commit message.  It does not
      affect the effects of a user's commit.template settings.
      Signed-off-by: NJames P. Howard, II <jh@jameshoward.us>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bed575e4
    • M
      Be more user-friendly when refusing to do something because of conflict. · d38a30df
      Matthieu Moy 提交于
      Various commands refuse to run in the presence of conflicts (commit,
      merge, pull, cherry-pick/revert). They all used to provide rough, and
      inconsistant error messages.
      
      A new variable advice.resolveconflict is introduced, and allows more
      verbose messages, pointing the user to the appropriate solution.
      
      For commit, the error message used to look like this:
      
      $ git commit
      foo.txt: needs merge
      foo.txt: unmerged (c34a92682e0394bc0d6f4d4a67a8e2d32395c169)
      foo.txt: unmerged (3afcd75de8de0bb5076942fcb17446be50451030)
      foo.txt: unmerged (c9785d77b76dfe4fb038bf927ee518f6ae45ede4)
      error: Error building trees
      
      The "need merge" line is given by refresh_cache. We add the IN_PORCELAIN
      option to make the output more consistant with the other porcelain
      commands, and catch the error in return, to stop with a clean error
      message. The next lines were displayed by a call to cache_tree_update(),
      which is not reached anymore if we noticed the conflict.
      
      The new output looks like:
      
      U       foo.txt
      fatal: 'commit' is not possible because you have unmerged files.
      Please, fix them up in the work tree, and then use 'git add/rm <file>' as
      appropriate to mark resolution and make a commit, or use 'git commit -a'.
      
      Pull is slightly modified to abort immediately if $GIT_DIR/MERGE_HEAD
      exists instead of waiting for merge to complain.
      
      The behavior of merge and the test-case are slightly modified to reflect
      the usual flow: start with conflicts, fix them, and afterwards get rid of
      MERGE_HEAD, with different error messages at each stage.
      Signed-off-by: NMatthieu Moy <Matthieu.Moy@imag.fr>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d38a30df
  5. 10 1月, 2010 6 次提交
  6. 30 12月, 2009 1 次提交
    • J
      Remove http.authAny · 525ecd26
      Junio C Hamano 提交于
      Back when the feature to use different HTTP authentication methods was
      originally written, it needed an extra HTTP request for everything when
      the feature was in effect, because we didn't reuse curl sessions.
      
      However, b8ac9230 (Add an option for using any HTTP authentication scheme,
      not only basic, 2009-11-27) builds on top of an updated codebase that does
      reuse curl sessions; there is no need to manually avoid the extra overhead
      by making this configurable anymore.
      Acked-by: NMartin Storsjo <martin@martin.st>
      Acked-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      525ecd26
  7. 29 12月, 2009 1 次提交
  8. 29 11月, 2009 1 次提交
  9. 28 11月, 2009 2 次提交
    • M
      Add an option for using any HTTP authentication scheme, not only basic · b8ac9230
      Martin Storsjö 提交于
      This adds the configuration option http.authAny (overridable with
      the environment variable GIT_HTTP_AUTH_ANY), for instructing curl
      to allow any HTTP authentication scheme, not only basic (which
      sends the password in plaintext).
      
      When this is enabled, curl has to do double requests most of the time,
      in order to discover which HTTP authentication method to use, which
      lowers the performance slightly. Therefore this isn't enabled by default.
      
      One example of another authentication scheme to use is digest, which
      doesn't send the password in plaintext, but uses a challenge-response
      mechanism instead. Using digest authentication in practice requires
      at least curl 7.18.1, due to bugs in the digest handling in earlier
      versions of curl.
      Signed-off-by: NMartin Storsjö <martin@martin.st>
      Signed-off-by: NTay Ray Chuan <rctay89@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b8ac9230
    • T
      http: maintain curl sessions · ad75ebe5
      Tay Ray Chuan 提交于
      Allow curl sessions to be kept alive (ie. not ended with
      curl_easy_cleanup()) even after the request is completed, the number of
      which is determined by the configuration setting http.minSessions.
      
      Add a count for curl sessions, and update it, across slots, when
      starting and ending curl sessions.
      Signed-off-by: NTay Ray Chuan <rctay89@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ad75ebe5
  10. 23 11月, 2009 2 次提交
  11. 21 11月, 2009 1 次提交
  12. 20 11月, 2009 1 次提交
  13. 18 11月, 2009 2 次提交
  14. 17 11月, 2009 1 次提交
  15. 14 11月, 2009 1 次提交
  16. 10 11月, 2009 1 次提交
  17. 05 11月, 2009 1 次提交
    • S
      Smart push over HTTP: client side · de1a2fdd
      Shawn O. Pearce 提交于
      The git-remote-curl backend detects if the remote server supports
      the git-receive-pack service, and if so, runs git-send-pack in a
      pipe to dump the command and pack data as a single POST request.
      
      The advertisements from the server that were obtained during the
      discovery are passed into git-send-pack before the POST request
      starts.  This permits git-send-pack to operate largely unmodified.
      
      For smaller packs (those under 1 MiB) a HTTP/1.0 POST with a
      Content-Length is used, permitting interaction with any server.
      The 1 MiB limit is arbitrary, but is sufficent to fit most deltas
      created by human authors against text sources with the occasional
      small binary file (e.g. few KiB icon image).  The configuration
      option http.postBuffer can be used to increase (or shink) this
      buffer if the default is not sufficient.
      
      For larger packs which cannot be spooled entirely into the helper's
      memory space (due to http.postBuffer being too small), the POST
      request requires HTTP/1.1 and sets "Transfer-Encoding: chunked".
      This permits the client to upload an unknown amount of data in one
      HTTP transaction without needing to pregenerate the entire pack
      file locally.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      CC: Daniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      de1a2fdd
  18. 25 10月, 2009 1 次提交
  19. 22 10月, 2009 1 次提交
  20. 20 10月, 2009 1 次提交
    • J
      Introduce commit notes · a97a7468
      Johannes Schindelin 提交于
      Commit notes are blobs which are shown together with the commit
      message.  These blobs are taken from the notes ref, which you can
      configure by the config variable core.notesRef, which in turn can
      be overridden by the environment variable GIT_NOTES_REF.
      
      The notes ref is a branch which contains "files" whose names are
      the names of the corresponding commits (i.e. the SHA-1).
      
      The rationale for putting this information into a ref is this: we
      want to be able to fetch and possibly union-merge the notes,
      maybe even look at the date when a note was introduced, and we
      want to store them efficiently together with the other objects.
      
      This patch has been improved by the following contributions:
      - Thomas Rast: fix core.notesRef documentation
      - Tor Arne Vestbø: fix printing of multi-line notes
      - Alex Riesen: Using char array instead of char pointer costs less BSS
      - Johan Herland: Plug leak when msg is good, but msglen or type causes return
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NTor Arne Vestbø <tavestbo@trolltech.com>
      Signed-off-by: NJohan Herland <johan@herland.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      
      get_commit_notes(): Plug memory leak when 'if' triggers, but not because of read_sha1_file() failure
      a97a7468
  21. 10 10月, 2009 1 次提交
  22. 12 9月, 2009 2 次提交
  23. 08 9月, 2009 1 次提交
  24. 06 9月, 2009 1 次提交
    • J
      core.whitespace: split trailing-space into blank-at-{eol,eof} · aeb84b05
      Junio C Hamano 提交于
      People who configured trailing-space depended on it to catch both extra
      white space at the end of line, and extra blank lines at the end of file.
      Earlier attempt to introduce only blank-at-eof gave them an escape hatch
      to keep the old behaviour, but it is a regression until they explicitly
      specify the new error class.
      
      This introduces a blank-at-eol that only catches extra white space at the
      end of line, and makes the traditional trailing-space a convenient synonym
      to catch both blank-at-eol and blank-at-eof.  This way, people who used
      trailing-space continue to catch both classes of errors.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      aeb84b05
  25. 05 9月, 2009 1 次提交
    • J
      apply --whitespace=warn/error: diagnose blank at EOF · 77b15bbd
      Junio C Hamano 提交于
      "git apply" strips new blank lines at EOF under --whitespace=fix option,
      but neigher --whitespace=warn nor --whitespace=error paid any attention to
      these errors.
      
      Introduce a new whitespace error class, blank-at-eof, to make the
      whitespace error handling more consistent.
      
      The patch adds a new "linenr" field to the struct fragment in order to
      record which line the hunk started in the input file, but this is needed
      solely for reporting purposes.  The detection of this class of whitespace
      errors cannot be done while parsing a patch like we do for all the other
      classes of whitespace errors.  It instead has to wait until we find where
      to apply the hunk, but at that point, we do not have an access to the
      original line number in the input file anymore, hence the new field.
      
      Depending on your point of view, this may be a bugfix that makes warn and
      error in line with fix.  Or you could call it a new feature.  The line
      between them is somewhat fuzzy in this case.
      
      Strictly speaking, triggering more errors than before is a change in
      behaviour that is not backward compatible, even though the reason for the
      change is because the code was not checking for an error that it should
      have.  People who do not want added blank lines at EOF to trigger an error
      can disable the new error class.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      77b15bbd
  26. 24 8月, 2009 1 次提交
  27. 13 8月, 2009 1 次提交
  28. 06 8月, 2009 2 次提交