{"thread":{"id":"9621","subject":"git log vs git diff vs --name-status","startedAt":"2007-08-23T08:43:15Z","lastAt":"2007-08-24T08:58:19Z","messageCount":4,"participants":["VMiklos","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"51344","messageId":"20070823084315.GA31174@genesis.frugalware.org","threadId":"9621","inReplyTo":null,"subject":"git log vs git diff vs --name-status","fromName":"VMiklos","fromEmail":"vmiklos@frugalware.org","sentAt":"2007-08-23T08:43:15Z","receivedAt":"2007-08-23T08:43:15Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"hi,\n\n$ git diff HEAD --name-status\nM       dir/foo1\n\nthen i commit this change, and git log says:\n\n$ git log --name-status -1\ncommit c9128f447c614d5b085286d9d7e84a643fbaea92\nAuthor: VMiklos <vmiklos@frugalware.org>\nDate:   Thu Aug 23 10:41:38 2007 +0200\n\n    foo\n\nM       dir\n\nonly. no /foo1. also is the file is dir/subdir/file1, then only \"M dir\"\nis shown. is this inconsistency expected?\n\nyes, i know that using --stats this problem could go away, but i speak\nabout --name-status\n\nthanks,\n- VMiklos\n"},{"id":"51345","messageId":"20070823084512.GB31174@genesis.frugalware.org","threadId":"9621","inReplyTo":"20070823084315.GA31174@genesis.frugalware.org","subject":"Re: git log vs git diff vs --name-status","fromName":"VMiklos","fromEmail":"vmiklos@frugalware.org","sentAt":"2007-08-23T08:45:12Z","receivedAt":"2007-08-23T08:45:12Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"Hello,\n\nNa Thu, Aug 23, 2007 at 10:43:15AM +0200, VMiklos <vmiklos@frugalware.org> pisal(a):\n> M       dir\n\nsorry, i needed the -r option\n\n- VMiklos\n"},{"id":"51355","messageId":"7vr6lutx1p.fsf@gitster.siamese.dyndns.org","threadId":"9621","inReplyTo":"20070823084512.GB31174@genesis.frugalware.org","subject":"Re: git log vs git diff vs --name-status","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-08-23T09:33:38Z","receivedAt":"2007-08-23T09:33:38Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"VMiklos <vmiklos@frugalware.org> writes:\n\n> Na Thu, Aug 23, 2007 at 10:43:15AM +0200, VMiklos <vmiklos@frugalware.org> pisal(a):\n>> M       dir\n>\n> sorry, i needed the -r option\n\nI know.\n\nI've been debating myself if --name-status should imply -r\n(recursive behaviour) for \"git log\".  More specifically, I think\na reasonable guiding principles would be something like:\n\n * Anything that looks at the file contents level change (that\n   is, -p, --stat and --numstat) should always imply recursive;\n\n * Anything that is Porcelain should always imply recursive.\n\nI am fairly certain about the first one, but not absolutely sure\nabout the latter.  The first principle does not justify making\nyour example to recurse, but the second, if we accept it, would.\n"},{"id":"51435","messageId":"20070824085819.GM31174@genesis.frugalware.org","threadId":"9621","inReplyTo":"7vr6lutx1p.fsf@gitster.siamese.dyndns.org","subject":"Re: git log vs git diff vs --name-status","fromName":"VMiklos","fromEmail":"vmiklos@frugalware.org","sentAt":"2007-08-24T08:58:19Z","receivedAt":"2007-08-24T08:58:19Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"Hello,\n\nNa Thu, Aug 23, 2007 at 02:33:38AM -0700, Junio C Hamano <gitster@pobox.com> pisal(a):\n>  * Anything that is Porcelain should always imply recursive.\n> \n> I am fairly certain about the first one, but not absolutely sure\n> about the latter.  The first principle does not justify making\n> your example to recurse, but the second, if we accept it, would.\n\nwell, i'm not one who should decide this, but i like the idea, i see no\ncase when not implying recursive in the Porcelain layer can be useful\n\n- VMiklos\n"}]}