Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Monique Y. Herman
On Fri, 10 Oct 2003 at 16:40 GMT, Roberto Sanchez penned: > > Another way is to *always* run your source files (and have your > colleagues do the same) through indent before committing changes. Of > course, everyone needs to use the same options. This ensures > consistent formatting, regardless

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Monique Y. Herman
On Fri, 10 Oct 2003 at 16:26 GMT, Nori Heikkinen penned: > > but (a) this is Java code; and (b) indent looks like it has so many > tweakable options that to find every single preference the original > coder used would take way too much reformatting, checking in, diffing >=2E.. i'd just like to tur

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Nori Heikkinen
dman, you rock as usual. on Fri, 10 Oct 2003 12:33:17PM -0400, Derrick 'dman' Hudson insinuated: > On Fri, Oct 10, 2003 at 09:48:34AM -0400, Nori Heikkinen wrote: > | hey all, > | > | this is kind of off-topic, but i figured this is the community most > | likley to have dealt with this sort of th

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Alex Malinovich
On Fri, 2003-10-10 at 11:28, Nori Heikkinen wrote: > on Fri, 10 Oct 2003 12:06:07PM -0400, Mental Patient insinuated: > > Nori Heikkinen wrote: > [...] > > >now it's time to check it into CVS. i don't want every single line > > >to show up as different just because of tab characters, so i need > >

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Bill Moseley
On Fri, Oct 10, 2003 at 09:48:34AM -0400, Nori Heikkinen wrote: > is there some way to open the file in emacs (in which i assumer it was > originally written; i use vim) and run it through a re-indentder with > hard tabs on? or could i do this in vim? In case this was not mentioned... Also for y

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Alan Shutko
Nori Heikkinen <[EMAIL PROTECTED]> writes: > now it's time to check it into CVS. Here's what I do in similar situations. Do a diff between your work file and the latest in CVS with diff -cb (or diff -ub, according to preference). The -b ignores changes in whitespace. Then get a fresh copy of t

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Mental Patient
Nori Heikkinen wrote: right, that would have been nice ... but, as you say, i just inherited this one. not much i could have done about setting conventions first. For things like indenting, etc, you could always adjust what you have your tabstop set to. what i have my tabstop set to doesn't ma

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Roberto Sanchez
Mental Patient wrote: I've done this with mixed results. In general if you're going to work on projects, its a good idea to come up with your format conventions first. :) However, sometimes you just inherit code and really there isnt much you can do about it. Its right up there with cuddled els

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Derrick 'dman' Hudson
On Fri, Oct 10, 2003 at 09:48:34AM -0400, Nori Heikkinen wrote: | hey all, | | this is kind of off-topic, but i figured this is the community most | likley to have dealt with this sort of thing in the past, and be | opinionated about it. | | i've been editing a lot of code over the past few month

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Nori Heikkinen
on Fri, 10 Oct 2003 12:06:07PM -0400, Mental Patient insinuated: > Nori Heikkinen wrote: [...] > >now it's time to check it into CVS. i don't want every single line > >to show up as different just because of tab characters, so i need > >to find a good solution on how to transform my indents back i

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Nori Heikkinen
on Fri, 10 Oct 2003 11:44:14AM -0400, Roberto Sanchez insinuated: > Nori Heikkinen wrote: [...] > >now it's time to check it into CVS. i don't want every single line > >to show up as different just because of tab characters, so i need > >to find a good solution on how to transform my indents back

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Colin Watson
On Fri, Oct 10, 2003 at 09:48:34AM -0400, Nori Heikkinen wrote: > i've been editing a lot of code over the past few months that was > originally saved to disk with hard tabs for indenting. i can't work > with hard tabs, and so managed to reformat the entire thing to use > spaces (basically a "s,^I

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Mental Patient
Nori Heikkinen wrote: hey all, this is kind of off-topic, but i figured this is the community most likley to have dealt with this sort of thing in the past, and be opinionated about it. i've been editing a lot of code over the past few months that was originally saved to disk with hard tabs for in

Re: [OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Roberto Sanchez
Nori Heikkinen wrote: hey all, this is kind of off-topic, but i figured this is the community most likley to have dealt with this sort of thing in the past, and be opinionated about it. i've been editing a lot of code over the past few months that was originally saved to disk with hard tabs for in

[OT] CVS diff: hard vs. soft tabs

2003-10-10 Thread Nori Heikkinen
hey all, this is kind of off-topic, but i figured this is the community most likley to have dealt with this sort of thing in the past, and be opinionated about it. i've been editing a lot of code over the past few months that was originally saved to disk with hard tabs for indenting. i can't wor