Skip to content

diff code with post-receive git hook  #10

Description

@mandys

Hi,

Thank you for the post-receive git hook for sending out an email notification.

I see the following in email

Summary of changes:
test_file_2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Is it possible to send out an actual diff of code that changed ?

Below is just a random example...

diff --git a/test_file_2 b/test_file_2
index 89a15f8..24db903 100644
--- a/test_file_2
+++ b/test_file_2
@@ -176,7 +176,7 @@ class FacebookService

  •    } elseif(!empty($_POST['signed_request'])) {
    
  •    } elseif(!empty($_POST['signed_request']) && !empty($_POST['appid']) ) {
    

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions