git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Should "git apply --check" imply verbose?

From
Steven Rostedt <rostedt@goodmis.org>
Date
Aug 20, 2013, 19:15 UTC
Message-ID
<20130820151554.6afbcb7f@gandalf.local.home>
In-Reply-To
<xmqqzjsc5ggp.fsf@gitster.dls.corp.google.com>

On Tue, 20 Aug 2013 12:07:18 -0700 Junio C Hamano <gitster@pobox.com> wrote:

Show 10 quoted lines
> Paul Gortmaker <paul.gortmaker@windriver.com> writes:
> 
> > OK, so given your feedback, how do you feel about a patch to the
> > documentation that indicates to use "-v" in combination with the
> > "--check" to get equivalent "patch --dry-run" behaviour?   If that
> > had existed, I'd have not gone rummaging around in the source, so
> > that should be good enough to help others avoid the same...
> 
> I do not think it is necessarily a good idea to assume that people
> who are learning "git apply" know how GNU patch works.

Linus told me that "git apply" was basically a replacement for patch. Why would you think it would not be a good idea to assume that people would not be familiar with how GNU patch works?

Is it because you expect "git apply" to eventually replace patch all out, and want no dependencies on its knowledge?

-- Steve
Show 12 quoted lines
> 
> But I do agree that the description of -v, --verbose has a lot of
> room for improvement.
> 
> 	Report progress to stderr. By default, only a message about the
> 	current patch being applied will be printed. This option will cause
> 	additional information to be reported.
> 
> It is totally unclear what "additional information" is reported at
> all.
> 
> Thanks.
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 13 in “Should "git apply --check" imply verbose?”
  1. Paul GortmakerAug 20, 2013
  2. Junio C HamanoAug 20, 2013
  3. Paul GortmakerAug 20, 2013
  4. Jonathan NiederAug 20, 2013
  5. Paul GortmakerAug 20, 2013
  6. Junio C HamanoAug 20, 2013
  7. Steven RostedtAug 20, 2013
  8. Junio C HamanoAug 20, 2013
  9. Steven RostedtAug 20, 2013
  10. Paul GortmakerAug 20, 2013
  11. Junio C HamanoAug 20, 2013
  12. Junio C HamanoAug 20, 2013
  13. Steven RostedtAug 20, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.