From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Loury Subject: Re: Conditional .gitignore for org-mode files Date: Mon, 27 Apr 2015 17:11:26 +0200 Message-ID: <87fv7l8v35.fsf@konixwork.incubateur.ens-lyon.fr> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymkh5-0006Ec-UH for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 11:11:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ymkh0-0008Fj-US for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 11:11:35 -0400 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:33810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymkh0-0008FP-Oa for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 11:11:30 -0400 Received: by wgso17 with SMTP id o17so119665252wgs.1 for ; Mon, 27 Apr 2015 08:11:29 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Dynerman , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Dear David, David Dynerman writes: > What I'd like is something like the following gitignore logic: > > if filename.org is tracked by git: > ignore filename.tex, filename.html > > If this isn't possible, does anyone have any nice setups for ignoring > exported versions of org-mode files? The manual of gitignore indicates that gitignore don't handle other behaviors than pattern matching. =2D-8<---------------cut here---------------start------------->8--- man gitignore =2D-8<---------------cut here---------------end--------------->8--- My workaround is simply to gather org files into a same directory and add git ignore rules for each kind of generated file. =2D-8<---------------cut here---------------start------------->8--- *.html *.tex *.ps *.pdf =2D-8<---------------cut here---------------end--------------->8--- Hope that helps, =2D-=20 Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVPlGfAAoJEHXSPO10ORBq9RYH+gPKbOIf2IuSF8P3YifTY7vw qiTjVRowirOzQzWPcGj6M4TioLePNeoSnF0YjhHXZvp2kwLUCT5GsZg1dNYtTFP9 DJTYvLzvGsYZoDZg+M1DRRKj/l6RPdZxRHY2sJoN6jpRDcJBdeI0XDSEEjUGEtIg Is5tnfoHBPEmmLzROMcRy9ghio4HY7q0w5O6iRZTurep3KzOvPdMPXaBgnKilbmr tt+/sc+VJbaycD+JmFPz/sQJ54MKgtj5l/Ka3wLjofG+BUXom3YIXitskp//DkRy bHwFgzVu22pyHSr+qnkLWSBSEjSGgidiSI5U7+l1tVRHlzdmqx8XE7PPbBQBo7E= =XMO6 -----END PGP SIGNATURE----- --=-=-=--