-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support an arbitrary glob, not just a suffix
- Loading branch information
Showing
3 changed files
with
39 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ For quick run you need: | |
* After unpacking archive you can run server executing: | ||
|
||
```bash | ||
java -jar build/deploy/git-lfs-migrate.jar -s source-repo.git -d target-repo.git -l http://test:test@lfs-server/ .psd .zip .bin | ||
java -jar build/deploy/git-lfs-migrate.jar -s source-repo.git -d target-repo.git -l http://test:test@lfs-server/ "*.psd" "*.zip" "*.bin" | ||
``` | ||
|
||
For example, you can convert bozaro/git-lfs-migrate to bozaro/git-lfs-migrate-converted by commands: | ||
|
@@ -27,7 +27,7 @@ git clone --mirror [email protected]:bozaro/git-lfs-migrate.git | |
|
||
# Convert repository with moving .md and .jar file to LFS | ||
# | ||
# Usage: <main class> [options] LFS file suffixes | ||
# Usage: <main class> [options] LFS file glob patterns | ||
# Options: | ||
# -c, --cache | ||
# Source repository | ||
|
@@ -56,8 +56,8 @@ java -jar git-lfs-migrate.jar \ | |
-s git-lfs-migrate.git \ | ||
-d git-lfs-migrate-converted.git \ | ||
-g [email protected]:bozaro/git-lfs-migrate-converted.git \ | ||
.md \ | ||
.jar | ||
"*.md" \ | ||
"*.jar" | ||
|
||
# Push coverted repository to new repository | ||
cd git-lfs-migrate-converted.git | ||
|
@@ -101,5 +101,5 @@ call gradlew.bat deployZip | |
When build completes you can convert repository executing: | ||
|
||
```bash | ||
java -jar build/deploy/git-lfs-migrate.jar -s source-repo.git -d target-repo.git -l http://test:test@lfs-server/ .psd .zip .bin | ||
java -jar build/deploy/git-lfs-migrate.jar -s source-repo.git -d target-repo.git -l http://test:test@lfs-server/ "*.psd" "*.zip" "*.bin" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters