File tree Expand file tree Collapse file tree 4 files changed +0
-21
lines changed Expand file tree Collapse file tree 4 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,6 @@ extern int is_bare_repository(void);
398
398
extern int is_inside_git_dir (void );
399
399
extern char * git_work_tree_cfg ;
400
400
extern int is_inside_work_tree (void );
401
- extern int have_git_dir (void );
402
401
extern const char * get_git_dir (void );
403
402
extern int is_git_directory (const char * path );
404
403
extern char * get_object_directory (void );
Original file line number Diff line number Diff line change @@ -155,11 +155,6 @@ int is_bare_repository(void)
155
155
return is_bare_repository_cfg && !get_git_work_tree ();
156
156
}
157
157
158
- int have_git_dir (void )
159
- {
160
- return !!git_dir ;
161
- }
162
-
163
158
const char * get_git_dir (void )
164
159
{
165
160
if (!git_dir )
Original file line number Diff line number Diff line change @@ -947,13 +947,6 @@ static struct ref_cache *get_ref_cache(const char *submodule)
947
947
return refs ;
948
948
}
949
949
950
- void invalidate_ref_cache (const char * submodule )
951
- {
952
- struct ref_cache * refs = get_ref_cache (submodule );
953
- clear_packed_ref_cache (refs );
954
- clear_loose_ref_cache (refs );
955
- }
956
-
957
950
/* The length of a peeled reference line in packed-refs, including EOL: */
958
951
#define PEELED_LINE_LENGTH 42
959
952
Original file line number Diff line number Diff line change @@ -165,14 +165,6 @@ extern void unlock_ref(struct ref_lock *lock);
165
165
/** Writes sha1 into the ref specified by the lock. **/
166
166
extern int write_ref_sha1 (struct ref_lock * lock , const unsigned char * sha1 , const char * msg );
167
167
168
- /*
169
- * Invalidate the reference cache for the specified submodule. Use
170
- * submodule=NULL to invalidate the cache for the main module. This
171
- * function must be called if references are changed via a mechanism
172
- * other than the refs API.
173
- */
174
- extern void invalidate_ref_cache (const char * submodule );
175
-
176
168
/** Setup reflog before using. **/
177
169
int log_ref_setup (const char * ref_name , char * logfile , int bufsize );
178
170
You can’t perform that action at this time.
0 commit comments