Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #13743 > unrolled thread

Re: add generated files to .gitignore

Started bydon fong <dfong@dfong.com>
First post2018-02-25 11:49 -0800
Last post2018-02-25 11:49 -0800
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: add generated files to .gitignore don fong <dfong@dfong.com> - 2018-02-25 11:49 -0800

#13743 — Re: add generated files to .gitignore

Fromdon fong <dfong@dfong.com>
Date2018-02-25 11:49 -0800
SubjectRe: add generated files to .gitignore
Message-ID<mailman.9719.1519588191.27995.bug-bash@gnu.org>
Chet, i'm not sure i understand your suggestion.

> You don't have to build in the source directory.

i don't see anything in the INSTALL or README files about building outside
the source dir.
according to INSTALL,

The simplest way to compile Bash is:
>   1. 'cd' to the directory containing the source code and type
>      './configure' to configure Bash for your system.


it sounds like you're suggesting to make a copy of the source directory?
(or if that's not what you mean, can you be more explicit?)

making a copy of the source directory has drawbacks.  i also don't see how
it solves the problem of "git status" being cluttered.  either the copy is
a git repo, in which case "git status" will still be cluttered with
generated files; or it's not a git repo in which case i won't be able to do
"git status" or "git diff" to create the patch.

either way, if i'm trying to create a patch, and i have to move my changed
files from the copy back to the original source dir, it'd be easy to
accidentally leave something out.

it seems to me that building in the source directory is the natural and
most convenient way to do things.  from what i've seen, it's also the way
that "most" other open source software works.  my proposed change to
.gitignore will facilitate that mode of operation.

what do you perceive as the drawback?






On Sat, Feb 24, 2018 at 3:29 PM, Chet Ramey <chet.ramey@case.edu> wrote:

> On 2/24/18 3:36 PM, don fong wrote:
> > Eric, thanks for the tip.
> >
> > my feeling is that regardless of whether these files are pushed, they
> > clutter up the "git status" listing after i've done a build.
>
> You don't have to build in the source directory.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web