From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 13 Jan 2007 07:07:18 +0300 From: Alexey Tourbin To: devel@lists.altlinux.org Message-ID: <20070113040717.GZ7811@localhost.localdomain> Mail-Followup-To: devel@lists.altlinux.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1fZJyN7nFm/tosmV" Content-Disposition: inline Subject: [devel] cg-admin-rewritehist empty commits filter X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2007 04:07:18 -0000 Archived-At: List-Archive: List-Post: --1fZJyN7nFm/tosmV Content-Type: multipart/mixed; boundary="KC+fneiph5CALyUl" Content-Disposition: inline --KC+fneiph5CALyUl Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =F0=D2=C9 =D0=C5=D2=C5=D0=C9=D3=D9=D7=C1=CE=C9=C9 =C9=D3=D4=CF=D2=C9=C9 =D0= =D2=CF=D0=D5=D3=CB=C1=C5=D4 =D0=D5=D3=D4=D9=C5 =CB=CF=CD=CD=C9=D4=D9. cg-admin-rewritehist ... --commit-filter=3D'cg-remove-empty-commits "$@"' n= ewbranch --KC+fneiph5CALyUl Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=cg-remove-empty-commits #!/bin/sh -e if [ $# = 3 ] && tree=$(git-cat-file commit "$3" |head -1) && [ "$tree" = "tree $1" ] then echo -n " EMPTY " >&2 echo "$3" else echo -n " NON-EMPTY " >&2 git-commit-tree "$@" fi --KC+fneiph5CALyUl-- --1fZJyN7nFm/tosmV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFqFr1fBKgtDjnu0YRAm4RAJ9cNRa0K51r4QQI9A4ywocq9Mb4rACeLGQ/ vEoEK2q8WGRhLp1AE1U96ng= =Ccln -----END PGP SIGNATURE----- --1fZJyN7nFm/tosmV--