From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: Conditional .gitignore for org-mode files Date: Tue, 21 Jul 2015 15:58:51 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHeco-0005Cx-Fl for emacs-orgmode@gnu.org; Tue, 21 Jul 2015 16:58:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHecn-0005II-2L for emacs-orgmode@gnu.org; Tue, 21 Jul 2015 16:58:54 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:33292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHecm-0005I6-R4 for emacs-orgmode@gnu.org; Tue, 21 Jul 2015 16:58:52 -0400 Received: by wicmv11 with SMTP id mv11so55440994wic.0 for ; Tue, 21 Jul 2015 13:58:52 -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 Cc: "emacs-orgmode@gnu.org" Say you add ignore for all generated files like mentioned. That will cover what you need because you can `git add --force' file patterns that are on the ignore list. Grant Rettke -- gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates =E2=80=9CAll creativity is an extended form of a joke.=E2=80=9D --Kay ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Sun, Apr 26, 2015 at 5:39 PM, David Dynerman wro= te: > Hi all, > > Sorry in advance, this might be more of a git question than an org-mode > question, but I thought someone on this list might know the answer. > > Is it possible to conditionally gitignore certain files based on files > that are being tracked? > > 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? > > Thanks, > David > > > >