Skip to contentSkip to conversation

starting off

DISCUSSION Matt Davies 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello everyone

I'm as new as new can be so please be gentle.

git version 1.5.4.5

I'm following the peepcode tutorial peepcode-015-git.mov

I've created a branch, and now we're trying to use

rebase to 'watch' the master branch from the new branch.

When I run the rebase command from the other branch

I get these types of warnings/errors

http://pastie.caboo.se/192951

Can someone explain to me what's happening here and if I

should be worried about it?

If I should be worried about it

can anyone point me in the direction of some

documentation of a good (easy)way

to remove the whitespace?

Thanks everyone.

PS, I do check the archives and found this from yesterday

http://thread.gmane.org/gmane.comp.version-control.git/76650/focus=81336

Does that mean that if I update my git this problem will be resolved?

Sorry for being so naive, I wont be for long (hopefully)

#1 lore raw
Quoted 5 lines · Matt Davies

Hello everyone

I'm as new as new can be so please be gentle.

git version 1.5.4.5

Can you remove the double spacing?

Quoted 5 lines

I'm following the peepcode tutorial peepcode-015-git.mov

I've created a branch, and now we're trying to use

Quoted 7 lines

rebase to 'watch' the master branch from the new branch.

When I run the rebase command from the other branch

I get these types of warnings/errors

http://pastie.caboo.se/192951

Why a link? Paste this inside the mail, this way the mail is self consistent, the others do not have to go to this site and can quote it.

Quoted 4 lines

Can someone explain to me what's happening here and if I

should be worried about it?

Some of the patches introduced lines with trailing whitespaces, git apply warns about it. You can remove the warnings setting the config "apply.whitespace" to nowarn, or you can remove them or get used to.

The final result was OK? what you expected? Did it keept the trailing whitespaces?

You can try rebase with different
--whitespaces=<nowarn|warn|fix|error|error-all>

Quoted 9 lines

If I should be worried about it

can anyone point me in the direction of some

documentation of a good (easy)way

to remove the whitespace?

git rebase --whitespace=fix

At least 1.5.5

Quoted 5 lines

Thanks everyone.

PS, I do check the archives and found this from yesterday

http://thread.gmane.org/gmane.comp.version-control.git/76650/focus=81336

It's a long mail...

Santi

#2 lore raw

Hi Santi, thanks for getting back to me.

Quoted 1 line

Can you remove the double spacing?

I've accidentally posted twice, the first post was me emailing my question in. That took so long to appear that I then reposted using this site.
http://permalink.gmane.org/gmane.comp.version-control.git/81433

Posting on that site only allows lines with 80 characters in, so I had to press enter at the end of every line so that it would post.

Quoted 3 lines
Quoted 3 lines

Why a link? Paste this inside the mail, this way the mail is self consistent, the others do not have to go to this site and can quote it.

Same reason as above.

Quoted 1 line

git rebase --whitespace=fix

I'm going to update my git and give that a go, also, I'll only send emails into the list from now on.

Quoted 65 lines · Santi Béjar
Quoted 5 lines · Matt Davies

Hello everyone

I'm as new as new can be so please be gentle.

git version 1.5.4.5

Can you remove the double spacing?

Quoted 5 lines

I'm following the peepcode tutorial peepcode-015-git.mov

I've created a branch, and now we're trying to use

Quoted 7 lines

rebase to 'watch' the master branch from the new branch.

When I run the rebase command from the other branch

I get these types of warnings/errors

http://pastie.caboo.se/192951

Why a link? Paste this inside the mail, this way the mail is self consistent, the others do not have to go to this site and can quote it.

Quoted 4 lines

Can someone explain to me what's happening here and if I

should be worried about it?

Some of the patches introduced lines with trailing whitespaces, git apply warns about it. You can remove the warnings setting the config "apply.whitespace" to nowarn, or you can remove them or get used to.

The final result was OK? what you expected? Did it keept the trailing whitespaces?

You can try rebase with different
--whitespaces=<nowarn|warn|fix|error|error-all>

Quoted 9 lines

If I should be worried about it

can anyone point me in the direction of some

documentation of a good (easy)way

to remove the whitespace?

git rebase --whitespace=fix

At least 1.5.5

Quoted 5 lines

Thanks everyone.

PS, I do check the archives and found this from yesterday

http://thread.gmane.org/gmane.comp.version-control.git/76650/focus=81336

It's a long mail...

Santi