<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-add.adoc, branch main</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2026-02-06T17:43:26Z</updated>
<entry>
<title>Documentation: update add --force option + ignore=all config</title>
<updated>2026-02-06T17:43:26Z</updated>
<author>
<name>Claus Schneider(Eficode)</name>
<email>claus.schneider@eficode.com</email>
</author>
<published>2026-02-06T13:23:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=6cc6d1b4c699323bc2a76e1a4cfbaede242cbfc8'/>
<id>urn:sha1:6cc6d1b4c699323bc2a76e1a4cfbaede242cbfc8</id>
<content type='text'>
- git-add.adoc: Update the --force documentation for submodule behaviour
  to be added even the given configuration ignore=all.
- gitmodules.adoc and config/submodule.adoc: The submodule config
  ignore=all now need --force in order to update the index.

Signed-off-by: Claus Schneider(Eficode) &lt;claus.schneider@eficode.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add-patch: fully document option P</title>
<updated>2025-10-21T21:35:44Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2025-10-21T18:02:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=301e20da208d23e9ea03d58e1488973c6f1f939a'/>
<id>urn:sha1:301e20da208d23e9ea03d58e1488973c6f1f939a</id>
<content type='text'>
Show option P in the prompt and explain it properly on a dedicated line
in online help and documentation.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add-patch: let options k and K roll over like j and J</title>
<updated>2025-10-06T17:51:42Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2025-10-06T17:22:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=1967b60681256ed452ed70dedf381b5380697901'/>
<id>urn:sha1:1967b60681256ed452ed70dedf381b5380697901</id>
<content type='text'>
Options j and J roll over at the bottom and go to the first undecided
hunk and hunk 1, respectively.  Let options k and K do the same when
they reach the top of the hunk array, so let them go to the last
undecided hunk and the last hunk, respectively, for consistency.  Also
use the same direction-neutral error messages.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add-patch: let options y, n, j, and e roll over to next undecided</title>
<updated>2025-10-06T17:51:42Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2025-10-06T17:21:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=171c1688ccbe5e6d709444a65a5ca2e0a9175b16'/>
<id>urn:sha1:171c1688ccbe5e6d709444a65a5ca2e0a9175b16</id>
<content type='text'>
The options y, n, and e mark the current hunk as decided.  If there's
another undecided hunk towards the bottom of the hunk array they go
there.  If there isn't, but there is another undecided hunk towards the
top then they go to the very first hunk, no matter if it has already
been decided on.

The option j does basically the same move.  Technically it is not
allowed if there's no undecided hunk towards the bottom, but the
variable "permitted" is never reset, so this permission is retained
from the very first hunk.  That may a bug, but this behavior is at
least consistent with y, n, and e and arguably more useful than
refusing to move.

Improve the roll-over behavior of these four options by moving to the
first undecided hunk instead of hunk 1, consistent with what they do
when not rolling over.

Also adjust the error message for j, as it will only be shown if
there's no other undecided hunk in either direction.

Reported-by: Windl, Ulrich &lt;u.windl@ukr.de&gt;
Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add-patch: document that option J rolls over</title>
<updated>2025-10-06T17:51:42Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2025-10-06T17:20:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c309b65a7c8a0dc8a1566ac3587d37d935632e4d'/>
<id>urn:sha1:c309b65a7c8a0dc8a1566ac3587d37d935632e4d</id>
<content type='text'>
The variable "permitted" is not reset after moving to a different hunk,
so it only accumulates permission and doesn't necessarily reflect those
of the current hunk.  This may be a bug, but is actually useful with the
option J, which can be used at the last hunk to roll over to the first
hunk.  Make this particular behavior official.

Also adjust the error message, as it will only be shown if there's just
a single hunk.

Suggested-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add-patch: improve help for options j, J, k, and K</title>
<updated>2025-10-06T17:51:42Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2025-10-06T17:19:23Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=2c3cc43f96f9568d5475e46bd1442c5551129ce8'/>
<id>urn:sha1:2c3cc43f96f9568d5475e46bd1442c5551129ce8</id>
<content type='text'>
The options j, J, k, and K don't affect the status of the current hunk.
They just go to a different one.  This is true whether the current hunk
is undecided or not.  Avoid misunderstanding by no longer mentioning
the current hunk explicitly in their help texts.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: rephrase the purpose of the staging area</title>
<updated>2025-08-29T17:21:08Z</updated>
<author>
<name>Julia Evans</name>
<email>julia@jvns.ca</email>
</author>
<published>2025-08-29T11:55:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e5c27bd3d82c558f4f8ced1f61c28a466232ee21'/>
<id>urn:sha1:e5c27bd3d82c558f4f8ced1f61c28a466232ee21</id>
<content type='text'>
Git does not really "store the contents of the next commit"
anywhere; rather, you the user use the index to prepare it.

Signed-off-by: Julia Evans &lt;julia@jvns.ca&gt;
[jc; made the change relative to what is already in 'next']
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: git-add: simplify discussion of ignored files</title>
<updated>2025-08-19T23:04:54Z</updated>
<author>
<name>Julia Evans</name>
<email>julia@jvns.ca</email>
</author>
<published>2025-08-19T20:46:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=929e112481b4632a6664d7b583bd99b8c590eb1a'/>
<id>urn:sha1:929e112481b4632a6664d7b583bd99b8c590eb1a</id>
<content type='text'>
- Mention the --force option earlier
- Remove the explanation of shell globbing vs git's internal glob
  system, since users are confused by it and there's a clearer
  discussion in the EXAMPLES section.

Signed-off-by: Julia Evans &lt;julia@jvns.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: git-add: clarify intro &amp; add an example</title>
<updated>2025-08-19T23:04:52Z</updated>
<author>
<name>Julia Evans</name>
<email>julia@jvns.ca</email>
</author>
<published>2025-08-19T20:46:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=d14147c0ab84bf4d08adedb4d1a4e99511c56375'/>
<id>urn:sha1:d14147c0ab84bf4d08adedb4d1a4e99511c56375</id>
<content type='text'>
- Add a basic example of how "git add" is normally used
- It's not technically true that you *must* use the `add` command to
  add changes before running `git commit`, because `git commit -a`
  exists. Instead say that you *can* use the `add` command.
- Mention early on that "index" is another word for "staging area",
  since Git very rarely uses the word "index" in its output
  (`git status`) uses the term "staged", and many Git users are
  unfamiliar with the term "index"
- Remove "It typically adds" (it's not clear what "typically" means),
  and instead mention that `git add -p` can be used to add
  partial contents
- Currently the introduction is somewhat repetitive ("to prepare the
  content staged for the next commit" ... "this snapshot that is taken
  as the contents of the next commit."), replace with a single sentence
  ("The "index" [...] is where Git stores the contents of the next
  commit.")

Signed-off-by: Julia Evans &lt;julia@jvns.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add-patch: add diff.context command line overrides</title>
<updated>2025-07-29T15:52:45Z</updated>
<author>
<name>Leon Michalak</name>
<email>leonmichalak6@gmail.com</email>
</author>
<published>2025-07-29T07:01:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=2b3ae04011c3d679ba601c7ef9e20b9dec125ebb'/>
<id>urn:sha1:2b3ae04011c3d679ba601c7ef9e20b9dec125ebb</id>
<content type='text'>
This patch compliments the previous commit, where builtins that use
add-patch infrastructure now respect diff.context and
diff.interHunkContext file configurations.

In particular, this patch helps users who don't want to set persistent
context configurations or just want a way to override them on a one-time
basis, by allowing the relevant builtins to accept corresponding command
line options that override the file configurations.

This mimics commands such as diff and log, which allow for both context
file configuration and command line overrides.

Signed-off-by: Leon Michalak &lt;leonmichalak6@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
