Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vimagit
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jreybert
vimagit
Commits
04fe68b3
Commit
04fe68b3
authored
7 years ago
by
Jerome Reybert
Browse files
Options
Downloads
Patches
Plain Diff
cut info lines to remove tail spaces
there are ones if there is no branch
parent
fbb4d05f
Branches
Branches containing commit
Tags
1.7.2
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugin/magit.vim
+6
-6
6 additions, 6 deletions
plugin/magit.vim
with
6 additions
and
6 deletions
plugin/magit.vim
+
6
−
6
View file @
04fe68b3
...
@@ -87,15 +87,15 @@ function! s:mg_get_info()
...
@@ -87,15 +87,15 @@ function! s:mg_get_info()
let
upstream_msg
=
s:mg_cut_str
(
magit#git#get_commit_subject
(
upstream_br
),
limit
)
let
upstream_msg
=
s:mg_cut_str
(
magit#git#get_commit_subject
(
upstream_br
),
limit
)
let
push_msg
=
s:mg_cut_str
(
magit#git#get_commit_subject
(
push_br
),
limit
)
let
push_msg
=
s:mg_cut_str
(
magit#git#get_commit_subject
(
push_br
),
limit
)
let
head_line
=
printf
(
"%-*s %-*s %s"
,
let
head_line
=
magit#utils#strip
(
printf
(
"%-*s %-*s %s"
,
\
align_w
,
g:magit_section_info
.
cur_head
,
\
align_w
,
g:magit_section_info
.
cur_head
,
\
max_br_w
,
head_br
,
head_msg
)
\
max_br_w
,
head_br
,
head_msg
)
)
let
upstream_line
=
printf
(
"%-*s %-*s %s"
,
let
upstream_line
=
magit#utils#strip
(
printf
(
"%-*s %-*s %s"
,
\
align_w
,
g:magit_section_info
.
cur_upstream
,
\
align_w
,
g:magit_section_info
.
cur_upstream
,
\
max_br_w
,
upstream_br
,
upstream_msg
)
\
max_br_w
,
upstream_br
,
upstream_msg
)
)
let
push_line
=
printf
(
"%-*s %-*s %s"
,
let
push_line
=
magit#utils#strip
(
printf
(
"%-*s %-*s %s"
,
\
align_w
,
g:magit_section_info
.
cur_push
,
\
align_w
,
g:magit_section_info
.
cur_push
,
\
max_br_w
,
push_br
,
push_msg
)
\
max_br_w
,
push_br
,
push_msg
)
)
silent
put
=
g:magit_sections
.
info
silent
put
=
g:magit_sections
.
info
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment