IRCloggy #git 2011-02-12

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-12

ayust right, so what you probably really wanted to do was get rid of the local patch first, and then pull00:00
pyther so I would have wanted to revert a commit?00:00
Pewpewarrows left00:00
doener left00:02
Mathman left00:03
sivy joined00:03
benzado left00:05
siyb left00:05
dyer left00:06
j4mie left00:06
Heimidal joined00:06
sreich what is the tool that shows up initially with git mergetool?00:07
after running git mergetool --tool=kdiff3, now I cannot get to whatever it had before, where I could select remote, local, or (a)bort, iirc00:07
_psychic_ left00:07
blaines ayust: are there any other options other than git archive? Right now I'm going to use archive to copy the app to a location where tests and dependencies can be run, and then start the app from that dir vs. the repo dir00:08
Eridius sreich: do you have a config variable `merge.tool` set?00:09
sreich Eridius: ah, yes. does this happen automatically on first-run, or did I do this?00:10
theoros_ joined00:11
Eridius you must have set it. I've never heard of git mergetool setting that variable00:11
donCams joined00:11
theoros left00:11
donCams hello00:11
chrisshattuck left00:11
eijk__ left00:12
eijk joined00:12
chrisshattuck joined00:12
Eridius sreich: looks like the default list is "[meld] opendiff kdiff3 tkdiff xxdiff [meld] tortoisemerge" (the positioning of meld depends on whether you're running Gnome)00:12
sreich: and then it adds vimdiff and merge, with order dependent upon whether your editor is vim00:12
donCams i'm using msysgit to connect to github00:12
and I always get permission denied <public key>00:13
I already added the public key to github00:13
am I missing something?00:13
eletuchy left00:14
LouisJB joined00:15
chrisshattuck left00:15
jrmuizel_ left00:15
oracal left00:16
sivy left00:17
xiangfu joined00:17
Caius left00:19
sreich Eridius: ah okay. thanks00:20
pedrobelo left00:20
ayust blaines: why do you need another option?00:21
you can use archive for both...00:21
pedrobelo joined00:21
jstemmer left00:21
RaceCondition left00:22
Caius joined00:22
blaines ayust: I don't I'm just curious at this point00:24
siyb joined00:26
Buglouse left00:30
JoeCoolDesk joined00:37
jrdavid left00:38
jrdavid joined00:39
jrdavid left00:39
jrdavid joined00:39
jrdavid left00:39
jrdavid joined00:40
donCams argh Permission denied <public key>00:43
normanrichards left00:43
donCams left00:44
nadavoid left00:45
cylence joined00:45
zeshoem joined00:47
Dave^| left00:49
theoros_theoros`00:49
theoros`theoros00:49
vgr left00:51
kenichi left00:51
subsonic- how do I look at a file that's from a given tag?00:52
jast git show tag:path/to/file00:52
subsonic- jast: awesome00:52
Heimidal left00:53
eijk left00:53
rayners left00:56
koo5 joined00:56
Tuller left00:57
JoeCoolDesk What's the difference between a branch and a tag?00:57
eletuchy joined01:00
SethRobertson tag is fixed for all eternity, the head of a branch can move01:01
You can also annotate tags01:01
kipras left01:02
SethRobertson branches have namespaces, tags do not01:02
JoeCoolDesk What do you use tags for?01:02
SethRobertson I use them to mark significant builds01:03
And release points01:03
sivy joined01:04
subsonic- yeah, me too01:04
JoeCoolDesk So I shouldn't tag if I don't mean it01:04
It's for marking release versions like 1.3.3.423292932039230932?01:05
jfkw_ left01:05
tjholowaychuk left01:05
Teltariat left01:05
subsonic- JoeCoolDesk: it's up to you. But, the way I like to think about it is, "keep track of something that happened, but dont need to leave a branch oopen for it" I find it useful for "looking back" at old code keeping my created branches clean.01:06
cylence left01:06
SethRobertson I guess. One problem with tags is there are no mulligans. If you find a bug after you pushed, you cannot easily change the tag location.01:06
dreiss left01:06
SethRobertson Some people thus use branches to mark releases, but I find that problematic as well.01:06
jfkw joined01:07
subsonic- just like SethRobertson said, signifigent builds and perhaps release points.01:07
pandeiro left01:08
dyer joined01:09
dyer left01:09
dyer joined01:09
JoeCoolDesk How significant is significant?01:09
jast that's up to you01:09
if you don't want to push tags individually, you'll only want to tag stuff that is of interest to the general public01:10
or, let's say, your target audience01:10
subsonic- JoeCoolDesk: Well, recently, we dropped a whole member type and we want to clean up the code, so we tagged it "before-vendor-removal"01:10
SethRobertson My personal builds I do not tag. When I have builds which are built on the release build server and announced to the dev team, those get tagged (automatically)01:10
JoeCoolDesk Git pretty much runs my website01:10
jmorris joined01:11
JoeCoolDesk I develop on the beta branch and then I can push it to the live branch01:11
So I can tag every commit I push? What's the advantage of that?01:11
jfkw left01:12
aah left01:12
subsonic- JoeCoolDesk: it's up to you man. I wouldn't.01:12
jmorris left01:13
PerlJam JoeCoolDesk: I think your second question answers yoru first question :)01:13
subsonic- Just think it as a way to "bookmark"01:13
jast just because you *can* do something doesn't mean it's a good idea :}01:13
Pewpewarrows joined01:14
JoeCoolDesk Yeah that's what I'm thinking01:14
jast git *can* be used as an obstinate deployment tool, but that doesn't necessarily make it a good idea :)01:14
JoeCoolDesk 90% of the things people say are so great really are more work than worth it I think01:15
jast similarly, you *can* pierce your left eye with a rusty nail...01:15
JoeCoolDesk Not that everyone's abuzz about tags or anything01:15
drl joined01:15
ki__ left01:15
jast most people use tags for marking releases period.01:15
PerlJam JoeCoolDesk: no, I think that what people say are so great is great *for them* and their situation isn't universal01:15
mattly left01:15
jast if you don't have releases, you probably don't really need tags01:16
zorganae joined01:16
Heimidal joined01:16
blaines left01:16
kakos left01:16
ChanServ set mode: +v01:16
zorganae hi01:17
I'm trying to walk through the history of a branch with diff-tree trying to find a "zero diff" commit01:17
how do I check if a given commit exists?01:17
that is...01:18
what I am doing is "git diff-tree branch1^ branch2"01:18
how do I make sure "branch1^" exists?01:18
JoeCoolDesk I'm still trying to figure out if my history is repeated or if Giggle is simple displaying it oddly.01:18
priidu left01:18
jvraoltc joined01:20
ThunderChicken joined01:22
tewecske left01:23
mikepack joined01:23
ayust zorganae: git rev-parse --verify01:27
?01:27
Mannequin left01:28
Mannequin joined01:28
zorganae ayust: it fails01:29
I guess I have to look at the exit value of git01:29
ludde left01:30
ayust git rev-parse --quiet --verify branch^101:30
t01:30
then look at the exit code01:30
nonzero = doesn't exist01:30
zorganae seems like a good idea01:30
let me try it01:30
:)01:30
eletuchy left01:31
pdelgallego left01:31
leavittx left01:31
eletuchy joined01:31
justin-george left01:31
icwiener left01:34
normanrichards joined01:35
radost_ left01:36
wliao joined01:36
towski left01:36
vitor-br left01:37
utu left01:38
marienz_ joined01:38
Yuuhi left01:39
explodes joined01:40
explodes Hello, new to git. Absolutely loving it. Way better than mercurial.01:40
Much more logical/easy to use.01:41
One question though, how do I modify a commit message of a commit that has not yet been pushed?01:41
zorganae ayust: I'm getting some other colateral issues... so I'm not able to finish this test now. But your idea seems good. Thanks :)01:41
explodes rebase could do it I guess...01:41
PerlJam explodes: if it's the last commit, you could do "git commit --amend"01:41
Mannequin1 joined01:42
explodes word01:42
Mannequin left01:42
explodes What if its not?01:42
dol-sen then rebase it is01:42
ayust git rebase -i01:42
smolyn left01:42
ayust or more specifically01:42
g01:42
t0rc joined01:43
ayust git rebase -i <sha of commit before the one you want to edit>01:43
explodes Right right, ok01:43
ayust and then follow the key in the comments01:43
eddic joined01:43
explodes Excellent. Its time to go, but thanks a lot.01:43
explodes left01:43
eddic Is there a way to take a specific commit from on branch and apply it to another branch?01:44
JohnFord joined01:44
JohnFord left01:44
Eridius left01:44
eletuchy left01:44
d0k left01:45
eletuchy joined01:45
zorganae git cherry-pick01:45
(eddic: this was for you ;))01:45
marienz left01:46
eddic I have read that this could break future merging?01:46
is this true?01:46
tangledhelix joined01:46
JohnFord joined01:46
JohnFord left01:46
tangledhelix left01:46
Mannequin1 left01:46
zorganae I'll leave that for a more experienced person here...01:46
jvraoltc left01:47
SethRobertson git cherry-pick will not break future merging01:47
verto left01:47
eddic oh01:48
ok01:48
nevermind01:48
yes, that worked perfectly01:48
thanks:)01:48
boombatower left01:48
eletuchy_ joined01:49
_Vi joined01:49
jhaddad joined01:51
Schmallon left01:51
eletuchy left01:51
eddic left01:52
jhaddad i created a new repo, i've got about 30 commits, but they're all using the wrong email. how would I change the email in every commit in my history? I've never pushed to a remote.01:52
ayust jhaddad: man git-filter-branch01:52
jast jhaddad: the 'git-filter-branch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html [automatic message]01:52
jhaddad thanks, i'll look into it.01:52
subsonic- good job jhaddad01:54
vitor-br joined01:54
jhaddad subsonic-: thank you fine sir01:54
subsonic- haha01:55
marienz_marienz01:55
jfelchner joined01:57
brendon_ joined01:58
tvw left01:59
jhaddad looks intense.01:59
noahcampbell left02:00
justin-george joined02:00
ayust it's a powerful tool02:01
Behi joined02:01
hvr left02:02
Chillance left02:03
jhaddad seems like if I did it wrong without a backup i could be hosed02:03
ayust well02:04
until you garbage collect02:04
you can always just 'git reset --hard <original SHA>'02:04
so it's not *that* dangerous02:04
but having a backup never hurts02:04
and is a generally good idea02:04
silanus_ joined02:05
jhaddad attempting it now..02:05
eletuchy_ left02:05
silanus left02:06
jhaddad easier than I thought... git filter-branch --env-filter 'export GIT_AUTHOR_EMAIL="myemail@whatever.com"'02:06
glennhartmann joined02:07
jhaddad s02:08
blaines joined02:09
Schmallon joined02:15
zorganae left02:16
Araxia left02:18
smolyn joined02:18
brendon_ left02:19
jrmuizel_ joined02:19
jrmuizel_ left02:20
jaeckel left02:21
jaeckel joined02:22
jaeckel left02:22
jaeckel joined02:22
nfiniteset left02:22
dyer left02:22
subsonic- left02:23
dyer joined02:24
dyer left02:24
dyer joined02:24
airborn left02:25
_Vi left02:27
_psychic_ joined02:29
Heimidal left02:29
shruggar sitaram, ping02:29
Heimidal joined02:29
Buglouse joined02:29
Heimidal left02:29
dreiss joined02:30
ben_alman joined02:30
Yuffster joined02:31
sitaram shruggar: pong02:35
_Vi joined02:35
shruggar sitaram, I'm trying to follow the procedure described in "shell games" to manage hooks via the gitolite-admin repos. I'm having trouble with the "gl-install" part due to it (as might be expected) attempting to overwrite what I just put into the admin-dir with defaults02:37
alvaro_o_ left02:37
mw_ left02:37
_psychic_ left02:37
shruggar the difference between what I'm doing and what is described is that I'm also trying to manage gitolite-admin hooks02:37
specifically that's causing problems due to this part: system("cp -R -p $ENV{GL_BINDIR}/../src $ENV{GL_BINDIR}/../doc $ENV{GL_BINDIR}/../hooks $GL_ADMINDIR");02:38
jmorris joined02:39
mm_work left02:39
sitaram shruggar: two things to note to start with: (1) dont fiddle with gitolite-admin's post-update hook (2) dont fiddle with *any* repo's update hook. In short, don't fiddle with the hooks that gitolite comes with02:39
shruggar: there's also a line in there that will cause a "these two are the same file" problem; I haven't had a chance to look at it yet but its harmless02:40
hyperair left02:40
rayners joined02:40
amerine left02:41
saysjonathan left02:41
shruggar sitaram, I admit I have fiddled somewhat: I added gl-post-update-pre-apply to add additional checks prior to the checkout/etc02:42
sitaram shruggar: what is the error you're getting. You said what line is causing it but not what error. IIRC that is the line that will complain about "these files are the same" or some such02:43
Vampire0_ joined02:43
shruggar sitaram, "remote: cp: cannot stat `/home/vcs/bin/../src': No such file or directory", as my $GL_BINDIR doesn't live anywhere near anything else02:44
I suppose this could all be solved by my just sticking the hooks in common/, as that will copy them to gitolite-admin too02:45
dl9pf_ joined02:46
sitaram shruggar: what install method did you initially use?02:46
and yes that would be the right way to do things02:46
Vampire0 left02:46
dl9pf left02:47
_Vi left02:47
coderdad left02:47
sitaram shruggar: it is possible that shell-games was not really tested for other install methods than "from-client", so the last line (gl-install) should probably be different. I'd have to test, but I probably dont have time right now02:47
hobodave left02:47
ormaaj left02:47
Vampire0 joined02:48
Vampire0_ left02:48
tkil joined02:49
angelsl joined02:50
shruggar I initially used system-wide install, though I've screwed things up by now, probably. Originally that seemed to be overwriting my hooks because there's a line that says.... (looking...) ln_sf("$GL_PACKAGE_HOOKS/gitolite-admin", $hook, "gitolite-admin.git/hooks") if $GL_PACKAGE_HOOKS;02:50
sitaram shruggar: also read the doc on hook propagation02:51
shruggar: I need to go way for about 20-30 min; sorry02:51
shruggar np. I think the gist of it is "I shouldn't screw with so many things" :)02:51
Elfe_ left02:52
shruggar so I tried setting GL_PACKAGE_HOOKS='' in my rc, since it seemed that was closer to what I actually wanted to be doing.... that's when gl-install started being noisy instead of silently overwriting my hooks02:52
ch077179 left02:52
brendon_ joined02:52
shruggar I think what I might do is write a separate gl-propagate-hooks script, that only does the one thing I want02:53
ProperNoun joined02:53
ProperNoun left02:53
ProperNoun joined02:53
shruggar anyway, for now I'm going to bed. Thanks for putting up with my ramblings for a while :)02:54
nadim left02:57
zombor joined02:58
shruggar left02:59
tildeequals left02:59
shiba_yu36 joined03:01
drl left03:01
_Vi joined03:03
ch077179 joined03:06
hyperair joined03:06
boombatower joined03:07
boombatower left03:07
boombatower joined03:07
jhaddad left03:09
aah joined03:10
yogione left03:11
hyperair left03:11
Elfe joined03:12
_Vi left03:13
leo2007 joined03:14
scelis left03:15
drl joined03:15
kakos joined03:17
ProperNoun left03:18
MikhX_ joined03:18
MikhX left03:19
MikhX joined03:19
_Vi joined03:20
jmorris left03:20
khaije|minder joined03:21
Araxia joined03:22
MikhX_ left03:22
sivy left03:28
Mannequin joined03:28
torvalamo left03:28
intripoon_ joined03:30
leo2007 left03:30
jmorris joined03:33
intripoon left03:33
gusnan joined03:40
Amorphous left03:40
mdel left03:40
lazyguru joined03:44
normanrichards left03:45
coderdad joined03:45
Maletor joined03:46
mdel joined03:52
timj__ joined03:52
tcv_br joined03:53
zorzar left03:54
Amorphous joined03:55
glennhartmann left03:55
Elfe left03:55
Elfe_ joined03:55
tcv_br left03:55
ormaaj joined03:56
tcv_br joined03:56
timj_ left03:56
tcv_br left03:57
tcv_br joined03:57
drl left04:00
markelikalderon left04:00
dreiss left04:00
Textmode left04:05
Teltariat joined04:08
zorzar joined04:08
kyv left04:09
nb left04:10
stliu joined04:12
stliu left04:12
stliu joined04:12
drl joined04:13
nb joined04:15
Maletor left04:17
context kk so apparently git does have its limited04:17
limits*04:17
brendon_ left04:17
context their is such a thing as too big a file04:18
LongBeach joined04:18
context 4G of memory and 2G of page space and it cant gc ?04:20
the file is only 900M04:20
brendon_ joined04:20
TomyLobo joined04:20
t0rc left04:22
kukks left04:22
amerine joined04:23
ThunderChicken left04:26
Anubisss_ left04:27
zeshoem left04:30
gusnan left04:33
tcv_br left04:34
shiba_yu36 left04:35
mdel left04:37
hyperair joined04:39
Evious left04:39
boombatower left04:41
kisielk_home joined04:42
Vik joined04:43
_Vi left04:47
dr0id joined04:48
bradleyayers joined04:49
zombor left04:51
int3h joined04:53
Zhonghua joined04:55
dreiss joined04:56
coderdad left05:00
Vik left05:00
harshu joined05:02
pyther left05:03
yogione joined05:07
shiba_yu36 joined05:07
BiggFREE joined05:08
TanEk left05:11
chrisshattuck joined05:12
normanrichards joined05:14
jmorris left05:18
zombor joined05:19
blaines_ joined05:19
blaines left05:20
arunpattnaik joined05:28
zombor left05:29
yogione left05:31
utu joined05:32
blaines_ left05:33
towski joined05:40
jmorris joined05:43
hyperair left05:44
linusoleander left05:46
bmahe left05:48
harshu left05:49
sreich left05:52
chrisshattuck left05:53
maleknet joined05:54
mdel joined05:55
harshu_ joined05:56
tango_ gasparri: "I temi posti sono tutti rilevanti: squilibri ed abusi che si registrano soprattutto nell'informazione radio-televisiva pubblica non possono essere elusi". chissà perché sono sicuro che non stia parlando del TG105:58
(o di vespa)05:58
rayners left05:58
Mannequin left05:59
b4tm4n joined05:59
dreiss left05:59
botanicus joined05:59
dr0id tango_: do you use github ?06:00
can the public activity be deleted ?06:00
tango_ oops06:01
wrong channel guys06:01
dr0id: never tried so I have no idea sorry.06:01
btw, I think there is a #github channel, they might know more06:02
Zhonghua left06:02
arohner left06:02
lazyguru left06:02
amondracorp joined06:03
dr0id tango_: they're dead today06:03
tango_ poor things06:03
hyperair joined06:07
arunpattnaik left06:08
madewokherd left06:11
samhassell joined06:11
_Vi joined06:12
jvraoltc joined06:12
hyperair left06:14
amerine left06:17
hyperair joined06:22
struberg joined06:22
b4tm4n left06:30
Heimidal joined06:30
theoros left06:34
project2501a left06:36
int3h left06:37
hyperair left06:37
hyperair joined06:38
Buglouse left06:38
int3h joined06:39
MikhX left06:42
iAsterisk joined06:45
hyperair left06:46
kisielk_home left06:46
MikhX joined06:47
ChanServ set mode: +v06:48
cxreg2cxreg06:48
cxreg what a pain. network wouldnt let me change nicks because i was "banned" in this channel06:49
The_Tick it's so you can't evad06:49
evade*06:49
for poor bans06:49
cxreg heh06:49
vitor-br left06:51
Swimming_bird joined06:52
hyperair joined06:53
zeshoem joined06:54
pk___ joined06:56
drl left06:56
iAsteris_ joined06:57
pk___ i did a git reset --hard origin on my repository ..even then git status shows many modified files06:57
ExtraSpice joined06:57
pk___ how do i reset the git repository completely06:57
Swimmin__ joined06:58
Swimming_bird left06:58
wereHamster pk___: do you have crlf enabled?06:58
pk___ dont know i am linux06:59
wereHamster which filesystem?06:59
botanicus left06:59
pk___ ntfs06:59
wereHamster which repository?07:00
maleknet left07:00
pk___ means?07:00
hyperair left07:00
wereHamster is it the linux kernel?07:00
eletuchy joined07:00
pk___ no no07:00
vlc repository07:00
iAsterisk left07:00
wereHamster can you clone the repo to a linux filesystem and sii if it also shows modified files?07:01
eft_ left07:01
pk___ actually i have a slow internet connection07:02
so i cant really clone07:02
thats why i wanted to reset the existing repo07:02
BiggFREE left07:03
towski left07:04
pk___ left07:04
hagabaka left07:05
hagabaka joined07:05
hagabaka left07:05
hagabaka joined07:05
Maletor joined07:06
pk___ joined07:06
DiGitalX joined07:06
pk___ i cloned the repository07:06
and i issued a git status command07:06
and it shows all of them modified07:07
wereHamster pk___: my guess it's because you are on a case insensitive filesystem07:07
blaines joined07:07
pk___ i am using linux and the drive is ntfs07:08
wereHamster yes, I know. You already told us07:08
pk___ then what can i do now?07:09
wereHamster use something else than ntfs.. ?!?07:09
amerine joined07:09
VladDrac left07:09
pk___ but i have aother repository which is perfect07:10
VladDrac joined07:10
pk___ on ntfs too07:10
drl joined07:10
wereHamster also vlc?07:10
pk___ yes07:11
dr0id left07:11
pk___ oh sorry07:11
the other one is in ext407:11
thanx :)07:11
nadim joined07:13
envi joined07:15
struberg left07:16
iAsterisk joined07:17
project2501a joined07:17
pratz left07:18
iAsteris_ left07:19
project2501a left07:19
harshu_ left07:20
pratz joined07:21
pk___ left07:21
iAsteris_ joined07:22
MikhX left07:23
iAsteri__ joined07:23
harshu_ joined07:23
cesario joined07:23
iAsterisk left07:24
iAsteris_ left07:26
JoeCoolDesk How do I unadd files?07:26
iAsteri__ left07:27
iasterisk joined07:27
wereHamster JoeCoolDesk: git reset <file>07:27
JoeCoolDesk: and git status07:28
Buglouse joined07:29
JoeCoolDesk Thanks07:31
Maletor left07:32
agile left07:35
eletuchy left07:41
ki__ joined07:43
CrazyGir hello07:45
dr_win joined07:46
jvraoltc left07:46
CrazyGir I'm not sure how, but I unexpectly got myself into a conflicted merge state07:46
the merge failed, so I'm not sure where to go from here07:46
how does one manually merge, is this the best way to resolve?07:47
JoeCoolDesk Is the source of the submodule saved in the parent repository?07:52
Schmallon left07:53
thiago_home joined07:54
hyperair joined07:55
harshu_ left07:55
harshu joined07:56
dotCOMmie left07:57
wereHamster CrazyGir: man git-merge07:57
jast CrazyGir: the 'git-merge' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-merge.html [automatic message]07:57
dotCOMmie joined07:58
notze joined07:58
wereHamster there's a whole section about how to resolve merge conflicts07:58
ChanServ set mode: +v07:59
notze moinmoin07:59
wereHamster JoeCoolDesk: what do you mean by source?07:59
topi joined07:59
topi left07:59
topi joined07:59
notze i have a problem pulling the latest git release i get the famous08:00
fatal: cannot pread pack file: No such file or directory08:00
what can i do here?08:00
i tried like git fsck --full git gc08:00
...08:00
how can i get further info what causes the problem?08:00
pfrenssen joined08:01
blaines left08:01
notze lol moin pieter08:01
Gryllida left08:01
randomus1r joined08:03
randomus1r left08:03
XABQKXV joined08:04
tewecske joined08:08
notze left08:09
CrazyGir ok, so I was not aware of git's ability to recognize different versions of files while working out the merge, and I've resulted in 4 local versions of the same files08:10
*file08:10
Gryllida joined08:11
JoeCoolDesk Werehamster, I mean the contents of the submodule, whatever it be.08:14
sudonotplease joined08:14
guardian joined08:15
moonk joined08:17
MikhX joined08:17
moonk left08:17
Heimidal left08:23
amondracorp left08:24
amerine left08:24
Yuffster left08:25
joel_falcou joined08:27
eciur joined08:27
xiangfu left08:28
eciur left08:28
guardian left08:30
iasterisk left08:32
zeshoem left08:34
doener joined08:36
lahwran joined08:36
lahwran how do I tell git that I deleted a file?08:36
Silowyi left08:36
lahwran well, moved*08:36
mikepack left08:36
lahwran I moved some files, did git add . at the root of the repo, and commited, but it doesn't seem to understand that the old files are gone08:37
xiangfu joined08:37
lahwran ah, found it partway down man git-rm08:38
jast ah: the 'git-rm' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-rm.html [automatic message]08:38
mmattice you didn't git mv them08:38
dermoth_ left08:38
doener lahwran: "add <path>" will only add modified and new files, "add -u <path>" will add modified and deleted files, "add -A <path>" does both08:38
lahwran ah08:39
so add -A at the root of the repo and another commit will fix it?08:39
dermoth_ joined08:39
nevyn^ joined08:39
selckin git both the remove and add of the new file, and it should detect it's the same file and show as a move08:39
*stage08:40
doener lahwran: for example. But you'll likely want to amend the existing commit (unless you already pushed it)08:40
lahwran yeah, I didn't realize I had screwed up until I saw the error on github08:40
notze joined08:41
Utkarsh joined08:41
Utkarsh_ left08:44
nevyn^ left08:45
hyperair left08:50
SIGBUS joined08:54
utu left08:56
topi left08:57
joel_falcou left08:59
gonemad3workmad308:59
protorom joined09:03
urkud_ left09:05
srji joined09:05
_pingu joined09:08
ormaaj left09:11
babbage left09:11
priidu joined09:12
ormaaj joined09:12
anderse joined09:13
sudonotplease left09:16
thermal joined09:16
sudonotplease joined09:17
maleknet joined09:17
guardian joined09:17
dozepih joined09:18
thermal left09:18
jmorris left09:20
deurk joined09:21
ChanServ set mode: +v09:21
deurk hello09:21
babbage joined09:21
deurk I use git to keep track of my dot files09:21
thiago_home left09:22
aep just learned that this is a bad idea when doing git clean in thw wrong dir09:22
deurk and kinda made a mistake by commiting and pushing a few files in there that should not be part of the repository09:22
trouble is that the files are a few gigabytes...09:22
is there a way to remove them from the repository?09:22
Zephyrus joined09:24
deurk I did a git reset of the said commit09:24
but the bare repository (remote) still shows a size of a few gigabytes instead of few megabytes09:25
any way around it?09:25
leavittx joined09:26
Behi left09:29
dwmw2_AVF left09:29
harshu left09:29
pratz left09:29
rchavik joined09:31
radarek joined09:32
rchavik left09:32
thiago_home joined09:32
j416 joined09:33
protorom there is a way... but I can't find it just now :-( it was something like: git filter-branch followed by git gc09:33
rchavik joined09:33
maleknet left09:34
rchavik left09:34
thiago_home left09:35
boombatower joined09:35
rchavik joined09:35
doener deurk: see the end of man git-filter-branch, "CHECKLIST FOR SHRINKING A REPOSITORY"09:36
jast deurk: the 'git-filter-branch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html [automatic message]09:36
protorom @duerk have a look at git filter-tree's examples section09:36
oops ;-) filter-branch of course09:36
thiago_home joined09:36
Fullma joined09:37
deurk thx doener jast protorom09:37
:)09:37
ThomasLocke joined09:40
dol-sen left09:41
harshu joined09:43
JoeCoolDesk left09:43
pratz joined09:43
DrNick left09:43
kumbayo joined09:44
DrNick joined09:44
deurk thx again, doing on git reset HEAD~1 followed by a git clone --bare file:///path did the trick09:46
_pingu left09:46
deurk I was not using file:// previously so it hardlinked the repos thus kept the unneeded refs09:47
deurk left09:47
khmarbaise joined09:48
chrischambers joined09:49
joel_falcou joined09:50
caruso_g joined09:50
caruso_g Hi all. I committed some patches I wanted to include into the next commit, I also made some edits before to realize I made the error in committing all. How do I revert the status to before the commit -a while keeping my edits?09:52
Chillance joined09:52
robotarmy left09:53
protorom caruso_g: git reset HEAD~109:53
caruso_g protorom: thanks mate. What is ~1? And (while looking at manual) which is the difference with HEAD^?09:55
Samual_ joined09:55
ThomasLocke left09:55
protorom caurso_g: ~1 and ^ are the same - ~2 is the same as ^^ and ~3 is the same as ^^^... etc09:55
Samual left09:57
caruso_g protorom: great, thanks a lot. But if I reset HEAD^^^ does Git keep my edits or I will loose ^^ and ^?09:57
protorom yes - the commits are still there - just hard to get to unless you created a new branch or tagged them first09:58
jogla joined10:00
RaceCondition joined10:00
urkud_ joined10:00
protorom you could also do something like git checkout -b fixme HEAD^ - then you incorrect commit is still available in your old branch, and you're back to where you were before your commit - then you can merge selectively from your broken commit10:01
(that was a really awkward sentence)10:02
Pieter notze: ?10:02
pdelgallego joined10:03
reZo joined10:06
ormaaj left10:07
pantsman joined10:08
pantsman left10:08
pantsman joined10:08
ormaaj joined10:08
HG` joined10:10
HG` left10:11
HG` joined10:11
pantsman left10:12
OOPMan joined10:13
ki__ left10:14
leavittx left10:15
sudonotplease left10:15
sudonotplease joined10:16
workmad3 left10:20
notze left10:21
joel_falcou left10:22
notze joined10:23
SIGBUS left10:24
BearPerson left10:25
BearPerson joined10:25
jkp joined10:26
tcv_br joined10:26
VladDrac I've created a git repo, done some stuff and commits10:26
now I've created a bare clone out of it and rsynced it to a remote server, which will basically be my central repo10:26
is there a way to change my origin to this repo?10:26
saves me from cloning it and rebuilding it10:27
thiago_home VladDrac: yes, git config remote.origin.url10:27
VladDrac I shouldn't have asked "is there a way"10:27
of course there is10:28
with git there always is :)10:28
many thanks10:28
drizzd_ joined10:29
doener VladDrac: modern git versions also have "git remote set-url"10:30
xiangfu left10:32
drizzd left10:32
dwmw2_gone joined10:35
j416 if I git clone any repo, are _all_ branches and all data cloned without exception?10:36
egrouse left10:36
h0st1le left10:36
j416 (is there a setting to specify clone not to fetch objects for a certain branch etc?)10:36
h0st1le joined10:37
thiago_home j416: instead of cloning, init + remote add10:39
then you can change the fetch refspec10:39
j416 thiago_home: what do you mean?10:39
Utkarsh left10:39
Utkarsh joined10:39
roger_padactor left10:39
thiago_home init, remote add, change the refspec, then fetch10:40
j416 ah, sorry, I was wondering more in general10:40
egrouse joined10:40
egrouse left10:40
j416 if I clone, will everything be fetched?10:40
airborn joined10:40
j416 (is there a setting someone can make so that that will not be the case?)10:40
thiago_home yes, if you clone, you get all branches10:40
all local branches10:40
j416 so if I clone another repo, I can be sure that I have all its data10:41
and all tags?10:41
Bruce_Wayne joined10:41
j416 I've been using git for quite a while now, but haven't really explored much of the remote features.10:41
thiago_home all tags and all local branches10:41
j416 thanks.10:41
:)10:41
Chris64 joined10:41
Chris64 hi all10:41
herlock joined10:42
Chris64 is there a git client for android available?10:42
j416 hi single one10:42
Chris64 ;)10:42
egrouse joined10:42
egrouse left10:42
j416 android. o_O never heard of git for android. wouldn't it be very cumbersome to develop on a.. phone? :D10:43
nevyn^ joined10:43
j416 s/develop/do development/10:43
Chris64 or just for reading, don't know :)10:43
herlock Hello. I would like to restore a previous commit. I mean, I would like to be able to work only on the files that were in the state of this commit. Without the changes made after that commit (and without the files that were created after that commit)10:44
j416 Chris64: the closest solution _I_ can think of, is if you ssh to a computer that has git.10:44
herlock can you please give me a pointer to a doc that explain it ?10:44
j416 herlock: you want either git revert or git reset10:44
herlock: man git-revert10:44
jast herlock: the 'git-revert' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-revert.html [automatic message]10:44
j416 herlock: man git-reset10:44
jast herlock: the 'git-reset' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-reset.html [automatic message]10:44
Chris64 j416: this sounds good, thanks :)10:45
herlock that's git reset or git revert ?10:45
j416 'git revert' will create a commit recording the undoing of that commit. 'git reset' can make it look as if though that commit never happened.10:45
notze left10:46
j416 if you are collaborating and other people have fetched your branch, git revert would be appropriate. If you're on your own, git reset might be what you want.10:46
lemonchicken left10:46
malesca herlock: Sounds like what you want is "git reset --hard mycommit", but read up first since you will lose every commit after that one (though they're technically not lost forever).10:47
j416 (and any uncommitted changed with that, mind)10:47
s/changed/changes710:47
s/7/\//10:47
bah10:47
:P10:47
malesca :)10:47
xzer joined10:47
slonopotamus joined10:48
herlock so I could do something like git revert10:48
wliao left10:48
herlock oosp10:48
j416 herlock: git revert [the sha1 of the commit you want to undo and record a revert commit for]10:48
herlock: git reset --hard [the commit before the commit you don't want]10:49
note again: be sure not to have any uncommitted changes you want to save.10:49
sudonotplease left10:50
Buglouse left10:50
xzer left10:50
j416 herlock: "git revert" is "record a commit that reverses the specified commit"; "git reset" is "reset my branch to the state at the specified commit"10:50
if that makes it more clear.10:50
sudonotplease joined10:51
dr_win left10:51
egrouse joined10:51
egrouse left10:51
dr_win joined10:52
Octalot joined10:53
ph^ joined10:54
GaVrA joined10:54
lemonchicken joined10:54
Bruce_Wayne left10:56
RevoOf joined10:56
herlock ok, thank you guys :)10:58
maleknet joined10:59
j416 you're welcome.11:00
tvw joined11:02
egrouse joined11:02
egrouse left11:02
slonopotamus left11:02
Utkarsh_ joined11:02
egrouse joined11:02
egrouse left11:02
reZo left11:02
slonopotamus joined11:03
shiba_yu36 left11:04
Utkarsh left11:04
timotei joined11:04
egrouse joined11:04
egrouse left11:04
timotei hi. I had a series of commits which I was gonna git svn dcommit.11:05
but perl crashed in the meantime, leaving me with uncommited changes and stuff11:05
how can I resume the dcommiting?11:05
goshawk joined11:06
stliu left11:06
egrouse joined11:08
Utkarsh joined11:11
Yuuhi joined11:12
bentob0x joined11:12
maleknet left11:12
Utkarsh_ left11:13
Geralt joined11:14
Geralt Hi, is it possible to apply only parts of a (stashed) commit to the working directory, like git add --patch or git checkout --patch?11:14
jstemmer joined11:17
tvw left11:18
j416 Geralt: I can't find such an option. Maybe because the stash is somewhat like a patch in itself.11:18
maleknet joined11:18
j416 then you'd want to add --patch to git apply also, that is, apply a patch to the patch to apply... kind of11:19
eh :11:19
:)11:19
just speculating. You can do git stash save --patch, though. To only save some of it.11:19
or you can just apply the stash and commit only part of it through doing git add --patch first.11:20
Geralt j416: I already have these changes stashed, and yeah in the end I did it that way, git stash apply and then git checkout -p to discard what I don't want11:20
Is a stash not just a commit?11:21
j416 Geralt: why not apply, then commit what you want to _save_, then reset?11:21
samhassell left11:21
j416 that's how I would do it11:21
a stash is a commit afaik.11:21
level09 joined11:21
Geralt j416: I have already stuff for another commit in the index and unfortunately I stashed a bugfix together with some debugging output away (and guess how long it took me to find out we the bug is suddenly back...) :-/11:22
we=why11:22
j416 Geralt: have you found a way to selectively add changes from a specified commit?11:22
hm11:22
Geralt j416: not really, except for git cherry-pick --no-commit and then git add --patch11:22
j416 I'd suggest you commit more often :)11:23
remember you can undo commits11:23
Geralt j416: I say that to myself all the time too...11:23
j416 heh11:23
Geralt maybe one day I really get it into my muscle memory to do that :-)11:23
j416 Geralt: one thing you _could do_,11:24
is11:24
commit whatever you have in the index now11:24
apply the stash11:24
then commit part of it11:24
sudonotplease left11:25
sudonotplease joined11:26
Geralt j416: yes, I could have but I already discarded what I don't want, so I'm fine too and thanks for your help :)11:26
timotei so, it's a way to resume a stopped svn dcommit?11:26
j416 ok. :)11:26
timotei that is, continue to apply the "commits"?11:26
Geralt And now I'll commit these changes right away11:26
j416 Geralt: also, if you're doing bugfixes and everything on the same branch.. maybe you should have a look at this, I find it rather clever: http://nvie.com/posts/a-successful-git-branching-model/11:26
(not sure that is what you're doing, just hinting11:26
)11:26
curtana joined11:28
Fullmoon joined11:29
Dave^| joined11:32
timotei http://blogs.gnome.org/diegoe/2009/03/18/saving-your-neck-when-git-svn-dcommit-fails/11:32
I've found the solution :D11:32
thanks anyway11:32
Geralt j416: I'm familiar with that model, but we don't have releases yet and we are only two people hacking on it, so development is pretty linear, with the usual merge/cherry-pick.11:32
Caius left11:32
j416 Geralt: ok. :)11:33
Geralt: I'm only one person, and I'm starting to adapt at least part of that model11:33
samhassell joined11:33
j416 I think it's a good guide to have in mind anyway.11:33
ch077179 left11:34
Caius joined11:34
Caius left11:34
Badiss joined11:42
harshu left11:43
harshu_ joined11:43
joel_falcou joined11:45
pedrobelo left11:47
Titosemi joined11:47
pedrobelo joined11:47
funfun left11:51
pyther joined11:52
pyther left11:52
pyther joined11:52
pozic joined11:52
pozic Are there tools to go from a CVS repository to a Git repository with one command?11:53
level09 left11:54
jstein joined11:55
funfun joined11:55
jast pozic: man git-cvsimport @11:55
pozic: the 'git-cvsimport' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-cvsimport.html [automatic message]11:55
bluenovember joined11:56
jstein hi, i dont understand how to merge from the manual. Can you help me? I have a repository on github https://github.com/jonasstein/fuzzer and a local one on my pc. "upliner" changed a line in the same file i was working on. How can i merge/push my stuff now?11:57
timotei left11:58
boombatower left11:58
Caius joined11:59
gmcdonald joined11:59
slonopotamus left11:59
slonopotamus joined11:59
d0k joined12:02
Geralt jstein: fetch his changes (git fetch), merge it into your branch (git merge) then try again12:02
notze joined12:04
Utkarsh left12:05
iravid left12:05
iravid joined12:06
ixti joined12:08
herlock left12:09
urkud_ left12:09
cesario left12:10
OOPMan left12:11
ludde joined12:15
maleknet left12:17
maleknet joined12:19
jogla left12:19
jstein Geralt: i have only one local branch. Is it correct, that i need two? github ---> mixbranch <--- localmaster12:20
Geralt jstein: I'm not sure I understand your question. Can I see the output of 'git branch -a'?12:23
Fullmoon left12:23
jstein sure: http://paste.debian.net/107402/12:24
dabaRs joined12:24
Geralt jstein: ok, so all you need to do is 'git pull && git push'12:25
jstein Geralt: http://paste.debian.net/107404/ i think i have to add the url to github, right?12:29
slonopotamus left12:30
urkud_ joined12:31
cesario joined12:31
nevyn^ left12:32
Geralt jstein: ok, then use git pull origin/master and if that fails git pull remotes/origin/master12:32
nevyn^ joined12:32
ixti left12:35
hansu joined12:36
notze left12:36
DiGitalX left12:36
leavittx joined12:37
slonopotamus joined12:38
tcv_br left12:39
isionous left12:41
priidu left12:41
drl left12:42
saste joined12:44
cesario left12:45
jstein $ git pull origin/master12:45
fatal: 'origin/master' does not appear to be a git repository12:45
fatal: The remote end hung up unexpectedly12:45
$ git pull remotes/origin/master12:45
fatal: Not a git repository (or any parent up to mount parent )12:45
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).12:45
:(12:45
int3h left12:46
Geralt jstein: is origin not your github repo?12:47
cbreak jstein: it's not git pull origin/master, it's git pull origin master12:47
saste http://pastebin.com/kUbq8X8T12:47
cannot get my head aound git-filter-branch...12:47
cbreak jstein: man git-pull12:48
jast jstein: the 'git-pull' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-pull.html [automatic message]12:48
charon jstein: there's a big difference between 'git {fetch,pull} origin master' ("please {get,merge} the master branch of the remote origin") and 'git merge origin/master' ("merge the *last known state* of master at origin, which is stored in refs/remotes/origin")12:48
jstein: in particular the former goes over the network and the latter doesn't12:48
(also, pull is roughly fetch+merge)12:48
finally, do note that 'git pull origin master' does not update origin/master for historical raisins.12:49
(bah, got my puns all mixed up)12:49
cbreak saste: use env-filter12:49
rns joined12:49
cbreak or fix your commit filter to do the proper things12:49
jstein i look in the .git/config if i can fix the serveraddress there12:49
Utkarsh joined12:50
DiGitalX joined12:50
charon jstein: most likely this doesn't have a thing to do with broken urls12:50
pdelgallego left12:50
cbreak jstein: why fix a server address?12:50
it's not like you told git to even USE a remote12:51
charon (i.e., even if you had the correct origin url configured, 'git pull origin/master' would still fail as that is a nonsensical request)12:51
cbreak fix your commands12:51
priidu joined12:52
saste cbreak: http://pastebin.com/YhTmGAHh12:54
cbreak saste: don't commit tree!12:55
read the damn man page...12:55
drl joined12:56
saste cbreak: i'm doing that since one hour but imo the man is quite poor if you don't have already an intimate knowledge with git12:58
roger_padactor joined13:00
dr_win left13:00
cbreak well... it's a man page, not a tutorial :)13:01
jstein ok the pull && push worked now, but i have a ugly HEAD line in source now. i thought git would automatic join the files if possible13:01
https://github.com/jonasstein/fuzzer/blob/master/fuzzyselect.py#L1013:01
saste: dont worry i have similar problems with the documentation13:02
guardian left13:02
j416 left13:02
cbreak join files?13:03
HEAD line?13:03
you're supposed to fix merge conflicts yourself13:03
there is no automated way to solve all of them13:04
you can use a merge tool that can help you if you figure out how :)13:04
saste jstein: well I did it with git rebase -i and git commit --amend --author.. I don't have time to dive for days in git docs...13:04
Zhonghua joined13:04
cbreak env filter is trivial13:04
just export your variables, then it'll do the rest13:05
saste cbreak: if you can point to the error I'm doing i'll be grateful13:05
cbreak: ehi maybe i'm just dumb...13:06
cbreak as I said, just set the variables, export them, and you're good13:06
no commit tree13:06
env filter is a very easy one13:06
commit filter is a complicated but powerful one13:06
jstein saste: do you want to write a better howto for newcomers?13:06
cbreak it's probably the most powerful of all filters13:06
DaveIngram joined13:06
xiong left13:06
jstein saste: i bought the apress git book. It is quite good, but some things are still far beyond my uynderstanding13:07
saste jstein: maybe... but you know I have my own problems and my own docs to write... maybe a blog post..13:07
adamholtadamholt_away13:08
isionous joined13:08
adamholt_awayadamholt13:08
g0bl1n joined13:09
Ruudjah joined13:10
vandemar left13:10
_iron joined13:10
tewecske left13:12
guardian joined13:12
j4mie joined13:13
guardian left13:13
tewecske joined13:13
dabaRs left13:13
Araxia left13:14
nevyn^ left13:14
maleknet left13:16
vandemar joined13:16
MattDiPasquale joined13:16
nazgul102 joined13:16
nazgul101 left13:17
orafu left13:17
maleknet joined13:18
juangiordana joined13:20
kbedell joined13:20
protorom left13:21
j4mie left13:23
sechrist left13:24
MattDiPasquale left13:24
simplechat joined13:24
kbedell left13:29
drl left13:31
pratz left13:31
harshu_ left13:32
maleknet left13:34
RevoOf left13:34
kipras joined13:35
j4mie joined13:35
urkud_ left13:36
pratz joined13:37
jstein thank you all for helping with my first merge13:38
hansu left13:39
xiangfu joined13:40
slonopotamus left13:41
drl joined13:43
mw_ joined13:44
sechrist joined13:45
notze joined13:45
guardian joined13:46
TomyLobo left13:47
guardian1 joined13:47
_pingu joined13:48
pdelgallego joined13:49
guardian left13:50
drl left13:50
urkud_ joined13:51
pratz left13:53
pratz joined13:56
adamholtadamholt_away13:58
adamholt_awayadamholt13:58
mastro left14:00
j4mie left14:00
JStoker left14:02
maattd joined14:03
drl joined14:03
gusnan joined14:05
markelikalderon joined14:05
Ulfalizer joined14:07
Mannequin joined14:08
Ulfalizer how can i get a list that maps branches to the branches they track?14:08
charon saste: did you get it fixed? the env-filter is just supposed to (re)set the variables documented in man git-commit-tree14:09
jast saste: the 'git-commit-tree' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-commit-tree.html [automatic message]14:09
charon saste: that being said, i think it's difficult to write a beginner's tutorial to one of the most advanced tools in git14:09
Ulfalizer i often give me local branches mnemonic names, and tend to forget what remote branches they track14:09
*my14:09
charon (not because env filters are hard, but because some of the more advanced things like changing parents can give very strange results)14:10
saste charon, jast: yes it was trivial (once you know the exact solution) ;)14:10
charon, jast: and my use case was pretty common14:10
charon, jast: I had some trouble at understanding the difference between the various kind of filters14:11
charon saste: poor jast just sent you a bot reply :)14:11
kipras left14:12
Ulfalizer is this hard to do? i figured there'd be some simple command and that my rtfm skills weren't up to snuff :)14:13
ch077179 joined14:14
cbreak Ulfalizer: man git-branch14:15
jast Ulfalizer: the 'git-branch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-branch.html [automatic message]14:15
cbreak do something like git branch -vv14:15
mastro joined14:15
charon or for script use, apply 'git rev-parse --symbolic-full-name $branch@{upstream}'14:16
Ulfalizer ah, didn't notice the tracked branch appeared within [] after the commit SHA. thanks!14:17
with git branch -vv that is14:17
it'd be neat if you could get a format where each line is "<branch> -> <tracked branch>", without the additional clutter14:18
perhaps git rev-parse can help with that14:18
saste charon: http://pastebin.com/B3WyK37m14:19
ThomasLocke joined14:19
charon Ulfalizer: git for-each-ref --format="%(refname:short)" refs/heads/ | while read r; do echo "$r" "$(git rev-parse --symbolic-full-name --abbrev-ref "$r@{upstream}")"; done14:21
untested14:21
well, ok, it doesn't like that if a branch doesn't track anything14:21
doener git for-each-ref --format='%(refname) %(upstream)' refs/heads14:22
sedeki joined14:22
Ulfalizer doener: neat :)14:22
charon doener: oh wow. why did i try that and conclude it didn't work, yet it does :)14:22
doener charon: for-each-ref even knew %(upstream) before @{upstream} was introduced ;-)14:23
charon saste: you could submit a patch to make that an example in the manpage14:23
dr_win joined14:23
charon saste: still, i believe one cannot fully understand g-f-b before one has the git knowledge to simply read the script. i wonder if pseudocode in the manpage might help14:24
munhgauzen joined14:25
Adaptee left14:25
spaceonline left14:25
Blackguard left14:26
linusoleander joined14:26
anderse left14:27
iasterisk joined14:27
munhgauzen left14:27
hyperair joined14:28
anderse joined14:28
Anubisss joined14:29
Blackguard joined14:31
munhgauzen joined14:32
evilgeenius joined14:33
evilgeenius how can delete all the changes I have made since I last commited?14:33
JStoker joined14:33
cbreak git reset --hard HEAD14:34
for example14:34
or git checkout HEAD -- .14:34
HG` left14:37
jergen joined14:37
evilgeenius Is there a difference between those 2 commands?14:37
cbreak yes, many14:38
JStoker left14:39
goshawk left14:40
bluenovember left14:43
_pingu left14:44
nevyn^ joined14:46
bluenovember joined14:48
bradleyayers left14:48
joel_falcou left14:50
bluenovember left14:52
JStoker joined14:54
rns left14:58
bluenovember joined14:58
caruso_g left14:59
drl left14:59
bluenovember hey all. I messed around with my config mergetool and tortoisemerge path, and now when I run "git mergetool" I get "No files need merging" despite there clearly being conflicts. How can I fix this?14:59
nonnooo joined14:59
bluenovember (using msys git on windows, ideally wanting to use tortoisemerge as mergetool. my .gitconfig has no lines relating to merge in it now)15:00
Chris64 this would be interesting to me too15:01
cbreak bluenovember: git config -l and git config -l --global15:01
cesario joined15:02
bluenovember cbreak, merge.tool=tortoisemerge and merge.conflictstyle=diff315:02
nothing else under merge15:02
or mergetool15:03
cbreak well, remove those :)15:03
bluenovember heh kk15:03
kbedell joined15:03
bluenovember no change cbreak15:04
cbreak git status shows conflicts?15:05
bluenovember (git config --unset merge.tool etc, re-ran git-config -l, doesn't show anything relating to merge. re-ran "git mergetool" in conflicted state, "no files need merging"15:05
cbreak interesting. weird.15:05
bluenovember mmm actually shows staged changes, unmerged paths, and untracked (.backup, .base, .local, .remote files)15:05
Rogue joined15:05
bluenovember conflicts from rebasing a branch15:05
cesario left15:06
bluenovember rebase --abort and redoing rebase results in the same state15:06
sedeki left15:06
Rogue left15:07
Rogue_Coder joined15:07
sivy joined15:07
rchavik left15:07
bluenovember This all started when I removed tortoise\bin from path. Git was then giving me vimdiff. I couldn't get git to use tortoise again (despite setting path in $PATH and having merge.tool set) so reinstalled tortoise and nuked git config lines.15:08
Rogue_Coder left15:08
notze left15:08
Rogue_Coder joined15:08
bluenovember (I'm far too partial to the shotgun approach to solving problems)15:08
sonnym left15:09
Rogue_Coder left15:09
Rogue_Coder joined15:09
nonnooo left15:10
HG` joined15:10
Rogue_Coder left15:10
Rogue_Coder joined15:11
munhgauzen left15:11
nevyn^1 joined15:12
drl joined15:12
nevyn^ left15:13
RobertLaptop joined15:14
kukks joined15:16
icwiener joined15:17
Geralt left15:17
urkud_ left15:18
chrisshattuck joined15:20
ch077179 left15:20
noonoooo joined15:22
drl left15:22
jvraoltc joined15:27
notze joined15:29
ch077179 joined15:31
Maletor joined15:32
g0bl1n left15:34
drl joined15:34
elfgoh joined15:36
noonoooo left15:36
elfgoh Hi all, I am troubleshooting a git repo. git status shows that file 'a' has been modified. But git diff does not show any difference. Any ideas?15:37
mnemoc permissions?15:38
elfgoh mnemoc: no it isn't just discovered that it is due to windows line breaks :o15:40
piggz joined15:41
mnemoc diff should show those as ^M15:41
cbreak if he has weird line ending conversion settings, it can cause such problems15:41
moonk joined15:43
piggz hi, i have a local branch, there have been verios commits to it, and a couple of 'git pull origin master' to bring in the stuff from the master main repo.....git status says it is 700+ commtis ahead of the remote branch, can i rebase it or anything before pushing it to remove all the master commits?15:43
elfgoh mnemoc cbreak: ic. Those ^M only in 'git diff', not 'git diff a'15:43
Tks for the advice. Good day!15:43
curtana that was fun to debug!15:44
cbreak piggz: you can do git rebase origin/master15:45
urkud_ joined15:45
piggz cbreak: ah...i was trying ;git rebase orign master' .... why does one need the slash and the other not?15:46
bluenovember cbreak Chris64, curtana helpfully solved my issue. The merge was showing "nothing to do" as I was in a subdir of my git dir which had no conflicts. The issue with tortoisemerge not being found was due to me having a _line break character_ in my path. :\15:46
intripoon joined15:46
cbreak piggz: rebase rebases onto what you tell it. origin/master is a local tracking branch for origin's master15:47
intripoon_ left15:48
maattd left15:49
moonk left15:49
piggz cbreak: does this look right: ?15:50
# On branch kexi-mobile-adam_pigg15:50
# Your branch and 'origin/kexi-mobile-adam_pigg' have diverged,15:50
# and have 736 and 9 different commit(s) each, respectively.15:50
cbreak why not?15:50
piggz cbreak: just wondering what the 736means15:51
goshawk joined15:51
normanrichards left15:51
cbreak 736 commits in one branch that the other does not have15:51
SimonP86 joined15:53
elfgoh left15:56
piggz cbreak: this is what i did http://pastebin.com/zQuvvhpe15:56
cbreak do you like the result?15:58
maattd joined15:58
maattd left15:58
nonnooo joined15:58
maattd joined15:59
piggz cbreak: i dont know :) ... the 736 seems like a large number and im not sure what it means...i have 16 local commits, so shouldnt they differ by 16?16:00
larsmoil left16:00
Titosemi left16:00
larsmoil joined16:01
cbreak piggz: well, look at it with a history viewer such as gitx or gitk16:01
after the rebase, they should have no commits you don't have16:01
(you did do a git fetch or git remote update before the rebase, right?)16:01
oh, what the hell16:01
you actually did rebase origin/master?16:02
you should have rebased onto your own upstream...16:02
Titosemi joined16:02
cbreak origin/master was just an example16:02
piggz cbreak: the admin has decided to delete the remote branch to push it again (........not quite getting the hang of git yet ;)16:04
cbreak well, you can rebase on the newly pushed version.16:04
you should have done git rebase yourremotenamehere/yourremotebranchnamehere16:05
OOPMan joined16:05
bradleyayers joined16:05
project2501a joined16:05
piggz cbreak: and how do i make the branch keep in sync with the remote master16:05
cbreak remote master? git rebase remotename/master16:05
obviously this makes you rewrite history16:06
so you will have to force push16:06
(and everyone else who uses the branch has to rebase instead of merge when he pulls it)16:06
piggz needs a book ;)16:08
project2501a left16:10
xiangfu left16:11
dreiss joined16:15
cognominal left16:16
sivy left16:17
tcv_br joined16:17
project2501a joined16:17
jstein_ joined16:19
Badiss left16:20
urkud_ left16:20
andrew_ joined16:21
andrew_ hello all16:21
acid left16:21
jstein left16:22
andrew_ im working in a repo that has a submodule. i've branched that repo and have started working in the new branch. when i pull on the new branch, it doesnt seem to be updating the submodule. how should i go about updating the submodule?16:22
jettero_ left16:24
jettero joined16:24
jettero left16:24
jettero joined16:24
project2501a left16:24
jettero left16:25
jettero joined16:26
jettero left16:26
jettero joined16:26
cehteh andrew_: submodules are kindof manual .. you have to update them by yourself, while some git commands allow a --recursive option to recurse into submodules, rtfm for further info16:27
spatulasnout left16:28
spatulasnout joined16:29
g0bl1n joined16:29
andrew_ cehteh : can you clarify what you mean by manual in this context?16:30
cehteh do whatever you want to do by a command16:30
angelsl left16:30
andrew_ should i be concerned that the submodules in different branches of the same repo have different identifiers?16:31
cehteh enter the submodule, push/fetch there .. or commit the new submodule state on the level higher or whatever16:31
chrischambers_ joined16:31
cehteh identifiers?16:31
MegaHerz left16:31
zombor joined16:32
andrew_ https://github.com/jcdickinson/cecil/tree/203afaa5188f3dfcba3d01f91574f5caeab20460 vs https://github.com/jcdickinson/cecil/tree/762c44c57093abf12e580c96cb68fe4ddfca966116:32
Chris64 left16:32
andrew_ the commit identifiers, uuids, whathaveyou16:32
chrischambers left16:33
chrischambers_chrischambers16:33
ChUrP joined16:33
cehteh where are submodules there (i dont know how to use github in detail)16:34
elfgoh joined16:34
andrew_ https://github.com/jcdickinson/Monoflector/tree/ui-unstable/External and https://github.com/jcdickinson/Monoflector/tree/master/External16:35
cehteh i still dont see submdules there :P16:36
vaddim joined16:36
cehteh https://github.com/jcdickinson/Monoflector/blob/ui-unstable/.gitmodules16:36
ah :)16:36
andrew_ sorry, didnt know you were looking for that16:36
new learning and all16:36
cehteh so what do you try to do .. sync from upstream?16:36
cognominal joined16:37
andrew_ i need to bring the submodule in the ui-unstable branch up to date with the submodule in master, and merge my changes to the submodule in the ui-unstable branch16:37
cehteh you cloned it already .. with git clone --recursive ?16:37
andrew_ yus16:37
cehteh git submodule update --recursive16:38
when you want to switch branches/submodules you have to go into this submodule, do the desired changes there16:38
(git checkout possibly).16:39
then go back to the higher level .. git diff will show you that you changed the submodule, you need to commit (git add + commit) that there too16:39
if you want to publish this you possibly have to fix the .gitmodules too16:40
andrew_ good deal. that command worked16:40
anything special to pushing my changes to the main branch submodule?16:41
drl left16:41
cehteh overall the submodule is a bit pita to use, the backend support in git is ok but the frontend is bit mindbending, explicit and manual16:41
andrew_ hehe im getting that16:42
cehteh just do as usual for every change, that is push the submodule repo up and dont forget to commit the new submodule state in the upper level and push that up too16:42
workmad3 joined16:43
andrew_ thanks for the assist, much appreciated16:43
cehteh gtg16:44
yogione joined16:45
dreiss left16:46
vaddim left16:46
vaddim joined16:46
dekebal joined16:48
vaddimk joined16:48
workmad3 left16:48
elfgoh left16:49
sternocera joined16:50
sternocera Hi. How do I apply a patch to my working copy, and then apply another patch on top of that?16:50
vaddim left16:52
bremner sternocera: perhaps man git-apply is what you seek16:52
jast sternocera: the 'git-apply' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-apply.html [automatic message]16:52
vaddimk left16:52
kpreid left16:54
kpreid joined16:55
drl joined16:55
curtana left16:55
yogione left16:56
maattd left16:58
rajeshsr_ joined16:59
n3m joined17:00
sivy joined17:01
LongBeach left17:01
ChanServ set mode: +v17:02
urkud_ joined17:03
airborn left17:04
guardian1 left17:04
drl left17:05
Textmode joined17:06
curtana joined17:06
pgib joined17:07
sourcemaker joined17:07
andrew_ left17:09
j416 joined17:10
lanthan joined17:10
mw_ left17:12
sternocera bremner: My concern is that doing two git applys in succession will not have the desired effect.17:12
gilligan_ joined17:14
Yuffster joined17:15
bremner sternocera: can you be more specific? I don't understand what your worry is. I also don't understand why you don't just try it, and see how it works.17:15
kipras joined17:15
zombor left17:16
sternocera Does applying two patches have any effect other than independently applying each set of changes?17:16
bremner well, if the conflict, the order will matter.17:16
madsy left17:18
drl joined17:18
sternocera ah yes17:19
but they're atomic operations anyway17:19
navatwo joined17:19
jvraoltc left17:20
navatwo Hi, I cannot seem to get git to work with remotes. All I am trying to do is merge a pull request from github. Everytime I checkout to my upstream repos it says im in detached HEAD mode. I have fetched the upstream repos, and pulled it into the branch. When I check out it says that I'm not on any branch. Output: http://paste.villavu.com/show/410/17:22
bremner sternocera: When you say patch do you mean commit? Patches are just text files with add-delete lines. They can easily fail halfway through.17:22
j0ran left17:22
j416 navatwo: that is normal.17:23
navatwo I can't push to the upstream remote though.17:23
j416 navatwo: you cannot commit to a remote branch directly17:23
you create a local branch, commit to that, then push to upstream.17:23
hagabaka left17:23
alama joined17:24
j416 checking out the upstream directly lets you work on that, but your commits are not referenced by any branch ( = detached HEAD)17:24
Araxia joined17:24
navatwo so if I wanted to commit to the upstream, and I have my local branch, how would I do it then?17:25
j416 so when you move to another branch, you have to either remember the sha1 of your commit in detached HEAD mode, or check reflog.17:25
sivy left17:25
MattDiPasquale joined17:25
j416 navatwo: http://help.github.com/git-cheat-sheets/17:25
"Creating a tracking branch"17:25
sternocera bremner: I just mean a patch file.17:26
curtana left17:26
alama thinking of setting up a cron script to do git stash && git apply every hour17:27
hagebake joined17:27
j416 navatwo: or http://stackoverflow.com/questions/520650/how-do-you-make-an-existing-git-branch-track-a-remote-branch17:27
bremner sternocera: well, I don't think git-apply is atomic, I'm not sure. But since it doesn't create a commit, you have a chance to inspect the results.17:28
sivy joined17:28
navatwo whats the premise behind tracking?17:28
j416 please elaborate17:29
sternocera bremner: okay, thanks.17:29
j416 /clarify17:29
pfrenssen left17:29
mdpatrick joined17:29
navatwo j416: I have my local branch tracking the upstream, how would I go about committing to the upstream then. I still get fast-forward erros17:30
j416 commit to your local branch17:30
MattDiPasquale left17:30
j416 push to remote17:30
navatwo: faq non-ff17:30
jast navatwo: Your push would lose changes on the remote: please see https://git.wiki.kernel.org/index.php/GitFaq#non-ff [automatic message]17:30
navatwo I've followed that and had no help.17:31
j416 what happened?17:31
navatwo it just gives the errors.17:32
I feel like forcing the commit is ridiculous too.17:32
j416 "the errors"?17:32
navatwo just says fast forward17:32
j416 doubt that.17:32
navatwo non*17:32
j416 did you do git pull?17:33
navatwo http://paste.villavu.com/show/411/17:33
yes.17:33
says its up to dete17:33
date*17:33
j416 in that case your commits have diverged17:33
you need to either lose your changes locally and make your local reflect the remote17:33
or17:33
force-update remote17:33
level09 joined17:33
j416 or, create a new tracking branch for the remote, merge that, then push17:33
s/merge that/merge your branch into that/17:34
chrisshattuck left17:35
j416 navatwo: you should read about how git works internally. git object model and branches.17:35
it would help.17:35
it's not that complicated. well invested time.17:35
navatwo ... now `upstream/master` is considered ambiguous.17:36
j416 because you created a local branch with the same name perhaps.17:36
try refs/remotes/upstream/master17:36
kumbayo_ joined17:38
navatwo You were right about that, I deleted the branch.17:38
j416: http://paste.villavu.com/show/412/17:38
I do not see what I did wrong there..17:38
:s17:38
towski joined17:39
navatwo It even states that it is a fastforward.17:39
:|17:39
j416 weird17:40
dunno17:40
how does the respective logs look?17:40
navatwo I cannot commit to my personal repos either17:40
j416 why?17:40
navatwo Same issue, says its a non-ff17:40
engla joined17:40
chrisshattuck joined17:41
Schmallon joined17:41
engla left17:41
engla joined17:41
tango_ navatwo: commits don't talk about fast-forwardness17:41
kumbayo left17:41
navatwo the merge isn't in the logs.17:41
:s17:41
madewokherd joined17:42
tildeequals joined17:42
tango_ navatwo: from the pastebin above, what did you was to checkout the upstream/master branch to a detached head17:42
navatwo: that is not a merge17:42
j416 navatwo: it shouldn't be, you never merged branches, you just merged in detached HEAD state17:42
tango_ you are currently working out of any reference branch17:42
j416 tango_: it's not?17:42
tango_ oh wait17:43
didn't see the merge17:43
ok, I see the merge then17:43
j416 afaik you can merge into detached head if you like17:43
tango_ navatwo: you can push HEAD to master17:43
sourcemaker left17:43
tango_ true, true17:43
j416 just as you can commit to detached HEAD17:43
tango_ navatwo: you can do something like git push upstream HEAD:master but keep in mind that your merge is locally not attached to any branch, so it will be lost when you switch17:43
j416 ah, that's it17:43
tango_: thanks, didn't spot that17:43
must be tired17:44
:)17:44
tango_ it's hard to spot, took me a while17:44
lirakis_afk left17:44
tango_ navatwo: also, you merged cohen-master with upstream/master, while your push was to try to push master to upstream/master17:44
navatwo: so you're trying to do at least 3 different things17:44
gebi joined17:45
gebi left17:45
gebi joined17:45
j416 tango_: he did't merge it to upstream/master, he merged it into detached HEAD17:45
upstream/master remains unchanged17:45
j416 hints17:45
tango_ yea, but the detached HEAD was a checkout of upstream/master. upstream/master will remain unchanged, but I was talking more about the actual codebase17:45
_pingu joined17:45
j416 yep17:45
yhager left17:45
merlin1991 joined17:45
navatwo So: $ git merge cohen-master upstream/master ?17:46
j416 navatwo: so what you want to do now is likely, as tango_ says: git push upstream HEAD:master17:46
mdpatrick left17:46
j416 then checkout master and reset it to reflect the new upstream/master.17:46
tvw joined17:46
navatwo That did it..17:47
j416 perfect. :)17:47
navatwo Hmm, how would I avoid detached then.17:47
tango_ navatwo: but it's not going to leave any trace of what you did there17:47
j416 navatwo: you should read about git object model and branching17:47
tango_ navatwo: when you want to merge, you should want to merge on one of your local branches first, for example cohen-master17:47
merlin1991 is there a way to "reverse lookup" the commit id of the workingtree, I have a tarball of the working tree in the past and the repository, now I want to know wich commit that tarball belongs to17:47
tango_ navatwo: so you would git checkout cohen-master ; git merge upstream/master ; git push upstream cohen-master:master17:47
_pingu left17:48
navatwo tango_: so, create local branch, merge it with the upstream and the remote, then push to the upstream?17:48
drl left17:48
tango_ navatwo: or even merge in one of your existing branches17:49
depends on what you want17:49
navatwo yeah17:49
depends who it is from, ofc.17:49
:)17:49
tango_ if you don't want local history of the branch you CAN do that in a detached head17:49
navatwo Thanks tango_ and j41617:49
j416 you're welcome17:49
navatwo tango_: I feel like thats a poor idea to get into a habit with.17:49
tango_ navatwo: it is. and there is nothing wrong with having merges in local branches. it all depends on what you want17:50
j416 navatwo: google to find how branches work, and how commits are chained together17:50
zombor joined17:51
mdpatrick joined17:52
pantsman joined17:52
pantsman left17:52
pantsman joined17:52
n3m left17:52
simosx joined17:53
simosx left17:53
simosx joined17:53
simplechat left17:53
simosx left17:53
dekebal left17:54
n3m joined17:57
lirakis joined17:57
level09 left17:58
bla left17:59
madewokherd left18:01
drl joined18:02
posciak joined18:02
hobodave joined18:03
galexy joined18:03
gilligan_ left18:03
khmarbaise left18:04
galexy left18:04
ping-pong left18:04
madewokherd joined18:05
madewokherd left18:07
mdpatrick left18:09
madewokherd joined18:09
merlin1991 left18:09
tildeequals left18:10
Maletor left18:10
radarek left18:10
khmarbaise joined18:10
mdpatrick joined18:10
jaakkos joined18:11
sivy left18:12
EricInBNE left18:13
drl left18:14
jaakkos probably offtopic but until i find a better channel, could someone give pointers for how to set up gitweb to use UNIX access control, as it is on the machine where the repo is hosted? the basic idea is to make gitweb access control identical to 'git over ssh'.18:15
dekebalus joined18:18
pdelgallego left18:18
niko left18:18
bremner jaakkos: gitweb access is controlled by unix permissions, but it can't be identical to git over ssh, because it is read only18:19
jstein_ left18:19
bla_ joined18:19
cbreak isn't gitweb just a bunch of scripts run by apache?18:20
dtrott joined18:20
cbreak so they will probably use apache's unix permissions18:20
bremner one script, but yes18:20
koo5javaanse_jongens18:21
TanEk joined18:22
LongBeach joined18:22
coderdad joined18:23
niko joined18:25
bluenovember left18:26
akosikeno joined18:27
drl joined18:27
joel_falcou joined18:27
muneeb joined18:28
chrischambers_ joined18:30
Bass10 joined18:31
chrischambers left18:31
chrischambers_chrischambers18:31
pdelgallego joined18:32
Bass10 left18:32
treak007 joined18:32
Bass10 joined18:33
radarek joined18:34
jvraoltc joined18:35
kbedell left18:35
dtrott I want to re-write my local history so all commits to a particular file are at the end (call the file A).18:38
Normally just a simple interactive rebase, but some of my commits are to multiple files, is there a way I can easily break those commits so that all commits to (A) are at the end of the history ?18:38
RaceCondition left18:38
cbreak no18:38
bremner dtrott: you can use "edit" within the interactive rebase18:39
si_keno joined18:39
cbreak there are a few non-easy ways18:39
xiong joined18:39
dtrott for example ?18:40
cbreak what bremner said18:40
or using git-filter-branch with a index or tree filter18:40
speakman left18:40
speakman joined18:40
radarek left18:40
RaceCondition joined18:40
iravid left18:41
iravid joined18:42
jaakkos bremner, cbreak: ro should be ok, but indeed, what i'd like to achieve is that users must log in to gitweb with the SSH credentials and they see what they could see with git-over-ssh.18:43
cbreak impossible18:43
how would you provide an ssh public key to a web page?18:43
upload it?18:43
jaakkos i'm sure we would be ok supporting only password-based authentication18:44
for gitweb.18:44
i think this probably boils down to writing some custom authentication module to gitweb... it appeared to support something like that18:45
cbreak oh, right18:45
ssh supports passwords still too18:45
jaakkos cbreak: excuse me for my lack of RTFM, but i'm interpreting this like there is no authentication in gitweb at all unless i implement one?18:46
cbreak I have no idea.18:46
ping-pong joined18:47
bremner jaakkos: correct.18:47
__name__ joined18:47
__name__ left18:47
__name__ joined18:47
JPT joined18:47
kuhrt joined18:50
wtfness joined18:51
ChUrP left18:51
jkp left18:51
jaakkos it's getting to the point where i should just try things myself, but if i protect git directories with, say, apache's htaccess, would that have the desired effect except it's htaccess instead of local UNIX credentials?18:51
cbreak no18:52
Buglouse joined18:52
cbreak what user do you think the gitweb script runs as?18:52
TanEk does someone knows what is the usage of commit->util?18:54
can I use it to store anything I want?18:54
cbreak what's that?18:54
TanEk in the git source18:54
jaakkos perhaps www-data or root, but i fail to see the connection between htaccess (working or not) and the user involved, as this works nicely with ordinary directory structures.18:55
Guest64225 joined18:55
yhager joined18:56
Guest64225 left18:56
tkil jaakkos -- there are some efforts for doing fine-grained access control using just git. one of the main devs is usually in here, in fact. gitlosis or something?18:57
cbreak gitolite18:58
but that's via ssh18:58
jaakkos perhaps has to do with gitosis?18:58
drl left18:58
cbreak it heavily relies on ssh public key authentication for user identification and authentication18:58
tkil ah. sorry for the misinformation.18:58
Curtman joined18:59
wtfness left18:59
cbreak I think there were attempts to do alternate authentication, but I have no idea how far they are18:59
jaakkos perhaps it is still possible to protect the whole gitweb with some standard apache method... then i could, perhaps, set up multiple gitwebs18:59
cbreak https://github.com/sitaramc/gitolite18:59
rns joined18:59
bremner jaakkos: gitweb is cgi, no idea how that interacts with apache authentication.19:00
cbreak jakob: you can protect access to the script19:00
so that people who aren't authenticated to apache can't run the script.19:00
JPT left19:01
kota joined19:01
maattd joined19:01
jaakkos cbreak: still, htaccess cannot be used for even that?19:02
cbreak no idea19:02
that's apache stuff19:02
jaakkos yeah, gotta try it out19:03
cbreak the problem with using .htaccess for a git repo is that you do not access the git repo19:03
you access the script19:03
the script runs git commands19:03
and they don't give a second thought about even considering .htaccess for anything19:03
jaakkos yep... intuitively i would say i have to protect the script directory19:04
guardian joined19:04
kuhrt left19:05
ChrisBuchholz joined19:07
Schmallon left19:09
ddilinge1 left19:10
drl joined19:11
ChrisBuchholz left19:11
kumbayo_ left19:11
joel_falcou left19:11
bremner jaakkos: maybe look at https://github.com/sitaramc/gitolite/blob/pu/doc/http-backend.mkd19:12
ddilinger joined19:12
Rogue_Coder left19:12
Buglouse left19:12
LosBorg joined19:13
LosBorg left19:14
ChanServ set mode: +o19:14
wereHamster changed the topic to: 1.7.4.1 | Homepage: http://git-scm.com | Can't talk on the channel? http://jk.gs/gitvoice/ | Everyone asleep or clueless? Try [email@hidden.address] | Channel log http://j.mp/gitlog | Mailing list archives: http://j.mp/gitlist | Gits on git: http://j.mp/gittalks | Pastebin: http://gist.github.com/ | http://tinyurl.com/GitSurvey2010Results19:14
ChanServ set mode: -o19:14
jkp joined19:15
wtfness joined19:16
jaakkos bremner: thanks19:16
Buglouse joined19:17
LosBorg joined19:17
radarek joined19:17
notze left19:18
bradleyayers left19:18
eMBee left19:22
dKingston left19:22
tcv_br left19:23
msierks joined19:24
tvw left19:24
deryl joined19:24
eMBee joined19:25
msierks would someone be able to assist me in setting up a remote git repository with webdav/apache ?19:25
deryl I have a problem. I forgot to set git config user.name and user.email so my localhost information was used instead. I thought, to correct the info, I did a git commit -C <commit_hash> --amend --author="My Name [email@hidden.address] && git push but that appears to be incorrect19:25
joel_falcou joined19:26
deryl What am i doing incorrect?19:26
cbreak deryl: that doesn't work this way19:26
--amend is only for the last commit19:26
you want to use git filter-branch --env-filter19:26
or if you like manual labor, git rebase -i19:26
deryl ok, let me man that19:26
si_keno_to joined19:26
deryl hehe no, I'm really weak on my git-fu so the less I have to touch at the moment w/o screwing my repo the better19:27
si_keno_to left19:27
si_keno_to joined19:27
gnoel joined19:28
marc_kdab_ left19:28
kbedell joined19:28
amerine joined19:29
deryl ouch. looks like this won't just modify the user.email portion. it will have completely different object IDs19:29
cbreak of course19:30
because the commit hashes contain everything19:30
they are a hash of the commit object19:30
which contains the user ID19:30
deryl ahh ok. makes sense19:30
cbreak if you find a way to change the content of a commit without changing it's hash19:30
tell me19:31
deryl hehe19:31
cbreak so I can get a lot of money :)19:31
deryl share?19:31
cbreak 80:2019:31
drl left19:31
deryl 70:3019:31
cbreak ok.19:31
deryl hey if you make a mil, I get 300G I can wipe out all my debts with that! :)19:31
divorces kill ya ;)19:32
cbreak that's human interaction.19:32
deryl hehe19:32
towski left19:32
cbreak become a nerd and never leave your room. cheaper.19:32
deryl hah! think I've done that already19:32
direct response to divorcing the ol bat19:33
eMBee left19:33
eMBee joined19:33
deryl ok, I mean its my onw repo so i can leave it as it is. Just don't like exposure of the home information like that. But I've since fixed the user.name and user.email stuff so all future commits will be correct.19:34
thanks for the help cbreak19:34
radarek left19:34
cbreak rewriting history is not something uncommon with git19:34
srji left19:34
cbreak so in your situation, I'd do a filter-branch19:34
well, unless the repository is already public19:34
deryl looks a tad bit off-putting. (ok scary is the word)19:34
cbreak then you should not change the past19:35
deryl yeah the repo is on github19:35
sivy joined19:35
sreich joined19:36
mikepack joined19:36
nonnooo left19:36
gdmfsob joined19:37
envi left19:38
marc_kdab_ joined19:38
mishok13 left19:39
g0bl1n left19:40
iband joined19:42
Curtman Sorry for the dumb noob question.. When I create a new file, and git-add it.. Why doesn't it exist when I git-diff?19:45
drl joined19:45
c00kiemon5ter cause it has been indexed19:46
bremner Curtman: git diff --cached19:46
c00kiemon5ter use 'git diff --cached'19:46
Curtman Thanks..19:46
salty-horse joined19:46
salty-horse hey. is there a way to maintain a commit/object with some local changes that you never want pushed, but want to exist on every branch? maybe an extension someone made?19:47
wereHamster salty-horse: no.19:48
TanEk someone knows how to build git with debug info? make -g?19:49
dyer left19:50
drl left19:50
emptyflask joined19:51
tgunr joined19:52
bentob0x left19:55
bla_ left19:56
torvalamo joined20:01
yhager left20:01
gusnan left20:02
towski joined20:03
c00kiemon5ter TanEk: -g needs to passed to gcc20:03
hollyw00d joined20:03
towski left20:04
c00kiemon5ter I havent build git from source, if it comes with a configure file there may be an option to enable it there20:04
khaije|minder left20:05
c00kiemon5ter if not you can either edit the makefile or if the makefile reads environmental variables do something like: CC="-g" make20:05
ben225 joined20:06
_Vi left20:07
cmn the Makefile passes -g to the computer by default20:07
TanEk yes20:07
I just didn't know gdb was not giving the name in the stack by default20:07
cmn c00kiemon5ter: CC overrides the compiler binary, you mean CFLAGS20:07
goshawk left20:08
TanEk so I thought the debugging infos were not generated by default, but actually they are20:08
acolin joined20:09
acolin left20:09
bberg joined20:10
treak007 left20:10
c00kiemon5ter cmn: depends on how the makefile is build20:11
drl joined20:11
wereHamster CC == compiler is pretty much the standard ...20:11
c00kiemon5ter I've seen makefiles with no CFLAGS, and makefiles that do 'gcc ${CC} ${defaults}'20:11
saste left20:11
msierks left20:12
urkud_ left20:13
ben225 left20:14
urkud_ joined20:14
madsy joined20:15
salty_horse joined20:16
drl left20:18
salty-horse left20:19
Heimidal joined20:20
Yuffster left20:21
mastro left20:21
amerine left20:22
no_maam left20:22
HG` left20:23
HG` joined20:24
kuhrt joined20:26
Saur joined20:30
Saur left20:31
m4co joined20:31
anderse left20:31
drl joined20:31
m4co what is the difference of fetch vs pull? why would I use fetch?20:31
wereHamster m4co: pull = fetch + merge20:32
and you would use fetch if you only want to fetch but not merge20:32
m4co but if I'm fetching for a branch other than master20:33
doener left20:33
m4co from*20:33
isn't that the same as pull?20:33
wereHamster no20:33
m4co actually can I pull from another branch into master, as in merging?20:33
sorry I'm a bit confused here20:33
ben225 joined20:34
m4co imagine the following: git pull origin another_branch <- won't that just fetch and merge another_branch changes?20:34
wereHamster you can use 'git pull . <branch>' instead of 'git merge <branch>', but I see no reason to ever use that20:34
m4co: yes20:34
m4co ok and if I do git fetch another_branch20:34
is that the same thing?20:35
wereHamster that will give you an error20:35
It's either 'git fetch origin' or 'git fetch origin another_branch'20:35
m4co and git fetch origin another_branch is a "temporary" pull until I merge?20:35
wereHamster no. fetch does not merge20:36
fetch.. uhm.. only fetches20:36
m4co that's what I meant, I'd have to merge later right?20:36
wereHamster if you want to do so.. yes20:36
m4co most likely fetch is used to test things?20:36
mastro joined20:36
Maletor joined20:36
m4co it's just when I think of "merge" that always means two branches20:37
wereHamster no. Fetch is used if you want to fetch stuff, but not use that stuff right away. Maybe later you want that but not right now20:37
Maletor left20:37
m4co but how can I use them? I'd have to merge?20:37
wereHamster or checkout20:37
m4co github was explaining another way to handle pull requests now they changed it and I'm all lost20:37
before it was a matter of checkout out in a new branch, test it, if it works merge to master20:38
bberg left20:38
wereHamster I'm pretty sure github has a step-by-step guide how to handle pull requests. So just follow that20:38
m4co now it's add origin, fetch (??) merge into that branch and then merge into master20:38
I've done the "fetch" part but I can't see the changes20:38
wereHamster where are you looking?20:39
m4co http://help.github.com/pull-requests/20:39
wereHamster I mean for the changes20:39
m4co "Merging a pull request"20:39
yogione joined20:39
c00kiemon5ter it's in the far end20:39
it's still the same thing20:39
m4co I want to create a branch with the changes, look and then merge into master...so much simple that way20:40
wereHamster m4co: and what is it that you don't understand?20:40
drl left20:40
m4co what I don't understand is why I can't see the changes20:40
with this "fetch" method20:40
wereHamster m4co: it's better to merge first and then look at the result20:40
c00kiemon5ter cause you havent merged yet20:40
wereHamster m4co: how did you name the remote?20:40
m4co but merge what? the commit?20:40
c00kiemon5ter the fetch20:40
m4co you mean merge the fetch into master?20:40
c00kiemon5ter yes, that's what he does in the example20:41
m4co why would I merge into master instead of it's own branch?20:41
wereHamster m4co: just follow the example in the help page and replace names/urls where appropriate20:41
m4co I mean, what's the benefit..I want to test it before merging20:41
wereHamster m4co: no. test *after* merging20:41
salty_horsesalty-horse20:41
c00kiemon5ter m4co: with test, you mean create another branch and merge there ?20:42
m4co c00kiemon5ter, yes, makes more sense to me to create a branch with the fork to test it20:42
the help was explaining that way before20:43
Mage joined20:43
c00kiemon5ter so, git checkout master # go to the master branch20:43
m4co now it's saying to fetch and merge into master and then test it, why not test it in a different branch and if it goes well merge into master?20:43
c00kiemon5ter git checkout -b mergetest # create another branch and checkout there20:43
wereHamster m4co: of course you can do that20:43
c00kiemon5ter that branch will be used to merge and test20:43
m4co c00kiemon5ter, go on..20:44
c00kiemon5ter git pull git://github.com/foo/bar/that20:44
wereHamster m4co: but there's no reason to create the branch if all you do is merge + test + maybe push if test passes20:44
c00kiemon5ter ^ get the sources you want to merge, fetch them and merge them in one step20:44
^^^^ this can be replaced with20:45
^^^^ git fetch git://github.com/foo/bar/that20:45
^^^^ git merge bar/that20:45
so at this point you've created a new branch, and merged there the remote sources20:45
if it's all good and well you can checkout to master and merge mergetest branch20:46
wereHamster c00kiemon5ter: at no point did your commands create a new branch20:46
tkil how do i ask git-svn which local commit matches a remote revision? i see it in the log output, but i don't see how to get at it later...20:46
c00kiemon5ter if not, resolve w/e conflicts and continue20:46
HG` left20:46
Maletor joined20:46
c00kiemon5ter wereHamster: git checkout -b mergetest # that's a new branch20:46
GNUtoo|laptop joined20:47
wereHamster tkil: git log --grep=@<your revision>20:47
m4co I think I'm starting to understand better20:47
GNUtoo|laptop hi, is there a --subject-prefix=20:47
wereHamster c00kiemon5ter: oh, I missed that20:47
GNUtoo|laptop option20:47
I don't have it20:47
tkil wereHamster -- thanks, will try that.20:47
GNUtoo|laptop I mean I sent a mail with that option and the [PATCHv2] didn't made it to the message subject20:47
m4co wereHamster, why there's not reason to create a branch for the fork?20:48
Maletor left20:48
GNUtoo|laptop I don't want to do the same mistake again20:48
how can I fix that?20:48
m4co What I don't understand is the reason to fetch into master20:48
Samual_ left20:48
utu joined20:48
tkil wereHamster -- spiffy, thanks. i had to not use the "r" prefix (as is traditional for svn revs) but other than that, it worked perfectly. thanks!20:48
m4co also, instead of "fetch" and then "merge" can't I just "pull git://github.com/foo/bar" instead ?20:49
into master?20:49
c00kiemon5ter m4co: fetch followed by a merge is the same as pull, when you fetch you create a temp branch with the fetched sources, in github's exxample that branch is named kneath/error-page20:50
Yuffster joined20:50
m4co ooohhhh when I fetch a new branch is created?20:50
rajeshsr_ left20:50
m4co and is it automatically checked out there?20:50
c00kiemon5ter m4co: http://sprunge.us/DZMS20:50
that's the same thing, the github example is doing20:50
GNUtoo|laptop I'll refrase20:51
hi, I tried the --subject-prefix= but it seem not to exist on my git version, how can I emulate it?20:51
I've git version 1.7.0.420:52
m4co ok, now it makes more sense20:52
I guess the remote is good for a quick fetch <remote> or pull <remote> instead of full URL20:52
however, if it's the same thing I fail to understand the use of fetch20:52
if it won't merge and I can't see the changes, what is it for?20:53
wereHamster m4co: there is no reason to create a branch just so you can merge and test the changes in the pull request20:53
drl joined20:53
jkp left20:53
c00kiemon5ter yes, it aliases the url to a name you specify, so you can easily refetch repull or w/e that remote's sources20:53
m4co wereHamster, but I won't merge before testing in that branch20:53
for example, I create a branch, pull, test, and then merge into master20:53
wereHamster m4co: why not pull directly into master?20:54
m4co to keep things organized, shouldn't the forks have it's own branches until it merges into master?20:54
tildeequals joined20:54
gnoel left20:54
wereHamster m4co: the forks do have their own branches. But if you get a pull request all you want to do is merge the changes into master, right?20:55
m4co test them, then merge20:55
wereHamster no. merge first then test20:55
c00kiemon5ter if you plan merging into master then you just pull/fetch+merge into master. you dont have to create a branch to test the merge, but you can if you want.20:55
m4co test into their branch20:55
c00kiemon5ter wereHamster: he means branch, merge, test. then merge to master20:55
wereHamster m4co: why do you insist on testing in a separate branch? There's absolutely no reason for that20:56
babbage left20:56
m4co I must be misunderstanding the branch concept then20:56
to me, all forks have their own branches20:56
I pull that fork into a branch then merge into master20:56
c00kiemon5ter :P the only reason for that is if the merge has conflicts and you accidentally reset --hard to a wrong hash, you loose some of your work. that's an accident, so just to avoid accidents you may want to make a new branch for the merge. cant thiink of another reason20:57
Maletor joined20:57
project2501a joined20:57
m4co ok say I merge directly into master20:58
then I test, something's wrong20:58
wereHamster c00kiemon5ter: you shuoldn't reset --hard. There's reset --merge. And why would you use a hash directly and not ORIG_HEAD or HEAD@{1} ?20:58
m4co I just checkout to undo?20:58
wereHamster or.. just HEAD if there were conflicts20:58
c00kiemon5ter wereHamster: dunno, :)20:58
wereHamster m4co: you reset --hard ORIG_HEAD20:58
drl left20:59
nevyn^1 left20:59
m4co see, if I had a branch for it to test the fork I could simply just not merge it :)20:59
nevyn^ joined20:59
m4co does my example make sense?20:59
wereHamster what does that buy you? Instead of 'git reset --hard ORIG_HEAD' you'll have to do 'git checkout master && git branch -D <the test branch>'20:59
c00kiemon5ter yes, but with that logic one would create a new branch for every commit he does20:59
m4co isn't checkout master && branch -D "safer" ? or just easier?21:00
wereHamster no, it's not safer at all21:00
m4co ok now I think I understand21:01
but how about the fetch then, why fetch instead of pull if I have to merge after fetching anyway?21:01
you mention it's good in case I don't want to merge it yet, right?21:01
tcv_br joined21:01
wereHamster m4co: ask the github staff why they chose this way21:01
Ulfalizer i wonder if 'git status' and other operations could be made much faster if the fs had a special timestamp for directories that changed with the contents of files as opposed to just when creating/removing files. that way it would only have to check a single timestamp.21:01
m4co but then how can I see the changes? should I checkout to a different branch?21:01
Ulfalizer it would be recursive, of course21:02
c00kiemon5ter m4co: what merge does is it creates a new commit after all files and changesets are there. in order to go back to a previous state in your tree and get rid of the new changes you would git reset to that state.21:02
Ulfalizer probably wouldn't add that much overhead either if you just enabled it for a few directories21:02
m4co c00kiemon5ter, and fetch doesn't create a new commit?21:02
c00kiemon5ter fetch no21:02
m4co fair enough, and does it create a branch?21:03
c00kiemon5ter fetch doesnt change anything to your code21:03
merge does21:03
wereHamster m4co: it does if you tell it to21:03
m4co a temp branch21:03
cmn m4co: if you just want to see the difference you can use git diff master fork/branch21:03
they're not temproray in the usual sense, if there are published branches in the remote, they will be created21:03
Ulfalizer 'git status' is sometimes annoyingly slow at work :/21:03
m4co c00kiemon5ter, but if it doesn't change anything what is the point, how can I test it? that's what I don't understand21:03
wereHamster Ulfalizer: a large working tree?21:03
mcmat joined21:04
MikhX left21:04
salty-horse left21:04
Ulfalizer wereHamster: yes21:04
wereHamster m4co: you merge whatever you fetched into master, then test21:04
pdelgallego left21:04
wereHamster Ulfalizer: make it smaller..21:04
bremner m4co: I think the concept you are missing is http://www.gitready.com/beginner/2009/03/09/remote-tracking-branches.html21:04
m4co but that's pulling so why the extra step21:04
wereHamster m4co: I can't read minds. Ask the github staff21:04
c00kiemon5ter m4co: fetch will "fetch" the remote sources. it wont do a thing more. after you've fetched as cmn said you can either git diff the branches or merge, and see how that goes21:04
pdelgallego joined21:05
c00kiemon5ter merge will give you a new commit so you can git diff that21:05
or git show probably21:05
Ulfalizer wereHamster: i don't think it's much larger than it would have to be, if i'm getting you right21:05
bremner m4co: fetching updates your local mirror of the remote repo21:05
m4co ok if I can diff the branches it makes more sense21:05
Ulfalizer it's a big project21:05
wereHamster Ulfalizer: then you have a slow harddisk. Get a ssd21:05
Ulfalizer ...21:06
linusoleander Is it somehow possible to jump to a specific commit?21:06
I've used git reset --hard, is that the way to go?21:06
I want to be able to jump back21:06
wereHamster linusoleander: git checkout <sha>21:06
m4co cmn, so I can git diff master fork/branch after fetching fork/branch ?21:06
wereHamster linusoleander: don't use reset for that purpose21:06
linusoleander wereHamster: Perfect!21:06
Thanks!21:06
cmn m4co: you usually do fetch on a remote21:06
m4co yea21:06
cmn but once you've fetched and the branch is there21:07
then you can diff between them21:07
use git branch -a to show remote branches21:07
m4co oh we have remote branches too21:07
cmn yeah, they're very usefull21:07
m4co so the fetch would create a remote branch?21:07
c00kiemon5ter :P :D21:07
jmorris joined21:07
cmn yeah, fetch will create or update the remote branches21:08
m4co fetching created a remote branch, yes?21:08
aha :D21:08
Maletor left21:08
m4co imagine my confusion when I didn't know about remote branches21:08
made no sense21:08
now it does :P21:08
I was mixing local branch with remote branch21:09
cmn git is distributed, so you can have branches from many places21:09
m4co having a local branch to pull if you can just fetch a remote branch makes no sense indeed21:09
Zhonghua left21:09
webPragmatist joined21:09
webPragmatist how do i checkout a specific revision of a file?21:09
wereHamster webPragmatist: and put it where?21:10
m4co thanks guys wereHamster cmn c00kiemon5ter21:10
mcmat hi. I don't really understand git-remote. It seems to me that doc and reality are different: i clone the linux git repo (git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6.git), then add a remote (git remote add --tags drm-intel git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git). Then i do git fetch, but nothing happens, and git branch -r still only show me origin/master.21:10
m4co and thanks bremner21:10
wereHamster mcmat: git fetch drm-intel21:11
drl joined21:11
wereHamster mcmat: or 'git remote update' to fetch from all remotes21:11
mcmat wereHamster: i also tried but same result (or lack of)21:11
_iron left21:11
mcmat werehamster: i tried git fetch drm-intel, but not git remote update21:11
i try21:12
GNUtoo|laptop I'll refrase a third time21:12
cmn mcmat: if you just fetch, your local working copy won't be modified (look at what we just talked about with m4co)21:12
you need to merge21:12
GNUtoo|laptop how can I send a patch with [PATCHv2] in the subject line?21:12
wereHamster cmn: that's not what he wants21:12
m4co I can checkout to a remote branch too right?21:13
wereHamster GNUtoo|laptop: --annotate21:13
m4co: it'll detach your HEAD21:13
jmorris left21:13
m4co what does that mean?21:14
OOPMan left21:14
m4co it would be temporary right? like a different HEAD (the remote branch)?21:14
priidu left21:14
GNUtoo|laptop wereHamster, ok thanks a lot21:14
wereHamster m4co: faq detached. Or man gitglossary -> detached head21:14
jast m4co: the 'gitglossary' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gitglossary.html [automatic message]21:14
webPragmatist wereHamster: overwrite the smae file21:14
wereHamster: theoretically just reverting a single file21:15
wereHamster webPragmatist: git checkout <rev> -- <path>21:15
webPragmatist whats -- do btw?21:15
wereHamster webPragmatist: it tells git to parse <path> as a path and not a revision21:15
webPragmatist oh i see21:16
i thougth it metnt "back" or minus one21:16
wereHamster it's not required usually but use it anyway21:16
priidu joined21:16
priidu left21:16
mcmat wereHamster: tried git remote update. It tells me "Fetching origin, Fetching drm-intel", but still, git branch -r lists only origin/HEAD and origin/master. drm-intel branches do not appear (though they exist, since i can see them with git remote -v show drm-intel21:17
Ulfalizer conventionally -- as an argument to a unix command marks the end of the "-x"-style flag arguments, to prevent what follows it to be interpreted as such a flag21:18
_Vi joined21:18
Ulfalizer handy e.g. if the command accepts a file and you happen to have a file whose name would otherwise be interpreted as a flag21:18
i guess git might use it in the sense of "what follows is a path, so do not attempt to interpret it as anything else"21:21
Garii joined21:21
sneakret left21:22
Ulfalizer *from being interpreted as21:22
project2501a left21:22
kbedell left21:23
m4co left21:26
tkil left21:26
Ulfalizer wonders why git has moved a bunch of heads from refs/heads to logs/refs/heads21:26
wereHamster Ulfalizer: logs are the reflogs21:27
iasterisk left21:27
Maletor joined21:30
Ulfalizer wereHamster: why did git remove the refs from refs/heads though? 'git branch' lists branches that have reflogs in logs/refs/heads but no ref in refs/heads.21:31
wereHamster Ulfalizer: packed refs probably21:32
Ulfalizer: don't ever look into the .git directory if you don't understand the internals...21:33
Ulfalizer just curious21:34
is refs/heads/<foo> to be understod as a symbolic notation in 'git push <remote> branch:refs/heads/<foo>' then? i mean, if no refs/heads/<foo> is actually guaranteed to exist for the branch..21:35
marc_kdab_ left21:35
Ulfalizer +o21:35
dekebalus left21:35
guardian left21:37
MikhX joined21:38
wereHamster eh?21:38
Heimidal left21:39
wereHamster how/where git stores the refs is an internal implementation detail. If you use the git commands (even plumbing commants) you don't have to worry about these details21:39
Samual joined21:40
Ulfalizer so git makes sure the right thing happens even if the remote has packed the refs and so has no ref for the branch in refs/heads?21:40
wereHamster of course21:40
even if the refs are packed they haev names such as refs/heads/foo21:41
so 'the remote has packed the refs and so has no ref for the branch in refs/heads' does not make sense21:42
Ulfalizer is that a special case for refs/heads, or would git handle any path the same?21:42
s0ber_ joined21:42
Ulfalizer i'm a bit unsure how other paths would interact with porcelain commands..21:42
wereHamster which paths?21:42
Ulfalizer substituting foo/bar/baz for refs/heads21:43
wereHamster uhm.. is one a pathspec and the other one a ref?21:43
Ulfalizer but perhaps you can't put arbitrary paths21:43
wereHamster or are both refs?21:43
s0ber left21:43
s0ber_s0ber21:43
priidu joined21:44
Ulfalizer i was thinking something along the lines of 'git push origin <branch>:foo/bar/baz'21:44
what would that do? is it guaranteed to create the file .git/foo/bar/baz on the remote, or is it just a symbolic notation? is it even allowed?21:44
wereHamster try and see21:45
Ulfalizer don't think i have any remote handy to experiment with :/21:45
at least not one i should experiment with21:45
wereHamster git init --bare /tmp/ulfalizer; git push /tmp/ulfalizer master:foob/ar/bz21:45
Ulfalizer guess i could set one up, unless my laziness wins out21:45
wereHamster then cd /tmp/ulfalizer && git show-ref21:46
pantsman left21:50
mikepack left21:50
radarek joined21:52
tildeequals left21:52
Zephyrus left21:53
priidu left21:53
Ulfalizer wereHamster: is it best to view the contents of the .git/refs directory as implementation details that often mirror what e.g. git-show-ref would show you but need not do so?21:53
i.e., refs/heads/foo might not actually be a file in .git/refs/heads/foo21:54
wereHamster Ulfalizer: it's best to never look at it directly and instaed use git for-each-ref21:54
the commands exist for a reason21:54
and the reason is not because someone was bored...21:54
DiGitalX left21:55
Ulfalizer that's probably something that might trip up a lot of beginners who might expect refs/heads/foo to be a filesystem path with no special interpretation21:55
heck, it got me confused :)21:55
Bartman017 left21:55
priidu joined21:56
wereHamster beginners are not encouraged to look into the .git directory. And if they do and don't understand what they are seeing it's their problem, not ours21:56
Ulfalizer wereHamster: i hope the tutorials/manual makes that clear :/21:57
priidu left21:57
wereHamster no tutorial I know of tries to describe the .git directory contents21:57
priidu joined21:58
Ulfalizer i think i read one. or at least one who phrased it along the lines of "heads are stored as files in the .git/refs/heads directory"21:58
posciak left21:58
Ulfalizer but perhaps that was just a bad tutorial21:59
wereHamster then it's wrong and you should tell its author21:59
sudonotplease left22:01
sudonotplease joined22:01
Ulfalizer are there any guarantees whatsoever about the structure of .git/? no - not going to depend on it, just curious :)22:02
Silowyi joined22:04
d0k left22:05
JoeHazzers my git hooks don't seem to be running properly... i.e. they don't seem to be running at all after i push to them. what file should i put hooks in for after pushing to it from a remote?22:05
notze joined22:07
jkp joined22:08
DiGitalX joined22:08
nanotube left22:10
pedrobelo left22:13
j416 left22:15
jkp left22:16
armut joined22:16
armut hi, i need help22:16
LongBeach left22:17
NfNitLoop armut: What's your problem? (as a side note: Don't ask to ask. See: http://jeff.jones.be/technology/articles/how-to-ask-for-help-on-irc/ )22:18
armut i deleted a directory, i want to restore it22:18
NfNitLoop git checkout directoryName.22:18
robotarmy joined22:19
armut git error: pathspec 'dino' did not match any file(s) known to git.22:19
NfNitLoop had you checked in 'dino' previously?22:19
armut i deleted as: git -rf dino22:19
no22:19
NfNitLoop then how can git restore it?22:20
armut just added22:20
NfNitLoop aah.22:20
Hmmm.22:20
armut git add dino22:20
jstein_ joined22:20
NfNitLoop I think you may be out of luck.22:20
armut :)22:20
NfNitLoop since you never committed it, the files didn't get saved in history.22:20
they WERE saved in your index.22:20
but then you removed them with 'git rm'.22:20
armut yes never commited22:20
NfNitLoop You *might* be able to find them in your object cache? I dunno. Anyone more knowledgeable than I on this paying attention? :)22:21
webPragmatist left22:21
armut weher can i find cache?22:21
NfNitLoop it's in .git, but I don't know enough about how the index works to give you more info.22:23
waite in here for a while and see if someone else can help. :)22:23
Leonidas left22:23
armut ok thanks22:24
NfNitLoop wait, even. I don't know why I thought it needed an E. :)22:24
DiGitalX left22:26
joel_falcou left22:26
patrikf armut: fsck can show you all objects that have no active reference, yours will be among them22:26
(git fsck, that is)22:26
it might take some time and/or grepping to find it, though22:27
NfNitLoop unfortunately, those objects probably don't include useful things like... file names or paths. IIRC.22:27
patrikf yeah.22:27
bgerber left22:27
utu left22:28
patrikf oh, you're looking for a whole directory, right.22:29
armut i get fsck list, blobs and trees... i think trees are directories22:29
patrikf AFAIK, if you add to the index, only blobs are created, but not trees22:29
(trees just reference blobs together with a filename)22:29
you might be able to filter out the ones you want with the mtimes of the objects in .git/objects22:30
bgerber joined22:30
mcmat left22:31
Heimidal joined22:32
ChanServ set mode: +v22:32
jstein_ a friend made his own branch how can i merge it to master again? https://github.com/jonasstein/fuzzer/compare/master...Branch_53d39f3cd686c382f383a3f3f5bb2e533120a49f#diff-222:32
HG` joined22:33
TheBuzzSaw joined22:34
armut objects like a maze !! :)22:34
cbreak jstein_: with merge22:34
fetch it into your repo, then just merge normally22:34
GNUtoo|laptop left22:34
jstein_ git merge master foo?22:34
cbreak git merge foo, while on master22:34
jstein_ fetch, or pull?22:34
cbreak fetch22:34
pull is fetch and merge22:35
jstein_ then pull is better now?22:35
cbreak well... I guess you could just pull it...22:35
jstein_ ok22:35
cbreak but if you fetch and then merge it22:35
jstein_ thx22:35
cbreak you know what you're doing22:35
jstein_ not really ;-)22:35
gebi left22:35
coderdad left22:36
__name__ left22:38
notze left22:38
_ollie left22:42
nanotube joined22:42
ben225 left22:43
sternocera left22:44
ben225 joined22:45
HG` left22:50
TheBuzzSaw left22:51
jstein_ cbreak: it worked thanks. but now i have a HEAD line in the source. i think a good editor would manage that merge automatic, right?22:52
cbreak head line?22:52
jstein_ i will try it with emacs magit22:52
cbreak if there's a conflict, you have to resolve it22:53
jstein_ https://github.com/jonasstein/fuzzer/blob/master/canvas.py#L8822:53
cbreak it's not the editor that has to do that, it's you22:53
where?22:53
jstein_ but the conflict is so easy i think the editor could autoguess22:53
cbreak guessing is a terrible idea22:54
because guesses can be wrong.22:54
it's much better to let humans deal with conflicts22:54
but I don't see a conflict in there22:54
jstein_ uh sorry my friend just pushed a version without HEAD22:54
cbreak honestly22:54
don't commit stuff that have conflicts :)22:54
resolve them22:54
THEN commit22:55
tweakism left22:57
rns left22:57
Unknown[NF] left22:59
tg left22:59
jvraoltc left22:59
priidu left23:00
tg joined23:00
drl left23:01
bousquet joined23:02
jstein_ how23:02
i will need 2 local repository right?23:02
cbreak why?23:03
jstein_ one with my data and one for merging?23:03
cbreak why?23:03
I don't get what you say23:03
jstein_ i suppose even after months with git. the git system is far beyond my understanding23:04
phantomcircuit left23:04
phantomcircuit_ joined23:04
phantomcircuit_ left23:04
phantomcircuit joined23:04
ketas left23:06
ketas-l left23:06
ghhhhhhh joined23:07
blaenk joined23:09
ketas joined23:09
rns joined23:10
ghhhhhhh left23:10
ThomasLocke left23:10
arberber joined23:11
boombatower joined23:11
boombatower left23:11
boombatower joined23:11
ChanServ set mode: +v23:11
Mpenz left23:11
jstein_ i simulate my git upload and you correct me if i am wrong please23:11
git clone git:....23:12
Mpenz joined23:12
jstein_ hackhack23:12
arberber Suppose I have two machines on a network. Machine A has a git repo, and I have a login on this machine. Nonetheless, I want to work on machine B. Is there a way to just clone it over the network without having to use some sort of git server?23:12
jstein_ git commit -a -m "worked"23:12
cbreak arberber: yeah.23:12
if you have ssh access23:12
jstein_ arberber: ssh23:12
arberber: or just by filesystem23:12
alama left23:13
jstein_ git merge origin master23:13
arberber er, sorry23:13
jstein_ git push23:13
fini. is that right?23:13
cbreak no23:13
why merge?23:13
arberber what i mean to say is, john has it in his home directory.23:13
jstein_ arberber: you can do things like git clone /data/project /mywork23:14
arberber on A. I, phil, also have a login on A. I want to clone _from john_ to machine B23:14
jstein_ like copy command23:14
cbreak arberber: do you have ssh access?23:14
drl joined23:14
arberber yes, i do have ssh access to machine A23:14
but of course, i'm not john23:14
cbreak then git clone ssh://server/../john/path/to/repo.git23:15
arberber hmm23:15
cbreak assuming that your home directory is inside the same folder as john's23:15
and that you have read access to it23:15
arberber my home directory is inside the same folder as john's? what do you mean by that?23:15
cbreak you have a home directory, right?23:16
Ulfalizer wereHamster: re. the .git discussion, even the git manpage says things like "<tag> a valid tag name (i.e. the contents of $GIT_DIR/refs/tags/<tag>) :/23:16
+"23:16
cbreak on the machine the git repository is on23:16
arberber well, of course, i'm in /home/philip/, and he's in /home/john/23:16
cbreak arberber: well, then your home directory is in the same folder as john's23:16
radarek left23:16
arberber but i mean to clone it from machine A to machine B23:16
cbreak so?23:17
Ulfalizer as well as "<head> a valid head name (i.e. the contents of $GIT_DIR/refs/heads/<head>)."23:17
cbreak as long as you can access it, it's ok23:17
arberber i don't understand why us being in /home/ is relevant, but ok.23:17
CDomovoy joined23:17
cbreak arberber: did you not read what I wrote?23:17
patrikf just give the full path if in doubt23:17
cbreak I wrote: ... ssh://server/../john/path/to/repo.git23:17
patrikf and I find ssh syntax way more logical - server:/home/john/foo.git23:18
arberber oh, i see.23:18
cbreak so the ../john switches to his home directory from yours23:18
but only if you are in the same folder23:18
arberber i apologize. you just meant due to the way you wrote the path.23:18
i understand.23:18
cbreak exactly23:18
jstein_ left23:18
cbreak patrikf: my ssh runs on port 222223:18
patrikf: :P23:18
arberber alright23:18
patrikf cbreak: yeah, so you can't use it, but the rest of us can... ;-)23:19
cbreak !!!! unfair !!!!23:19
patrikf or actually you can23:19
arberber let me try all of this. thank you cbreak.23:19
CyberDomovoy left23:19
patrikf cbreak: with a proper .ssh/config23:19
cbreak nah, I changed /etc/services23:19
ben225 left23:19
patrikf what?23:19
zombor left23:19
patrikf that's, like, evil!23:19
cbreak (probably a bad idea, since now I have to specify the port for every standard server...)23:19
patrikf indeed.23:19
cbreak but ah well :)23:19
patrikf sleeps well knowing cbreak doesn't administrate any systems he has to work on :P23:20
cbreak I am not a sysadmin23:20
I am software engineer23:20
I don't have to maintain stuffjust release it23:20
jstein joined23:20
jstein left23:20
jstein joined23:20
Teltariat ...23:20
Ulfalizer cbreak: are you the kind who churn out uncommented buggy code at a billion loc/s and make my life a living hell? :(23:21
cbreak no23:21
I make code with beautiful APIs, well documented doxygen comments23:22
and a UI that makes our users weep23:22
and beg for forgiveness23:22
Ghent joined23:22
Unknown[NF] joined23:23
Ulfalizer software engineers should have more empathy for their fellow coders. "the code is the documentation".. yeah, right, as if intentions are obvious from your crappy code :P23:23
Ghent I'm sorry, I'm having real issues trying to find this answer on my own... I'd like to change hosts from github to unfuddle, is there a way I can import my git repo into unfufddle and it keeps all the history and such?23:23
cbreak oh, but it is obvious23:23
you just have to read the comments23:23
Ulfalizer cbreak: i've started to consider those a luxury in other's code :)23:23
cbreak or if you are so inclined, read the unit tests23:23
patrikf Ghent: probably you just push there...23:24
cbreak Ghent: just git remote add the new repo23:24
and then push23:24
Ghent ok, pretty new with git too... I'll se if I can work that out :)23:24
cbreak force it if you have to23:24
EricInBNE joined23:24
Maletor left23:26
robotarmy left23:26
RobertLaptop left23:27
Buglouse exporting GIT_DIR='git://url' GIT_WORK_DIR='/path', should work with just 'git clone' ?23:28
cbreak wth are you trying to do?23:28
Buglouse Trying to pull from git://url into a defined dir.23:29
using env variables23:29
robotarmy joined23:29
ddilinger Buglouse: but why using env variables23:29
Buglouse: why not on the command line23:29
cbreak first, cd into the repository23:29
then pull23:29
blaenk left23:29
cbreak if you are not in the repo, you have to set GIT_DIR and so on correctly23:29
to _LOCAL_ directories obviously23:30
armut left23:30
blaenk joined23:30
cbreak GIT_DIR and GIT_WORK_TREE at least23:30
maattd left23:31
priidu joined23:32
robotarmy left23:33
Buglouse got it GIT_DIR GIT_WORK_TREE, ok. but want to know if GIT_DIR could work with an external repo, or perhaps another var.23:34
and if i have GIT_WORK_TREE defined, why i have to specify it for git clone.23:35
ddilinger left23:35
bousquet left23:35
robotarmy joined23:35
patrikf Buglouse: first you say you want to pull, now you want to clone23:36
and no, you can not set GIT_DIR to something remote23:36
what do you want to *do*?23:36
bousquet joined23:37
Buglouse sorry, clone. setting GIT_WORK_TREE='/path' clones into path but then HEAD is put in to the dir defined by git://url.23:37
maattd joined23:37
vsayer left23:37
patrikf yes, clone is a special case, just leave GIT_WORK_TREE and specify the target directory on the command line23:38
cbreak Buglouse: no23:38
Buglouse just have vars make my life easier, use them so i can just 'git checkout' 'git clone' without specifying anything more.23:38
vsayer joined23:38
cbreak Buglouse: do you know what you have to put into GIT_DIR?23:38
Buglouse well.. before i was using GIT_DIR='/path/.git' but no it is unset.23:39
cbreak well, you have to put in the path to the .git directory of your repository23:39
sternocera joined23:39
patrikf Buglouse: that doesn't make any sense.23:39
cbreak and then you have to put the path to your working tree into GIT_WORK_TREE23:39
and THEN you can use git commands outside a git repository23:39
Buglouse understand. just wanted to know why it was not working as expect with clone, patrikf states that it is a _special_ case.23:40
Octalot left23:40
cbreak it's not special23:40
Buglouse and with clone /path is to be specified.23:41
cbreak of course...23:41
because clone doesn't care about the current git repository23:41
Veejay joined23:41
patrikf (that makes it a special case in that regard IMO ;-))23:41
Buglouse didn't know, cbreak. Thought was putting wrong thought to the words from man.23:41
^w/e23:42
normanrichards joined23:42
Buglouse thanks23:42
cbreak hmm... I guess it's special if you look it at that23:42
but it would be rather stupid if it were not23:42
leavittx left23:42
cbreak and cloning would require a repository :)23:42
pozic left23:43
alama joined23:43
Octalot joined23:43
Buglouse again, GIT_WORK_TREE works somewhat without path to clone. just not with HEAD23:44
patrikf that would indeed make little sense as clone is just a shortcut command.23:44
Buglouse: I don't get that sentence23:44
bousquet left23:44
cbreak Buglouse: you have no idea what you are talking about23:44
patrikf and neither have I ;-)23:45
Buglouse in part23:45
utu joined23:46
Buglouse i meant that if i set the var=/path; using git clone git::/url, contents are copied to /path except for a few.23:46
patrikf oh, now I get it, git clone does indeed respect GIT_WORK_TREE23:48
just not GIT_DIR23:48
stigrett joined23:48
yhager joined23:48
Buglouse ture23:48
patrikf Buglouse: note that if you need to set GIT_DIR/GIT_WORK_TREE, you have either a very special use case (think <0.1%) or you're doing something wrong (and possibly making your life more difficult than it need be)23:49
arberber Er. If I initialize a repository on a machine, does it not automatically create the .git file from which one can clone the repo?23:50
Buglouse patrikf: Just trying to make a script, setting GIT vars i can use other cmds without specifying paths.23:50
patrikf Buglouse: "cd"?23:50
arberber: .git is typically not a file, but a directory; what makes you think it doesn't?23:51
Buglouse patrikf: with using as few pushd as possible.23:51
Ulfalizer arberber: note that .git won't be listed without e.g. the -a flag to ls23:51
yhager left23:53
SimonP86 left23:54
hagebakehagabaka23:54
Araxia left23:54
Araxia_ joined23:55
stigrett left23:55
cbreak arberber: the .git directory IS the repository23:56
The_Tick left23:56
cbreak that's where all the history ends up23:56
RobertMeta joined23:56
The_Tick_ joined23:56
RobertMeta left23:56
RobertMeta joined23:56
DaveIngram left23:57
AAA_awright_ joined23:57
jvraoltc joined23:58
HopsNBarley left23:59
MetaCosm left23:59
coderdad joined23:59
HopsNBarley joined23:59
HopsNBarley left23:59
HopsNBarley joined23:59
AAA_awright left23:59

Logs Search ←Prev date Next date→ Channels Documentation