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
1022db2b
Commit
1022db2b
authored
May 02, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refdb_fs: Traits are always surrounded by spaces
This makes parsing easier! :p
parent
f69db390
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/refdb_fs.c
+2
-2
src/refs.h
+1
-1
No files found.
src/refdb_fs.c
View file @
1022db2b
...
...
@@ -219,9 +219,9 @@ static int packed_load(refdb_fs_backend *backend)
const
char
*
traits
=
buffer_start
+
strlen
(
traits_header
);
const
char
*
traits_end
=
strchr
(
traits
,
'\n'
);
if
(
strstr
(
traits
,
"
fully-peeled
"
)
!=
NULL
)
{
if
(
strstr
(
traits
,
"
fully-peeled
"
)
!=
NULL
)
{
backend
->
peeling_mode
=
PEELING_FULL
;
}
else
if
(
strstr
(
traits
,
"
peeled
"
)
!=
NULL
)
{
}
else
if
(
strstr
(
traits
,
"
peeled
"
)
!=
NULL
)
{
backend
->
peeling_mode
=
PEELING_STANDARD
;
}
...
...
src/refs.h
View file @
1022db2b
...
...
@@ -26,7 +26,7 @@
#define GIT_SYMREF "ref: "
#define GIT_PACKEDREFS_FILE "packed-refs"
#define GIT_PACKEDREFS_HEADER "# pack-refs with: peeled fully-peeled"
#define GIT_PACKEDREFS_HEADER "# pack-refs with: peeled fully-peeled
"
#define GIT_PACKEDREFS_FILE_MODE 0666
#define GIT_HEAD_FILE "HEAD"
...
...
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