Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Nov 10, 2009
  1. @jrn @gitster

    Show usage string for 'git mailsplit -h'

    jrn authored gitster committed
    Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Sep 13, 2009
  1. @gitster

    don't dereference NULL upon fdopen failure

    Jim Meyering authored gitster committed
    There were several unchecked use of fdopen(); replace them with xfdopen()
    that checks and dies.
    
    Signed-off-by: Jim Meyering <meyering@redhat.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Aug 5, 2009
  1. @gitster

    Allow mailsplit (and hence git-am) to handle mails with CRLF line-end…

    gitster authored
    …ings
    
    It is not that uncommon to have mails with DOS line-ending, notably
    Thunderbird and web mailers like Gmail (when saving what they call
    "original" message).  So modify mailsplit to convert CRLF line-endings to
    just LF.
    
    Since git-rebase is built on top of git-am, add an option to mailsplit to
    be used by git-am when it is acting on behalf of git-rebase, to refrain
    from doing this conversion.
    
    And add a test to make sure that rebase still works.
    
    Signed-off-by: Brandon Casey <drafnel@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @drafnel @gitster

    builtin-mailsplit.c: remove read_line_with_nul() since it is no longe…

    drafnel authored gitster committed
    …r used
    
    Signed-off-by: Brandon Casey <drafnel@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  3. @drafnel @gitster

    builtin-mailinfo,builtin-mailsplit: use strbufs

    drafnel authored gitster committed
    There should be no functional change.  Just the necessary changes and
    simplifications associated with calling strbuf_getwholeline() rather
    than an internal function or fgets.
    
    Signed-off-by: Brandon Casey <drafnel@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jun 27, 2009
  1. @trast @gitster

    Use die_errno() instead of die() when checking syscalls

    trast authored gitster committed
    Lots of die() calls did not actually report the kind of error, which
    can leave the user confused as to the real problem.  Use die_errno()
    where we check a system/library call that sets errno on failure, or
    one of the following that wrap such calls:
    
      Function              Passes on error from
      --------              --------------------
      odb_pack_keep         open
      read_ancestry         fopen
      read_in_full          xread
      strbuf_read           xread
      strbuf_read_file      open or strbuf_read_file
      strbuf_readlink       readlink
      write_in_full         xwrite
    
    Signed-off-by: Thomas Rast <trast@student.ethz.ch>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jul 22, 2008
  1. @dscho @gitster

    Rename path_list to string_list

    dscho authored gitster committed
    The name path_list was correct for the first usage of that data structure,
    but it really is a general-purpose string list.
    
    $ perl -i -pe 's/path-list/string-list/g' $(git grep -l path-list)
    $ perl -i -pe 's/path_list/string_list/g' $(git grep -l path_list)
    $ git mv path-list.h string-list.h
    $ git mv path-list.c string-list.c
    $ perl -i -pe 's/has_path/has_string/g' $(git grep -l has_path)
    $ perl -i -pe 's/path/string/g' string-list.[ch]
    $ git mv Documentation/technical/api-path-list.txt \
    	Documentation/technical/api-string-list.txt
    $ perl -i -pe 's/strdup_paths/strdup_strings/g' $(git grep -l strdup_paths)
    
    ... and then fix all users of string-list to access the member "string"
    instead of "path".
    
    Documentation/technical/api-string-list.txt needed some rewrapping, too.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jul 17, 2008
  1. @gitster

    Merge branch 'sb/dashless'

    gitster authored
    * sb/dashless:
      Make usage strings dash-less
      t/: Use "test_must_fail git" instead of "! git"
      t/test-lib.sh: exit with small negagive int is ok with test_must_fail
    
    Conflicts:
    	builtin-blame.c
    	builtin-mailinfo.c
    	builtin-mailsplit.c
    	builtin-shortlog.c
    	git-am.sh
    	t/t4150-am.sh
    	t/t4200-rerere.sh
