sha1_name: convert GET_SHA1* flags to GET_OID*
Convert the flags for get_oid_with_context and friends to use "OID" instead of "SHA1" in their names. This transform was made by running the following one-liner on the affected files: perl -pi -e 's/GET_SHA1/GET_OID/g' Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
e82caf384b
commit
321c89bf5f
28
cache.h
28
cache.h
@ -1283,27 +1283,27 @@ struct object_context {
|
||||
*/
|
||||
struct strbuf symlink_path;
|
||||
/*
|
||||
* If GET_SHA1_RECORD_PATH is set, this will record path (if any)
|
||||
* If GET_OID_RECORD_PATH is set, this will record path (if any)
|
||||
* found when resolving the name. The caller is responsible for
|
||||
* releasing the memory.
|
||||
*/
|
||||
char *path;
|
||||
};
|
||||
|
||||
#define GET_SHA1_QUIETLY 01
|
||||
#define GET_SHA1_COMMIT 02
|
||||
#define GET_SHA1_COMMITTISH 04
|
||||
#define GET_SHA1_TREE 010
|
||||
#define GET_SHA1_TREEISH 020
|
||||
#define GET_SHA1_BLOB 040
|
||||
#define GET_SHA1_FOLLOW_SYMLINKS 0100
|
||||
#define GET_SHA1_RECORD_PATH 0200
|
||||
#define GET_SHA1_ONLY_TO_DIE 04000
|
||||
#define GET_OID_QUIETLY 01
|
||||
#define GET_OID_COMMIT 02
|
||||
#define GET_OID_COMMITTISH 04
|
||||
#define GET_OID_TREE 010
|
||||
#define GET_OID_TREEISH 020
|
||||
#define GET_OID_BLOB 040
|
||||
#define GET_OID_FOLLOW_SYMLINKS 0100
|
||||
#define GET_OID_RECORD_PATH 0200
|
||||
#define GET_OID_ONLY_TO_DIE 04000
|
||||
|
||||
#define GET_SHA1_DISAMBIGUATORS \
|
||||
(GET_SHA1_COMMIT | GET_SHA1_COMMITTISH | \
|
||||
GET_SHA1_TREE | GET_SHA1_TREEISH | \
|
||||
GET_SHA1_BLOB)
|
||||
#define GET_OID_DISAMBIGUATORS \
|
||||
(GET_OID_COMMIT | GET_OID_COMMITTISH | \
|
||||
GET_OID_TREE | GET_OID_TREEISH | \
|
||||
GET_OID_BLOB)
|
||||
|
||||
extern int get_oid(const char *str, struct object_id *oid);
|
||||
extern int get_oid_commit(const char *str, struct object_id *oid);
|
||||
|
||||
Reference in New Issue
Block a user