1. 06 3月, 2008 3 次提交
    • D
      specify explicit "--pretty=medium" with `git log/show/whatchanged` · 9225d7be
      Denis Cheng 提交于
      The following patch will introduce a new configuration variable,
      "format.pretty", from then on the pretty format without specifying
      "--pretty" might not be the default "--pretty=medium", it depends on
      the user's config. So all kinds of Shell/Perl/Emacs scripts that needs
      the default medium pretty format must specify it explicitly.
      Signed-off-by: NDenis Cheng <crquan@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9225d7be
    • D
      whatchanged documentation: share description of --pretty with others · 5348337a
      Denis Cheng 提交于
      The documentation had its own description for --pretty and did not
      include pretty-options/formats as documentation for other commands in
      the "log" family did.
      Signed-off-by: NDenis Cheng <crquan@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5348337a
    • J
      fsck.c: fix bogus "empty tree" check · 79b1138e
      Junio C Hamano 提交于
      ba002f3b (builtin-fsck: move common object checking code to fsck.c) did
      more than what it claimed to.  Most notably, it wrongly made an empty tree
      object an error by pretending to only move code from fsck_tree() in
      builtin-fsck.c to fsck_tree() in fsck.c, but in fact adding a bogus check
      to barf on an empty tree.
      
      An empty tree object is _unusual_.  Recent porcelains try reasonably hard
      not to let the user create a commit that contains such a tree.  Perhaps
      warning about them in git-fsck may have some merit.
      
      HOWEVER.
      
      Being unusual and being errorneous are two quite different things.  This
      is especially true now we seem to use the same fsck_$object() code in
      places other than git-fsck itself.  For example, receive-pack should not
      reject unusual objects, even if it would be a good idea to tighten it to
      reject incorrect ones.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      79b1138e
  2. 04 3月, 2008 17 次提交
  3. 03 3月, 2008 20 次提交