Commits on Jul 13, 2008
  1. @sbeyer @gitster

    git-am/git-mailsplit: correct synopsis for reading from stdin

    sbeyer authored gitster committed
    Invoking git-am or git-mailsplit without mbox or Maildir results in
    reading an mbox from stdin.  Mention this in the synopsis and usage
    strings.
    
    Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @sbeyer @gitster

    Make usage strings dash-less

    sbeyer authored gitster committed
    When you misuse a git command, you are shown the usage string.
    But this is currently shown in the dashed form.  So if you just
    copy what you see, it will not work, when the dashed form
    is no longer supported.
    
    This patch makes git commands show the dash-less version.
    
    For shell scripts that do not specify OPTIONS_SPEC, git-sh-setup.sh
    generates a dash-less usage string now.
    
    Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on May 25, 2008
  1. @gitster

    mailsplit: minor clean-up in read_line_with_nul()

    gitster authored
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @dscho @gitster

    mailsplit and mailinfo: gracefully handle NUL characters

    dscho authored gitster committed
    The function fgets() has a big problem with NUL characters: it reads
    them, but nobody will know if the NUL comes from the file stream, or
    was appended at the end of the line.
    
    So implement a custom read_line_with_nul() function.
    
    Noticed by Tommy Thorn.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Nov 9, 2007
  1. @gitster

    Merge branch 'maint'

    gitster authored
    * maint:
      Start preparing for 1.5.3.6
      git-send-email: Change the prompt for the subject of the initial message.
      SubmittingPatches: improve the 'Patch:' section of the checklist
      instaweb: Minor cleanups and fixes for potential problems
      stop t1400 hiding errors in tests
      Makefile: add missing dependency on wt-status.h
      refresh_index_quietly(): express "optional" nature of index writing better
      Fix sed string regex escaping in module_name.
      Avoid a few unportable, needlessly nested "...`...".
      git-mailsplit: with maildirs not only process cur/, but also new/
    
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Nov 8, 2007
  1. @gitster

    git-mailsplit: with maildirs not only process cur/, but also new/

    Gerrit Pape authored gitster committed
    When saving patches to a maildir with e.g. mutt, the files are put into
    the new/ subdirectory of the maildir, not cur/.  This makes git-am state
    "Nothing to do.".  This patch lets git-mailsplit additional check new/
    after reading cur/.
    
    This was reported by Joey Hess through
     http://bugs.debian.org/447396
    
    Signed-off-by: Gerrit Pape <pape@smarden.org>
    Acked-by: Jeff King <peff@peff.net>
    Acked-by: Alex Riesen <raa.lkml@gmail.com>
    Acked-by: Fernando J. Pereda <ferdy@gentoo.org>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Nov 2, 2007
  1. @MrHacky @gitster

    Make mailsplit and mailinfo strip whitespace from the start of the input

    MrHacky authored gitster committed
    Signed-off-by: Simon Sasburg <Simon.Sasburg@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jun 8, 2007
  1. @gitster

    More missing static

    gitster authored
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on May 29, 2007
  1. mailsplit: fix for more than one input files

    Junio C Hamano authored
    Earlier commit d63bd9a broke the case where more than one input
    files are fed to mailsplit by not incrementing the base counter
    when splitting second and subsequent input files.  This should
    fix it.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on May 25, 2007
  1. Teach mailsplit about Maildir's

    Fernando J. Pereda authored Junio C Hamano committed
    Signed-off-by: Fernando J. Pereda <ferdy@gentoo.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Dec 20, 2006
  1. simplify inclusion of system header files.

    Junio C Hamano authored
    This is a mechanical clean-up of the way *.c files include
    system header files.
    
     (1) sources under compat/, platform sha-1 implementations, and
         xdelta code are exempt from the following rules;
    
     (2) the first #include must be "git-compat-util.h" or one of
         our own header file that includes it first (e.g. config.h,
         builtin.h, pkt-line.h);
    
     (3) system headers that are included in "git-compat-util.h"
         need not be included in individual C source files.
    
     (4) "git-compat-util.h" does not have to include subsystem
         specific header files (e.g. expat.h).
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jul 29, 2006
  1. Call setup_git_directory() much earlier

    Linus Torvalds authored Junio C Hamano committed
    This changes the calling convention of built-in commands and
    passes the "prefix" (i.e. pathname of $PWD relative to the
    project root level) down to them.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jun 19, 2006
  1. Make git-mailsplit a builtin

    Lukas Sandström authored Junio C Hamano committed
    Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Something went wrong with that request. Please try again.