Skip to content

Workaround for "not enough context to apply patch" #4952

Answered by tarsius
dabrahams asked this question in Q&A
Discussion options

You must be logged in to vote

I mean this (from https://magit.vc/manual/magit/Staging-and-Unstaging.html):

With Magit, on the other hand, one can un-/stage individual hunks by
just moving point into the respective section inside a diff displayed in
the status buffer or a separate diff buffer and typing ‘s’ or ‘u’. To
operate on just parts of a hunk, mark the changes that should be
un-/staged using the region and then press the same key that would be
used to un-/stage. To stage multiple files or hunks at once use a
region that starts inside the heading of such a section and ends inside
the heading of a sibling section of the same type.

Note that while you can stage multiple hunks at once, by marking a region that beg…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@dabrahams
Comment options

@tarsius
Comment options

Answer selected by tarsius
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants