# git commands for 3rd-party commit/update hooks

1 messages from 2008-09-11 to 2008-09-11. Participants: Pavel Sanda.
Thread: https://gitlist.dev/t/15484

## Pavel Sanda, 2008-09-11 01:22

Subject: git commands for 3rd-party commit/update hooks
Message-ID: <20080911012247.GB11362@atrey.karlin.mff.cuni.cz>
URL: https://gitlist.dev/e/20080911012247.GB11362%40atrey.karlin.mff.cuni.cz

```
hi,
please can you help me to figure out, whether the following task can
be accomplished by git?

imagine that:
1. user configures rcs in two different modes:
a) working in private
b) sharing work via some public repo

2. after configuration all rcs communication goes through some 3rd
   party tool which API knows only commit and update(/merge) hooks.

all docs on git i have seen divide the workflow into the local part
eg. git commit and the sharing part eg. git pull/push.

is it somehow doable with git that after appropriate setup i will
get single git command for each commiting/updating operation
regardless of 1a or 1b scenario? something which can be stuffed
into that 3rd-party as external commands for rcs commit/update while
keeping it oblivious whether the work is stored locally or on some 
remote place.

thanks,
pavel

```
