Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-chat-message: sharing files #85

Open
brandon1024 opened this issue Oct 7, 2021 · 1 comment
Open

git-chat-message: sharing files #85

brandon1024 opened this issue Oct 7, 2021 · 1 comment

Comments

@brandon1024
Copy link
Owner

If you wanted to share files in git-chat, you would need to encrypt the file yourself, or use git-chat-message -f <file>. This is a bit cluncky, because if you were to git-chat-read the messages, you could get blasted with raw binary data if the file is stored in the commit message.

Instead, we should introduce a new option for including messages with arbitrary files. Here's what I'm thinking:

usage: git chat message [--share-file <file>]

When the --share-file option is used, the file will be encrypted (not in ascii armor) and committed to the repository. The -m and -f options can still be used to compose a message that will included with the file.

When reading messages with git-chat-read, the output should include information on how to read the file.

@brandon1024
Copy link
Owner Author

I originally wanted to store file information (filename, etc) as an additional commit header, but it doesn't look like there's great support for this. Another approach might be through git notes, which are simple refs attached to commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant