[racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread Chen Xiao
I fork the codebase on my local computer. Then I .configure  make  make
install, as a result, there are many compiled things like bin or *.o files.

To avoid add them to my commit, I modify .gitignore to ignore them all.

But I can't avoid add .gitignore at all, isn't it?

So how do you solve this problem?
_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread David Van Horn

On 12/13/12 9:22 AM, Chen Xiao wrote:

I fork the codebase on my local computer. Then I .configure  make 
make install, as a result, there are many compiled things like bin or
*.o files.

To avoid add them to my commit, I modify .gitignore to ignore them all.

But I can't avoid add .gitignore at all, isn't it?

So how do you solve this problem?


I suggest building in a build/ directory as described in src/README. 
There's already a .gitignore directive to ignore that directory.


David

_
 Racket Developers list:
 http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread Tobias Hammer

Edit .gitgnore and then use
  git update-index --assume-unchanged .gitignore
to tell git to ignore the changes.

Revert with
  git update-index --no-assume-unchanged .gitignore
if needed.

Tobias



On Thu, 13 Dec 2012 15:22:29 +0100, Chen Xiao chenxiao770...@gmail.com  
wrote:



I fork the codebase on my local computer. Then I .configure  make  make
install, as a result, there are many compiled things like bin or *.o  
files.


To avoid add them to my commit, I modify .gitignore to ignore them all.

But I can't avoid add .gitignore at all, isn't it?

So how do you solve this problem?



--
-
Tobias Hammer
DLR / Institute of Robotics and Mechatronics
Muenchner Str. 20, D-82234 Wessling
Tel.: 08153/28-1487
Mail: tobias.ham...@dlr.de
_
 Racket Developers list:
 http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread Ray Racine
If you are doing a git status and only wish to see changes applicable to
tracked files:

$ git status -uno -- .

If you are a Linux commandline type of guy, I like doing commit work using
'tig'.


On Thu, Dec 13, 2012 at 9:46 AM, Tobias Hammer tobias.ham...@dlr.de wrote:

 Edit .gitgnore and then use
   git update-index --assume-unchanged .gitignore
 to tell git to ignore the changes.

 Revert with
   git update-index --no-assume-unchanged .gitignore
 if needed.

 Tobias



 On Thu, 13 Dec 2012 15:22:29 +0100, Chen Xiao chenxiao770...@gmail.com
 wrote:

  I fork the codebase on my local computer. Then I .configure  make  make
 install, as a result, there are many compiled things like bin or *.o
 files.

 To avoid add them to my commit, I modify .gitignore to ignore them all.

 But I can't avoid add .gitignore at all, isn't it?

 So how do you solve this problem?



 --
 --**---
 Tobias Hammer
 DLR / Institute of Robotics and Mechatronics
 Muenchner Str. 20, D-82234 Wessling
 Tel.: 08153/28-1487
 Mail: tobias.ham...@dlr.de
 _
  Racket Developers list:
  http://lists.racket-lang.org/**dev http://lists.racket-lang.org/dev

_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread James McCoy
On Dec 13, 2012 9:22 AM, Chen Xiao chenxiao770...@gmail.com wrote:

 I fork the codebase on my local computer. Then I .configure  make  make
install, as a result, there are many compiled things like bin or *.o files.

 To avoid add them to my commit, I modify .gitignore to ignore them all.

Add your local ignores to .git/info/exclude.
_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread John Clements

On Dec 13, 2012, at 6:37 AM, David Van Horn wrote:

 On 12/13/12 9:22 AM, Chen Xiao wrote:
 I fork the codebase on my local computer. Then I .configure  make 
 make install, as a result, there are many compiled things like bin or
 *.o files.
 
 To avoid add them to my commit, I modify .gitignore to ignore them all.
 
 But I can't avoid add .gitignore at all, isn't it?
 
 So how do you solve this problem?
 
 I suggest building in a build/ directory as described in src/README. There's 
 already a .gitignore directive to ignore that directory.

+1.

I build racket all the darn time, with local changes, and I never have to 
fiddle with .gitignore.

John

smime.p7s
Description: S/MIME cryptographic signature
_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread Greg Hendershott
 I suggest building in a build/ directory as described in src/README. There's 
 already a .gitignore directive to ignore that directory.

I had a similar confusion a week ago, building Racket for the first
time ever, and got an answer on #racket.

I was following Joe Gibbs Politz's recent Racket blog post
(http://blog.racket-lang.org/2012/11/tutorial-contributing-to-racket.html),
which doesn't suggest this. The blog post is otherwise awesome. So
awesome that it lulled me into not checking src/README.

So I wanted to thank Joe for writing this (seriously it was amazingly
helpful), and also suggest he update with this suggestion?  Ex:

$ cd plt/src
$ mkdir build
$ cd build
$ ../configure
$ make

Unfortunately I don't have his email, so I hope he'll read this or
perhaps someone here can forward this to him.


p.s. I also discovered that if you have PLTCOLLECTS set (for example
to a release build of Racket), the build's copying collections step
copies from  _there_. It turns out I didn't need PLTCOLLECTS at all,
so I simply deleted that env var. But it was weird.
_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread Asumu Takikawa
On 2012-12-13 15:34:04 -0500, Greg Hendershott wrote:
 I had a similar confusion a week ago, building Racket for the first
 time ever, and got an answer on #racket.

One thing that makes this easier is if you use the `plt-fresh-build`
script from this git repo:
  https://github.com/takikawa/racket-dev-goodies

If you set your $PLTHOME with the included `plt-alias` bash function,
the script will automatically do a clean build of Racket.

Cheers,
Asumu
_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread Joe Gibbs Politz
 Unfortunately I don't have his email, so I hope he'll read this or
 perhaps someone here can forward this to him.

Got it, I'll add to the post this evening.
_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread Chen Xiao
I was following your blog too, haha.

2012/12/14 Joe Gibbs Politz j...@cs.brown.edu

  Unfortunately I don't have his email, so I hope he'll read this or
  perhaps someone here can forward this to him.

 Got it, I'll add to the post this evening.
 _
   Racket Developers list:
   http://lists.racket-lang.org/dev

_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread Joe Gibbs Politz
 I was following your blog too, haha.

Glad to hear it was useful!  I've updated the post on the blog.
_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] How to avoid to modify .gitignore when pull request

2012-12-13 Thread Greg Hendershott
 Glad to hear it was useful!  I've updated the post on the blog.

It was really helpful. Thank you for updating it.
_
  Racket Developers list:
  http://lists.racket-lang.org/dev