Skip to content
Commits on Aug 31, 2008
  1. @dscho

    git wrapper: DWIM mistyped commands

    This patch introduces a modified Damerau-Levenshtein algorithm into
    Git's code base, and uses it with the following penalties to show some
    similar commands when an unknown command was encountered:
    
    	swap = 0, insertion = 1, substitution = 2, deletion = 4
    
    A typical output would now look like this:
    
    	$ git sm
    	git: 'sm' is not a git-command. See 'git --help'.
    
    	Did you mean one of these?
    		am
    		rm
    
    The cut-off is at similarity rating 6, which was empirically determined
    to give sensible results.
    
    As a convenience, if there is only one candidate, Git continues under
    the assumption that the user mistyped it.  Example:
    
    	$ git reabse
    	WARNING: You called a Git program named 'reabse', which does
    	not exist.
    	Continuing under the assumption that you meant 'rebase'
    	[...]
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    dscho committed with Aug 31, 2008
Commits on May 25, 2008
  1. @dscho

    mailsplit and mailinfo: gracefully handle NUL characters

    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>
    dscho committed with May 16, 2008
Commits on Mar 1, 2008
  1. @dscho

    Make git-remote a builtin

    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    dscho committed with Feb 29, 2008
Commits on Dec 3, 2007
  1. @dscho

    Add 'git fast-export', the sister of 'git fast-import'

    This program dumps (parts of) a git repository in the format that
    fast-import understands.
    
    For clarity's sake, it does not use the 'inline' method of specifying
    blobs in the commits, but builds the blobs before building the commits.
    
    Since signed tags' signatures will not necessarily be valid (think
    transformations after the export, or excluding revisions, changing
    the history), there are 4 modes to handle them: abort (default),
    ignore, warn and strip.  The latter just turns the tags into
    unsigned ones.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    dscho committed with Dec 2, 2007
Commits on Mar 4, 2007
  1. @dscho

    Make git-revert & git-cherry-pick a builtin

    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    dscho committed with Junio C Hamano Mar 1, 2007
Commits on Feb 23, 2007
  1. @dscho

    Add git-bundle: move objects and references by archive

    Some workflows require use of repositories on machines that cannot be
    connected, preventing use of git-fetch / git-push to transport objects and
    references between the repositories.
    
    git-bundle provides an alternate transport mechanism, effectively allowing
    git-fetch and git-pull to operate using sneakernet transport. `git-bundle
    create` allows the user to create a bundle containing one or more branches
    or tags, but with specified basis assumed to exist on the target
    repository. At the receiving end, git-bundle acts like git-fetch-pack,
    allowing the user to invoke git-fetch or git-pull using the bundle file as
    the URL. git-fetch and git-ls-remote determine they have a bundle URL by
    checking that the URL points to a file, but are otherwise unchanged in
    operation with bundles.
    
    The original patch was done by Mark Levedahl <mdl123@verizon.net>.
    
    It was updated to make git-bundle a builtin, and get rid of the tar
    format: now, the first line is supposed to say "# v2 git bundle", the next
    lines either contain a prerequisite ("-" followed by the hash of the
    needed commit), or a ref (the hash of a commit, followed by the name of
    the ref), and finally the pack. As a result, the bundle argument can be
    "-" now.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    dscho committed with Junio C Hamano Feb 22, 2007
Commits on Dec 22, 2006
  1. @dscho

    Make git-rerere a builtin

    The perl version used modules which are non-standard in some setups.
    This patch brings the full power of rerere to a wider audience.
    
    Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    dscho committed with Junio C Hamano Dec 20, 2006
Commits on Dec 6, 2006
  1. @dscho

    Add builtin merge-file, a minimal replacement for RCS merge

    merge-file has the same syntax as RCS merge, but supports only the
    "-L" option.
    
    For good measure, a test is added, which is quite minimal, though.
    
    [jc: further fix for compliation errors included.]
    
    Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    dscho committed with Junio C Hamano Dec 6, 2006
Commits on Nov 20, 2006
  1. @dscho

    Build in shortlog

    [jc: with minimum squelching of compiler warning under "-pedantic"
     compilation options.]
    
    Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    dscho committed with Junio C Hamano Oct 22, 2006
Commits on Jul 26, 2006
  1. @dscho

    Make git-mv a builtin

    This also moves add_file_to_index() to read-cache.c. Oh, and while
    touching builtin-add.c, it also removes a duplicate git_config() call.
    
    Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    dscho committed with Junio C Hamano Jul 26, 2006
Commits on Jul 4, 2006
  1. @dscho

    Make git-fmt-merge-msg a builtin

    Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    dscho committed with Junio C Hamano Jul 3, 2006
Something went wrong with that request. Please try again.