1. 12 3月, 2012 2 次提交
    • J
      commit: pass author/committer info to hooks · 7dfe8ad6
      Junio C Hamano 提交于
      When lying the author name via GIT_AUTHOR_NAME environment variable
      to "git commit", the hooks run by the command saw it and could act
      on the name that will be recorded in the final commit. When the user
      uses the "--author" option from the command line, the command should
      give the same information to the hook, and back when "git command"
      was a scripted Porcelain, it did set the environment variable and
      hooks can learn the author name from it.
      
      However, when the command was reimplemented in C, the rewritten code
      was not very faithful to the original, and hooks stopped getting the
      authorship information given with "--author".  Fix this by exporting
      the necessary environment variables.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7dfe8ad6
    • J
      t7503: does pre-commit-hook learn authorship? · 04861982
      Junio C Hamano 提交于
      When "--author" option is used to lie the authorship to "git commit"
      command, hooks should learn the author name and email just like when
      GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL environment variables are used
      to lie the authorship.  Test this.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      04861982
  2. 11 3月, 2012 1 次提交
    • J
      ident.c: add split_ident_line() to parse formatted ident line · 4b340cfa
      Junio C Hamano 提交于
      The commit formatting logic format_person_part() in pretty.c
      implements the logic to split an author/committer ident line into
      its parts, intermixed with logic to compute its output using these
      piece it computes.
      
      Separate the former out to a helper function split_ident_line() so
      that other codepath can use the same logic, and rewrite the function
      using the helper function.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4b340cfa
  3. 07 3月, 2012 4 次提交
  4. 06 3月, 2012 4 次提交
  5. 05 3月, 2012 9 次提交
  6. 03 3月, 2012 4 次提交
  7. 02 3月, 2012 1 次提交
  8. 29 2月, 2012 4 次提交
  9. 28 2月, 2012 10 次提交
  10. 27 2月, 2012 1 次提交