AGWA / AGWA/git-crypt

git-crypt breaks git partial staging

Open
#178 1 comment 10 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
9.9k
Forks
544
PR merge metrics
No merged PRs in 30d

Description

The problems can be reproduced like this:
- from command line: 'git add -p' -> Only binary files changed.
- from git gui: right-click -> 'stage lines for commit' is greyed out

The problem seems to be that if a file is encrypted, it is seen as binary, and patch staging only works for text files so git can only stage the full file.
Maybe this is intrinsic to how git-crypt works, but maybe there are workarounds, maybe something can be done changing settings in .gitattributes?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.