IRCloggy #git 2011-02-06

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2011-02-06

urbanmonk joined00:00
normanrichards joined00:01
ijuma_ joined00:01
dr_win left00:01
PovAddict cirwin: I'm doing just that while trying to see *which* set commits is equivalent to a squashed commit00:03
normanrichards left00:03
normanrichards joined00:04
PovAddict cirwin: git reset --hard foo^; git cherry-pick A B C D; git diff HEAD foo;00:04
dr_win joined00:04
PovAddict then tweak the A B C D list until the diff is small enough :P00:04
chrischambers left00:04
normanrichards left00:04
cirwin writes an alias :p00:05
albel727 left00:05
cirwin I used checkout though00:06
Sgeo_ joined00:06
Sgeo left00:08
infidium left00:09
jpieper left00:09
chrischambers joined00:10
infidium joined00:11
thorat joined00:14
jpieper joined00:15
ixti left00:17
tizzo left00:19
DiGitalX left00:21
Dave^| left00:22
ChUrP left00:22
davidc_ left00:24
rgr left00:24
PovAddict_ joined00:25
PovAddict left00:25
PovAddict_PovAddict00:25
normanrichards joined00:26
ch077179 left00:28
ChUrP joined00:29
davidc_ joined00:29
normanrichards left00:35
sitaram Arrowmaster: what us "SU"? (You said something about my first +10 points on SU)00:37
PovAddict superuser?00:37
Buglouse joined00:37
Elfe left00:38
phaedrix left00:42
PovAddict_ joined00:42
PovAddict left00:43
PovAddict_PovAddict00:43
amerine joined00:44
zombor joined00:45
ldh joined00:46
zombor left00:48
Arrowmaster yeah superuser.com00:50
Elfe joined00:51
PovAddict left00:51
aisipos left00:51
priidu left00:52
amondracorp left00:53
tizzo joined00:54
infidium left00:56
infidium joined00:57
iAsteris_ left01:01
chrischambers left01:02
Zeu5 joined01:02
Zeu5 hi there, i hired 2 freelancers to help me with my project. i instructed them to each create a separate branch from the origin/master branch01:03
and commit those branches to the private online git repo01:03
on my own laptop i did a git pull01:04
followed by git checkout -b freelancer1 origin/freelancer101:04
i want to switch to the other branch to see the changes. but i get an error01:05
stringoO left01:05
Zeu5 error: You have local changes to 'mockups/wildcard.ombi60.com/admin/products_index.bmml'; cannot switch branches.01:05
please help me. i only know enough to do push and commit and status01:05
sh4rm4 you can move your changes to the stash area01:05
git stash01:06
normanrichards joined01:08
airborn left01:09
jrmuizel_ joined01:09
jrmuizel_ left01:10
Zeu5 wat is this stash area sh401:11
wat is this stash area sh4rm401:11
?01:11
ChUrP left01:12
sh4rm4 an area for temporary stuff01:12
that's not to be commited yet01:12
Zeu5 i see.01:13
lamont left01:15
ludde left01:15
Zeu5 okie sh4rm4 thanks. but i have another problem01:16
because i stashed the changes when i was in one of the branches, hte change was no longer there when i switched back to master branch01:16
how do i get back the stashed changed into my master branch?01:16
sh4rm4 http://linux.die.net/man/1/git-stash01:18
amerine left01:19
ChUrP joined01:19
lamont joined01:19
MikhX joined01:20
utu joined01:21
mar77i left01:22
amerine joined01:22
Zeu5 okie thanks sh4rm401:22
OOPMan left01:24
oriba left01:25
OOPMan joined01:26
OOPMan left01:30
bcardarella joined01:31
d0k left01:32
OOPMan joined01:33
homiziado joined01:36
davidc_ left01:37
tewecske left01:37
oriba joined01:38
zombor joined01:39
davidc_ joined01:42
up_the_irons joined01:42
sako left01:44
oriba left01:44
oracal left01:45
rorist_ left01:45
tizzo left01:46
kipras joined01:46
babbage joined01:53
babbage Why doesn't this work in my .gitignore, to include to two negated directories? http://pastebin.com/pXU5xsa001:54
Ah. Because there was a .git directory in there, it would appear.01:56
MikhX left02:03
brendon left02:05
brendon joined02:05
Arrowmaster you can remove that * too02:07
jdav_gone left02:07
dools left02:08
becomingGuru_ left02:09
angelsl joined02:10
mar77i joined02:12
Zeu5 left02:12
thorat left02:12
silanus left02:13
DrNick2 joined02:13
DrNick left02:14
panike left02:15
gilaniali left02:16
amerine left02:16
utu left02:17
Fboy joined02:18
ChUrP left02:18
MikhX joined02:18
silanus joined02:20
becomingGuru_ joined02:20
Ventrillus joined02:22
hyperair joined02:22
Ventrillus left02:22
DrNick2DrNick02:24
ChUrP joined02:26
gilaniali joined02:26
vitor-br left02:26
normanrichards left02:27
icwiener left02:28
MattDiPasquale left02:28
infidium left02:29
homiziado left02:29
Titosemi left02:29
xiong left02:30
infidium joined02:31
aah left02:33
sako joined02:33
shiba_yu36 joined02:36
SvenDowideit left02:39
SvenDowideit joined02:39
AzaToth left02:39
homiziado joined02:41
Vampire0_ joined02:43
gnufied joined02:44
bcardarella left02:44
homiziado left02:44
homiziado joined02:45
dl9pf_ joined02:45
dl9pf left02:46
t3ntman joined02:47
t3ntman left02:47
ipis left02:47
Vampire0 left02:47
homiziado noob question: was trying to follow http://carisenda.com/written/gitweb-on-mac-os-x/ but no repository appears on the web interface02:47
phantomcircuit left02:48
infidium left02:49
gnufied left02:49
gnufied joined02:50
leo2007 joined02:51
infidium joined02:51
booginga left02:54
booginga joined02:55
urbanmonk left02:56
astm joined02:56
jrmuizel_ joined02:58
byteframe left03:00
daze21 joined03:02
daze21 so I have this remote repo on codaset that's been fine pushing to in the past, but now I get the error described here...http://stackoverflow.com/questions/2816369/git-push-error-remote-rejected-master-master-branch-is-currently-checked-ou03:03
I don't understand how to execute "git config --bool core.bare true" in my remote repo folder as the top answer says... I just want this to work. (and also to understand why it suddenly didn't work)03:03
f00li5h left03:04
Elfe left03:04
Elfe_ joined03:04
dkasak left03:06
mcjb left03:06
jrmuizel_ left03:07
dkasak joined03:10
shruggar left03:10
phantomcircuit_ joined03:10
phantomcircuit_ left03:10
phantomcircuit joined03:11
intripoon joined03:11
intripoon_ left03:15
kipras left03:16
ChUrP left03:19
Heimidal joined03:22
daze21 left03:25
ChUrP joined03:26
jdav_gone joined03:30
Amorphous left03:36
chessguy left03:39
gilaniali left03:40
homiziado left03:41
ldh left03:41
justin-george left03:43
ignotus joined03:44
hyperair left03:45
ignotus hi, I have some stuff in the index, how can I make the index clear, so I can git add my stuff again, in a better order03:46
RobertLaptop joined03:47
gnufied left03:47
NickyP left03:47
ignotus I think what I need is git reset --mixed03:48
oh no, I already did a git reset --soft HEAD^03:48
infogulchinfogulch[a]03:50
Amorphous joined03:51
gnufied joined03:51
mrconnerton left03:51
necromancer joined03:52
timj__ joined03:52
eno joined03:54
eno left03:54
eno joined03:54
ignotus ah, a simple git reset did it03:55
timj_ left03:56
ChUrP left04:01
BiggFREE joined04:01
Schmallon left04:03
Fboy left04:03
tstclair left04:04
_psychic_ joined04:05
sudonotplease joined04:07
sudonotplease left04:07
ChUrP joined04:07
ignotus left04:09
jjuran left04:11
gilaniali joined04:12
gilaniali left04:13
normanrichards joined04:13
sako left04:14
necromancer left04:14
sudonotplease joined04:15
necromancer joined04:15
bhosie joined04:16
bhosie left04:16
unreal left04:21
necromancer left04:21
gozoner joined04:21
gnufied left04:22
unreal joined04:22
blaines joined04:24
hyperair joined04:24
gozoner left04:26
stigrett left04:27
jjuran joined04:30
simplechat joined04:34
simplechat left04:34
simplechat joined04:34
tizzo joined04:34
hyperair left04:35
infidium left04:36
shiba_yu36 left04:39
juangiordana left04:42
MacGyverNL_ joined04:45
MacGyverNL_ left04:45
MacGyverNL_ joined04:45
blaines left04:45
shiba_yu36 joined04:45
neilkod joined04:45
neilkod how do i prepare a local repository for use on github?04:46
BiggFREE left04:46
babbage left04:48
cirwin neilkod: git remote add github [email@hidden.address]04:48
then just git push github will work04:48
neilkod do i have to create the repository in github first?04:49
cirwin I think so04:49
ChUrP left04:53
kelvie joined04:56
nothingHappens_ left04:58
brendon left04:58
gnufied joined05:00
hagebake left05:01
hagebake joined05:01
hagebake left05:01
hagebake joined05:01
ChUrP joined05:02
justin-george joined05:02
markelikalderon left05:02
tizzo left05:04
tchan left05:06
aah joined05:07
gnufied left05:07
Utkarsh_ joined05:12
Utkarsh left05:15
neilkod left05:20
tizzo joined05:21
maleknet joined05:22
skoop joined05:23
skoop left05:23
skoop joined05:23
OOPMan left05:26
lfaraone left05:26
envi joined05:27
blaines joined05:27
eletuchy_ joined05:27
adamm left05:28
adamm joined05:29
eletuchy left05:30
justin-george left05:30
Utkarsh joined05:31
dyek joined05:34
Utkarsh_ left05:34
tchan joined05:35
ceej left05:36
MacGyverNL_ left05:36
MacGyverNL joined05:38
dyek Hi! Given a git commit SHA-1 hash, how do I check if the commit exists in a specific branch? Is there a way I can check if another commit replaced the specified commit?05:38
sako joined05:39
cirwin git branch --contains <commit>05:39
what do you mean by "replaced"?05:39
eletuchy joined05:40
dyek cirwin: Thank much. "replaced" means a better fix was developed and the original fix is no longer used.05:40
cirwin umm, how would you expect git to know about that?05:40
zivester_ left05:41
dyek cirwin: I don't know. I thought git has parent-child tree relationship, but I'm new to git.05:41
tapank joined05:41
eletuchy_ left05:42
cirwin ok — I've probably just misunderstood your question05:42
zivester_ joined05:42
tapank left05:42
PerlJam sounds like looking for a "git revert" to me, but I have no idea05:43
tapank joined05:43
Elvashi joined05:45
dyek To illustrate, lets say a module developer created the first version of a fix for a problem and "submitted" it to be merged to linus's tree. Then, a kernel maintainer refined the fix to be more appropriate and thus replaced the original patch with a new patch. I wonder if git keeps track of such evolving relationship -- given a commit hash, find a subsequent hash that replaced the original one.05:46
ChUrP left05:46
Bass10 left05:47
cirwin dyek: sadly, it does not05:47
dyek cirwin: OK. Thanks!05:47
cirwin it would be awesome though, I agree05:48
PerlJam sounds like something that would have to be built on top of git.05:48
Something that knows more about the meaning of the changes.05:49
cirwin PerlJam: well, rebase should add the link too05:49
and cherry-pick etc.05:49
and you could then use that information to help with merges too05:49
Error404NotFound joined05:50
linusoleander left05:51
juangiordana joined05:52
jfkw left05:52
juangiordana left05:52
PerlJam you could use git notes to do it in a poor-man's way05:52
mikepack joined05:53
cirwin hm, I was thinking of just putting a line in the commit05:53
probably as part of the message section for backwards compatibility05:53
juangiordana joined05:54
PerlJam That'll work too05:54
ChUrP joined05:54
cirwin it would be very useful for our team if we could rebase, and not lose github comments :)05:55
gnufied joined05:55
cirwin so only backwards pointers are needed05:55
though you could use notes for forward pointers too05:55
zombor left05:55
randomus3r joined05:59
sako left06:01
sudonotplease left06:02
urbanmonk joined06:03
skoop left06:03
randomus3r left06:06
astm left06:06
zivester_ left06:06
MetaCosm_ left06:09
Elvashi left06:10
sako joined06:13
sako left06:13
sako joined06:13
j416 joined06:13
gnufied left06:15
amerine joined06:16
Utkarsh_ joined06:16
Utkarsh left06:19
joel_falcou left06:19
joel_falcou joined06:20
Zygo joined06:20
jason237 left06:20
jason237 joined06:21
ChUrP left06:22
carrus85 left06:23
TML left06:24
Zygo left06:24
TML joined06:24
Zygo joined06:24
yhager left06:25
zombor joined06:25
shamrock joined06:26
Elvashi joined06:27
t0rc left06:27
ChUrP joined06:29
gnufied joined06:33
augiedoggie joined06:34
davidc_ left06:34
smolyn joined06:35
shiba_yu36 left06:36
davidc_ joined06:40
TanEk left06:42
Heimidal left06:45
NickyP joined06:46
yhager joined06:46
adamm left06:46
MrShmelo12 joined06:46
MrShmelo12 left06:47
coconutz joined06:48
coconutz hey all06:49
if i do new repo i should put it in a diffrent dir than the web site source files?06:49
or inside of it06:49
j416 coconutz: not sure what you mean by that06:50
shamrock left06:50
j416 do you mean if you should put your web root in a subdir or not?06:50
cirwin http://toroid.org/ams/git-website-howto06:50
^ coconutz06:50
coconutz i got files in /var/www/html06:50
i got files in /var/www/html/site06:50
so i should do init there06:50
j416 if you do init inside /var/www/html, git will track both html and site06:51
if you do init inside /var/html/site, git will track only site06:51
coconutz and also im using zend studio , is there a plugin for git?06:51
cirwin and in both cases, people will be able to navigate to http://mysite.com/.git/ unless you configure your server right06:51
j416 I don't know what zend studio is, sorry.06:51
coconutz ok06:52
j416 coconutz: I have a /var/web which contains my git repo. Inside it I have a directory I call 'root', which I symlink to /var/www.06:52
TheUni joined06:52
j416 that way I keep the repo outside reach.06:53
coconutz is there a way to hook a db dumb on each commit ?06:53
shiba_yu36 joined06:53
cirwin coconutz: you can set up hooks using git, yes06:53
j416 coconutz: read about git hooks. But I'm not sure why you'd want that.06:53
cirwin man githooks06:53
jast the 'githooks' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/githooks.html [automatic message]06:53
cirwin you also might want to look at cron06:53
for that kind of thing06:53
coconutz oh ok06:54
i subscribed to github06:54
is there a better choices?06:54
i pay 7$06:54
wereHamster define better06:54
coconutz faster cheapper06:54
radarek joined06:55
booginga left06:55
booginga joined06:56
OOPMan joined07:00
coconutz btw: what is fork?07:00
cirwin makes a new copy of the repository07:02
shamrock joined07:02
coconutz if i want to upload changes its "commit" right?07:03
cirwin no, "push" uploads "commits"07:03
man gittutorial07:03
jast the 'gittutorial' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html [automatic message]07:03
coconutz ok and pull is to download right?07:03
cirwin with a little bit of extra magic, yes07:03
coconutz what software to do use? eclipse? tortisesvn?07:04
cirwin umm, git?07:04
there is a tortoise git I think07:04
OOPMan left07:04
darsk1ez left07:06
tizzo left07:10
booginga left07:10
dyek left07:10
coconutz what is the gems stuff i see it all the time07:12
t_b joined07:12
cirwin gems?07:13
their ruby libraries that have been packaged07:13
*they're!07:14
ElvashiTextmode07:14
tty1 joined07:15
radarek left07:16
OOPMan joined07:19
ChUrP left07:20
gnufied left07:21
darsk1ez joined07:21
shamrock left07:24
LongBeach joined07:25
rgr joined07:25
pfrenssen joined07:27
ChUrP joined07:28
_psychic_ left07:29
Yuuhi` joined07:35
Chillance joined07:36
leo2007 left07:37
Yuuhi left07:37
becomingGuru_ left07:52
justin-george joined07:54
pfrenssen left07:55
wtfness joined07:57
jjuran left07:59
keyvan- joined07:59
leo2007 joined08:02
becomingGuru_ joined08:05
cesario joined08:06
ChUrP left08:06
zombor left08:10
zivester joined08:12
D4rkR4g3 joined08:13
D4rkR4g3 left08:13
zombor joined08:13
ChUrP joined08:13
ISF left08:17
Error404NotFound left08:19
hagebake left08:19
Octalot left08:20
wfriction joined08:20
jjuran joined08:20
nathacof joined08:23
nairb774 left08:23
becomingGuru_ left08:24
wfriction left08:25
wfriction joined08:27
cesario left08:28
zivester left08:29
juangiordana left08:33
workmad3 joined08:35
zombor left08:37
nairb774 joined08:38
hagebake joined08:39
hagebake left08:39
hagebake joined08:39
nathacof left08:40
zivester joined08:40
wfriction left08:43
tewecske joined08:44
tapank left08:46
hagebake left08:47
hagebake joined08:48
hagebake left08:48
hagebake joined08:48
shiba_yu36 left08:48
shiba_yu36 joined08:49
ChUrP left08:50
tapank joined08:51
keyvan- left08:52
kumbayo joined08:55
hagebake left08:55
wfriction joined08:56
dfr|mac joined08:57
marc_kdab left08:57
marc_kdab joined08:57
dfr|mac left08:58
dfr|mac joined08:58
wfriction left08:58
ChUrP joined08:58
sako left09:06
TheFox21 joined09:06
ThomasLocke joined09:11
PigeonFriend joined09:12
envi left09:13
envi joined09:13
emptyflask left09:19
doener joined09:20
cirwin left09:23
madewokherd left09:25
TheFox21 left09:27
eletuchy left09:28
xiong joined09:28
MikhX left09:29
ChUrP left09:31
leo2007 left09:31
TrineLocke joined09:32
chrischambers joined09:36
ChUrP joined09:37
iAsterisk joined09:38
RaceCondition joined09:38
Zephyrus joined09:40
anderse joined09:45
radarek joined09:47
kar8nga joined09:49
ixti joined09:49
squentin joined09:51
ph^ joined09:53
shiba_yu36 left09:53
lanthan_afh joined09:54
killfill left09:56
killfill joined09:56
priidu joined09:57
vmiklos joined09:58
MetaCosm_ joined09:59
airborn joined10:00
mikepack left10:00
killfill left10:01
killfill joined10:02
ixti left10:03
Mage left10:07
tapank left10:07
matjas_ joined10:08
gnufied joined10:09
Cvbge joined10:09
killfill left10:10
killfill joined10:11
Fboy joined10:15
killfill left10:16
killfill joined10:16
xiangfu joined10:18
poxd joined10:20
poxd i have some stuff to be added on the staging area but I'd like to do so on an another branch than I'm on, what's the simplest way to do so?10:21
ludde joined10:21
ChUrP left10:21
poxd left10:23
drizzd joined10:25
doener left10:26
ch077179 joined10:26
Guest71890 joined10:26
Guest71890 left10:27
ChUrP joined10:27
cesario joined10:29
drizzd_ left10:29
giallu left10:37
doener joined10:38
goshawk joined10:38
sontek joined10:38
sontek When you guys clone an svn repository, do you keep master a clone of svn? i.e only git svn rebase it in, and any changes you make are always in a branch?10:39
roger_padactor left10:39
doener sontek: that would be a pointless exercise. The pristine state from svn is already kept in a remote-tracking branch10:40
sontek ok, so I can just keep committing to master and be ok10:42
verdon joined10:42
linusoleander joined10:43
doener sontek: branching is still useful for organizing your work and strongly recommended. Just the "keep master the same as svn's trunk" part is not a good reason to do so10:45
amerine left10:47
doener sontek: you'll just have to be careful about merging. With git-svn I usually do the rebase/dcommit dance each branch and never merge, unless there's also a branch in svn, that I want to merge (i.e. there's gonna be a 1:1 mapping of the merge)10:47
hohoho joined10:50
xiangfu left10:50
linusoleander left10:51
matjas_matja10:53
matjamatjas10:53
Buglouse left10:54
f00li5h joined10:55
ppawel joined10:57
Cvbge left11:03
ChUrP left11:04
intripoon left11:05
intripoon joined11:06
matjas left11:10
ChUrP joined11:10
MAK-Jr joined11:12
carpet_the_walls joined11:13
blaines left11:19
blaines joined11:19
intripoon_ joined11:21
paszo2008 joined11:21
theoros left11:22
intripoon left11:23
MAK-Jr left11:24
MAK-Jr joined11:24
HG` joined11:24
pdelgallego joined11:24
darkredandyellow joined11:25
codespectator left11:30
MAK-Jr left11:36
MAK-Jr joined11:37
rcu joined11:41
ExtraSpice joined11:44
emiel_ left11:45
rcu left11:45
sandbags joined11:47
ExtraSpice left11:47
xiong left11:48
sandbags left11:48
leo2007 joined11:48
MAK-Jr left11:49
ldh joined11:51
paszo2008 left11:52
codespectator joined11:52
jjuran left11:52
blaines left11:54
zorzar joined11:55
EricInBNE left11:56
zorzar_ left11:57
paszo2008 joined11:57
ppawel left11:59
Elfe_ left12:03
Dave^| joined12:10
roop joined12:11
mrconnerton joined12:15
Dave^| left12:15
torvalamo joined12:16
ChUrP left12:19
Chillance left12:20
markelikalderon joined12:21
jjuran joined12:21
vitor-br joined12:22
linusoleander joined12:23
ChUrP joined12:26
ldh left12:28
davidc_ left12:29
bradleyayers left12:30
roop left12:32
linusoleander left12:34
davidc_ joined12:34
davidc_ left12:34
davidc_ joined12:34
napster_123 joined12:34
j0su3 joined12:36
radarek left12:37
klevison joined12:38
radarek joined12:38
radarek left12:39
klevison how can I configure my git to do automatic login12:39
every command I need put password12:39
thiago_home git doesn't have that option12:39
what transport are you using? Ssh?12:40
klevison but I need to configure it12:40
maattd joined12:41
thiago_home so?12:41
klevison yeah12:41
thiago_home then configure ssh not to require a password12:41
klevison I use centos + git12:41
on github12:41
thiago_home use key-based authentication and run ssh-agent12:41
theoros joined12:43
theoros left12:43
theoros joined12:43
justin-george left12:43
mrconnerton left12:43
Klevison_ joined12:45
klevison left12:45
Titosemi joined12:46
DivineOmega joined12:47
Klevison_ left12:47
klevison joined12:47
klevison thiago_home: are you brazilian?12:47
coconutz left12:47
jstemmer joined12:48
DivineOmega I'm a bit of a newbie to source control, would anyone mind advising me regarding with an issue I'm having?12:48
selckin !ask12:49
ExpDate joined12:49
klevison I've installed this redmine plugin https://github.com/koppen/redmine_github_hook/12:50
I works12:50
It works12:50
Dave^| joined12:50
DivineOmega Basically, its a matter of organising. I'm using git in assembla (hosted git repo.). A small group of friends are working on a project within Eclipse.12:50
klevison but there is only one problem12:50
ExpDate hei, anyone know how to get files from 2 previous commit ?12:50
FauxFaux Assembla. /o\12:50
ExpDate I meant discarded two previous commit12:50
DivineOmega FauxFaux: Really?12:50
ExpDate How it is could be done12:50
klevison I need to type my password every time there is a new update on source code12:51
FauxFaux DivineOmega: Have you tried subscribing to changes on anything?12:51
Dave^| left12:51
DivineOmega FauxFaux: It seems a bit dodgy sometimes, I can get e-mail with the incorrect names occasionally.12:51
My main problem is that I'm not sure how to organise the repo to work correctly with Eclipse's 'projects'12:52
Is the best idea to open put /src/ as tracked in the repo, and all the dot folders as untracked?12:52
only*12:53
klevison I've installed this redmine plugin https://github.com/koppen/redmine_github_hook/ . It works, but there is only one problem. I need to type my password for every commit. I don't type it.12:53
eijk joined12:54
ExpDate How to discard two previous commit ?12:54
bremner klevison: so people mentioned several times the answer to typing your password is ssh-agent and public key authentication. Is this not clear to you?12:55
klevison no, it isn't12:56
bremner well, google ssh passwordless login finds quite a few references.12:56
actually, to be fair that will probably be keys without passphrases.12:57
klevison: do you know what ssh-agent is?12:57
d0k joined12:57
klevison bremner: no :(12:58
OOPMan left12:58
roger_padactor joined13:00
Dave^| joined13:00
bremner klevison: ssh-agent is a program that runs in the background on your client (i.e. where the local clone of the git repo is). It is independent of git, so you just need to find out how to get it working for your centos user.13:00
Tommy[D] left13:01
marlun joined13:01
d0k_ joined13:01
marlun Hi, Could someone take a look at https://github.com/marlun/jquery-megadropdown/commits/master and tell me why those "Merge branch 'master' of github.com:marlun/jquery-megadropdown" commits is happening?13:02
d0k left13:02
d0k_d0k13:02
Tommy[D] joined13:02
OOPMan joined13:02
leo2007 left13:03
bremner klevison: http://kimmo.suominen.com/docs/ssh/ looks pretty complete, although I haven't actually used it.13:03
klevison: but really it is a question for your centos support channel, whatever that is.13:04
OOPMan left13:04
FauxFaux marlun: There's two people committing to the repo; when you pull it defaults to merging their changes with yours; git pull --rebase # will fix the problem with all the normal rebase caveats.13:04
p3rg2z joined13:05
emiel_ joined13:05
OOPMan joined13:05
malte_ joined13:05
klevison bremner: thanks a lot.13:05
FauxFaux marlun: http://i.imgur.com/ZU25D.png etc.13:06
codespectator left13:07
wtfness left13:09
Cvbge joined13:10
marlun FauxFaux: Thanks. Just havn't seen it in other repos that I know more then 2 people commit to but I guess they are using rebase then. Will look into it, thanks!13:10
ChanServ set mode: +v13:10
AzaToth joined13:11
OOPMan left13:12
AzaToth if branch A has an submodule, and branch B doesn't, is there any way to prevent the directory for the submodule to polute branch B?13:12
I don't know if it's a common, or even valid reason/situation13:14
but say you branch master, and for a specific functionallity you include submodule X, then when swithcing back to master, the created directory is still there13:15
I'm using 1.7.2 by the way, perhaps there's been changes in 1.7.4...13:16
neilkod joined13:16
p3rg2z left13:17
ExpDate left13:18
hyperair joined13:20
ChUrP left13:20
gusnan joined13:20
Anti-X joined13:20
makubi left13:20
torvalamo left13:21
Anti-Xtorvalamo13:21
gusnan left13:22
gusnan joined13:22
bentob0x joined13:24
friskd left13:25
MattDiPasquale joined13:26
ChUrP joined13:26
OOPMan joined13:27
kumbayo left13:28
DiGitalX joined13:29
felipec joined13:30
felipec is it possible to always add the 'From' line when sending mails?13:30
like it's added when author != committer13:30
neilkod left13:31
AzaToth felipe: --envelope-sender=auto perhaps13:32
sanooj joined13:34
AzaToth felipec: *13:35
adsgb joined13:35
AzaToth felipec: ↑ my tab lured me13:35
iAsterisk left13:35
sanooj hey. How can I create a new root in a git repository?13:36
aha. "Creating New Symbolic Branches" in the git book tells me how.13:38
felipec AzaToth: nope... I actually added that 'auto' option13:38
AzaToth: that just adds -f $from on the sendmail command13:38
emptyflask joined13:39
adsgb left13:41
rjnienaber left13:41
bitkiller joined13:42
_iron joined13:44
sanooj left13:46
codespectator joined13:46
ppawel joined13:47
AzaToth felipec: you want the reverse?13:49
felipec AzaToth: no, as I said, I want the line "From" line in all the mails, even if author == committer, envelope sender has nothing to do with that13:50
Cvbge Is there something like git-new-workdir but for filesystems that do not support links, like fat32?13:50
codespectator left13:51
AzaToth felipec: you want what?13:52
do you want a list of all From lines?13:52
or do you want to fill the "from" line with author?13:52
kar8nga left13:53
mar77i left13:53
t_b left13:53
t_b joined13:54
Sgeo__ joined13:54
felipec AzaToth: try this: git commit --amend --author="Foo Bar [email@hidden.address] and send that patch to yourself13:57
Sgeo_ left13:57
_ironi_ron13:57
felipec AzaToth: you would notice an extra "From" line at the top of the body... that's what I want: http://pastie.org/153391713:59
astm joined14:00
AzaToth ah14:01
felipec: unless I'm mistaken, the commit sha1 will change if you change the author14:01
felipec AzaToth: so?14:01
AzaToth: pick any commit that you didn't write then14:02
AzaToth felipec: http://paste.debian.net/106673/14:04
if I change the author, I must change the ID14:04
Sonderblade joined14:04
felipec *sigh*14:04
AzaToth and aint the Signed off line enough?14:05
felipec AzaToth: enough for what? Some people send patches through mail, and their corporate servers mangle them Felipe Contreras -> Felipe Contreras (Nokia Helsinki), when the recipient tries to apply the patch, they have to fix the author14:07
AzaToth ah14:07
felipec but if the "From" line is in the body, they don't14:08
verdon left14:11
maleknet left14:12
napster_123 left14:12
orafu left14:13
verdon joined14:13
cdere joined14:15
cdere left14:15
silverfix joined14:16
silverfix hello14:16
felipec left14:17
silverfix guys I'd want to ask a question that I can't easily find on the docs: why when I create a new branch e switch to it if I type: git push I give: fatal: No destination configured to push to. ??14:18
in the master branch git push works14:18
Titosemi left14:18
tango_ silverfix: because the new branch doesn't know where to push to14:20
silverfix ok, it seems alright so, how can I config this?14:20
tango_ silverfix: so you have to configure it to know where to push to. assuming you want to push somebranchname to a new branch on the remote origin, you would do something like: git push -u origin somebranchname:somebranchname14:21
the -u option sets the new branch as the official remote branch to be tracked by somebranchname14:21
of course on the second half of : you would put whatever you want the remote branch to be called14:21
man git-push for further details14:21
jast the 'git-push' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-push.html [automatic message]14:21
Cvbge left14:22
silverfix oh very well tango_, thank you!14:22
Tixz joined14:22
ChanServ set mode: +v14:23
Tixz Hi, how do I push local changes from a submodule to it's original (remote) repo?14:23
silverfix tango_: but at this point I can also add the default repo directly by git config right?14:23
tango_ if you know how, sure14:23
silverfix: but unless the remote branch exists, you have to create it anyway14:24
silverfix I create it by -u?14:24
tango_ silverfix: no, just push14:25
silverfix ok14:25
tango_ -u sets the upstream reference, i.e. configures git to know that what you push to will be the upstream of what you push from14:25
silverfix I understand14:26
thank you :)14:26
tango_ yw14:26
klevison left14:26
Titosemi joined14:26
Tixz Submodules anyone? :)14:27
malte_ left14:28
silverfix Tixz: submodules?14:28
Tixz: what do you mean?14:28
Tixz git submodule, I need to know how to push updates to the 'mother' repo14:29
Ruudjah joined14:29
Titosemi left14:29
Tixz Can't find any concrete info on it though :14:29
but maybe I'm using the wrong keywords for searches14:29
ch077179 left14:33
darkredandyellow left14:35
LongBeach left14:35
darkredandyellow joined14:36
darkredandyellow left14:37
ch077179 joined14:37
Zephyrus left14:41
Buglouse joined14:42
napster_123 joined14:45
silanus left14:45
codespectator joined14:46
kpreid left14:47
davidc_ left14:48
tizbac joined14:49
hyperair left14:49
tizbac left14:49
Fboy left14:49
ChUrP left14:50
silverfixcdere^Away14:50
cdere^Away left14:50
hyperair joined14:50
Fboy joined14:51
Mohjive joined14:52
t0rc joined14:53
zivester_ joined14:53
angelsl left14:54
tizbac joined14:56
ChUrP joined14:57
rgr left14:58
emiel_ left15:02
sudonotplease joined15:03
silanus joined15:04
rgr joined15:05
radarek joined15:08
MattDiPa_ joined15:10
Mohjive I need a tip on project layout and how git handles my problem - the premise is that I have multiple platforms for some projects and files can be shared between platforms15:11
xorAxAx joined15:11
bremner Mohjive: use branches?15:12
Mohjive with Visual SourceSafe (VSS) - don't say anything as it was not my idea, I just inherited this - it is possible to "link" files between directories, so that whenever one files change it is seen in other places15:12
bremner: I thought of this15:12
ch077179 left15:12
MattDiPasquale left15:12
bremner Or use symlinks, but this has nothing to do with git15:12
Mohjive and, yes, that's one of the solutions15:13
symlinks are not possible since we're including windows here15:13
bremner afaict, those are the options15:14
s/options/non-crazy options/15:14
MattDiPa_ left15:14
Mohjive I just need some good (rather great) solution to this so we (I) can start moving into git (instead of this horrible piece of software called vss)15:14
MattDiPasquale joined15:15
ch077179 joined15:15
Mohjive the one weak point with branches I can see is you have to merge back manually, right?15:15
bremner yes15:15
Mohjive but that *could* be a good thing actually :)15:16
ch077179 left15:16
bremner that is kind of the point of using version control, instead of symlinks, yes15:16
j416 Mohjive: if it was automatically updated, testing would be a jungle15:16
Mohjive j416: yea, it *is* already...15:17
j416 better to merge, test, distribute, than auto-update, not test, and distribute buggy versions....15:17
not saying that the latter is what you're doing now, but just for the point of it.15:17
Mohjive hehe, sure :)15:18
j416 Mohjive: I'd create a 'master' branch that contains the common code for all platforms15:18
booginga joined15:18
j416 work on that for common code15:18
then create one branch for each platform (or version of that platform even)15:18
merge master into that, or rebase onto master if that's what you prefer15:19
optionally extend your workflow with topic branches, bug branches etc.15:19
ch077179 joined15:19
j416 Mohjive: this for example http://nvie.com/posts/a-successful-git-branching-model/15:20
but adapted to your case.15:20
bremner or, in non-sucky platforms/languages, just have a common directory for common files15:20
Mohjive that doesn't sound like a bad approach15:20
bremner using include / make paths etc...15:20
theoros left15:21
j416 the problem with this approach though, is that it tends to be tricky to develop on that common branch, because you'll likely need a specific version for testing15:21
Mohjive bremner: mm, but I also have to take the current workflow into account, even though a common directory would be possible even here15:21
theoros joined15:21
oriba joined15:22
j416 and by specific version I mean you're likely on some platform and you want to try out your code there first15:22
but you can't commit it to the branch of that platform because it's common code.15:22
go figure15:22
bremner Mohjive: one thing to keep in mind, is what your deliverables are. I am used to open source, where a source distribution probably includes all platforms. Your case may be different of course15:22
MattDiPa_ joined15:23
booginga left15:23
j416 Mohjive: submodules is another option.15:23
keep the common code in a submodule15:23
might be more work than it's worth.15:23
j416 shrugs15:23
Mohjive thanks for the helpful tips - back to the drawing table to produce a presentable idea/solution :)15:25
xorAxAx left15:25
j416 Mohjive: this is in fact a problem I'm facing too15:26
MattDiPasquale left15:26
Mohjive j416: that branch figure was nice15:26
j416 having to develop on a common branch, but needing to have another branch checked out so that things'll work properly15:26
I'm considering making an alias that'll commit to the common branch, then automatically rebase the current branch on top of that15:27
but it seems a bit ugly.15:27
MattDiPasquale joined15:27
j416 s/seems/feels/15:27
Mohjive bremner: mostly embedded systems, but software is developed on pc (windows or linux) before being moved "down"15:27
darkredandyellow joined15:28
MattDiP__ joined15:28
bremner Mohjive: I guess the point is that branching on platform makes it a bit harder to deliver snapshots of all platforms. But you have to decide if that is an issue.15:29
MattDiPa_ left15:29
j416 Mohjive: another solution is to have the "common" branch be a branch configured for the platform you're developing on, and have the other branches reconfigure that to their respective platforms15:29
Mohjive not when I think of it, we mostly focus on one platform at a time15:29
j416 (having the platform-branches always rebased on top of your dev branch, or a stable master of that)15:30
RvnPhnx joined15:30
Mohjive I think branches is what I'll go for (for now)15:30
MattDiPa_ joined15:30
Mohjive it seems possible to move branches into directories later (I'm not that experienced with git yet)15:31
MattDi___ joined15:31
MattDiPasquale left15:32
Fboy left15:32
j416 Mohjive: why not set them into directories in the first place and skip the work of moving them later15:32
GaVrA joined15:32
Mohjive please elaborate15:32
MattDiP__ left15:33
j416 I'm not sure what you are after15:33
but doing things the right way from the start tends to avoid some headaches in the future15:33
just that.15:33
:)15:33
Mohjive there are three issues, main issue being I'm currently forced to use vss15:34
Tixz Hi, How do I push updates from a submodule to it's 'parent' repo?15:34
RvnPhnx Tixz Are you in the submodule?15:35
Mohjive second is finding a way to make the managers accept git (for this I need a way to "translate" our vss repo to git)15:35
Tixz yes15:35
MattDiPa_ left15:35
j416 k hehe15:35
gl with that15:35
lu_zero joined15:35
lu_zero left15:35
lu_zero joined15:35
Tixz RvnPhnx Yes it's from submodule to where I've cloned it from15:35
Mohjive which is my third issue15:35
RvnPhnx Mohjive vss?15:35
Mohjive visual sourcesafe15:36
RvnPhnx Tixz Is the upstream repo set?15:36
Mohjive something MS developed early nineties, it's a bit worse than CVS15:36
RvnPhnx Mohjive Oh, ok... the "v" was clogging my brain15:36
ugh15:36
Tixz RvnPhnx What do you mean? Sorry, I'm really new to Git15:37
tango_ well if somebody could do worse than cvs, it had to be ms15:37
RvnPhnx Tixz You cloned into that submodule from another repo when you created it, right?15:37
Tixz Yes15:37
I used the git submodule init15:38
I have both repo's on my local machine15:38
Mohjive j416: my "private" issue is to translate our <platform>/<project>/<[shared] file> into something workable in git but that the management accepts15:38
MattDi___ left15:38
Mohjive though I gtg, bbl and will read backlog15:38
MattDiPasquale joined15:38
j416 Mohjive: quite a task you have there :)15:39
RvnPhnx Tixz So that means you have both "parents" on the local machine?15:39
j416 convincing management that is15:39
good luck.15:39
Tixz RvnPhnx Yes, the repo that I have 'submoduled' is a set of classes that I want to maintain on it's own so I can easily update it across several projects15:39
RvnPhnx Tixz Ok, so which direction are we trying to send changes? From the "global" to the "local" or the other way around?15:40
Mohjive j416: yeah..., thanks for the help15:41
:)15:41
j416 hope it works out. :)15:41
RvnPhnx j416 Sounds like he's got his work cut out for him...15:41
j416 not sure what that means15:41
but I'll say that's a definite maybe15:41
darkredandyellow left15:42
Tixz RvnPhnx From the local to the global... I just use git submodule update when I start out, but hten as I go along I might edit the cloned files, but I would like to commit them to the repo that I have cloned15:42
so I can update the other projects that depend on it and get the latest version15:42
kpreid joined15:43
Tixz RvnPhnx Do you get what I mean? I'm new to git, so I'm not sure I use the right terminology all the time15:44
RvnPhnx Tixz What does your .gitmodules in the topmost directory contain (please use a paste-bin; ask if you don't know what that means)?15:46
d0m joined15:46
Tixz RvnPhnx https://gist.github.com/81345615:47
All I want to do is to push/add/commit my local changes to the global repo15:49
RJD22RJD22|away15:50
RvnPhnx Tixz I found what I was looking for: http://blog.jacius.info/git-submodule-cheat-sheet/15:50
Tixz So I should use git push origin master?15:51
RvnPhnx Sounds like what you're trying to do...15:52
Tixz Thanks a lot :)15:52
I'll try it out15:52
Zephyrus joined15:54
Tixz RvnPhnx I get an error :S15:54
RvnPhnx I get this error: https://gist.github.com/81345615:55
yhager left15:56
yhager joined15:56
stigrett joined15:56
RvnPhnx Tixz, that's what I thought it would do.15:57
stigrett left15:57
stigrett joined15:57
Tixz RvnPhnx How excatly do I fix it? I'm not sure I understand the error message15:57
MattDiPasquale left15:58
RvnPhnx What will best serve you is to have a bare repository for that shared module and use THAT as the upstream for all instances of that module--including that which is TECHNICALLY your master copy.15:58
Then you can push/pull at will and get the expected results.15:59
codespectator left15:59
Tixz So instead of using submodules, have a repo that I can push/pull from?15:59
DaveIngram joined15:59
codespectator joined16:01
RvnPhnx No, not quite16:02
Tixz you can still use submodules, but you can't push the changes back DIRECTLY to a non-bare shared master.16:02
Tixz Hmm, I'll have to read up on all this origin/master relationship stuff, so I can understand who it all works16:03
RvnPhnx So you'll need a global bare repository for that.16:03
Sounds like a good idea16:04
Good Luck!16:04
SethRobertson Tixz: Perhaps you should consider gitslave as an alternative to git-submodule, depending on your development workflow it may be better (or worse). However, it doesn't alter what RvnPhnx is talking about WRT a shared bare local master repo16:04
ExtraSpice joined16:05
Tixz Do you guys know a good place to get an easy introduction to Git? I mean, the Git Book is pretty heavy for beginners, better for reference16:05
RvnPhnx There was a posting a couple of weeks back to the git mailing list that had a ton of resources listed, but I don't have the reference URL for that handy right now (it is at work, and I'm not).16:06
LongBeach joined16:06
kukks joined16:07
SethRobertson The ProGit (or GitPro) book is good16:07
RvnPhnx The git wiki probably has most of them listed however16:07
SethRobertson People also recommend git for computer scientists16:07
Both listed in the wiki16:07
Or google16:07
Tixz Yeah, I tried Google, but it seems to turn up too many random blog posts16:08
I'll check out the ProGit book16:08
SethRobertson No, search for the book and document I mentioned16:08
ExtraSpice left16:09
Tixz Cheers guys :)16:09
eekTheCa1 joined16:12
eekTheCa1 I added a git repo as a sub folder of my repo16:13
the sub repo didn't get commited16:13
eekTheCa1 left16:13
roop joined16:13
eekTheCat joined16:13
eekTheCat left16:16
gnufied left16:16
eekTheCat joined16:16
gusnan left16:16
dwmw2_gonedwmw2_AVF16:16
stamina_ left16:17
gnufied joined16:17
envi left16:17
eekTheCat I added a git repo as a sub folder of my repo. The folder did not show up in git status and did not get commited. How do I commit it?16:18
I removed the .git folder16:18
in the subfolder16:18
but it's still not showing up16:18
stamina_ joined16:19
eekTheCat in git status16:19
charon what are you really trying to achieve?16:20
eekTheCat: usually when importing whole repos, people would either make them a submodule (see git-submodule manpage) subtree-merge (see git-subtree on google)16:20
eekTheCat charon: i want to add the contents of the folder to my repository16:20
charon without history?16:20
eekTheCat charon: yup16:21
no need for a submodule16:21
thiago_home cp the folder, then git add16:21
eekTheCat it somehow automagically became a sub module16:21
Buglouse left16:21
mithun joined16:21
charon if you add a directory that is in itself a git repo, it does become a submodule16:21
eekTheCat how do I unmake it a submodule?16:22
Anti-X joined16:22
charon you remove its entry from the index: git rm --cached $dir16:22
SethRobertson You may need to modify .gitmodules as well16:22
booginga joined16:22
charon (from the description of his steps i'm inferring .gitmodules was never involved)16:23
eekTheCat yeah. never made a .gitmodules :)16:23
charon: that seems to have done the trick. thank you16:24
torvalamo left16:26
NickyP left16:26
SvenDowideit left16:27
rseifert joined16:29
rjnienaber joined16:30
becomingGuru_ joined16:30
puffandstuff joined16:30
puffandstuff hi16:30
awilkins joined16:32
puffandstuff Is there a way to find commits where function_foo() was changed (added, modified, deleted etc..) ?16:32
jmaya joined16:33
roop left16:33
d0m left16:36
charon puffandstuff: not yet, but you can try merging the WIP log -L feature and see if it works for you16:37
other than that the usual approach is to blame around the function, find the last commit C that changed it, look at C, and blame again in C^16:37
awilkins puffandstuff, You could `git annotate` the file16:37
puffandstuff thank you16:38
awilkins puffandstuff, If you're looking for a specific bug, and you have a test for it, you could also use bisect to find the revision that introduced it16:38
thiago_home puffandstuff: git log -p path/to/file, then grep for the function name16:38
puffandstuff thank you all :)16:39
booginga left16:40
Ins|de joined16:40
booginga joined16:40
Utkarsh_ left16:40
Ins|de hello, i have a project with some submodules, most of their origin url's changed, how do i proceed?16:41
should i just edit the .gitmodules manually ?16:41
tizzo joined16:42
tizzo left16:42
gnufied left16:44
kipras joined16:44
jfkw joined16:44
Error404NotFound joined16:45
Error404NotFound left16:45
Error404NotFound joined16:46
skoop joined16:48
tewecske left16:52
jmaya left16:52
Error404NotFound left16:52
SethRobertson You can do that, delete the existing repos, and ask to check them out again16:53
Or you can do that and then also change the upstream URLs in the sub-repos16:53
Buglouse joined16:54
ixti joined16:55
gnufied joined16:57
madewokherd joined16:57
luis_ joined16:59
huehnts left17:00
gnufied left17:01
radarek left17:06
SvenDowideit joined17:06
knittl_ joined17:06
hohoho left17:06
knittl_ left17:06
tizbac left17:07
sudonotp1ease joined17:07
storrgie_ left17:08
sudonotplease left17:09
sudonotp1ease left17:09
ivanx joined17:09
aah left17:10
aah joined17:10
ivanx left17:11
tapank joined17:11
gnufied joined17:11
pielgrzym left17:13
tapank left17:17
tizbac joined17:17
bitkiller left17:17
bitkiller joined17:17
chrischambers left17:18
madsy left17:18
verdon left17:18
verdon joined17:18
electrogeek joined17:20
electrogeek left17:20
electrogeek joined17:20
puffandstuff left17:21
leo2007 joined17:21
madsy joined17:21
RJD22|awayRJD2217:22
electrogeek left17:22
Tixz left17:22
verdon left17:25
awilkins left17:25
rlb What's the best way to programmatically determine if a tree is clean, i.e. that git commit would complain "nothing to commit"?17:26
Ins|de left17:26
chrischambers joined17:27
doener rlb: commit would complain about that when the index is clean, the working tree doesn't matter (unless you use commit -a). And you can check whether the index is clean using: git diff-index --cached --quiet17:28
verdon joined17:28
ISF joined17:29
bodom joined17:29
jhelwig_ joined17:29
rlb doener: OK, thanks -- I just want to check whether or not the tree is clean after applying an arbitrary patch (or archive), i.e. did it do anything git would commit.17:29
Buglouse left17:30
DiGitalX left17:30
pfrenssen joined17:30
i_ron left17:30
bodom Hi!17:31
I've setup a plain ssh git server: i created a folder and git --bare inited it. Then I created some system users and added them to the group git and changed the folder permissions to rwxrws---17:31
ldh joined17:31
neilkod joined17:31
bodom Now my problem is than when a users makes a push the objects folder is created with rwxr-x---- permissions and other users will be unable to push until I do a chmod -R g+w *17:32
rlb doener: actually, that won't reallly work -- doesn't deal with new files, and I don't think I want --cached. Basically I want to test if there are any differences (incl new files) between the working tree and HEAD.17:33
radarek joined17:33
bodom Is there any way to set git default file permissions to 770?17:33
juangiordana joined17:33
puffandstuff joined17:34
simplechat left17:35
rlb OK, I suppose 'test -z "$(git status --short)"' might be sufficient.17:36
pfrenssen left17:38
neilkod left17:38
becomingGuru_ left17:40
normanrichards left17:41
rgr left17:41
project2501a left17:42
ceej joined17:42
MacGyverNL left17:42
MacGyverNL joined17:42
icwiener joined17:43
bodom left17:44
napster_123 left17:46
anderse left17:47
MacGyverNL left17:48
CrazyGir how does one clone a specific branch from a remote repo, as opposed to the master?17:49
ixti left17:50
doener CrazyGir: clone creates remote-tracking branches for all remote branches by default17:50
CrazyGir: you can control for which of them a loacl branch head gets created using -b17:51
zivester_ left17:51
zivester_ joined17:53
mikepack joined17:53
tcurdt joined17:56
irfaN left17:59
goshawk left17:59
CrazyGir ah18:01
ty18:01
electrogeek joined18:03
electrogeek left18:03
electrogeek joined18:03
project2501a joined18:04
project2501a left18:04
dr_win left18:04
Davey_ joined18:04
Davey_ left18:04
Davey_ joined18:04
Buglouse joined18:06
dr_win joined18:07
CyberDoc joined18:08
CyberDoc left18:09
kpreid left18:10
Buglouse Can i issue git pull out side of the 'git clone' dir?18:16
somehow specifying to check /dir18:16
doener left18:17
tizbac left18:17
doener joined18:17
thiago_home Buglouse: cd into the directory, then pull18:18
MrGlass joined18:18
xerora joined18:19
Slix` joined18:20
Slix` left18:20
Buglouse trying to perform operation on git pull. pushd dir; git pull; popd; will return exit code from popd. just wanted to know if there was a more direct way of acting on git pull exit code. Ill just write more.18:20
thiago_home set GIT_DIR and GIT_WORKTREE18:21
or GIT_WORK_TREE18:21
Buglouse: or check the arguments to the git part of git pull (man git)18:21
jast Buglouse: the 'git' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git.html [automatic message]18:21
zivester_ left18:22
MrGlass is there a way to use .ignore so that my folders are added to the repo, but none of the folder contents?18:22
sry, .gitignore18:23
rlb MrGlass: https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F18:24
setmeaway left18:24
MrGlass hrm. it says I can use .gitignore as the file it needs to add the directory. my .gitignore files are just '*'. is there a way to set that up as * except .gitignore, or manually add .gitignore?18:25
add, git add -f18:27
thanks!18:27
normanrichards joined18:28
RvnPhnx left18:29
dfr|mac left18:31
setmeaway joined18:32
sako joined18:33
cirwin joined18:34
matjas joined18:35
Fboy joined18:35
PigeonFriend left18:36
tcurdt left18:39
orafu joined18:39
eekTheCat left18:39
Buglouse so git --work-tree=dir pull should pull from dir/.git into dir?18:44
thiago_home Buglouse: to be on the safe-side, set both18:44
--git-dir and --work-tree18:45
Buglouse just doesn't work as expected18:45
CrazyGir for those that might know and work with pip/python & git18:45
{ixti} joined18:45
CrazyGir how do I know pip is using the correct branch in git?18:46
kpreid joined18:46
thiago_home Buglouse: what did you expect and what happened?18:46
cirwin CrazyGir: if you don't want it to be master you have to put @branch on the end of the git repo uri18:47
CrazyGir sweet18:47
zombor joined18:47
CrazyGir ty!18:47
Elfe joined18:48
Buglouse i want to pull a git repo from outside the dir containing .git. using GIT_WORK_TREE=relative_dir GIT_DIR=relative_dir git pull. I receive either: fatal: no a repo: .git or fatal: no a repo 'relative_dir'18:48
no/not18:49
cirwin Buglouse: then just "git pull ../other/directory/"18:50
koo5 joined18:50
{ixti} left18:50
radarek left18:50
Buglouse thats what the man says i can do, but i am in an empty dir with only ./dir/.git as contents, and no go.18:51
SimonP86 joined18:51
cirwin what error do you get?18:51
domino14 joined18:51
doener Buglouse: GIT_DIR should likely be relative_dir/.git -- but IIRC pull doesn't correctly work with GIT_DIR/GIT_WORK_TREE18:52
pfrenssen joined18:52
doener cirwin: Buglouse doesn't want to pull from the repo given by relative_path, but pull without changing into that directory18:52
domino14 i have a very simple question. if i do a few git commits, and i forget whether i did git push, is there a way to ask git how many commits ago i did a push?18:53
cirwin """i want to pull a git repo from outside the dir containing .git. using""" is ambiguous :)18:53
domino14 or whether the push is up to date18:53
doener Buglouse: I'd just do (cd whatever && git pull) the subshell avoids the problem with popd overwriting the exit code18:53
ptl left18:54
iravid left18:54
cirwin domino14: first do a "git fetch" to see what's around on the remote, and then use "git branch -v" to see which branches are ahead or behind18:55
iravid joined18:55
JohnFlux_ left18:55
jpieper left18:55
JohnFlux__ joined18:55
dkasak left18:55
pantsman joined18:55
amerine joined18:55
kpreid left18:56
domino14 ok i did git branch -v and i get a little log line18:56
* master 12bfce5 removing vestigial 'everything is unchanged' message18:57
how do i know if this is in my own copy of the repository?18:57
thiago_home Buglouse: use a subshell then18:58
mikemeyer joined18:58
Buglouse doener: huh, git --git-dir=dir/.git pull works fine.. thought i tried that one. thanks18:58
domino14 oh i understand, it's just listing the branches, there's just one18:58
resmo joined18:59
domino14 so should i always do git pull before i start work? this is similar to svn update?18:59
thiago_home domino14: only if you want to18:59
dkasak joined18:59
gnufied left18:59
doener Buglouse: that might have messed up the directory you were in, though. As you didn't set the work tree directory in that command19:00
domino14 well, to avoid the pain of merging later, i guess19:00
does anyone find something bad with the idea of using a dropbox directory as a remote git repo?19:00
thiago_home what's a dropbox directory?19:01
_rane this comes up from time to time19:01
thiago_home and how do you access it?19:01
_rane thiago_home: dropbox.co19:01
+m19:01
CrazyGir cirwin: are you familiar enough with pip & git that I may ask you a few more such questions?19:01
thiago_home _rane: do you access it via DAV?19:01
neilkod joined19:01
_rane you access it via filesystem19:01
CrazyGir I'm having a difficult time getting my git repo to play nice with pip19:01
cirwin CrazyGir: I've no idea19:01
CrazyGir hah19:01
ok :)19:01
thiago_home _rane: so, via DAV?19:02
jast thiago_home: dropbox automatically mirrors changes to all subscribers to a folder19:02
domino14 its kind of like using git on git19:02
jast I have no idea what the underlying protocol is19:02
domino14 i'm a git n00b19:02
pdelgallego left19:02
thiago_home sounds like a bad idae then19:03
some files in git are modified all the time19:03
timj__ left19:03
cirwin the fs plugin for dropbox is pretty silly — it even tells everyone that I keep creating .swp files and deleting them19:03
CrazyGir hah19:03
thiago_home you can probably use it as a backup, but not for sharing19:03
jast cirwin: you can tell vim to store .swp files in a fixed location. it's what I do.19:03
CrazyGir jast: that's a great idea..19:03
cirwin jast: that would spoil my story :p19:03
CrazyGir thank you.19:03
magn3ts joined19:03
CrazyGir cirwin: do you use interesting names to give them clues to follow?19:04
magn3ts Can I somehow get git to automatically recognize which files I 'rm'ed rather than 'git rm'ed?19:04
CrazyGir :P19:04
MetaCosm_ left19:04
jast anyway. the main disadvantage of storing it in a dropbox is that you couldn't do very efficient packs, because re-packing a pack might end up removing a pretty large file and replacing it with a new pretty large file19:04
cirwin CrazyGir: interesting names?!19:04
koo5 left19:05
jast magn3ts: if you're fine with getting git to pick up all changes (modifications *and* deletions) at the same time, just use git add -u from the top level of the repository19:05
magn3ts jast, okay. also, now that I just accidently commited my entire target folder, can I undo the latest local commit before pushing this to github since it would still push them if I remove it from next commit?19:05
cirwin magn3ts: git reset HEAD^19:06
jast magn3ts: sure. get your index all fixed up to the right state, then use git commit --amend19:06
that will replace the previous commit with the new stuff19:06
magn3ts jast cool!19:06
cirwin python programmers should not like git — there's more than one way to do it..19:06
jast cirwin's suggestion pretends that you never had the previous commit, so you can use it to do the same thing19:06
intripoon joined19:06
ptl joined19:06
jast well, curiously enough I like git but not Python ;)19:07
magn3ts jast, but does his command cause me to loose local changes since the last commit?19:07
jast magn3ts: no, neither of them.19:07
magn3ts oh19:07
jast git reset only destroys uncommitted changes if you use the --hard flag19:07
magn3ts :) nice, thanks for the tips jast, cirwin.19:07
jast 'git reset' without flags will just change the index contents and the state of the branch19:08
you can even keep the index intact, too, by using git reset --soft19:08
Ingmar_FOSDEMIngmar_home19:08
theoros left19:09
intripoon_ left19:09
kpreid joined19:10
radarek joined19:10
Cvbge joined19:11
ChanServ set mode: +v19:11
Thell joined19:11
rgr joined19:12
Arrowmaster left19:13
engla joined19:13
engla left19:14
engla joined19:14
EugenMayer joined19:14
domino14 so what if i forget to do a git push after committing all day? is there a way to make git automatically push commits?19:15
timj__ joined19:15
dtillberg joined19:15
bremner you could use a cron job19:15
cirwin you could set up a post-commit hook, but you shouldn't19:15
_rane i ssh to my work system and push19:15
cirwin: worst idea ever19:16
dtillberg left19:16
dantillberg joined19:17
cirwin _rane: you just wait for my next one :p19:17
Buglouse is this expected? git clone git://repo; cd dir; rm file dir; git pull; file and dir are not recreated. this is what git pull is supposed to do, correct?19:17
bremner Buglouse: rm or git rm?19:18
Buglouse rm19:18
/bin/rm19:18
thiago_home Buglouse: git pull won't recreate th files19:19
jast Buglouse: pull updates the branch with upstream changes; uncommitted changes, however, are not part of the branch (because, you know, they are not committed to it ;)).19:19
thiago_home that's the expected behaviour19:19
hagebake joined19:19
hagebake left19:19
hagebake joined19:19
jast even so, "delete" is a change, too. if you delete a file, commit then, then pull updates that change the file, you'll get a so-called delete/modify conflict (git doesn't know whether you want the file back with the new changes or whether it should stay dead)19:19
storrgie_ joined19:20
elmob joined19:20
jast if you want to recreate the file, use something like git checkout -- <file>19:20
Buglouse jast: commit is not done though19:20
jast yes, hence what I said first applies19:20
Buglouse yeah19:21
thiago_home never leave uncommitted changes19:21
jast oh, well, it depends on the changes, right?19:21
I don't usually commit extremely experimental stuff or trace commands, for example :)19:22
mrconnerton joined19:22
theoros joined19:22
{ixti} joined19:22
comawhite joined19:22
dantillberg left19:22
bremner as long as you are not upset when git reset --hard destroys them, feel free not to commit19:22
you presumably being the generic you, rather than jast ;)19:23
jast aww, I don't even get personalized advice anymore :(19:23
perhaps I should give myself advice instead19:24
hey jast, get back to working on your project19:24
oh, hey, thanks for the reminder!19:24
bremner jast: you should make the bot nag you19:24
jast jast: move move move [automatic message]19:24
I can't highlight myself :(19:25
bremner jast: that is why you need a bot with a different nick. offby1 has hours of fun with that.19:25
jast too much work :(19:25
Sgeo__Sgeo19:27
linusoleander joined19:27
domino141 joined19:28
domino14 left19:28
pfrenssen left19:29
{ixti} left19:31
andrewvos joined19:31
andrewvos can anyone let me know what this means git push origin master:gh-pages19:32
is it saying push to "master and gh-pages"?19:32
thiago_home no19:32
it's source:destination19:32
push the contents of the local master branch to origin's gh-pages branch19:32
andrewvos ohhhh ok19:32
thanks!19:32
mrconnerton left19:35
mizar99 joined19:35
MetaCosm_ joined19:36
mizar99 left19:36
darkredandyellow joined19:36
emiel_ joined19:37
bentob0x left19:37
Davey_ left19:38
Kwpolska joined19:40
boombatower joined19:42
boombatower left19:42
boombatower joined19:42
Kwpolska I have a problem with git. http://paste.pocoo.org/show/333213/19:42
domino141 left19:43
cirwin Kwpolska: that looks normal19:43
what did you expect?19:43
koo5 joined19:43
domino14 joined19:43
kpreid left19:45
ptl left19:45
Davey_ joined19:45
Davey_ left19:45
Davey_ joined19:45
verdon left19:45
domino14 left19:46
goshawk joined19:46
Kwpolska cirwin: I want to get rid of it19:47
MrShmelo12 joined19:48
cirwin get rid of the file?19:48
ptl joined19:48
cirwin git rm privpastebin19:48
MrShmelo12 left19:48
Pupeno joined19:48
Kwpolska of the message19:49
I want to have privpastebin on the server19:49
{ixti} joined19:49
eago joined19:50
Kwpolska and by server, I mean both the github server and my shell server where I have my github repo19:50
eago hi, I have a repository in a usb flash drive... pulling works fine but pushing is very slow.... is there a way to make push faster?19:50
cirwin echo privpastebin >> .gitignore19:51
or to .git/info/exclude if you don't want to have a .gitignore file19:51
MacGyverNL joined19:51
MacGyverNL left19:51
MacGyverNL joined19:51
cmyers eago: is it possible the write perf of the flash drive is just way slower than the read?19:51
eago nope, works fine when copying files manually19:51
Kwpolska cirwin: won't work19:52
oracal joined19:52
cirwin oh — you have local modifications to a committed file that you want git to ignore?19:52
git fails for doing that19:52
dkasak left19:53
BlueAidan joined19:54
dkasak joined19:54
BlueAidan how does git calcuate the sha of a tree?19:54
I've been reading http://stackoverflow.com/questions/552659/assigning-git-sha1s-without-git for blob objects, but I can't find something similar for trees.19:54
BlueAidan left19:55
BlueAidan joined19:55
sako left19:56
doener BlueAidan: just use "tree" instead of "blob"19:57
neilkod left19:57
stamina_ left19:57
doener BlueAidan: but I guess you're actually looking for the format of trees, instead of just how to get the sha1 for objects storing them, right?19:58
psoo joined19:58
neilkod joined19:58
mjv joined19:59
darkredandyellow left20:01
neilkod left20:01
zombor left20:02
NickyP joined20:04
ptl left20:04
mjv left20:05
necromancer joined20:05
ptl joined20:05
mjv joined20:05
BlueAidan doener: so the sha of a tree object is just based on the name? it doesn't reference any of the sha's that are inside it?20:07
Kimmono joined20:07
cirwin it's based on the contents20:07
BlueAidan I'm reading http://book.git-scm.com/7_raw_git.html , the "Creating Trees" bit.20:08
Chillance joined20:08
BlueAidan how does git go from20:08
100644 blob 6ff87c4664981e4397625791c8ea3bbb5f2279a3 file120:08
100644 blob 3bb0e8592a41ae3185ee32266c860714980dbed7 file220:08
to f66a66ab6a7bfe86d52a66516ace212efa00fe1f ?20:08
I tried just making a sha of the those 2 sha's in python, and didn't get that value.20:09
Mage joined20:10
dkasak left20:10
dkasak joined20:11
thiago_home BlueAidan: it's the sha-1 of the binary representation20:12
the mode, sha-1 and the name20:12
BlueAidan but in that example from the book, mktree doesn't have the name of the tree object yet. Just its contents.20:13
tiagobutzke joined20:13
kar8nga joined20:14
davetoo joined20:14
thiago_home huh?20:14
davetoo left20:14
tiagobutzke left20:14
engla BlueAidan: you need to get the contents right, it's in a binary format20:14
thiago_home the binary format is:20:14
engla BlueAidan: but the format is pretty much based on your plain text there20:14
iksik joined20:15
iksik hello20:15
thiago_home <mode in ASCII> SP <filename> NUL <SHA-1>20:15
iksik is it possible to set an alias on commiter name/email ?20:15
thiago_home iksik: explain20:15
BlueAidan: try it: git cat-file tree f66a66ab6a7bfe86d52a66516ace212efa00fe1f20:16
kumbayo joined20:16
BlueAidan thiago_home: thanks20:16
JohnFlux__ left20:16
JohnFlux__ joined20:16
magn3ts left20:17
iksik for example i'm using few machines from where i'm commiting/pushing my stuff into central repo... on one machine i'm x@localhost and i'm tx@hub on another - there is a little mess in repo now ( when i'm generating statistics from commits )20:17
tewecske joined20:18
thiago_home iksik: ok20:18
iksik: it's only because you configured git to do that20:18
(or lack of proper configuring it to do otherwise)20:18
iksik yes, there WAS a lack of some user.name/user.mail there, but.. now, can i fix it somehow? ;]20:19
thiago_home you can use git filter-branch20:20
please note you'll need to re-clone in all of the machines20:20
and everyone else who has the repository will need to do that too20:20
iksik hm20:20
this filter-branch i need to run on machine where is the main repository hosted, right?20:22
tiagobutzke joined20:25
BlueAidan thiago_home: so from that example, would the first one as a python string be:20:25
'100644 file1\06ff87c4664981e4397625791c8ea3bbb5f2279a3'20:25
?20:25
because I'm still not getting the same sha as the book when calculating it via python.20:27
amondracorp joined20:27
[jason63] left20:29
tiagobutzke left20:31
BlueAidan trying to make sense of http://git.kernel.org/?p=git/git.git;a=blob;f=builtin/mktree.c;h=098395fda1932674e29f8d2cb332c722a6cb275f;hb=HEAD#l45 now20:31
Caelum will I get some sort of reply for my patch to the git list, even if no one likes the patch?20:32
BlueAidan seems to align with the format you said20:32
jast BlueAidan: git includes a small header indicating the object type in what it hashes20:32
ChUrP left20:33
BlueAidan right, I gathered that from searching on the net for blob types, but I can't find what that header is for tree types20:33
jast the header is basically a null-terminated string containing the type, a space, and the length as a decimal number20:33
I don't know whether the null byte is included in the hash20:33
BlueAidan is the length just 0 for tree types?20:33
jast no, it's the size of the tree object in bytes20:34
workmad3 left20:34
BlueAidan so the sum of the objects contained in it?20:34
jast formatted as a stringified number in that small header20:34
no20:34
workmad3 joined20:35
BlueAidan then how do you calculate it?20:35
jast suppose the tree object says "100644 a\0" plus 20 bytes sha1 sum, then the length is 29 bytes20:35
pdelgallego joined20:35
jast well, if you have the object, you know its length :)20:35
BlueAidan what is "a" here?20:35
jast the filename20:35
neilkod joined20:35
jast of the blob referenced in that tree20:35
BlueAidan but my point is that mktree doesn't accept a name, but still outputs a sha of the contents20:35
linusoleander_ joined20:35
jast not the name of the tree, but the name of one of the objects in the tree20:36
BlueAidan so if there are multiple files, it's the sum of the length of the names?20:36
jast (this particular contains only one object, called a)20:36
sgh_ joined20:36
boombatower left20:36
jast no20:36
just take the tree object as a byte stream. count the bytes. that's the length of the tree object.20:36
steph021 joined20:36
linusoleander left20:37
linusoleander_linusoleander20:37
BlueAidan ah well, I have to go to the grocery store.20:37
jast let's take your example tree: '100644 file1\06ff87c4664981e4397625791c8ea3bbb5f2279a3'20:37
BlueAidan bbl20:37
jast its length is 33 bytes20:38
BlueAidan sorry, I'll read when I get back20:38
jast so the header is "tree 33"20:38
plus maybe a null byte20:38
right, definitely plus a null byte20:38
but actually your example didn't encode the sha1 sum correctly. you used a hex string representation, but it's actually stored as bytes in the tree object20:39
xiong joined20:39
jast so, '100644 file1\x00\x6f\xf8\x7c' and so on20:39
ChUrP joined20:40
pdelgallego left20:40
elmob left20:43
sgh_ Hi! I'm wondering if it is possible to get at which merge a particullar commit has been merged in. Just like git-merge-base, just the other way ?20:43
thiago_home sgh_: not easily, no20:44
sgh_ thiago_home: Though so ;( ... Do you know a hard way to do it?20:45
moosey joined20:45
coderdad_ joined20:46
thiago_home sgh_: walk forward from your commit until the other commit becomes past history20:46
the "walk forward" part is the hard part20:47
zombor joined20:48
zombor left20:48
zombor joined20:48
marc_kdab left20:49
da5id joined20:49
sgh_ thiago_home: ok ... so a shell-script would be the best solution. Thanks.20:50
mDuff joined20:51
mDuff Can I hand-edit the staged diff without unstaging it and re-adding with "git add -p"?20:51
teuf mDuff: there's a git reset -p20:51
mDuff teuf, ahh; thanks!20:52
pheaver joined20:52
elmob joined20:53
cirwin can I persuade git to do rename detection whitespace insensitively?20:53
koo5 left20:53
thiago_home cirwin: you can persuade git to do rename detection, or not do it.20:54
cirwin so if I do git show -M -w, that is as good as it gets20:54
?20:54
thiago_home yes20:54
koo5 joined20:54
cirwin I am surprised by the result20:54
ah well20:55
thiago_home try --find-copies-harder20:55
pheaver left20:55
cirwin no change,maybe there's just too much deleted stuff20:56
thiago_home the copy/rename detection is based on file similarity20:56
that doesn't do whitespace trimming, it has to be the exact same contents20:57
cirwin that's annoying20:57
kumbayo left20:57
thiago_home hint: rename, commit, modify the file, commit20:58
cirwin but then you have a commit at which the tests don't pass ;)20:58
it's not a big issue, but it seems like a fairly fixable one20:58
thiago_home not all commits pass tests20:58
koltroll joined20:58
cirwin no, and it's not even a requirement for me20:58
though I know of teams where it is20:58
thiago_home it's more important to have the logical changes than testable20:59
cirwin that depends entirely on your use case20:59
thiago_home then copy the file, commit, modify21:00
then remove the other21:00
cirwin doable too21:01
malte_ joined21:02
normanrichards left21:02
giallu joined21:03
giallu left21:03
giallu joined21:03
Fboy left21:03
Chillance left21:04
coderdad_ left21:05
coderdad joined21:05
necromancernecromancer`bzzy21:05
{ixti}ixti21:05
marc_kdab joined21:06
stamina_ joined21:07
boombatower joined21:07
boombatower left21:07
boombatower joined21:07
kar8nga left21:07
ppawel left21:08
shine-neko joined21:08
da5id_ joined21:08
da5id__ joined21:08
ChanServ set mode: +v21:09
shine-neko Ha !21:09
Hello all21:09
pgib joined21:09
j416 死ね21:09
shine-neko I have a problem with git push for a http://pastebin.com/fKCXkb1021:11
neilkod left21:11
thiago_home you can't push to a pastebin21:12
can you summarise what the problem was?21:12
Takechan joined21:12
artefon joined21:12
Takechan left21:12
cirwin thiago_home: maybe the pastebin contains some relevant info :p21:13
thiago_home he didn't make a full sentence in the channel...21:13
shine-neko thiago, error: unable to find 95bda9a7456665dc4910ea06ec8126ccfd82cb4521:14
error: pack-objects died with strange error21:14
thiago_home try git fsck on your repository21:14
it looks broken21:14
shine-neko thiago, How can I fix it?21:15
thiago_home has fsck finished running?21:19
panike joined21:19
shine-neko thiago, I already tried : git fsck --full21:19
koltroll left21:19
thiago_home it finished without errors?21:21
shine-neko thiago_home, yes21:22
thiago_home I don't know then21:22
shine-neko :s21:22
iksik left21:23
Titosemi joined21:23
tizbac joined21:24
ijuma_ left21:25
sgh_ left21:25
montylounge joined21:28
ereslibre joined21:30
ereslibre left21:30
ereslibre joined21:30
justin-george joined21:32
montylounge left21:32
amerine left21:34
primalmotion joined21:35
ChUrP left21:36
doener left21:39
Cvbge left21:39
tizbac left21:39
bradleyayers joined21:40
LongBeach left21:40
pgib left21:41
ChUrP joined21:42
radarek left21:43
MattDiPasquale joined21:44
harryman100 joined21:46
harryman100 Hi, when I do git am something.mbox, i get a 'mkdir: cannot create directory `.dotest': Permission denied'. Anyone know why?21:47
theoros left21:48
treak007 joined21:48
sterlo joined21:48
radarek joined21:49
necromancer`bzzy left21:50
charon presumably because git am wants to create a .dotest directory and you don't have permission to do so?21:55
emiel_ left21:57
paszo2008 left21:57
p3rg2z joined21:58
TrineLocke left21:58
ceej is there a way to update all submodules ?21:58
harryman100 charon: that's the obvious answer, but I can't work out where it's trying to create it21:59
theoros joined21:59
Fboy joined21:59
goshawk left22:00
tiagobutzke joined22:01
LaChouffe joined22:01
primalmotion left22:03
warthog9 left22:03
eago left22:03
primalmotion joined22:03
gantman joined22:03
gantman is this the right place to get help for gitolite?22:04
puffandstuff left22:04
amerine joined22:05
Fboy left22:06
icwiener left22:06
charon harryman100: i think it was in the toplevel of the worktree or something22:06
and unless i'm mistaken it also means you have a very old git22:06
since it was changed to .git/dotest or something ages ago22:06
harryman100 charon: thanks, that would make sense22:07
theoros left22:09
zombor left22:09
sterlo left22:10
theoros joined22:11
theoros left22:11
theoros joined22:11
darkredandyellow joined22:14
treak007 left22:16
ChrisPitzer hey - at some point in the history of my project someone deleted a function called foo_bar_asdf (a relatively specific name that doesn't matter). How can I grep the changes to find a changeset that involved that text?22:17
the tricky thing is I don't know what file it was in.22:17
ThomasLocke left22:17
pdelgallego joined22:18
MetaCosm_ left22:18
panike git rev-list HEAD | while read commit; do git grep foo_bar_asdf $commit && break; done22:18
ChUrP left22:20
matjas left22:20
cirwin git log -Sfoo_bar_asdf22:20
leavittx left22:20
MetaCosm_ joined22:22
panike That is probably better22:22
cirwin :)22:22
MetaCosm_ left22:23
MetaCosm left22:23
MetaCosm_ joined22:23
MetaCosm_ left22:23
MetaCosm_ joined22:23
radarek left22:24
darkredandyellow left22:25
bradleyayers left22:25
Heimidal joined22:26
zenom joined22:28
LotR joined22:29
zombor joined22:30
j0su3 left22:30
MetaCosm joined22:30
MetaCosm left22:30
MetaCosm joined22:30
Kimmono left22:31
Zephyrus left22:31
BlueAidan jast: sorry I had to run earlier. You had said that the length of '100644 file1\06ff87c4664981e4397625791c8ea3bbb5f2279a3' was 33 bytes. how did you calculate that? roger on the hex version of the digest.22:33
it should have been '10064 file1\0o\xf8|Fd\x98\x1eC\x97bW\x91\xc8\xea;\xbb_"y\xa3'22:34
zombor left22:34
eijk left22:35
p3rg2z left22:35
LaChouffe left22:36
steph021 left22:36
NewtonianB joined22:36
coderdad left22:37
j416 left22:37
airborn_ joined22:37
opalka joined22:37
opalka left22:37
opalka joined22:37
airborn left22:38
malte_ left22:38
darkredandyellow joined22:41
EugenMayer left22:41
j0su3 joined22:42
urbanmonk left22:42
NewtonianB left22:43
ereslibre left22:44
ixti left22:44
eletuchy joined22:47
malte_ joined22:49
DiGitalX joined22:49
oriba left22:51
angelsl joined22:52
cesario left22:52
storrgie_ left22:54
leo2007 left22:57
nairb774 left22:58
nairb774 joined22:58
amerine left22:59
marc_kdab left22:59
andrewvos left23:02
ph^ left23:02
storrgie_ joined23:03
orafu left23:05
ludde left23:06
marc_kdab joined23:07
elmob left23:08
artefon left23:08
neilkod joined23:10
nothingHappens_ joined23:11
shine-neko left23:12
xiong left23:13
jast BlueAidan: well, 33 seemed to me to be the length of that string.23:13
LouisJB left23:13
rgr left23:13
jast BlueAidan: (using the correct way to encode the sha1 ID, that is)23:13
BlueAidan it was 52. :) so, I just need to add up the lengths of the mode, space, filename, nul byte, digest version of the sha ?23:15
bitkiller left23:15
shruggar joined23:15
BlueAidan so when there are multiple files, do you include a \n between each?23:15
DiGitalX left23:15
opalka left23:15
tiagobutzke_ joined23:16
Heimidal left23:16
opalka joined23:17
opalka left23:17
opalka joined23:17
BlueAidan nvm, you were right! not sure what I was looking at23:17
it was 33.23:17
tiagobutzke left23:18
carlocci joined23:19
molney joined23:19
molney left23:19
MacGyverNL left23:20
ptl left23:21
tiagobutzke_ left23:21
BlueAidan jast: so, to calculate the sha of a tree, it'd be: sha1("tree " + sum_of_all_file_descriptors + "\0" + all_file_descriptors) ?23:21
jast it's not the number of tree entries, it's the size of all tree entries taken together23:22
d0k left23:22
jast truth be told, I don't look at the internal formats much, so I can't tell you about every last detail23:22
I had to look up the part about the header23:23
thiago_home BlueAidan: the contents of a tree object are what I told you several hours ago. The SHA-1 of a tree object is "tree " + the size of the object + NUL + the contents of the object23:23
BlueAidan: why do you want to calculate the SHA-1 of a tree object outside of Git?23:23
MacGyverNL joined23:23
MacGyverNL left23:23
MacGyverNL joined23:23
BlueAidan thiago_home: granted. I think I was having trouble because I was using the hex version of the digest23:24
jast to make sure that git doesn't make mistakes ;o)23:24
BlueAidan thiago_home: I like to know how things work. :)23:24
thiago_home the SHA-1 of any object is: object name + space + object size + nul + object contents23:24
s/name/type/23:24
rseifert left23:25
Ruudjah left23:26
boombatower left23:26
neilkod left23:27
marc_kdab left23:27
orafu joined23:27
jlewis joined23:27
normanrichards joined23:29
ptl joined23:29
xiong joined23:30
marc_kdab joined23:30
kipras left23:31
tiagobutzke joined23:32
bitkiller joined23:32
stringoO joined23:34
urbanmonk joined23:34
BlueAidan gah, I can't duplicate the sha from http://book.git-scm.com/7_raw_git.html for creating the first tree of the 2 files23:34
boombatower joined23:35
boombatower left23:35
boombatower joined23:35
FauxFaux BlueAidan: You can't guess the contents of myfile.txt that has a hash of 6ff87c4664981e4397625791c8ea3bbb5f2279a3?23:36
deck_ joined23:36
aro left23:36
DivineOmega left23:37
aro joined23:37
BlueAidan huh?23:37
FauxFaux That was my interpretation of your questions.23:38
Question.23:38
deck_ Sorry for newbie quistion. ive just clone a project by ssh, and cant write to there. should i add ssh key by ssh-add ?23:38
theoros_ joined23:38
FauxFaux deck_: You've successfully cloned it over ssh:// and can't push to it?23:39
deck_ FauxFaux, i just cant creat a file in the folder23:40
only read23:40
urbanmonk left23:40
FauxFaux You've cloned it to a local directory and you can't write to said local directory (the one you've just written to)?23:40
BlueAidan FauxFaux: I'm trying to duplicate the f66a66ab6a7bfe86d52a66516ace212efa00fe1f sha by calculating it manually. Do I have to have to know the contents of the 2 files to do that? (I.e., their sha is not enough info)?23:40
urbanmonk joined23:40
FauxFaux BlueAidan: f66a66ab6a7bfe86d52a66516ace212efa00fe1f is the hash of the contents of the file. If you don't have the same file, you won't get the hash.23:40
theoros left23:41
deck_ FauxFaux, yes23:41
mrconnerton joined23:42
FauxFaux deck_: Odd. Unless you ran the clone as another user, the clone was obviously able to write to the directory... SSH keys won't do anything for a local directory.23:42
linusoleander left23:43
HG` left23:43
linusoleander joined23:44
tiagobutzke left23:44
pantsman left23:44
storrgie_ left23:46
Buglouse left23:46
deck_ FauxFaux, sorry, but what should i do to start to work with a project ?23:46
darkredandyellow left23:47
FauxFaux You have a local filesystem problem, not a git problem; assuming you're on linux you can go familiarise yourself with ls -al and chown/chmod and try and work out what you did wrong.23:47
darkredandyellow joined23:48
tiagobutzke joined23:48
riddochc joined23:49
deck_ FauxFaux, yes, i did what i want. thx. and now, what should i do not to write password for each action (push,pull)23:54
josue joined23:55
ping-pong joined23:55
pedrobelo left23:56
carlocci how would you migrate to git? The guys I'm trying to help wrote a web framework, never used anything to handle the code23:58
j0su3 left23:58
carlocci sometimes they fix stuff on the production server without "front"porting it to the dev server, sometimes they forget to push stuff to the production server23:58
so the codebases are diverging over time23:59
storrgie_ joined23:59
cirwin carlocci: if you don't have any history23:59
just start using git23:59
FauxFaux carlocci: Ouch. /o\ There's various guides on how to host websites directly from git; so they can push to the production server.. allow no interactive logons to the production server, only allow pushing there from the dev server etc?23:59

Logs Search ←Prev date Next date→ Channels Documentation