1. 22 6月, 2018 2 次提交
    • J
      pack-bitmap: remove bitmap_git global variable · 3ae5fa07
      Jonathan Tan 提交于
      Remove the bitmap_git global variable. Instead, generate on demand an
      instance of struct bitmap_index for code that needs to access it.
      
      This allows us significant control over the lifetime of instances of
      struct bitmap_index. In particular, packs can now be closed without
      worrying if an unnecessarily long-lived "pack" field in struct
      bitmap_index still points to it.
      
      The bitmap API is also clearer in that we need to first obtain a struct
      bitmap_index, then we use it.
      
      This patch raises two potential issues: (1) memory for the struct
      bitmap_index is allocated without being freed, and (2)
      prepare_bitmap_git() and prepare_bitmap_walk() can reuse a previously
      loaded bitmap. For (1), this will be dealt with in a subsequent patch in
      this patch set that also deals with freeing the contents of the struct
      bitmap_index (which were not freed previously, because they have global
      scope). For (2), current bitmap users only load the bitmap once at most
      (note that pack-objects can use bitmaps or write bitmaps, but not both
      at the same time), so support for reuse has no effect - and future users
      can pass around the struct bitmap_index * obtained if they need to do 2
      or more things with the same bitmap.
      Helped-by: NStefan Beller <sbeller@google.com>
      Signed-off-by: NJonathan Tan <jonathantanmy@google.com>
      Helped-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3ae5fa07
    • J
      Git 2.18 · 53f9a3e1
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      53f9a3e1
  2. 20 6月, 2018 7 次提交
  3. 19 6月, 2018 26 次提交
  4. 18 6月, 2018 2 次提交
    • K
      t3200: clarify description of --set-upstream test · cf317877
      Kaartic Sivaraam 提交于
      Support for the --set-upstream option was removed in 52668846
      (builtin/branch: stop supporting the "--set-upstream" option,
      2017-08-17). The change did not completely remove the command
      due to an issue noted in the commit's log message.
      
      So, a test was added to ensure that a command which uses the
      '--set-upstream' option fails instead of silently acting as an alias
      for the '--set-upstream-to' option due to option parsing features.
      
      To avoid confusion, clarify that the option is disabled intentionally
      in the corresponding test description.
      
      The test is expected to be around as long as we intentionally fail
      on seeing the '--set-upstream' option which in turn we expect to
      do for a period of time after which we can be sure that existing
      users of '--set-upstream' are aware that the option is no
      longer supported.
      Signed-off-by: NKaartic Sivaraam <kaartic.sivaraam@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      cf317877
    • J
      l10n: zh_CN: for git v2.18.0 l10n round 1 to 3 · fd8cb379
      Jiang Xin 提交于
      Translate 251 new messages (3608t0f0u) for git 2.18.0.
      Signed-off-by: NJiang Xin <worldhello.net@gmail.com>
      fd8cb379
  5. 17 6月, 2018 3 次提交