1. 16 7月, 2008 7 次提交
    • E
    • J
      Merge branch 'mv/merge-in-c' · fcab40a3
      Junio C Hamano 提交于
      * mv/merge-in-c:
        reduce_heads(): protect from duplicate input
        reduce_heads(): thinkofix
        Add a new test for git-merge-resolve
        t6021: add a new test for git-merge-resolve
        Teach merge.log to "git-merge" again
        Build in merge
        Fix t7601-merge-pull-config.sh on AIX
        git-commit-tree: make it usable from other builtins
        Add new test case to ensure git-merge prepends the custom merge message
        Add new test case to ensure git-merge reduces octopus parents when possible
        Introduce reduce_heads()
        Introduce get_merge_bases_many()
        Add new test to ensure git-merge handles more than 25 refs.
        Introduce get_octopus_merge_bases() in commit.c
        git-fmt-merge-msg: make it usable from other builtins
        Move read_cache_unmerged() to read-cache.c
        Add new test to ensure git-merge handles pull.twohead and pull.octopus
        Move parse-options's skip_prefix() to git-compat-util.h
        Move commit_list_count() to commit.c
        Move split_cmdline() to alias.c
      
      Conflicts:
      	Makefile
      	parse-options.c
      fcab40a3
    • J
      Merge branch 'ag/rewrite_one' · c158cae1
      Junio C Hamano 提交于
      * ag/rewrite_one:
        Fix quadratic performance in rewrite_one.
      c158cae1
    • J
      Merge branch 'sp/win' · 223bb845
      Junio C Hamano 提交于
      * sp/win:
        We need to check for msys as well as Windows in add--interactive.
        Convert CR/LF to LF in tag signatures
        Fixed text file auto-detection: treat EOF character 032 at the end of file as printable
      223bb845
    • J
      Merge branch 'js/more-win' · 14660801
      Junio C Hamano 提交于
      * js/more-win:
        help (Windows): Display HTML in default browser using Windows' shell API
        help.c: Add support for htmldir relative to git_exec_path()
        Move code interpreting path relative to exec-dir to new function system_path()
      14660801
    • J
      Merge branch 'js/maint-pretty-mailmap' · fab600ce
      Junio C Hamano 提交于
      * js/maint-pretty-mailmap:
        Add pretty format %aN which gives the author name, respecting .mailmap
      fab600ce
    • J
      Rename ".dotest/" to ".git/rebase" and ".dotest-merge" to "rebase-merge" · 28ed6e7b
      Johannes Schindelin 提交于
      Since the files generated and used during a rebase are never to be
      tracked, they should live in $GIT_DIR.  While at it, avoid the rather
      meaningless term "dotest" to "rebase", and unhide ".dotest-merge".
      
      This was wished for on the mailing list, but so far unimplemented.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      28ed6e7b
  2. 15 7月, 2008 22 次提交
    • J
      Update draft release notes to 1.6.0 · 6c11a5fd
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6c11a5fd
    • J
      shortlog: support --pretty=format: option · b526f8ed
      Johannes Schindelin 提交于
      With this patch, the user can override the default setting, to print
      the commit messages using a user format instead of the onelines of the
      commits.  Example:
      
      	$ git shortlog --pretty='format:%s (%h)' <commit>..
      
      Note that shortlog will only respect a user format setting, as the other
      formats do not make much sense.
      
      Wished for by Andrew Morton.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b526f8ed
    • C
      Make git-add -i accept ranges like 7- · 1e5aaa6d
      Ciaran McCreesh 提交于
      git-add -i ranges expect number-number. But for the supremely lazy, typing in
      that second number when selecting "from patch 7 to the end" is wasted effort.
      So treat an empty second number in a range as "until the last item".
      Signed-off-by: NCiaran McCreesh <ciaran.mccreesh@googlemail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1e5aaa6d
    • P
      t9600: allow testing with cvsps 2.2, including beta versions · a271b2a9
      Pavel Roskin 提交于
      We've supported cvsps 2.1 so far.  Newer 2.2b1 (beta) seems to work with
      us, too.
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a271b2a9
    • J
      Merge git://repo.or.cz/git-gui · 547905f8
      Junio C Hamano 提交于
      * git://repo.or.cz/git-gui:
        git-gui: MERGE_RR lives in .git/ directly with newer Git versions
        git-gui: Exit shortcut in MacOSX repaired
      547905f8
    • J
      Merge branch 'js/merge-rr' · ebcffb1d
      Junio C Hamano 提交于
      * js/merge-rr:
        Move MERGE_RR from .git/rr-cache/ into .git/
      
      Conflicts:
      	builtin-rerere.c
      ebcffb1d
    • J
      Merge branch 'sb/rerere-lib' · 1864265c
      Junio C Hamano 提交于
      * sb/rerere-lib:
        rerere: Separate libgit and builtin functions
      1864265c
    • J
      Merge branch 'ls/maint-mailinfo-patch-label' · abce32b5
      Junio C Hamano 提交于
      * ls/maint-mailinfo-patch-label:
        git-mailinfo: Fix getting the subject from the in-body [PATCH] line
      abce32b5
    • J
      Merge branch 'om/rerere-careful' · 19792b27
      Junio C Hamano 提交于
      * om/rerere-careful:
        builtin-rerere: more carefully find conflict markers
      19792b27
    • J
      Merge branch 'jc/branch-merged' · b773fc34
      Junio C Hamano 提交于
      * jc/branch-merged:
        branch --merged/--no-merged: allow specifying arbitrary commit
        branch --contains: default to HEAD
        parse-options: add PARSE_OPT_LASTARG_DEFAULT flag
      
      Conflicts:
      	Documentation/git-branch.txt
      b773fc34
    • J
      Merge branch 'jc/rebase-orig-head' · 633ce9a3
      Junio C Hamano 提交于
      * jc/rebase-orig-head:
        Documentation: mention ORIG_HEAD in am, merge, and rebase
        Teach "am" and "rebase" to mark the original position with ORIG_HEAD
      633ce9a3
    • S
      bash completion: Remove dashed command completion support · 05576719
      Shawn O. Pearce 提交于
      Since only 'git' and 'gitk' are in the user's $PATH now we do not
      expect users to need completion support for git-fetch, and expect
      they will instead rely upon the completion support for 'git fetch'.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      05576719
    • J
      Merge branch 'sp/maint-bash-completion-optim' · 3df6499c
      Junio C Hamano 提交于
      * sp/maint-bash-completion-optim:
        bash completion: Resolve git show ref:path<tab> losing ref: portion
        bash completion: Append space after file names have been completed
      3df6499c
    • N
      restore legacy behavior for read_sha1_file() · ac939109
      Nicolas Pitre 提交于
      Since commit 8eca0b47, it is possible
      for read_sha1_file() to return NULL even with existing objects when they
      are corrupted.  Previously a corrupted object would have terminated the
      program immediately, effectively making read_sha1_file() return NULL
      only when specified object is not found.
      
      Let's restore this behavior for all users of read_sha1_file() and
      provide a separate function with the ability to not terminate when
      bad objects are encountered.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ac939109
    • T
      bash: Add long option completion for 'git send-email' · 25a1f374
      Teemu Likonen 提交于
      Add the following long options to be completed with 'git send-email':
      
          --bcc --cc --cc-cmd --chain-reply-to --compose --dry-run
          --envelope-sender --from --identity --in-reply-to
          --no-chain-reply-to --no-signed-off-by-cc --no-suppress-from
          --no-thread --quiet --signed-off-by-cc --smtp-pass --smtp-server
          --smtp-server-port --smtp-ssl --smtp-user --subject --suppress-cc
          --suppress-from --thread --to
      
      Short ones like --to and --cc are not usable for actual completion
      because of the shortness itself and because there are longer ones which
      start with same letters (--thread, --compose). It's still useful to have
      these shorter options _listed_ when user presses TAB key after typing
      two dashes. It gives user an idea what options are available (and --to
      and --cc are probably the most commonly used).
      Signed-off-by: NTeemu Likonen <tlikonen@iki.fi>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      25a1f374
    • M
      git-submodule - register submodule URL if adding in place · c2f93917
      Mark Levedahl 提交于
      When adding a new submodule in place, meaning the user created the
      submodule as a git repo in the superproject's tree first, we don't go
      through "git submodule init" to register the module.  Thus, the
      submodule's origin repository URL is not stored in .git/config, and no
      subsequent submodule operation will ever do so.  In this case, assume the
      URL the user supplies to "submodule add" is the one that should be
      registered, and do so.
      Signed-off-by: NMark Levedahl <mlevedahl@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c2f93917
    • M
      git-submodule - make "submodule add" more strict, and document it · ec05df35
      Mark Levedahl 提交于
      This change makes "submodule add" much more strict in the arguments it
      takes, and is intended to address confusion as recently noted on the
      git-list. With this change, the required syntax is:
      
      	$ git submodule add URL path
      
      Specifically, this eliminates the form
      
      	$ git submodule add URL
      
      which was confused by more than one person as
      
      	$ git submodule add path
      
      With this patch, the URL locating the submodule's origin repository can be
      either an absolute URL, or (if it begins with ./ or ../) can express the
      submodule's repository location relative to the superproject's origin.
      
      This patch also eliminates a third form of URL, which was relative to the
      superproject's top-level directory (not its repository).  Any URL that was
      neither absolute nor matched ./*|../* was assumed to point to a
      subdirectory of the superproject as the location of the submodule's origin
      repository.  This URL form was confusing and does not seem to correspond
      to an important use-case.  Specifically, no-one has identified the need to
      clone from a repository already in the superproject's tree, but if this is
      needed it is easily done using an absolute URL: $(pwd)/relative-path.  So,
      no functionality is lost with this patch. (t6008-rev-list-submodule.sh did
      rely upon this relative URL, fixed by using $(pwd).)
      
      Following this change, there are exactly four variants of
      submodule-add, as both arguments have two flavors:
      
      URL can be absolute, or can begin with ./|../ and thus names the
      submodule's origin relative to the superproject's origin.
      
      Note: With this patch, "submodule add" discerns an absolute URL as
      matching /*|*:*: e.g., URL begins with /, or it contains a :.  This works
      for all valid URLs, an absolute path in POSIX, as well as an absolute path
      on Windows).
      
      path can either already exist as a valid git repo, or will be cloned from
      the given URL.  The first form here eases creation of a new submodule in
      an existing superproject as the submodule can be added and tested in-tree
      before pushing to the public repository.  However, the more usual form is
      the second, where the repo is cloned from the given URL.
      
      This specifically addresses the issue of
      
      	$ git submodule add a/b/c
      
      attempting to clone from a repository at "a/b/c" to create a new module
      in "c". This also simplifies description of "relative URL" as there is now
      exactly *one* form: a URL relative to the parent's origin repo.
      Signed-off-by: NMark Levedahl <mlevedahl@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ec05df35
    • F
      git-svn: typofix · 8f510bef
      Frederik Schwarzer 提交于
      Signed-off-by: NFrederik Schwarzer <schwarzerf@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8f510bef
    • J
      git-svn: find-rev and rebase for SVN::Mirror repositories · 63c56022
      João Abecasis 提交于
      find-rev and rebase error out on svm because git-svn doesn't trace the
      original svn revision numbers back to git commits. The updated test
      case, included in the patch, shows the issue and passes with the rest of
      the patch applied.
      
      This fixes Git::SVN::find_by_url to find branches based on the
      svm:source URL, where useSvmProps is set. Also makes sure cmd_find_rev
      and working_head_info use the information they have to correctly track
      the source repository. This is enough to get find-rev and rebase
      working.
      Signed-off-by: NJoão Abecasis <joao@abecasis.name>
      Acked-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      63c56022
    • J
      tutorial: clarify "pull" is "fetch + merge" · dc29bc8b
      Junio C Hamano 提交于
      The document says that a fetch with a configured remote stores what are
      fetched in the remote tracking branches "Unlike the longhand form", but
      there is no longhand form "fetch" demonstrated earlier.
      
      This adds a missing demonstration of the longhand form, and a new
      paragraph to explain why some people might want to fetch before pull.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      dc29bc8b
    • I
    • S
      bash completion: Resolve git show ref:path<tab> losing ref: portion · db8a9ff0
      Shawn O. Pearce 提交于
      Linus reported that the bash completion for git show often dropped
      the ref portion of the argument (stuff before the :) when trying
      to complete a file name of a file in another branch or tag.
      
      Björn Steinbrink tracked it down to the gvfs completion script
      which comes standard on many Fedora Core based systems.  That is
      removing : from COMP_WORDBREAKS, making readline treat the entire
      argument (including the ref) as the name that must be completed.
      When the git completion routines supplied a completion of just the
      filename, readline replaced everything.
      
      Since Git users often need to use "ref:path" or "ref:ref" sort of
      arguments, and expect completion support on both sides of the :
      we really want the : in COMP_WORDBREAKS to provide a good user
      experience.  This is also the default that ships with bash as it
      can be useful in other contexts, such as rcp/scp.
      
      We now try to add : back to COMP_WORDBREAKS if it has been removed
      by a script that loaded before us.  However if this doesn't work
      (as the : is stripped after we load) we fallback in the completion
      routines to include "ref:" as part of the prefix for completions,
      allowing readine to fully insert the argument the user wanted.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      db8a9ff0
  3. 14 7月, 2008 11 次提交