Let the user merge branches. - #141
Conversation
iGEL
commented
Feb 12, 2018
Does this also help with |
tobiasBora
commented
Feb 12, 2018
via email
I'm sorry, put my patch seems to work with git merge, with the mergetools, ans with cherry-picking, but patching seems to be another problem. It looks like that there is no way to create a custom "patch" command thar overwrite the default behaviour, but it may be possible to write a custom script that do the sane thing, maybe by temporary jumping to a temp uncrypted git project, run the git add here, copy the file in the current folder, stash it, and replace it with the new version, but I'm not sure that there no better way to proceed… Sorry. |
iGEL
commented
Feb 12, 2018
Thank you for the reply 👍 |
ericamador
commented
May 15, 2018
Will either this or #107 get merged at some point? |
git-crypt is basically unusable without this. Is there any reason @AGWA this never has been merged? |
plup
commented
Nov 3, 2018
I tested this PR with the following process: Initiate a repo with git-crypt: Create a second local repo: Make modification in both local repos: Try to merge: So yeah, it works ! But this requires to start from a fresh repository as the script Thanks @tobiasBora |
| if (access(state_mergetool_path.c_str(), F_OK) != 0) { | ||
| std::ofstream state_mergetool_file(state_mergetool_path.c_str()); | ||
| // |--------------------------------------------------------------------------------| 80 chars | ||
| state_mergetool_file << "#!/usr/bin/env bash\n"; |
There was a problem hiding this comment.
Please use /bin/sh instead of /usr/bin/env bash for better compatibility – not every system ships bash by default. /bin/sh exists on every *nix system, it’s defined by POSIX, and this script is compatible with POSIX shell.
joaosa
commented
Jan 26, 2021
I know it's been a while, but is there any chance this could be merged provided the issue above gets fixed? :) |
Quentin-M
commented
Feb 22, 2021
There's also #180 |
A pretty simple pull request that let the user merge branches. This should correct this bug: #140