Skip to content

A python script wrapper for git-archive that archives a git superproject and its submodules, if it has any. Takes into account .gitattributes

Notifications You must be signed in to change notification settings

cyberoot/git-archive-all

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Creates archive from the current state using git ls-files --cached --full-name --no-empty-directory. Supports for any level of submodules tree. Files from submodules are extracted using the same command.

License: MIT

Usage: git-archive-all [-v] [--prefix PREFIX] [--no-exclude] [--force-submodules] [--dry-run] OUTPUT_FILE

Options:

--version Show program's version number and exit.

-h, --help Show this help message and exit.

--repo Specify working git repo directory or remote repo url.

--revision Specify revision or branch to export.

--prefix=PREFIX Prepend PREFIX to each filename in the archive. OUTPUT_FILE name is used by default to avoid tarbomb.

--force-submodules Force a git submodule init && git submodule update at each level before iterating submodules

-v, --verbose Enable verbose mode.

--no-exclude Don't read .gitattributes files for patterns containing export-ignore attributes.

--dry-run Don't actually archive anything, just show what would be done.

About

A python script wrapper for git-archive that archives a git superproject and its submodules, if it has any. Takes into account .gitattributes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%