git-update-index-keeping-only - rm all but matching files from Git index. (Helps git-filter-branch.)

Property Value
Distribution ALT Linux Sisyphus
Repository Classic noarch
Package name git-update-index-keeping-only
Package version 0.3
Package release alt1
Package architecture noarch
Package type rpm
Installed size 3.66 KB
Download size 3.66 KB
Official Mirror
- A simple executable script that removes all but matching files from
Git index. It is a useful helper for git-filter-branch --index-filter
(for convenience, git-filter-only-files script is included). It is
implemented on top of git-rm. It takes the list of files to keep on stdin.
git-filter-only-files OLD_COMMIT NEW_BRANCH
- A wrapper around git-filter-branch to rewrite history so that only
some specified files are kept.
git-ls-paths-modified-since SINCE CURRENT_COMMIT
- A helper to list the files modified or added in the diff between
2 commits (SINCE and CURRENT_COMMIT).
Example of usage:
FILES="$(git-ls-paths-modified-since SINCE)"
export FILES
git filter-branch \
--index-filter 'echo "$FILES" | git-update-index-keeping-only -q'
or simply:
git-ls-paths-modified-since SINCE | git-filter-only-files HEAD NEW_BRANCH


Package Version Architecture Repository
git-update-index-keeping-only - - -


Name Value
/bin/bash4 -
coreutils -
findutils -
git-core -
grep -
rpmlib(PayloadIsLzma) -


Name Value
git-update-index-keeping-only = 0.3-alt1


Type URL
Binary Package git-update-index-keeping-only-0.3-alt1.noarch.rpm
Source Package git-update-index-keeping-only-0.3-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch classic
    rpm [Sisyphus] noarch classic
  2. Update the package index:
    # sudo apt-get update
  3. Install git-update-index-keeping-only rpm package:
    # sudo apt-get install git-update-index-keeping-only




2017-06-25 - Ivan Zakharyaschev <> 0.3-alt1
- Split into more scripts which are individually useful:
git-filter-only-files (to be combined with other criteria for
selecting files), git-ls-paths-modified-since.
- git filter-branch --prune-empty won't hurt us usually.
- git-update-index-keeping-only fixed in some corner cases
(how a file list is passed through xargs).
2016-12-22 - Ivan Zakharyaschev <> 0.2-alt1
- git-update-index-keeping-only:
correct work relative to the current (not toplevel) dir.
- git-filter-only-files-modified-since:
made independent of the current workdir.
2016-12-20 - Ivan Zakharyaschev <> 0.1-alt1
- initial build for ALT Linux Sisyphus.

See Also

Package Description
gitalt-tasker- The useful script that creating tasks for package builder to ALT Linux's repositories
gitalt-tasker-server- Server for gitalt-tasker
giter-1.14-alt1.noarch.rpm Etersoft wrapper for git commands
github2spec-1.4.7-alt1.noarch.rpm Script for generation RPM spec file from github using genspec
gitk-2.19.2-alt1.noarch.rpm Git revision tree visualiser ('gitk')
gitosis-0.2-alt1.1.1.noarch.rpm a tool for hosting git repositories
gitweb-2.19.2-alt1.noarch.rpm Git web interface
gjots2-2.3.15-alt1.noarch.rpm A note jotter. Organise your ideas, notes, facts in a hierarchy
gkrellm-themes-1.0-alt1.qa1.noarch.rpm Gkrellm themes
glances-2.11.1-alt1.noarch.rpm CLI curses based monitoring tool
glassfish-annotation-api-1.2-alt1_13jpp8.noarch.rpm Common Annotations API Specification (JSR 250)
glassfish-annotation-api-javadoc-1.2-alt1_13jpp8.noarch.rpm Javadoc for glassfish-annotation-api
glassfish-dtd-parser-1.2-alt2_0.17.20120120svnjpp8.noarch.rpm Library for parsing XML DTDs
glassfish-dtd-parser-javadoc-1.2-alt2_0.17.20120120svnjpp8.noarch.rpm Javadoc for glassfish-dtd-parser
glassfish-ejb-api-3.2-alt1_6jpp8.noarch.rpm Java EJB 3.2 API Design Specification