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
e20670f6
Commit
e20670f6
authored
9 years ago
by
Jerome Reybert
Browse files
Options
Downloads
Patches
Plain Diff
doc: add a section about visual selection (fix #33)
parent
cb49cfc1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+12
-0
12 additions, 0 deletions
README.md
doc/vimagit.txt
+13
-0
13 additions, 0 deletions
doc/vimagit.txt
with
25 additions
and
0 deletions
README.md
+
12
−
0
View file @
e20670f6
...
@@ -97,6 +97,18 @@ There are 5 sections:
...
@@ -97,6 +97,18 @@ There are 5 sections:
*
only lines starting with a + sign can be modified
*
only lines starting with a + sign can be modified
*
no line can be deleted
*
no line can be deleted
### Visual selection
It is possible to stage part of hunk, by different ways:
*
By visually selecting some lines, then staging the selection with
**S**
.
*
By marking some lines "to be staged" with
**M**
, then staging these selected lines with
**S**
.
*
Staging individual lines with
**L**
.
Visual selection and marked lines have some limitations for the moment:
*
It only work for "staging", not for "unstaging".
*
Selection/marks must be within a single hunk.
*
Marks not within the hunk currently staged are lost during stage process magit buffer refresh.
### Commands
### Commands
#### magit#show_magit()
#### magit#show_magit()
...
...
This diff is collapsed.
Click to expand it.
doc/vimagit.txt
+
13
−
0
View file @
e20670f6
...
@@ -109,6 +109,19 @@ INLINE MODIFICATIONS *vimagit-inline-modification*
...
@@ -109,6 +109,19 @@ INLINE MODIFICATIONS *vimagit-inline-modification*
* only lines starting with a + sign can be modified
* only lines starting with a + sign can be modified
* no line can be deleted
* no line can be deleted
VISUAL SELECTION *vimagit-visual-selection*
It is possible to stage part of hunk, by different ways:
* By visually selecting some lines, then staging the selection with S.
* By marking some lines "to be staged" with M, then staging these selected
lines with S.
* Staging individual lines with L.
Visual selection and marked lines have some limitations for the moment:
* It only work for "staging", not for "unstaging".
* Selection/marks must be within a single hunk.
* Marks not within the hunk currently staged are lost during stage process magit
buffer refresh.
COMMANDS *vimagit-commands*
COMMANDS *vimagit-commands*
...
...
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