Merge branch 'mh/write-refs-sooner-2.4' into next
commitf7be074306b8b5761a54a6ca9f394bb8bb5dbdd0
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2015 20:40:16 +0000 (19 13:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2015 20:40:17 +0000 (19 13:40 -0700)
treebcabf97b9d09ec0aae1ec02201e37c6113919f3d
parent26e619b5df59e1817a49407d29428d0f1be6d4a3
parent185ce3a98c07a51c23339a372ba08585517802e6
Merge branch 'mh/write-refs-sooner-2.4' into next

Multi-ref transaction support we merged a few releases ago
unnecessarily kept many file descriptors open, risking to fail with
resource exhaustion.  This is for 2.4.x track.

* mh/write-refs-sooner-2.4:
  ref_transaction_commit(): fix atomicity and avoid fd exhaustion
  ref_transaction_commit(): remove the local flags variable
  ref_transaction_commit(): inline call to write_ref_sha1()
  rename_ref(): inline calls to write_ref_sha1() from this function
  commit_ref_update(): new function, extracted from write_ref_sha1()
  write_ref_to_lockfile(): new function, extracted from write_ref_sha1()
  t7004: rename ULIMIT test prerequisite to ULIMIT_STACK_SIZE
  update-ref: test handling large transactions properly
  ref_transaction_commit(): fix atomicity and avoid fd exhaustion
  ref_transaction_commit(): remove the local flags variable
  ref_transaction_commit(): inline call to write_ref_sha1()
  rename_ref(): inline calls to write_ref_sha1() from this function
  commit_ref_update(): new function, extracted from write_ref_sha1()
  write_ref_to_lockfile(): new function, extracted from write_ref_sha1()
  t7004: rename ULIMIT test prerequisite to ULIMIT_STACK_SIZE
  update-ref: test handling large transactions properly
refs.c
t/t1400-update-ref.sh