1. 29 Feb, 2012 1 commit
    • Junio C Hamano's avatar
      pickaxe: allow -i to search in patch case-insensitively · accccde4
      Junio C Hamano authored
      "git log -S<string>" is a useful way to find the last commit in the
      codebase that touched the <string>. As it was designed to be used by a
      porcelain script to dig the history starting from a block of text that
      appear in the starting commit, it never had to look for anything but an
      exact match.
      
      When used by an end user who wants to look for the last commit that
      removed a string (e.g. name of a variable) that he vaguely remembers,
      however, it is useful to support case insensitive match.
      
      When given the "--regexp-ignore-case" (or "-i") option, which originally
      was designed to affect case sensitivity of the search done in the commit
      log part, e.g. "log --grep", the matches made with -S/-G pickaxe search is
      done case insensitively now.
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      accccde4
  2. 28 Feb, 2012 1 commit
    • Junio C Hamano's avatar
      grep: use static trans-case table · 0f871cf5
      Junio C Hamano authored
      In order to prepare the kwset machinery for a case-insensitive search, we
      used to use a static table of 256 elements and filled it every time before
      calling kwsalloc().  Because the kwset machinery will never modify this
      table, just allocate a single instance globally and fill it at the compile
      time.
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      0f871cf5
  3. 06 Feb, 2012 4 commits
  4. 18 Jan, 2012 4 commits
  5. 13 Jan, 2012 6 commits
    • Junio C Hamano's avatar
      Update draft release notes to 1.7.8.4 · ab8a7808
      Junio C Hamano authored
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      ab8a7808
    • Junio C Hamano's avatar
      Merge branch 'maint-1.7.7' into maint · 5a6a9394
      Junio C Hamano authored
      * maint-1.7.7:
        Update draft release notes to 1.7.7.6
        Update draft release notes to 1.7.6.6
        thin-pack: try harder to use preferred base objects as base
      5a6a9394
    • Junio C Hamano's avatar
      Update draft release notes to 1.7.7.6 · 8f83acf7
      Junio C Hamano authored
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      8f83acf7
    • Junio C Hamano's avatar
      Merge branch 'maint-1.7.6' into maint-1.7.7 · 901c907d
      Junio C Hamano authored
      * maint-1.7.6:
        Update draft release notes to 1.7.6.6
        thin-pack: try harder to use preferred base objects as base
      901c907d
    • Junio C Hamano's avatar
      Update draft release notes to 1.7.6.6 · 04f6785a
      Junio C Hamano authored
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      04f6785a
    • Jeff King's avatar
      thin-pack: try harder to use preferred base objects as base · 15f07e06
      Jeff King authored
      When creating a pack using objects that reside in existing packs, we try
      to avoid recomputing futile delta between an object (trg) and a candidate
      for its base object (src) if they are stored in the same packfile, and trg
      is not recorded as a delta already. This heuristics makes sense because it
      is likely that we tried to express trg as a delta based on src but it did
      not produce a good delta when we created the existing pack.
      
      As the pack heuristics prefer producing delta to remove data, and Linus's
      law dictates that the size of a file grows over time, we tend to record
      the newest version of the file as inflated, and older ones as delta
      against it.
      
      When creating a thin-pack to transfer recent history, it is likely that we
      will try to send an object that is recorded in full, as it is newer.  But
      the heuristics to avoid recomputing futile delta effectively forbids us
      from attempting to express such an object as a delta based on another
      object. Sending an object in full is often more expensive than sending a
      suboptimal delta based on other objects, and it is even more so if we
      could use an object we know the receiving end already has (i.e. preferred
      base object) as the delta base.
      
      Tweak the recomputation avoidance logic, so that we do not punt on
      computing delta against a preferred base object.
      
      The effect of this change can be seen on two simulated upload-pack
      workloads. The first is based on 44 reflog entries from my git.git
      origin/master reflog, and represents the packs that kernel.org sent me git
      updates for the past month or two. The second workload represents much
      larger fetches, going from git's v1.0.0 tag to v1.1.0, then v1.1.0 to
      v1.2.0, and so on.
      
      The table below shows the average generated pack size and the average CPU
      time consumed for each dataset, both before and after the patch:
      
                        dataset
                  | reflog | tags
      ---------------------------------
           before | 53358  | 2750977
      size  after | 32398  | 2668479
           change |   -39% |      -3%
      ---------------------------------
           before |  0.18  | 1.12
      CPU   after |  0.18  | 1.15
           change |    +0% |      +3%
      
      This patch makes a much bigger difference for packs with a shorter slice
      of history (since its effect is seen at the boundaries of the pack) though
      it has some benefit even for larger packs.
      Signed-off-by: default avatarJeff King <peff@peff.net>
      Acked-by: Nicolas Pitre's avatarNicolas Pitre <nico@fluxnic.net>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      15f07e06
  6. 12 Jan, 2012 3 commits
  7. 11 Jan, 2012 1 commit
  8. 10 Jan, 2012 10 commits
  9. 09 Jan, 2012 1 commit
  10. 06 Jan, 2012 5 commits
  11. 04 Jan, 2012 3 commits
  12. 03 Jan, 2012 1 commit
    • Junio C Hamano's avatar
      Merge branch 'maint-1.7.7' into maint · bc0fe84b
      Junio C Hamano authored
      * maint-1.7.7:
        docs: describe behavior of relative submodule URLs
        Documentation: read-tree --prefix works with existing subtrees
        Add MYMETA.json to perl/.gitignore
      bc0fe84b