path: root/parse-options.c
diff options
authorChristian Couder <>2009-05-27 05:14:09 (GMT)
committerJunio C Hamano <>2009-06-01 00:03:40 (GMT)
commit4e65b538acc97dd853e19a1692893f5fd47043e6 (patch)
treea5860e969726e7dbc19f7ec2f886ff7724692f9a /parse-options.c
parent0f3a5bfd34bfc9f710d6d7d259ad0a38b37a2334 (diff)
t6050: check pushing something based on a replaced commit
When using something like: $ git push $there 04a8c^2:master we need to parse 04a8c to find its second parent and then start discussing what object to send with the other end. "04a8c^2" is a direct user input and should mean the same commit as git show "04a8c^2" would give the user, so it obviously needs to obey the replace rules (making 04a8c parsed), but the object transfer should not look at replace at all. This patch adds some tests to check that the above is working well. Signed-off-by: Christian Couder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'parse-options.c')
0 files changed, 0 insertions, 0 deletions