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
f3a4539d
Commit
f3a4539d
authored
9 years ago
by
Jerome Reybert
Browse files
Options
Downloads
Patches
Plain Diff
autoload/magit/git.vim: always use git_cmd instead of git
parent
61d5e7f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
autoload/magit/git.vim
+3
-3
3 additions, 3 deletions
autoload/magit/git.vim
with
3 additions
and
3 deletions
autoload/magit/git.vim
+
3
−
3
View file @
f3a4539d
...
...
@@ -108,7 +108,7 @@ endfunction
function
!
magit#git#git_diff
(
filename
,
status
,
mode
)
let
dev_null
=
(
a:status
==
'?'
)
?
"/dev/null "
:
""
let
staged_flag
=
(
a:mode
==
'staged'
)
?
"--staged"
:
""
let
git_cmd
=
"
git diff --no-ext-diff "
.
staged_flag
.
let
git_cmd
=
s:
git
_cmd
.
"
diff --no-ext-diff "
.
staged_flag
.
\
" --no-color -p -- "
.
dev_null
.
" "
\
.
a:filename
silent
let
diff_list
=
magit#utils#
systemlist
(
git_cmd
)
...
...
@@ -137,7 +137,7 @@ endfunction
function
!
magit#git#sub_check
(
submodule
,
check_level
)
let
ignore_flag
=
(
a:check_level
==
'modified'
)
?
\
'--ignore-submodules=untracked'
:
''
let
git_cmd
=
"
git status --porcelain "
.
ignore_flag
.
" "
.
a:submodule
let
git_cmd
=
s:
git
_cmd
.
"
status --porcelain "
.
ignore_flag
.
" "
.
a:submodule
return
(
!
empty
(
magit#utils#
systemlist
(
git_cmd
))
)
endfunction
...
...
@@ -148,7 +148,7 @@ endfunction
" param[in] mode: can be staged or unstaged
function
!
magit#git#git_sub_summary
(
filename
,
mode
)
let
staged_flag
=
(
a:mode
==
'staged'
)
?
" --cached "
:
" --files "
let
git_cmd
=
"
git submodule summary "
.
staged_flag
.
" HEAD "
let
git_cmd
=
s:
git
_cmd
.
"
submodule summary "
.
staged_flag
.
" HEAD "
\
.
a:filename
silent
let
diff_list
=
magit#utils#
systemlist
(
git_cmd
)
if
(
empty
(
diff_list
)
)
...
...
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