aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https/proxy.go
diff options
context:
space:
mode:
authorThomas Rast <trast@inf.ethz.ch>2013-06-20 18:38:28 -0400
committerJunio C Hamano <gitster@pobox.com>2013-06-20 15:51:35 -0700
commitb4dc085a8dc2ec2fb5f6366fa672222b807ed655 (patch)
tree980f8140e6055383ed1ddfa7de86085b7a6e9462 /contrib/persistent-https/proxy.go
parentpull: update unborn branch tip after index (diff)
downloadgit-b4dc085a8dc2ec2fb5f6366fa672222b807ed655.tar.gz
git-b4dc085a8dc2ec2fb5f6366fa672222b807ed655.zip
pull: merge into unborn by fast-forwarding from empty tree
The logic for pulling into an unborn branch was originally designed to be used on a newly-initialized repository (d09e79c, git-pull: allow pulling into an empty repository, 2006-11-16). It thus did not initially deal with uncommitted changes in the unborn branch. The case of an _unstaged_ untracked file was fixed by 4b3ffe5 (pull: do not clobber untracked files on initial pull, 2011-03-25). However, it still clobbered existing staged files, both when the file exists in the merged commit (it will be overwritten), and when it does not (it will be deleted). We fix this by doing a two-way merge, where the "current" side of the merge is an empty tree, and the "target" side is HEAD (already updated to FETCH_HEAD at this point). This amounts to claiming that all work in the index was done vs. an empty tree, and thus all content of the index is precious. Note that this use of read-tree just gives us protection against overwriting index and working tree changes. It will not actually result in a 3-way merge conflict in the index. This is fine, as this is a rare situation, and the conflict would not be interesting anyway (it must, by definition, be an add/add conflict with the whole content conflicting). And it makes it simpler for the user to recover, as they have no HEAD to "git reset" back to. Reported-by: Stefan Schüßler <mail@stefanschuessler.de> Signed-off-by: Thomas Rast <trast@inf.ethz.ch> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https/proxy.go')
0 files changed, 0 insertions, 0 deletions
td>i40e: Use consistent type for vf_idJesse Brandeburg3-9/+10 2016-05-01i40e: PTP - avoid aggregate return warningsJesse Brandeburg1-1/+2 2016-05-01i40e: Fix uninitialized variableCatherine Sullivan1-5/+1 2016-05-01i40evf: RSS Hash Option parametersCarolyn Wyborny1-199/+2 2016-05-01i40e: Remove HMC AQ API implementationNeerav Parikh5-88/+0 2016-05-01i40e: Prevent falling to promiscuous if the VF is not trustedAnjali Singhai Jain1-0/+6 2016-05-01i40e: Limit the number of MAC and VLAN addresses that can be added for VFsAnjali Singhai Jain2-2/+26 2016-05-01tipc: set 'active' state correctly for first established linkJon Paul Maloy1-0/+1 2016-05-01of: of_mdio: Check if MDIO bus controller is availableFlorian Fainelli1-0/+4 2016-05-01i40e: Change the default for VFs to be not privilegedAnjali Singhai Jain1-10/+10 2016-04-29net/mlx5e: Enabling aRFS mechanismMaor Gottlieb4-2/+127 2016-04-29net/mlx5e: Add accelerated RFS supportMaor Gottlieb2-1/+436 2016-04-29net/mlx5e: Create aRFS flow tablesMaor Gottlieb6-14/+313 2016-04-29net/mlx5: Initializing CPU reverse mappingMaor Gottlieb3-0/+24 2016-04-29net/mlx5e: Split the main flow steering tableMaor Gottlieb4-563/+462 2016-04-29net/mlx5e: Refactor mlx5e flow steering structsMaor Gottlieb5-154/+160 2016-04-29net/mlx5: Support different attributes for priorities in namespaceMaor Gottlieb1-12/+19 2016-04-29net/mlx5: Add user chosen levels when allocating flow tablesMaor Gottlieb6-40/+70 2016-04-29net/mlx5: Set number of allowed levels in priorityMaor Gottlieb2-30/+33 2016-04-29net/mlx5: Introduce modify flow rule destinationMaor Gottlieb2-2/+5 2016-04-29net/mlx5e: Direct TIR per RQTariq Toukan4-138/+191 2016-04-29net/mlx5e: Call vxlan_get_rx_port() with rtnl lockMatthew Finlay1-1/+4 2016-04-29net: ethernet: enc28j60: add device tree supportMichael Heimpold2-3/+76 2016-04-29net: ethernet: enc28j60: support half-duplex SPI controllersMichael Heimpold1-5/+9 2016-04-29net: constify is_skb_forwardable's argumentsNikolay Aleksandrov2-2/+3 2016-04-29ppp: add rtnetlink device creation supportGuillaume Nault2-3/+120 2016-04-29ppp: define reusable device creation functionsGuillaume Nault1-88/+118 2016-04-29net: ethernet: stmmac: update MDIO support for GMAC4Alexandre TORGUE1-4/+98 2016-04-29vxlan: fix initialization with custom link parametersJiri Benc1-4/+4 2016-04-29samples/bpf: like LLC also verify and allow redefining CLANG commandJesper Dangaard Brouer2-14/+17 2016-04-29samples/bpf: allow make to be run from samples/bpf/ directoryJesper Dangaard Brouer2-0/+11