Commit Graph

12 Commits

Author SHA1 Message Date
Marc Strapetz
ce1c1c05f5 locking: "locks --verify" supports "--cached"
"locks --verify" can be combined with "--cached" option now in the same
way as for "plain" remote queries.

Cached data is stored in a separate file "path/to/ref/verifiable", next
to the "plain" remote query cache file.

This resolves issue #3252.
2019-03-28 10:12:41 +01:00
Marc Strapetz
b0e7a6fed9 locking: SearchLocksVerifiable should use Client's RemoteRef
Refactor SearchLocksVerifiable to use Client.RemoteRef instead of having
a separate ref parameter. This makes ref-processing more consistent with
other locks-functions.
2019-03-19 17:01:29 +01:00
Marc Strapetz
f85877237d locking: SearchLocksVerifiable allows nil ref
Refactor locks API to allow /locks/verify requests without a ref being
specified
2019-03-19 17:01:29 +01:00
Marc Strapetz
f7c0a5c80b locking: rename locks.VerifiableLocks to SearchLocksVerifiable
SearchLocks and SearchLocksVerifiable are quite similar; also
API is using struct names like "lockVerifiableRequest".
2019-03-19 17:01:29 +01:00
Preben Ingvaldsen
d101bdb605 lfsapi: extract new lfshttp package
Extract more basic http-related functionality out of lfsapi and
into a new package, lfshttp. Everything is currently functional
aside from authorization.
2018-09-11 14:51:29 -07:00
rick olson
3e43ac795d commands: remove internal refUpdate type in favor of git.RefUpdate 2018-01-05 15:22:25 -07:00
rick olson
b714bbf136 remove leftover import from bad partial commit 2017-11-08 15:09:08 -07:00
rick olson
a35d38305d locking: send full refspec in locks/verify request 2017-11-08 15:04:40 -07:00
rick olson
c9311e62c1 config: add PushRemote() for checking branch.*.pushRemote and remote.pushDefault first 2017-11-03 10:36:12 -06:00
rick olson
9064b637c2 commands: verify locks on all pushed refs 2017-11-02 14:11:45 -06:00
rick olson
8a1b0fb997 commands: move lock verification for refs 2017-11-02 12:55:44 -06:00
rick olson
30d5ce83e5 commands: extract lockVerifier from uploadContext 2017-11-01 17:35:43 -06:00