[PATCH 00/14] upload-pack: use 'struct upload_pack_data' thoroughly, part 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch series is the third and last part of an effort to move all
static variables in 'upload-pack.c' into 'struct upload_pack_data'.

It is based on 'cc/upload-pack-data-2' which contains "part 2" of this
effort.

There are no static variables left in 'upload-pack.c' after this patch
series. Patch 14/14 is a small refactoring on top which can be left
out.

Thanks to Peff, Jonathan Tan and Stolee who reviewed previous parts of
this.

Christian Couder (14):
  upload-pack: pass upload_pack_data to send_shallow_list()
  upload-pack: pass upload_pack_data to deepen()
  upload-pack: pass upload_pack_data to deepen_by_rev_list()
  upload-pack: pass upload_pack_data to send_unshallow()
  upload-pack: move shallow_nr to upload_pack_data
  upload-pack: move extra_edge_obj to upload_pack_data
  upload-pack: move allow_unadvertised_object_request to
    upload_pack_data
  upload-pack: change allow_unadvertised_object_request to an enum
  upload-pack: pass upload_pack_data to process_haves()
  upload-pack: pass upload_pack_data to send_acks()
  upload-pack: pass upload_pack_data to ok_to_give_up()
  upload-pack: pass upload_pack_data to got_oid()
  upload-pack: move oldest_have to upload_pack_data
  upload-pack: refactor common code into do_got_oid()

 upload-pack.c | 287 ++++++++++++++++++++++----------------------------
 1 file changed, 125 insertions(+), 162 deletions(-)

-- 
2.27.0.90.gabb59f83a2




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux