Y
Y
yagtec2015-08-06 00:46:38
Python
yagtec, 2015-08-06 00:46:38

How to intercept git messages with Python?

Hey!
Tell me, how can I intercept messages that git sends to the console, so that:
1 . Read what's in the message -- and take action.
2 . Intercept the message itself, and send the extra ones to /dev/null
Ie, for example, I make a
git pull request with a script and if the message " Already up-to-date " arrives,
then do not send it to the console, but intercept and delete it?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Savchuk, 2015-08-06
@yagtec

I don't really understand what "hook and delete" means, but still look in the direction of git hooks .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question