Re: [PATCH] Documentation/git-add.txt: Explain --patch option in layman terms

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] Documentation/git-add.txt: Explain --patch option in layman terms

From: Jari Aalto <hidden>
Date: 2016-06-15 22:47:20

Junio C Hamano [off-list ref] writes:

I apologize if you though I did not read. I did, but I the separate
paragraph order did not meet here as you might have intended.

To recap, your suggestion, if read correct:

    --patch:
    -p::
        Review the difference between the index and the work tree, and add
        modified contents to the index interactively by choosing which
        patch hunks to use.

        Run ``add --interactive``, but bypass the initial command menu and
        directly jump to `patch` subcommand.  See ``Interactive mode'' for
        details.

For more direct first line, howabout:

    --patch:
    -p::
        In a modified work tree, choose interactively which patch hunks to
        add. This gives a change to review the difference between the
        index and the work before adding modified contents to the index.

        This effectively runs ``add --interactive``, but bypass the
        initial command menu and directly jump to `patch` subcommand.
        See ``Interactive mode'' for details.

Jari

Re: [PATCH] Documentation/git-add.txt: Explain --patch option in layman terms

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:20

Jari Aalto [off-list ref] writes:
    --patch:
    -p::
        In a modified work tree, choose interactively which patch hunks to
        add. This gives a change to review the difference between the
        index and the work before adding modified contents to the index.
Sounds sensible.  You may want to be even more direct and succinct, e.g.

    Interactively choose hunks of patch between the index and the work
    tree and add them to the index.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help