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
a2d953e5
Commit
a2d953e5
authored
May 12, 2021
by
Dmitry Lobanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branch: git branch upstream with format has been added.
parent
ff78aea6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/branch.c
+2
-2
No files found.
src/branch.c
View file @
a2d953e5
...
@@ -468,7 +468,7 @@ cleanup:
...
@@ -468,7 +468,7 @@ cleanup:
return
error
;
return
error
;
}
}
int
git_branch_upstream_remote
(
git_buf
*
buf
,
git_repository
*
repo
,
const
char
*
refname
)
static
int
git_branch_upstream_with_format
(
git_buf
*
buf
,
git_repository
*
repo
,
const
char
*
refname
,
const
char
*
format
)
{
{
int
error
;
int
error
;
git_config
*
cfg
;
git_config
*
cfg
;
...
@@ -480,7 +480,7 @@ int git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *r
...
@@ -480,7 +480,7 @@ int git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *r
return
error
;
return
error
;
if
((
error
=
git_buf_sanitize
(
buf
))
<
0
||
if
((
error
=
git_buf_sanitize
(
buf
))
<
0
||
(
error
=
retrieve_upstream_configuration
(
buf
,
cfg
,
refname
,
"branch.%s.remote"
))
<
0
)
(
error
=
retrieve_upstream_configuration
(
buf
,
cfg
,
refname
,
format
))
<
0
)
return
error
;
return
error
;
if
(
git_buf_len
(
buf
)
==
0
)
{
if
(
git_buf_len
(
buf
)
==
0
)
{
...
...
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