1. 14 2月, 2009 1 次提交
    • T
      log: do not print ellipses with --abbrev-commit · 7fcda920
      Thomas Rast 提交于
      'git log --abbrev-commit' added an ellipsis to all commit names that
      were abbreviated.  This was particularly annoying if you wanted to
      cut&paste the sha1 from the terminal, since selecting by word would
      pick up '...'  too.
      
      So use find_unique_abbrev() instead of diff_unique_abbrev() in all
      log-related commit sha1 printing routines, and also change the
      formatting of the 'Merge: parent1 parent2' line output via
      pretty_print_commit().
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7fcda920
  2. 13 2月, 2009 6 次提交
  3. 12 2月, 2009 10 次提交
    • J
      Merge branch 'maint' · 30aa4fb1
      Junio C Hamano 提交于
      * maint:
        Prepare for 1.6.1.4.
        Make repack less likely to corrupt repository
        fast-export: ensure we traverse commits in topological order
        Clear the delta base cache if a pack is rebuilt
      
      Conflicts:
      	RelNotes
      30aa4fb1
    • J
      Prepare for 1.6.1.4. · e5887c1b
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e5887c1b
    • J
      Merge branch 'maint-1.6.0' into maint · 7a134dbb
      Junio C Hamano 提交于
      * maint-1.6.0:
        Make repack less likely to corrupt repository
        fast-export: ensure we traverse commits in topological order
        Clear the delta base cache if a pack is rebuilt
      7a134dbb
    • J
      Make repack less likely to corrupt repository · 3e6b1d0a
      Junio C Hamano 提交于
      Some platforms refuse to rename a file that is open.  When repacking an
      already packed repository without adding any new object, the resulting
      pack will contain the same set of objects as an existing pack, and on such
      platforms, a newly created packfile cannot replace the existing one.
      
      The logic detected this issue but did not try hard enough to recover from
      it.  Especially because the files that needs renaming come in pairs, there
      potentially are different failure modes that one can be renamed but the
      others cannot.  Asking manual recovery to end users were error prone.
      
      This patch tries to make it more robust by first making sure all the
      existing files that need to be renamed have been renamed before
      continuing, and attempts to roll back if some failed to rename.
      
      This is based on an initial patch by Robin Rosenberg.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3e6b1d0a
    • E
      fast-export: ensure we traverse commits in topological order · 784f8aff
      Elijah Newren 提交于
      fast-export will only list as parents those commits which have already
      been traversed (making it appear as if merges have been squashed if not
      all parents have been traversed).  To avoid this silent squashing of
      merge commits, we request commits in topological order.
      Signed-off-by: NElijah Newren <newren@gmail.com>
      Acked-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      784f8aff
    • E
      filter-branch: Add more error-handling · 0ea29cce
      Eric Kidd 提交于
      9273b562 (filter-branch: Fix fatal error on bare repositories, 2009-02-03)
      fixed a missing check of return status from an underlying command in
      git-filter-branch, but there still are places that do not check errors.
      For example, the command does not pay attention to the exit status of the
      command given by --commit-filter.  It should abort in such a case.
      
      This attempts to fix all the remaining places that fails to checks errors.
      
      In two places, I've had to break apart pipelines in order to check the
      error code for the first stage of the pipeline, as discussed here:
      
        http://kerneltrap.org/mailarchive/git/2009/1/28/4835614
      
      Feedback on this patch was provided by Johannes Sixt, Johannes Schindelin
      and Junio C Hamano.  Thomas Rast helped with pipeline error handling.
      Signed-off-by: NEric Kidd <git@randomhacks.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0ea29cce
    • P
      Fix contrib/hooks/post-receive-email for new duplicate branch · e5f5050e
      Pat Notz 提交于
      In the show_new_revisions function, the original code:
      
        git rev-parse --not --branches | grep -v $(git rev-parse $refname) |
      
      isn't quite right since one can create a new branch and push it
      without any new commits.  In that case, two refs will have the same
      sha1 but both would get filtered by the 'grep'.  In the end, we'll
      show ALL the history which is not what we want.  Instead, we should
      list the branches by name and remove the branch being updated and THEN
      pass that list through rev-parse.
      
      Revised as suggested by Jakub Narebski and Junio C Hamano to use
      git-for-each-ref instead of git-branch.  (Thanks!)
      Signed-off-by: NPat Notz <pknotz@sandia.gov>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e5f5050e
    • S
      Clear the delta base cache if a pack is rebuilt · fa3a0c94
      Shawn O. Pearce 提交于
      There is some risk that re-opening a regenerated pack file with
      different offsets could leave stale entries within the delta base
      cache that could be matched up against other objects using the same
      "struct packed_git*" and pack offset.
      
      Throwing away the entire delta base cache in this case is safer,
      as we don't have to worry about a recycled "struct packed_git*"
      matching to the wrong base object, resulting in delta apply
      errors while unpacking an object.
      Suggested-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      fa3a0c94
    • J
      Merge git://git.bogomips.org/git-svn · 7b73d828
      Junio C Hamano 提交于
      * git://git.bogomips.org/git-svn:
        test case for regression caused by git-svn empty symlink fix
        git-svn: fix broken symlink workaround when switching branches
        git-svn: Print revision while searching for earliest use of path
        git-svn: abstract out a block into new method other_gs()
        git-svn: allow disabling expensive broken symlink checks
      7b73d828
    • J
      Squelch overzealous "ignoring dangling symref" in an empty repository · 9e5b80cd
      Junio C Hamano 提交于
      057e7138 (Warn use of "origin" when remotes/origin/HEAD is dangling,
      2009-02-08) tried to warn dangling refs/remotes/origin/HEAD only when
      "origin" was used to refer to it.  There was one corner case a symref is
      expected to be dangling and this warning is unwarranted: HEAD in an empty
      repository.
      
      This squelches the warning for this special case.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9e5b80cd
  4. 11 2月, 2009 23 次提交