threads / discuss / 15484

git commands for 3rd-party commit/update hooks

Subject: git commands for 3rd-party commit/update hooks

## tl;dr

One message between Sep 11, 2008 and Sep 11, 2008.

replies: 0people: 1as markdown or json

Pavel Sanda· Sep 11, 2008, 01:22 UTC · lore

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

← back to recent threads