Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
8610487c
Commit
8610487c
authored
Jan 23, 2014
by
Linquize
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop parsing pack filename SHA1 part, no one cares the filename
parent
b97e55f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
src/pack.c
+0
-5
src/pack.h
+0
-1
No files found.
src/pack.c
View file @
8610487c
...
...
@@ -997,11 +997,6 @@ int git_packfile_alloc(struct git_pack_file **pack_out, const char *path)
return
-
1
;
}
/* see if we can parse the sha1 oid in the packfile name */
if
(
path_len
<
40
||
git_oid_fromstr
(
&
p
->
sha1
,
path
+
path_len
-
GIT_OID_HEXSZ
)
<
0
)
memset
(
&
p
->
sha1
,
0x0
,
GIT_OID_RAWSZ
);
*
pack_out
=
p
;
return
0
;
...
...
src/pack.h
View file @
8610487c
...
...
@@ -88,7 +88,6 @@ struct git_pack_file {
int
index_version
;
git_time_t
mtime
;
unsigned
pack_local
:
1
,
pack_keep
:
1
,
has_cache
:
1
;
git_oid
sha1
;
git_oidmap
*
idx_cache
;
git_oid
**
oids
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment