Git development
 help / color / mirror / Atom feed
* reset --merge documentation typo?
@ 2020-06-20 16:15 Solomon Ucko
  2020-06-20 16:59 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Solomon Ucko @ 2020-06-20 16:15 UTC (permalink / raw)
  To: git

Oops, accidentally sent as HTML instead of plain text.

The documentation for `git reset --merge` states:

> Resets the index and updates the files in the working tree that are
> different between `<commit>` and `HEAD`, but keeps those which are
> different between the index and working tree (i.e. which have changes
> which have not been added).
> If a file that is different between `<commit>` and the index has
> unstaged changes, reset is aborted.
>
> In other words, `--merge` does something like a `git read-tree -u -m <commit>`,
> but carries forward unmerged index entries.

Where it says "`HEAD`", should it say "the index"?

Thanks,
Solomon Ucko

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-20 20:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-20 16:15 reset --merge documentation typo? Solomon Ucko
2020-06-20 16:59 ` Junio C Hamano
2020-06-20 20:30   ` Solomon Ucko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox