OSDN Git Service

Merge branch 'bp/commit-p-editor'
authorJunio C Hamano <gitster@pobox.com>
Fri, 28 Mar 2014 20:51:11 +0000 (13:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Mar 2014 20:51:11 +0000 (13:51 -0700)
When it is not necessary to edit a commit log message (e.g. "git
commit -m" is given a message without specifying "-e"), we used to
disable the spawning of the editor by overriding GIT_EDITOR, but
this means all the uses of the editor, other than to edit the
commit log message, are also affected.

* bp/commit-p-editor:
  run-command: mark run_hook_with_custom_index as deprecated
  merge hook tests: fix and update tests
  merge: fix GIT_EDITOR override for commit hook
  commit: fix patch hunk editing with "commit -p -m"
  test patch hunk editing with "commit -p -m"
  merge hook tests: use 'test_must_fail' instead of '!'
  merge hook tests: fix missing '&&' in test

1  2 
builtin/checkout.c
builtin/commit.c
builtin/gc.c
builtin/merge.c
commit.h

Simple merge
Simple merge
diff --cc builtin/gc.c
Simple merge
diff --cc builtin/merge.c
Simple merge
diff --cc commit.h
Simple merge