mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-24 19:49:43 -05:00
f2ca3d6e8e
Add optional merging functionality to noms commit. noms merge <database> <left-dataset-name> <right-dataset-name> <output-dataset-name> The command above will look in the given Database for the two named Datasets and, if possible, merge their HeadValue()s and commit the result back to <output-dataset-name>. Fixes #2535
Example
cd $GOPATH/src/github.com/attic-labs/noms/samples/go/counter
go build
./counter /tmp/nomsdb::counter
./counter /tmp/nomsdb::counter
./counter /tmp/nomsdb::counter
noms serve /tmp/nomsdb
Then, in a separate shell:
# This starts where the previous count left off because we're serving the same database
./counter http://localhost:8000::counter
# Display the datasets at this server
noms ds http://localhost:8000
# Print the history of the counter dataset
noms log http://localhost:8000::counter