1. 13 9月, 2009 6 次提交
    • J
      use write_str_in_full helper to avoid literal string lengths · 2b7ca830
      Jim Meyering 提交于
      In 2d14d65c (Use a clearer style to issue commands to remote helpers,
      2009-09-03) I happened to notice two changes like this:
      
      -	write_in_full(helper->in, "list\n", 5);
      +
      +	strbuf_addstr(&buf, "list\n");
      +	write_in_full(helper->in, buf.buf, buf.len);
      +	strbuf_reset(&buf);
      
      IMHO, it would be better to define a new function,
      
          static inline ssize_t write_str_in_full(int fd, const char *str)
          {
                 return write_in_full(fd, str, strlen(str));
          }
      
      and then use it like this:
      
      -       strbuf_addstr(&buf, "list\n");
      -       write_in_full(helper->in, buf.buf, buf.len);
      -       strbuf_reset(&buf);
      +       write_str_in_full(helper->in, "list\n");
      
      Thus not requiring the added allocation, and still avoiding
      the maintenance risk of literal string lengths.
      These days, compilers are good enough that strlen("literal")
      imposes no run-time cost.
      
      Transformed via this:
      
          perl -pi -e \
              's/write_in_full\((.*?), (".*?"), \d+\)/write_str_in_full($1, $2)/'\
            $(git grep -l 'write_in_full.*"')
      Signed-off-by: NJim Meyering <meyering@redhat.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2b7ca830
    • M
      wrap git's main usage string. · 511a3fc1
      Matthieu Moy 提交于
      It's now similar wrapped the same way as in Documentation/git.txt, and
      fits in a 67 characters wide terminal.
      Signed-off-by: NMatthieu Moy <Matthieu.Moy@imag.fr>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      511a3fc1
    • J
      Merge branch 'maint' · 5b590d78
      Junio C Hamano 提交于
      * maint:
        GIT 1.6.4.3
        svn: properly escape arguments for authors-prog
        http.c: remove verification of remote packs
        grep: accept relative paths outside current working directory
        grep: fix exit status if external_grep() punts
      
      Conflicts:
      	GIT-VERSION-GEN
      	RelNotes
      5b590d78
    • J
      GIT 1.6.4.3 · 7fb6bcff
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7fb6bcff
    • M
      svn: properly escape arguments for authors-prog · d3d7d47e
      Mark Lodato 提交于
      Previously, the call to authors-prog was not properly escaped, so any
      special characters in the Subversion username, such as spaces and
      semi-colons, would be interpreted by the shell rather than being passed
      in as the first argument.  Now all unsafe characters are escaped using
      "git rev-parse --sq-quote"
      
      [ew: switched from "\Q..\E" to "rev-parse --sq-quote"]
      Signed-off-by: NMark Lodato <lodatom@gmail.com>
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d3d7d47e
    • J
      Merge branch 'cb/maint-1.6.3-grep-relative-up' into maint · 45c58ba0
      Junio C Hamano 提交于
      * cb/maint-1.6.3-grep-relative-up:
        grep: accept relative paths outside current working directory
        grep: fix exit status if external_grep() punts
      
      Conflicts:
      	t/t7002-grep.sh
      45c58ba0
  2. 12 9月, 2009 3 次提交
  3. 11 9月, 2009 7 次提交
  4. 10 9月, 2009 1 次提交
  5. 09 9月, 2009 1 次提交
  6. 08 9月, 2009 11 次提交
  7. 06 9月, 2009 6 次提交
  8. 04 9月, 2009 4 次提交
  9. 03 9月, 2009 1 次提交
    • J
      Merge branch 'maint' · 193a5d19
      Junio C Hamano 提交于
      * maint:
        git-cvsserver: no longer use deprecated 'git-subcommand' commands
        clone: disconnect transport after fetching
      193a5d19