I have a online repository hosted at Bitbucket but one of the developers has Internet connection problems and most of the time can't connect to the repository. In order to mantain the same code at repository and shared between developers I think in create patch and send him trough email. Since him and I use SmartGit client it's possible to create and apply patch from SmartGit? I read the docs but didn't find any helpful, any advice on this? I don't know if Git Flow feature is the solution
This seems to be supported from version 6.5 of SmartGit. Here's the changelog: https://www.syntevo.com/smartgit/changelog-6.5.x.txt (under SmartGit 6.5 preview 1)
The following steps worked fine for me.
Creating a patch:
- Open the Log
- Pick a branch and right-click on a commit
- Select "Format patch..." and save the file
Applying a patch:
- Open the Log
- Go to "Tools" and then "Apply patch..."
- Select the patch
The patch will be applied on the branch that is currently checked out.
Looks like as of SmartGit 22.1 the Format Patch feature is gone again. Thankfully they have it as an example tool on their website: https://docs.syntevo.com/SmartGit/22.1/Example-Tools.html#format-patch
Save this content to a file
format-patch.yml
and use the Import button on the Tools page of the preferences to restore the Format Patch feature from SmartGit versions < 22.1.tools: - name: Format Patch fileStarter: {command: '${git}', parameters: 'format-patch -o "${dirSelect}" -1 ${commit}'} useForOpen: false waitUntilFinished: true filePattern: '*' - name: Format Patch fileStarter: {command: '${git}', parameters: 'format-patch -o "${dirSelect}" ${commit}..${commit2}'} useForOpen: false waitUntilFinished: true filePattern: '*'
format-patch.yml
? –
Employ I asked the SmartGit support team whether they implemented git format-patch
in the GUI or not. I got the following answer:
No. If it needs a selected commit, it also cannot be worked around using external tools.
To add Apply patch
feature, create a file apply-patch.yml
with contents
tools:
- name: Apply Patch
fileStarter: {command: '${git}', parameters: 'apply "${fileOpen}"'}
useForOpen: false
waitUntilFinished: true
filePattern: '*'
.. and Import
it to SmartGit in Edit > Preferences > Tools.
© 2022 - 2025 — McMap. All rights reserved.