# Adding a custom submit tool to git p4

1 messages from 2024-09-03 to 2024-09-03. Participants: faust1002.
Thread: https://gitlist.dev/t/62048

## faust1002, 2024-09-03 19:30

Subject: Adding a custom submit tool to git p4
Message-ID: <CALHxJxG+xdV4T3ZGMTMiHPzOt_Rm1yh9b=-v0RjJHJn0Z=jiZw@mail.gmail.com>
URL: https://gitlist.dev/e/CALHxJxG%2BxdV4T3ZGMTMiHPzOt_Rm1yh9b%3D-v0RjJHJn0Z%3DjiZw%40mail.gmail.com

```
Hello guys,
I hope you don't mind so direct approach.
I work in a company where P4 is used as version control system. As you
can probably guess, it is slow, heavy and works in only 50% of cases.
In the interest of my mental health, I'd like to use git. But again,
direct migration to git is not possible due to the company policy. So
I thought about using git p4 as a substitute. Of course it is not so
easy. Clone / rebase / sync work as expected, but there's a problem
with submit. My company uses its own utility to submit changes instead
of the regular p4 utility (again, the company policy). The issue here
is that git-p4.py has hardcoded "p4" as part of p4_build_cmd function
and there is no way of changing it.
I can prepare a patch to change it (I know that dedicating some of my
free time to something my company will clearly benefit from is a dumb
idea, but I'm kind of desperate here) but before I do anything I have
two questions
1) Will such patch be accepted in the first place? This is quite odd
idea and I wouldn't be surprised if you don't want to agree on it.
2) If the answer is yes, do you have any recommendation regarding the
potential implementation?
Kind regards

```
