1. 27 11月, 2017 3 次提交
  2. 26 11月, 2017 1 次提交
  3. 21 11月, 2017 9 次提交
  4. 15 11月, 2017 24 次提交
  5. 13 11月, 2017 3 次提交
    • J
      link_alt_odb_entries: make empty input a noop · f28e3668
      Jeff King 提交于
      If an empty string is passed to link_alt_odb_entries(), our
      loop finds no entries and we link nothing. But we still do
      some preparatory work to normalize the object directory
      path, even though we'll never look at the result. This
      triggers in basically every git process, since we feed the
      usually-empty ALTERNATE_DB_ENVIRONMENT to the function.
      
      Let's detect early that there's nothing to do and return.
      While we're at it, let's treat NULL the same as an empty
      string as a favor to our callers. That saves
      prepare_alt_odb() from having to cover this case.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f28e3668
    • C
      grep: fix NO_LIBPCRE1_JIT to fully disable JIT · 2fff1e19
      Charles Bailey 提交于
      If you have a pcre1 library which is compiled with JIT enabled then
      PCRE_STUDY_JIT_COMPILE will be defined whether or not the
      NO_LIBPCRE1_JIT configuration is set.
      
      This means that we enable JIT functionality when calling pcre_study
      even if NO_LIBPCRE1_JIT has been explicitly set and we just use plain
      pcre_exec later.
      
      Fix this by using own macro (GIT_PCRE_STUDY_JIT_COMPILE) which we set to
      PCRE_STUDY_JIT_COMPILE only if NO_LIBPCRE1_JIT is not set and define to
      0 otherwise, as before.
      Reviewed-by: NÆvar Arnfjörð Bjarmason <avarab@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2fff1e19
    • C
      t4201: make use of abbreviation in the test more robust · 5555a2aa
      Charles Bailey 提交于
      The test for '--abbrev' in t4201-shortlog.sh assumes that the commits
      generated in the test can always be uniquely abbreviated to 5 hex digits
      but this is not always the case. If you were unlucky and happened to run
      the test at (say) Thu Jun 22 03:04:49 2017 +0000, you would find that
      the first commit generated would collide with a tree object created
      later in the same test.
      
      This can be simulated in the version of t4201-shortlog.sh prior to this
      commit by setting GIT_COMMITTER_DATE and GIT_AUTHOR_DATE to 1498100689
      after sourcing test-lib.sh.
      
      Change the test to test --abbrev=35 instead of --abbrev=5 to almost
      completely avoid the possibility of a partial collision and add a call
      to test_tick in the setup to make the test repeatable (the latter alone
      is sufficient to make it robust enough).
      Signed-off-by: NCharles Bailey <cbailey32@bloomberg.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5555a2aa