How brandon1024/gitchat works
git-chat is a command-line messaging application that stores channel conversations as Git commits and encrypts message text with GnuPG. The principal workflow is to compose a message, encrypt it, commit it on the current channel, publish it through Git, and later read messages; joining a channel involves importing public keys. The README documents channel management, configuration, and initialization as additional capabilities. Some command implementations were not sampled, so edges for those operations are limited to documented behavior; dashed edges mark relationships whose implementation was not verified.
Main entry points: git-chat.c Command dispatcher · message.c Compose message · init.c Initialize space · gpg-common.c GPG context
Components 23
CLI commands
- Command dispatcher
src/git-chat.c - Initialize space
src/builtin/init.c - Manage channels
src/builtin/channel-create.c - List channels
src/builtin/channel-list.c - Import keys
src/builtin/import-key.c - Compose message
src/builtin/message.c - Read messages
src/builtin/read.c - Manage config
src/builtin/config.c
Conversation and Git
- Git repository
- Git operations
src/git/git.c - Commit handling
src/git/commit.c - History traversal
src/git/graph-traversal.c - Stage files
src/git/index.c
Keys and encryption
- Channel key files
src/gnupg/key-manager.c - GPG context
src/gnupg/gpg-common.c - Encrypt messages
src/gnupg/encryption.c - Decrypt messages
src/gnupg/decryption.c
Configuration and runtime
- Parse config
src/config/parse-config.c - Config data
src/config/config-data.c - Run subprocesses
src/run-command.c - Parse options
src/parse-options.c
Other components
- CLI user
- Git upstream
Connections 35
- CLI user → Command dispatcher: runs commands
- Command dispatcher → Initialize space: dispatches
- Command dispatcher → Manage channels: dispatches
- Command dispatcher → List channels: dispatches
- Command dispatcher → Import keys: dispatches
- Command dispatcher → Compose message: dispatches
- Command dispatcher → Read messages: dispatches
- Command dispatcher → Manage config: dispatches
- Initialize space → Git repository: initializes
- Manage channels → Git repository: manages branches
- List channels → Git repository: lists refs
src/builtin/channel-list.c - Import keys → Channel key files: imports keys
- Import keys → Git repository: commits public keys
- Compose message → Encrypt messages: encrypts text
- Compose message → Commit handling: commits message
- Read messages → History traversal: reads history
- Read messages → Decrypt messages: decrypts messages
- Commit handling → Git repository: writes commits
- Git repository → Git upstream: pushes commits
- Git upstream → Git repository: pulls updates
- Manage config → Parse config: reads or writes
- Parse config → Config data: parses data
src/config/parse-config.c - Initialize space → Git operations: invokes Git
src/builtin/init.c - Initialize space → Stage files: stages files
src/builtin/init.c - Compose message → History traversal: traverses commits
src/builtin/message.c - Compose message → Channel key files: uses recipient keys
src/builtin/message.c - Compose message → GPG context: uses GPG
src/builtin/message.c - Encrypt messages → GPG context: uses context
src/gnupg/encryption.c - Decrypt messages → GPG context: uses context
- Channel key files → GPG context: manages keyring
src/gnupg/key-manager.c - Initialize space → Parse config: sets up config
src/builtin/init.c - Initialize space → Run subprocesses: runs subprocesses
src/builtin/init.c - Compose message → Run subprocesses: runs subprocesses
src/builtin/message.c - List channels → Run subprocesses: captures Git output
src/builtin/channel-list.c - Compose message → Parse options: parses options
src/builtin/message.c