https://github.com/mrmisra/pvm
https://github.com/mrmisra/pvm
c pvm version-control version-manager
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrmisra/pvm
- Owner: mrmisra
- License: gpl-2.0
- Created: 2025-07-09T15:37:13.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-09T17:02:15.000Z (11 months ago)
- Last Synced: 2025-07-10T01:11:11.661Z (11 months ago)
- Topics: c, pvm, version-control, version-manager
- Language: C
- Homepage:
- Size: 227 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pvm - Simple Version Control Tool
## Overview
pvm is a minimal, C-based version control system inspired by Git. It supports basic repository operations and is designed to be portable across Linux (POSIX) and Windows systems.
## Features
- `init` — Initialize a new repository
- `save` — Stage files for commit (supports recursion and .pvmginore)
- `commit` — Commit staged files (with compression)
- `branch` — List or create branches
- `history` — Show commit history
- `index --git` — Import index, log, and branches from an existing Git repo
## Usage
### Initialize a repository
```
pvm init
```
### Stage files
```
pvm save file1.txt file2.c
pvm save . # Recursively stage all files (respects .pvmginore)
```
### Commit staged files
```
pvm commit -m "Commit message"
```
### List or create branches
```
pvm branch # List branches
pvm branch newbranch # Create a new branch
```
### Show commit history
```
pvm history
```
### Import from Git
```
pvm index --git
```
## .pvmginore
List files or directories to ignore (one per line). Example:
```
*.o
build/
secret.txt
```
## Building
### Linux (POSIX)
- Requires: gcc, make, zlib, git
- Build:
```
make
```
### Windows
- Requires: MinGW or MSVC, zlib, git
- Build with MinGW:
```
mingw32-make
```
## Notes
- Commits are compressed with zlib.
- `pvm` is not compatible with GitHub or the Git protocol.
- For Windows compatibility, some features may require further adaptation.
## License
MIT