GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - samth/git-slice: Slicing git repositories.

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
tests
tests
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
chop.rkt
chop.rkt
 
 
commit.rkt
commit.rkt
 
 
compute.rkt
compute.rkt
 
 
filter.rkt
filter.rkt
 
 
git.rkt
git.rkt
 
 
info.rkt
info.rkt
 
 
main.rkt
main.rkt
 
 
prune.rkt
prune.rkt
 
 

Repository files navigation

For slicing git repositories

Warning!

This performs permanent modification to your git repository! Be careful.

Installation

raco pkg install git-slice

Sample use:

$ cd my-repo
$ racket -l git-slice subdir

This destructively updates my-repo to only include subdir.

It performs multiple steps, which can be split out as follows:

$ mkdir /path/to/tmp-data
$ cd my-repo
$ racket -l git-slice/compute subdir /path/to/tmp-data
$ racket -l git-slice/filter /path/to/tmp-data
$ racket -l git-slice/chop /path/to/tmp-data

The git-slice/filter and git-slice/chop steps can take a long time. They can be sped up by using a ramdisk: see here for Linux instructions to set one up, and then add -d /tmp/ramdisk/scratch as an additional argument. This is also supported for the git-slice command itself. The provided path must not yet exist.

git-slice can be provided a second argument for a temporary directory to use to store metadata files. If not provided, a temporary directory is created. This directory is not removed after slicing.

The --dry-run command can be provided to any command to see what it would do without doing any permanent damage.

About

Slicing git repositories.

Resources

Readme
Activity

Stars

22 stars

Watchers

3 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.