Michael Haggerty
1618033401
ref_transaction_verify(): new function to check a reference's value
...
If NULL is passed to ref_transaction_update()'s new_sha1 parameter,
then just verify old_sha1 (under lock) without trying to change the
new value of the reference.
Use this functionality to add a new function ref_transaction_verify(),
which checks the current value of the reference under lock but doesn't
change it.
Use ref_transaction_verify() in the implementation of "git update-ref
--stdin"'s "verify" command to avoid the awkward need to "update" the
reference to its existing value.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu >
Reviewed-by: Stefan Beller <sbeller@google.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2015-02-17 11:24:59 -08:00
..
2015-01-14 09:32:04 -08:00
2014-07-16 11:10:11 -07:00
2015-02-11 13:44:20 -08:00
2013-12-05 14:13:21 -08:00
2013-08-05 11:32:19 -07:00
2015-02-11 13:44:20 -08:00
2015-01-14 09:32:04 -08:00
2015-02-11 13:44:20 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2014-12-22 09:57:42 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2014-12-29 09:32:45 -08:00
2015-02-17 11:24:20 -08:00
2015-01-14 09:32:04 -08:00
2014-10-16 10:10:41 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2014-10-01 13:56:14 -07:00
2014-08-27 10:42:16 -07:00
2015-01-14 09:32:04 -08:00
2015-02-17 11:22:50 -08:00
2015-01-14 09:32:04 -08:00
2015-02-11 13:44:20 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2014-10-07 11:09:16 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2014-12-22 12:27:41 -08:00
2015-01-14 09:32:04 -08:00
2014-10-13 13:55:27 -07:00
2015-02-11 13:44:20 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2014-12-01 11:33:45 -08:00
2015-01-14 09:32:04 -08:00
2014-10-07 10:49:57 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2013-12-05 14:13:21 -08:00
2014-09-02 11:02:58 -07:00
2015-01-14 09:32:04 -08:00
2014-03-03 14:54:45 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2014-12-29 09:58:25 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2014-06-10 13:09:24 -07:00
2015-01-14 09:32:04 -08:00
2014-10-16 10:10:42 -07:00
2015-02-11 13:43:51 -08:00
2014-10-01 13:56:14 -07:00
2015-02-17 11:23:48 -08:00
2014-12-22 10:11:40 -08:00
2014-10-07 11:09:16 -07:00
2015-02-11 13:44:20 -08:00
2015-01-14 09:32:04 -08:00
2015-02-17 11:22:50 -08:00
2015-01-14 09:32:04 -08:00
2014-10-01 13:56:14 -07:00
2014-06-13 12:09:38 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-07 19:56:44 -08:00
2015-01-14 09:32:04 -08:00
2015-02-11 13:44:20 -08:00
2015-01-14 09:32:04 -08:00
2013-09-06 13:33:17 -07:00
2015-01-14 09:32:04 -08:00
2015-02-17 11:22:50 -08:00
2014-12-09 11:56:37 -08:00
2015-01-14 09:32:04 -08:00
2015-02-17 11:24:59 -08:00
2012-08-22 10:58:29 -07:00
2013-12-05 14:13:21 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2012-08-22 10:58:29 -07:00