Skip to content

Commit c9e96ab

Browse files
chore: add submodule command to justfile
1 parent 858a39f commit c9e96ab

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ The Python language bindings for the [bitcoindevkit](https://github.com/bitcoind
44

55
See the [package on PyPI](https://pypi.org/project/bdkpython/).
66

7+
# Working with the submodule
8+
9+
This repository uses the bdk-ffi repository as a git submodule. Here are useful tips for working with the submodule:
10+
11+
1. When initially cloning the repo, the `bdk-ffi` submodule will be empty locally. You can intitiate/populate the directory by using the `just submodule-init` command.
12+
2. If you make local changes to the `bdk-ffi` directory while developing and want to hard delete all changes and return to the exact committed version hash of the bdk-ffi repo, use the `just submodule-reset` command.
13+
714
## Local Testing and Usage
815

916
1. Start a Python virtual environment

justfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ clean:
1616
rm -rf ./build/
1717
rm -rf ./dist/
1818

19+
[group("Submodule")]
20+
[doc("Initialize bdk-ffi submodule to committed hash.")]
21+
submodule-init:
22+
git submodule update --init
23+
24+
[group("Submodule")]
25+
[doc("Hard reset the bdk-ffi submodule to committed hash.")]
26+
submodule-reset:
27+
git submodule update --force
28+
1929
[group("Test")]
2030
[doc("Run all tests.")]
2131
test:

0 commit comments

Comments
 (0)