gitzip

package
v0.6.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package gitzip creates ZIP archives of source trees while respecting .gitignore. Three strategies are tried in order:

  1. git archive HEAD — clean git repo; fastest, fully deterministic.
  2. git ls-files — dirty git repo; respects .gitignore on all platforms.
  3. filepath.Walk — non-git directory; uses a built-in skip list.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateZip

func CreateZip(dir, pattern string) (string, error)

CreateZip archives the source tree at dir into a temporary ZIP file and returns its path. pattern is passed to os.CreateTemp (e.g. "supermodel-*.zip"). The caller is responsible for removing the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL