1. 04 12月, 2007 1 次提交
  2. 21 9月, 2007 3 次提交
    • P
      sq_quote_argv and add_to_string rework with strbuf's. · 7a33bcbe
      Pierre Habouzit 提交于
      * sq_quote_buf is made public, and works on a strbuf.
      * sq_quote_argv also works on a strbuf.
      * make sq_quote_argv take a "maxlen" argument to check the buffer won't grow
        too big.
      Signed-off-by: NPierre Habouzit <madcoder@debian.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7a33bcbe
    • P
      Full rework of quote_c_style and write_name_quoted. · 663af342
      Pierre Habouzit 提交于
      * quote_c_style works on a strbuf instead of a wild buffer.
      * quote_c_style is now clever enough to not add double quotes if not needed.
      
      * write_name_quoted inherits those advantages, but also take a different
        set of arguments. Now instead of asking for quotes or not, you pass a
        "terminator". If it's \0 then we assume you don't want to escape, else C
        escaping is performed. In any case, the terminator is also appended to the
        stream. It also no longer takes the prefix/prefix_len arguments, as it's
        seldomly used, and makes some optimizations harder.
      
      * write_name_quotedpfx is created to work like write_name_quoted and take
        the prefix/prefix_len arguments.
      
      Thanks to those API changes, diff.c has somehow lost weight, thanks to the
      removal of functions that were wrappers around the old write_name_quoted
      trying to give it a semantics like the new one, but performing a lot of
      allocations for this goal. Now we always write directly to the stream, no
      intermediate allocation is performed.
      
      As a side effect of the refactor in builtin-apply.c, the length of the bar
      graphs in diffstats are not affected anymore by the fact that the path was
      clipped.
      Signed-off-by: NPierre Habouzit <madcoder@debian.org>
      663af342
    • P
      Rework unquote_c_style to work on a strbuf. · 7fb1011e
      Pierre Habouzit 提交于
      If the gain is not obvious in the diffstat, the resulting code is more
      readable, _and_ in checkout-index/update-index we now reuse the same buffer
      to unquote strings instead of always freeing/mallocing.
      
      This also is more coherent with the next patch that reworks quoting
      functions.
      
      The quoting function is also made more efficient scanning for backslashes
      and treating portions of strings without a backslash at once.
      Signed-off-by: NPierre Habouzit <madcoder@debian.org>
      7fb1011e
  3. 08 6月, 2007 1 次提交
  4. 29 1月, 2007 1 次提交
  5. 17 9月, 2006 1 次提交
  6. 11 9月, 2006 1 次提交
  7. 03 9月, 2006 1 次提交
    • C
      Trace into a file or an open fd and refactor tracing code. · 6ce4e61f
      Christian Couder 提交于
      If GIT_TRACE is set to an absolute path (starting with a
      '/' character), we interpret this as a file path and we
      trace into it.
      
      Also if GIT_TRACE is set to an integer value greater than
      1 and lower than 10, we interpret this as an open fd value
      and we trace into it.
      
      Note that this behavior is not compatible with the
      previous one.
      
      We also trace whole messages using one write(2) call to
      make sure messages from processes do net get mixed up in
      the middle.
      
      This patch makes it possible to get trace information when
      running "make test".
      Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      6ce4e61f
  8. 01 9月, 2006 1 次提交
  9. 09 7月, 2006 1 次提交
  10. 29 11月, 2005 1 次提交
  11. 25 10月, 2005 1 次提交
    • L
      Add git-shell. · 35eb2d36
      Linus Torvalds 提交于
      This adds a very git specific restricted shell, that can be
      added to /etc/shells and set to the pw_shell in the /etc/passwd
      file, to give users ability to push into repositories over ssh
      without giving them full interactive shell acount.
      
      [jc: I updated Linus' patch to match what the current sq_quote()
       does.]
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      35eb2d36
  12. 18 10月, 2005 1 次提交
  13. 17 10月, 2005 1 次提交
  14. 11 10月, 2005 1 次提交
  15. 09 7月, 2005 1 次提交