commit-checkpoint
v1.0.0
Published
Dump every modified and newly added git file (relative path + full contents) into a single txt file.
Maintainers
Readme
commit-checkpoint
Run one command and get a single txt file containing every modified and newly added file in your git repo — with its relative path and full contents. Zero dependencies.
Install
npm install -g . # from this folder
# or run without installing:
npx commit-checkpointUsage
commit-checkpoint # writes commit-checkpoint.txt at repo root
commit-checkpoint -o changes.txt # custom output name
commit-checkpoint --max-size 500000 # skip files over 500 KBOutput format
================================================================================
FILE: src/deep/new.js
STATUS: new
================================================================================
<full file contents>Notes: deleted files are omitted, binary/oversized files are listed as skipped, .gitignored files are excluded, and the output file never includes itself. Requires git and Node 14+.
API
const { createCheckpoint } = require('commit-checkpoint');
createCheckpoint({ cwd: process.cwd(), output: 'commit-checkpoint.txt' });