IRCloggy #git 2011-04-14

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-04-14

RobertLaptop joined00:01
javaanse_jongens left00:01
Swimming_bird joined00:01
javaanse_jongens joined00:02
luxurymode left00:02
jrmuizel_ joined00:04
cjz left00:05
devth left00:06
sako left00:06
derek_ joined00:06
javaanse_jongens left00:06
derek_ left00:06
vanmik joined00:07
logik-bomb|away left00:08
Anubisss left00:08
sftp left00:09
jaeckel left00:09
Anubisss joined00:09
NetHawk left00:10
javaanse_jongens joined00:10
mattikus left00:10
sftp joined00:12
Predominant joined00:12
jrdavid_ left00:14
jrdavid joined00:14
rchavik joined00:15
variable joined00:15
kenichi left00:15
wo9x joined00:15
rondon joined00:17
sftp_ joined00:18
sftp left00:18
NetHawk joined00:19
smolyn left00:21
wo9x left00:22
drake01 left00:22
drake01 joined00:23
wilmoore_ left00:25
nb left00:25
linusoleander left00:26
sontek left00:27
rphillips left00:27
bottiger left00:27
SimonP86 left00:29
deitarion Where do the Git docs explain the difference (as far as how they get set) between the author and committer fields in `git log --format=fuller`?00:29
systemaddict left00:30
javaanse_jongens left00:31
Arrowmaster probably in git commit man page00:31
javaanse_jongens joined00:32
deitarion Ahh. --author. Thanks.00:32
beyondcreed left00:34
sparrW joined00:34
javaanse_jongens left00:36
juliohm what means ..HEAD notation?00:37
git format-patch ..HEAD00:37
javaanse_jongens joined00:37
beatak left00:40
SethRobertson joined00:40
ramshacklecpu left00:41
NetHawk left00:43
sparrW given a git://foo.git URL, how do i check out a copy of it?00:44
larsl left00:44
rendar left00:46
dharrigan left00:46
dharrigan joined00:48
dharrigan left00:48
dharrigan joined00:48
juliohm sparrW, just do `git clone git:foo.git localDir`00:49
aef left00:50
Swimming_bird left00:50
Fandekasp joined00:50
aef joined00:51
hyperair left00:55
sparrW thanks juliohm00:57
jamescarr joined00:58
jamescarr left00:58
jamescarr joined00:58
jamescarr hey when I fork someone's repository is it possible for me to pull new changes they make into my fork?00:58
phantomcircuit joined01:00
rayners joined01:02
xiangfu joined01:02
deitarion left01:03
cbz left01:05
towski left01:05
GodEater left01:07
bottiger joined01:07
cbz joined01:08
GodEater joined01:09
GodEater left01:09
GodEater joined01:09
Anubisss left01:12
Anubisss joined01:13
drake01 left01:14
poseidon joined01:15
Buglouse joined01:15
orafu left01:16
Evious left01:16
sontek joined01:16
orafu joined01:17
Chaser left01:18
javaanse_jongens left01:19
rchavik jamescarr, add their repo as another remote, and you can pull from it01:19
jamescarr I just did a fetch upstream01:20
mattikus joined01:20
jfkw left01:20
javaanse_jongens joined01:21
rchavik git pull upstream/master will merge it into your current branch01:21
cloudpopup left01:21
rchavik or git rebase upstream/master if you want to fast forward01:21
someone please correct me if i'm wrong :)01:22
panike left01:24
gigamonk` left01:25
juliohm left01:25
jamescarr left01:26
spaceonline left01:26
Remixman joined01:26
seivan joined01:27
mdel_ left01:27
amondracorp joined01:28
javaanse_jongens left01:31
Vampire0 left01:31
hachiya left01:32
oc80z left01:32
hachiya joined01:32
squiggy left01:32
javaanse_jongens joined01:32
oc80z joined01:33
Vampire0 joined01:33
nb_ joined01:34
rphillips joined01:35
leavittx left01:38
Fuzzy joined01:39
Fuzzy left01:40
shiba_yu36 joined01:40
CloudySunshine joined01:40
eyda|moneydaimoon01:41
ChanServ set mode: +v01:41
CloudySunshine Is it possible to cluster git servers in an active/active method where they locally mirror each other perfectly?01:41
SethRobertson left01:43
offby1 scratches head01:45
Vampire0_ joined01:45
offby1 I assume you could give each of them a post-commit hook that pushes to the other fellow01:45
alberto56 joined01:46
ChUrP joined01:46
CloudySunshine that sounds really easy01:46
SethRobertson joined01:47
Vampire0 left01:48
bremner CloudySunshine: well, one master many slaves is easy01:48
offby1 enjoys that arrangement at home01:49
xiangfu left01:49
theoretical left01:51
Remixman left01:56
drake01 joined01:57
Fandekasp left01:57
javaanse_jongens left01:58
DarthGandalf joined01:58
tizzo-afktizzo01:58
xiangfu joined01:58
Fandekasp joined01:58
Fandekasp hello01:59
I'm having some confusions with my git server01:59
javaanse_jongens joined01:59
offby1 !repro02:00
jast please paste (e.g. using http://git.pastebin.com/) a transcript of your terminal session in which the problem occurred so that we can troubleshoot more easily. [automatic message]02:00
amerine_ left02:00
orafu left02:00
sechrist left02:01
Fandekasp I installed gitolite, and after reading this http://sitaramc.github.com/gitolite/doc/1-INSTALL.html I can now git clone an empty directory called gitolite-admin from my client, but I don't understand by reading the doc what is the use of this project, and I'd like my own project to be git clonable like this. Do someone know about gitolite and git servers ?02:01
bremner yes02:01
Fandekasp cool :)02:01
erichammond left02:01
bremner it sounds like you need to read more of the docs02:02
like adding users and repos02:02
Fandekasp in the admin doc02:02
bremner also, gitolite-admin should not be empty02:02
avdg left02:02
Fandekasp arf does that mean I failed somewhere during the installation?02:02
intripoon_ joined02:03
bremner perhaps.02:03
you might also read the "is gitolite overkill" document02:03
orafu joined02:04
Fandekasp I have a .git directory in the gitolite-admin folder, sorry02:04
ok for the doc, thanks02:05
brianpWins joined02:05
intripoon left02:05
jamescarr joined02:06
Fandekasp ah bremner the gl-setup didn't work the first time, and now my gitolite-admin has a conf and keydir :)02:07
bremner better02:07
tizzotizzo-afk02:08
cutmail joined02:09
Anubisss left02:10
bitkiller left02:10
L42y left02:10
boombatower left02:14
amerine joined02:21
jfkw joined02:21
mosno joined02:22
mosno how can i see the difference between changes on the same line between two commits?02:23
ie. i'm having to visually scan the line for changes02:23
petdance joined02:26
Yuuhi` joined02:26
sebersole_ joined02:27
sebersole left02:28
Yuuhi left02:28
Elfe left02:28
Elfe_ joined02:29
stliu joined02:30
offby1 mosno: use a better diff viewer.02:30
for example, the one built into emacs highlights those changes within the line.02:31
I would have thought that simply typing "git diff" would do some fancy highlighting like that.02:31
hmm, apparently not. Pity02:31
luxurymode joined02:32
aaronlevy left02:32
tjholowaychuk left02:33
hvgotcodes left02:33
pedrobelo left02:34
robotarmy joined02:34
lu_zero left02:36
Fandekasp bremner I've added a user and a project in my conf/gitolite.conf, then ci and push, then git clone the new project, and it works. But on the server, I'd like to symlink this new project to the existing one, and I can't find where are the sources for the new project. There is a /home/git/repositories/project.git but do you know where is my code ?02:37
towski joined02:37
javaanse_jongens left02:39
MikhX joined02:39
alberto56 left02:39
javaanse_jongens joined02:41
Swimming_bird joined02:41
offby1 Fandekasp: it's there, but since your repositories are "bare", they're not in a convenient or obvious form.02:42
They're all in subdirectories named .git/objects, and they're compressed02:42
Fandekasp erf :(02:43
offby1 why is that a problem?02:43
Fandekasp Because the git repository is used by track in another location02:43
sebersole_ left02:43
offby1 I don't understand what that means02:43
Fandekasp so I'd like a symlink somewhere02:43
Trac sorry,02:43
hyperair joined02:43
offby1 does trac require a working tree with all the files?02:43
Fandekasp That's how I've configured it, but I'm not an expert, maybe there is a better way to do02:44
offby1 I don't know enough about trac to advise you.02:44
javaanse_jongens left02:45
ak0rn|2 joined02:45
Fandekasp So I'd need to download my project in the client, then update the gitoline project and push it. And then modify my trac config to read gitoline instead of the current git project, am I right ?02:45
sebersole joined02:46
javaanse_jongens joined02:47
azazul joined02:48
azazul hi02:48
linoj joined02:48
ak0rn left02:48
linoj hiya, how would i do a git pull of a different branch than i presently have?02:48
frogonwheels linoj: a git pull is git fetch + merge. in the git fetch part, all the branches are pulled.02:49
azazul i'm looking for some software that could pull autimatically updates from multiple gite repositories to my local file system02:49
frogonwheels linoj: do a git branch -r to see the remote branches.02:49
azazul ( on windows )02:49
hcl2_ left02:49
azazul i there any such tool , or will i have to make something like that on my own ?02:50
frogonwheels linoj: if say one is called 'remotes/source/feature' you can do git checkout feature and it will create a new branch 'feature' that has remotes/source/feature as it's upstream remote-tracking branch02:50
javaanse_jongens left02:50
linoj thx02:50
hobodave joined02:51
frogonwheels azazul: batch file?02:51
javaanse_jongens joined02:52
frogonwheels azazul: have a batch file that reads a list of remotes / target directories and put it into the command scheduler. not too hard.02:52
azazul yeah , i guess02:52
i was just hoping that there was a small app that did it for me02:53
frogonwheels azazul: I have one (on windows) that pulls my repos to a backup drive.02:53
azazul well , shell scripting is easy , that isnt a problem02:53
frogonwheels azazul: I guess it's a unix thing. why bother creating an app that does it specifically when you have batch files and a task scheduler?02:53
azazul one thing : what should i google for , if i want the script to automatically create a log for "last updates" ?02:54
as in , list of files that have been changed02:55
javaanse_jongens left02:55
azazul or , is was there a built in functionalit and i dont have to worry about that02:55
*functionality02:55
kpreid left02:55
jamescarr left02:55
frogonwheels azazul: well how about you do a fetch, then do a log from origin/branch to branch then do a merge of origin/branch into branch ..02:56
glitterfang left02:56
infid how do you get 'git gui here' to show up in nautilus (gnome's gui file explorer)?02:56
javaanse_jongens joined02:57
dreiss left02:57
azazul hmm .. i better do this in the morning02:58
petdance left02:59
Openfree` joined03:00
Openfree` is there any option to disable create remote git branch on my server?03:00
intripoon joined03:00
azazul i gues i will get back to this idea a bit later03:01
at least i know that it will be possible03:01
azazul left03:01
Openfree` It's quite annoy when people type something wrong, a new branch created, I just need this option to give them a warning!03:02
intripoon_ left03:03
infid is msysgit better than tortoisegit03:04
frogonwheels infid: tortoisegit uses msysgit afaik03:05
infid: tortoisegit is a bit too 'tortoisesvn' for my liking. (ie git concepts shoe-horned into svn concepts). It really depends on your usage pattern.03:05
infid: personally, I don't actually use explorer to visualise my work tree.03:06
infid: I prefer to see 'what's changed in my project' rather than 'what's the status of this file'03:06
wilmoore joined03:07
frogonwheels infid: so I tried tortoise but discarded it pretty quickly.03:07
Openfree` seems NO that option, at least I'm looking at the code...03:07
infid frogonwheels: well i installed msysgit then i installed tortoisegit and i'm not seeing any tortoisegit options showing up at all in explorer03:10
texel left03:11
infid and i want to keep the 'git bash here' option, so if they cant play well together i'm going to choose msysgit03:11
mosno offby1: cool thanks03:11
next question... i have a commit in repo A that i want to apply in repo B... how?03:12
offby1 depends03:12
does the commit have ancestors in repo B?03:12
eydaimoon how can I remove a file from the repo without removing it locally?03:12
offby1 eydaimoon: "git rm --cached path/to/file"03:13
then "git commit"03:13
eydaimoon offby1: thank you03:13
Captain`Ramen infid: have you tried gitextensions?03:13
infid no03:13
offby1 eydaimoon: of course you could also back it up, then do a simple "git rm path/to/file; git commit", then restore. But this is more elegant.03:13
Captain`Ramen give it a spin.03:14
mosno offby1: yes03:14
offby1: but i only want to apply changes from a single commit, not all the commits leading up to it03:14
offby1: as if i scp a single file from host A to host B, then do a commit in host B03:15
t0rc joined03:15
petdance joined03:15
offby1 mosno: ah, I think you want to fetch from A to B, but then "git cherry-pick"03:15
it's really two separate issues:03:15
1) how do you get that commit's "patch" onto some other branch03:16
2) how to get stuff from a branch on one box to another box03:16
Error404NotFound left03:16
eydaimoon offby1: yeah, I like this better, and it's easier. Also I should have figured it was cached... been reading the progit book a bit :)03:17
offby1: thanks :)03:17
javaanse_jongens left03:18
mosno offby1: thanks, i will look into cherry-pick. i've done no work with remote repos yet, so i have some other learning to do03:19
javaanse_jongens joined03:19
kukks left03:25
Fandekasp What are git control files ?03:25
zivester_ left03:26
zivester_ joined03:26
cenuij joined03:26
cenuij left03:26
cenuij joined03:26
infid i thought git rm --cached only takes things out of the staging area, you're saying it deletes it out of the repo?03:27
ilteris_ilteris03:28
Fandekasp When I try to configure trac, the hidden git folder in the project repository is read, but the git folder with compressed data isn't : http://paste.pocoo.org/show/371335/. So in my /home/git/repositories/servicepanel.git/, what would be the Git control files according to you ?03:28
majonto joined03:29
majonto left03:29
majonto joined03:30
majonto left03:30
jon_at_dh joined03:31
offby1 *shrug*03:31
Fandekasp :(03:34
MikhX left03:35
MikhX joined03:36
linoj left03:36
mattikus left03:38
seivan left03:39
Predominanthotcalichick696903:39
seivan joined03:40
jaeckel joined03:41
sechrist joined03:42
Remixman joined03:47
MikhX left03:51
MikhX joined03:54
cakehero joined03:54
cakehero Two mathematicians were outside a bar and observed two people go in, and later three people left. One mathematician says to the other "if one more person goes in it will be empty!"03:55
Wait - wrong room03:55
sechrist left03:55
nevyn I laughed..03:55
cakehero git reset --hard03:55
orafu left03:55
cakehero There, that's better03:55
orafu joined03:56
Error404NotFound joined03:56
Error404NotFound left03:56
Error404NotFound joined03:56
MikhX left03:56
Goliath|2 joined03:56
phantomcircuit left03:56
iAmerikan left03:58
Goliath left03:59
offby1 ha! that's a good oe04:00
"git reset --hard" ... *hyuk*04:00
offby1 slaps thigh04:00
infid how do 'export' a git working dir so that it doesn't contain the .git? do i have to just make a copy then delete the .git? (wanting to script this)04:00
sechrist joined04:00
iAmerikan joined04:00
offby1 infid: man git-archive04:00
jast infid: the 'git-archive' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-archive.html [automatic message]04:00
mattikus joined04:00
offby1 ooh, ooh, I win04:00
offby1 dances like an idiot in the end zone04:00
infid doesnt git archive force it to be a compressed thing though04:00
i want it to be uncompressed04:00
Dave^| joined04:01
sechrist left04:02
offby1 dunno what made you think that04:02
read the man page04:02
sechrist joined04:02
offby1 oh, I guess if you ask for a "zip" archive, it indeed compresses, seeing as how that's what zips are all about.04:03
But if you ask for tar, e.g., it doesn't compress.04:03
infid the man page did make me think that04:03
offby1 so: git archive --prefix=whatever HEAD | (cd .. ; tar xf -)04:03
that might not be exactly right, but it's close.04:03
infid Format of the resulting archive: tar or zip. If this option is not given, and the output file is specified, the format is inferred from the filename if possible (e.g. writing to "foo.zip" makes the output to be in the zip format). Otherwise the output format is tar.04:03
Dave^|| joined04:03
Arrowmaster tar is not a compressed format04:04
offby1 I dunno, _I_ don't get "compression" from reading that, but maybe it's just m,e.04:04
Dave^|| left04:04
OOPMan left04:04
hobodave left04:04
infid i dont want it compressed or otherwised reformatted, but i guess i can make do with untar'ing it back04:04
hobodave joined04:04
Arrowmaster you can pipe the output of git archive directly to tar in that case04:05
Barry-Nichols left04:05
seivan left04:05
orion left04:06
offby1 suspects infid is confused about something, but cannot think of exactly what04:06
infid i want the equivalent of cp -r foo/ bar/ ; rm -rf bar/.git04:09
sunaku joined04:09
hotcalichick6969Predominant04:10
jaeckel left04:11
orion joined04:12
avinashhm joined04:14
brianpWins left04:14
QshelTierBombe04:15
phantomcircuit joined04:19
Finalflash50 left04:20
Finalflash50 joined04:21
jon_at_dh left04:21
Finalflash50 left04:21
OOPMan joined04:23
jon_at_dh joined04:26
dr0id joined04:26
AkumaStreak left04:28
offby1 did we not just give you the equivalent? Am I misunderstanding something?04:29
Have you actually _tried_ git-archive?04:29
hackez left04:30
cutmail left04:30
Linex left04:30
fisted left04:31
bindaas joined04:32
xerora joined04:32
cakehero left04:33
cutmail joined04:33
t0rc left04:34
cutmail left04:34
[intra]lanman left04:35
infid nah i got it thanks04:35
sebersole left04:37
infid so git revert doesn't work on uncommitted files, like svn?04:37
some googling is saying i have to do 'git checkout -- files' to revert local changes, is that right?04:38
what the heck is "--"04:38
hackez joined04:38
wereHamster infid: to separate options from the rest of the arguments04:40
Yuffster joined04:41
wereHamster actually in this case to tell git to treat files as a pathspec and not a branch04:41
offby1 "git revert" is very different from "svn revert".04:42
roop joined04:42
offby1 It means "make a new commit whose changes counteract those from some other commit".04:42
"negate" ... "cancel out" ... whatever term you like04:42
cutmail joined04:42
offby1 "nuke"04:42
pew pew04:42
offby1 takes a chill pill04:42
drake01 left04:43
rayners left04:43
dr_lepper left04:44
infid wereHamster: where can i read about all the contexts of -- ?04:44
Yuffster left04:45
wereHamster infid: in man git-checkout04:46
jast infid: the 'git-checkout' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html [automatic message]04:46
dharrigan left04:46
infid thanks04:46
dharrigan joined04:47
CJack joined04:48
jrmuizel_ left04:48
infid actually that man page doesnt explain the contexts04:49
oc80z left04:49
oc80z joined04:50
freimatz joined04:50
ChanServ set mode: +v04:50
petdance left04:50
infid and googling for this doesnt work: git " -- "04:50
CJack ok .. do i have a voice now ?04:51
yay04:51
dr0id man pages are pretty confusing until you get a good grasp over git by reading books like progit or book.git-scm.com :)04:51
CJack Hi all04:51
dr0id CJack: give me voice :P04:51
ISF left04:51
juangiordana left04:51
CJack drOid ... love ProGit .. a major help to learning04:51
ISF joined04:51
fisted joined04:52
robotarmy left04:52
CJack dr0id: voice as in this channel's anti-spam process04:52
dr0id I do know what voice is, heh :P04:53
CJack infid: what was the question ?? .. i got here late04:53
dr0id: voice as in Mode +v04:53
dr_lepper joined04:54
EricInBNE_ left04:55
wereHamster in the double-dash is used in pretty much any gnu commandline app04:56
Arrowmaster dr0id: read the topic04:56
wereHamster infid: and the man page doesn't explain what it means specifically, but it gives you an example where to use it04:57
dr0id Arrowmaster: ?04:57
ISF left04:57
Linex joined04:57
Arrowmaster the -- means stop processing the comandline for options, for git checkout its like a seperator between hash and filenames so it wont try to parse the filename as a hash04:58
EricInBNE joined04:59
zcopley left04:59
cxadams left04:59
ceej left05:01
ThomasLocke joined05:04
meder left05:05
kanru left05:05
meder joined05:05
endra` joined05:05
cordoval_ joined05:05
kanru joined05:05
bwwww joined05:05
endra left05:06
ExtraSpice joined05:06
VladDrac left05:08
cutmail left05:08
VladDrac joined05:08
ph^ joined05:08
cutmail joined05:11
krosenvold joined05:12
sftp_ left05:15
variable left05:15
Jake__ joined05:16
jutaro joined05:16
robotarmy joined05:18
adaptee joined05:18
Spockz left05:19
int3__ joined05:20
davey left05:21
javaanse_jongens left05:22
seivan joined05:22
javaanse_jongens joined05:23
jeffwheeler joined05:24
jutaro left05:25
javaanse_jongens left05:26
jeffwheeler left05:27
davey joined05:28
daveyGuest6013105:28
brodo left05:28
infid thanks05:29
ketas left05:30
javaanse_jongens joined05:30
ChUrP left05:35
madewokherd left05:36
CJack Arrowmaster: yes, 2 dashes with spaces on each side is saying: "Here is the end of the options, the next item will be a filename/path"05:38
rideh left05:38
sechrist left05:38
slonopotamus joined05:39
amerine left05:39
Zenith77 left05:39
airborn joined05:41
tyteen4a03 joined05:46
linusoleander joined05:50
xiong left05:51
cenuij left05:52
cenuij joined05:52
cenuij left05:52
cenuij joined05:52
rideh joined05:53
Garen_ joined05:55
TrineLocke joined05:57
thiago joined05:57
ketas joined05:58
Garen left06:00
slonopotamus left06:00
linusoleander left06:01
phaedrix left06:01
slonopotamus joined06:02
sunaku left06:04
CloudySunshine left06:04
bwwww left06:05
bauruine left06:06
Fissure left06:08
guardian joined06:10
cbreak_work joined06:11
hobodave left06:12
seivan left06:13
towski left06:14
jense_ left06:14
jfkw left06:15
KKA left06:15
mari00sh joined06:15
KKA joined06:16
leo2007 joined06:17
Fissure joined06:21
guardian left06:21
rubydiamond left06:22
slonopotamus left06:23
CloudySunshine joined06:23
psoo joined06:23
Kudos left06:24
karihre left06:24
cordoval_ left06:24
cordoval_ joined06:25
seivan joined06:25
karihre joined06:26
frsk joined06:26
LouisJB left06:27
rubydiamond joined06:27
towski joined06:28
amerine joined06:29
amerine left06:32
Garen joined06:32
simplechat joined06:33
profynet joined06:34
larsmoil joined06:35
ak0rn|2 left06:35
Garen_ left06:35
ak0rn|2 joined06:35
joel_falcou joined06:36
Kudos joined06:36
michael_lf joined06:37
namemon joined06:37
d0k joined06:38
dermoth|home joined06:38
dermoth|home left06:38
profynet left06:40
alip left06:41
LouisJB joined06:42
javaanse_jongens left06:42
saschagehlich joined06:43
aminpy joined06:44
vdv joined06:44
TrineLocke left06:45
alip joined06:45
javaanse_jongens joined06:45
TrineLocke joined06:45
tyfighter joined06:46
singlow joined06:47
Deesl joined06:48
brianpWins joined06:48
wereHamster CJack: in git it's not always used in this exact sense. Rather it's a generic delimiter, it doesn't need to be options/filename but can also be tree-ish/pathspec etc06:48
steph021 joined06:49
ph^ left06:49
steph021 left06:49
steph021 joined06:49
LouisJB left06:49
vdv left06:50
walf443 left06:50
walf443 joined06:52
airborn left06:53
giallu joined06:56
jceb joined06:56
pdelgallego joined06:57
soc42 joined06:59
orion left06:59
sigh left07:00
brianpWins left07:02
wo9x joined07:03
orion joined07:04
orion left07:04
orion joined07:04
Garen left07:05
Garen joined07:05
CJack left07:05
brianpWins joined07:05
workmad3 joined07:07
linusoleander joined07:08
orafu left07:08
orafu joined07:08
gullden left07:09
Yuuhi`` joined07:09
saschagehlich left07:09
bauruine joined07:10
guardian joined07:10
Yuuhi` left07:10
saschagehlich joined07:11
xxtjaxx joined07:11
javaanse_jongens left07:11
LouisJB joined07:11
int3__ left07:12
ph^ joined07:12
troessner joined07:13
javaanse_jongens joined07:14
saschagehlich_ joined07:15
saschagehlich left07:16
ph^ left07:17
jaeckel joined07:18
nevyn^ joined07:18
henrikbjorn joined07:18
dr0id left07:19
mastroDani joined07:19
pratz joined07:20
aminpy left07:20
yota joined07:20
tty1 left07:21
uwjweq joined07:21
yota left07:23
MikhX joined07:24
cordoval_ left07:25
cordoval_ joined07:25
sycofly_ left07:25
eijk joined07:25
wo9x left07:26
_pingu joined07:27
dc5ala joined07:28
ningia joined07:28
saschagehlich_ left07:29
TiBook joined07:29
nevyn^ left07:30
steph021 left07:30
cilly joined07:31
mikewintermute joined07:31
aminpy joined07:32
LouisJB left07:33
adaptee left07:34
Adys left07:36
borwar joined07:38
georgedove joined07:38
xerora left07:39
georgedove Hello. I have a webserver for development. All changes in source files which occur there are made through the ftp. After changes have been made I have to connect through ssh and to make the commit from console. (It's not possible to have the local copy of the all source files and then just pull changes to remote server). Question: Is there web oriented app for making commits on remote server, or maybe some GUI tool that can do it through the ssh?07:39
bindaas left07:40
thiago not that I know of07:40
why isn't it possible to have a local copy of everything?07:40
bindaas joined07:40
cbreak_work georgedove: git is a command line app07:41
you can invoke it from scripts too07:41
bentob0x joined07:41
dpino_ joined07:41
cbreak_work but I think it's better to have a local work dir07:41
georgedove cbreak, are you suggest to write scripts07:41
bkozal joined07:42
simplechat left07:43
georgedove there are a lot of services on the server that i cant run on my windows machine07:43
drake01 joined07:43
georgedove so i cant test the code on local machine07:43
optikfluffel joined07:47
bauruine left07:47
MikhX left07:50
drake01 left07:50
azariah4_ joined07:50
ChanServ set mode: +v07:52
tyfighter left07:52
azariah4_ How do I undo 'git add foo.c' ?07:52
joschi azariah4_: `git reset foo.c`07:54
mosno left07:54
sako joined07:55
azariah4_ joschi: thanks07:55
bauruine joined07:57
thiago azariah4_: git status tells you what to do07:57
codespectator left07:58
fs-sylr left07:58
linusoleander left07:58
fs-sylr joined07:58
javaanse_jongens left07:59
davzie joined08:00
javaanse_jongens joined08:01
babbio joined08:01
roop_ joined08:01
optikfluffel left08:01
roop__ joined08:03
roop left08:04
eschnou joined08:04
ph^ joined08:06
roop_ left08:06
brianpWins left08:08
ak0rn|2 left08:09
KolakCC https://github.com/mindstormer/Basilmobile/commit/b6546a8d8a9050c285336646b85b1817c6e36ec5 < Can somebody tell me what happened to the 3rd file?08:09
ak0rn|2 joined08:09
KolakCC Nothing changed but all the lines are red and then readded with green.08:09
ph^ left08:10
selckin line endings?08:10
saschagehlich joined08:10
KolakCC Bleh. How can I fix that?08:10
javaanse_jongens left08:12
Spockz joined08:12
roop__ left08:12
noonoooo joined08:12
theoros left08:12
javaanse_jongens joined08:13
dr0id joined08:13
leavittx joined08:15
javaanse_jongens left08:16
_sh3 left08:17
KolakCC selckin?08:17
javaanse_jongens joined08:17
selckin don't change them?08:17
codespectator joined08:18
KolakCC I didn't change them on purpose.08:19
selckin use a good editor08:20
linusoleander joined08:20
fga joined08:21
Goliath|2 left08:21
azariah4_ I'm using repo with git, and did a git commit then repo upload. Now I want todo the exact same commit but with a different commit message, but git add does not seem to add anything.08:23
frerich KoalkCC: Maybe you have the core.autocrlf configuration switch enabled, so that git 'fixed up' line endings?08:23
Fandekasp hi08:24
KolakCC frerich: Okay, i'll try disabling that, thanks08:24
PigeonFriend joined08:25
lu_zero joined08:25
cordoval_ left08:25
Fandekasp I struggle with this error : http://paste.pocoo.org/show/371419/ . I use gitolite, and I'm sure that my config is fine and my ssh public key is correctly placed in the keydir folder, with the same name as specified in the conf. I really don't understand why I keep getting this permission error (and a few hours ago, it worked :/ ) . Any idea 608:25
cordoval_ joined08:26
Fandekasp -6+?08:26
optikfluffel joined08:26
Adys joined08:26
mojavy left08:26
rendar joined08:27
jast wrong username in SSH URL perhaps?08:28
(remember, it needs to be the user gitolite is installed under)08:28
krosenvold left08:29
Fandekasp no it's fine08:30
I think I found out08:30
I can download another project08:30
so that mean this one is corrupted or something ?08:30
cutmail_ joined08:30
Fandekasp But I have no clue how to fix it08:30
ph^ joined08:30
jast the files are probably fine, it's just a filesystem permissions problem08:31
bkozal left08:31
jast perhaps someone accidentally pushed to the project bypassing gitolite (e.g. as a different user)08:31
ph^ left08:31
Fandekasp hum08:32
cutmail left08:33
Fandekasp I pulled the same project from another user in the server, but didn't push08:33
KolakCC What would be the reccomended core.autocrlf configuration for 2 windows computers?08:33
selckin false08:34
cutmail_ left08:34
jast I was going to say true08:34
:)08:34
CloudySunshine left08:35
selckin you don't want to git to mess with it, else you jus get suprises, its an option to cover up for reall ybad editors that always change the line editngs08:35
empity joined08:35
selckin don't use those editors.08:35
jast the new official way to do it is by using core.eol and attributes, anyway08:35
slightly more work but perfectly safe once the attributes are set properly08:36
KolakCC git-config core.autocrlf false08:36
would be the command, righT?08:36
jast if you don't anticipate any non-windows people ever working with the repository, sure08:36
(nor any cygwin users)08:37
linusoleander left08:37
selckin how does that mather?08:37
jast they'd be likely to start introducing LF line endings08:38
and once you've got mixed line endings in the repository, things get ugly08:38
selckin doesn't mather08:39
cutmail joined08:40
jast but you'll start getting a lot of whitespace damage in diffs very soon08:40
fga left08:40
roop__ joined08:40
jast which means merges are going to be painful08:40
robinbowes I have a fork of this: https://github.com/loggly/puppet-modules here: https://github.com/robinbowes/puppet-modules08:42
ptr_uzl joined08:42
roop_ joined08:42
robinbowes I've cloned my fork on my workstation and am trying to pull in an upstream change (a new top-level dir was added)08:43
NetHawk joined08:43
robinbowes But, I can't get it to show up in my local clone08:43
Doh!08:44
I just noticed, I added my own repo as the upstream!08:44
mags joined08:44
namemon left08:44
robotarmy left08:45
roop__ left08:45
adamholtadamholt_away08:46
adamholt_awayadamholt08:46
tatsuya joined08:47
dharrigan left08:47
dharrigan joined08:48
dharrigan left08:48
dharrigan joined08:48
Spockz left08:48
Spockz joined08:49
tgunr_ left08:49
cutmail left08:50
rgr joined08:50
cutmail joined08:50
rgr left08:50
ak0rn|2 left08:50
Dr4g joined08:50
PigeonFriend left08:52
mattt0 joined08:53
rgr joined08:53
Spockz left08:53
ak0rn joined08:54
ChanServ set mode: +v08:54
mattt0 I am not sure what difference it makes to make a --bare init. When is it proper to use this instead of a normal init?08:55
PigeonFriend joined08:55
RaceCondition joined08:55
mklappstuhl joined08:55
drake01 joined08:56
metin joined08:56
Elfe joined08:56
thiago when you want a bare repository08:57
Fandekasp Does someone has an idea how to fix this error : http://paste.pocoo.org/show/371429/ ? Thanks in advance08:57
thiago check that the user has the permission to read all files in the repository and write to all directories08:58
metin left08:58
mattt0 thiago: Was that for me?08:58
Fandekasp check done, git:git everywhere08:58
mattt0 :/08:58
Elfe_ left08:59
Fandekasp ah08:59
no my fault08:59
there is a apache:apache for a few file08:59
PigeonFriend left09:00
Fandekasp mattt0, that was that ... so stupid -_-' thank you09:00
jast mattt0: for hosting, mostly. bare repositories can be freely pushed to, unlike non-bare repositories where you don't want to push to the checked out branch.09:01
rgr left09:01
rgr joined09:01
jast bare = there is no working copy of the files, just the database of commits09:01
leavittx left09:02
mattt0 jast: Can you explain the part of not wanting to push to the checked out branch? What do you mean by this?09:03
thiago mattt0: yes09:04
PigeonFriend joined09:04
LouisJB joined09:04
achadwick joined09:05
jophish joined09:05
ak0rn left09:07
rmAdfinis joined09:07
mattt0 thiago: To check permissions? How does that go along with what jast said? Is there more to it, than checking permissions?09:08
thiago mattt0: sorry, to you it was just the "use --bare when you want a bare repository"09:08
the permissions was to Fandekasp09:08
mattt0 lol thought you said yes to me :)09:09
Or, you actually did :P09:09
larsl joined09:09
woozie joined09:09
mattt0 I dont feel the git man is explanatory enough for beginners09:10
bn_ left09:10
ki__ left09:11
Titosemi joined09:12
roop_ left09:14
mattt0 thiago: Can you confirm if I have understood this correctly? The point of a bare repository is to allow free pushes for instance, as it is not set up to a specific working tree, as this would be a problem if you have multiple users pushing at any point?09:16
seivan left09:16
jceb left09:16
rendar left09:16
rmAdfinis left09:17
thiago mattt0: the point of a bare repository is a repository without a working dir. It's just the Git database.09:17
Predominant left09:17
thiago mattt0: and you should not push to a non-bare repository.09:18
Predominant joined09:18
snearch joined09:18
mattt0 How come thiago? I think there is something im not aware of there09:18
jast simple09:19
if you push to a checked out branch (bare repositories don't have checked out branches because there's nowhere to check them out to), git updates the commit history but not the checked out files09:19
because that opens a huge can of worms: what if the checked out files have changes? what if someone is editing them right now? etc.09:19
so, after pushing to a checked out branch, the checked out files (plus the index) no longer match the history of the repository09:20
this usually causes a lot of confusion so we forbid it by default09:20
gebi left09:21
dc5ala left09:22
hyperbor1ean anyone has any examples of using git-svn tag ? I've been trying exactly like this git svn tag <url> and I get a weird error about svn_path_join09:22
kassah left09:23
rendar joined09:23
nevyn^ joined09:23
mattt0 jast: Thanks for the explanation. That hepled09:24
dr0id wait, I am confused now :P09:24
TrineLocke left09:24
gebi joined09:25
dr0id bare repo means an empty repo, right ?09:25
stliu left09:25
TrineLocke joined09:25
cordoval_ left09:25
mjt bare = without .git subdir09:26
cordoval_ joined09:26
jast no09:26
trupheenix joined09:26
jast bare = without working tree, i.e. *only* the stuff that's usually in .git/09:26
TrineLocke left09:27
mjt that's another way to say the same, sorta :)09:27
dr0id ohh, without any changes or anything. basically when git status is "nothing to commit" :P09:27
BinGOs hyperbor1ean: git svn tag <tag>09:27
mjt dr0id: no!09:27
TrineLocke joined09:27
javaanse_jongens left09:27
dr0id then ? :S09:28
curtana joined09:28
dr0id "and you should not push to a non-bare repository." is confusing me buddy09:28
mjt that's wrong09:29
simplechat joined09:29
dr0id uggh09:29
simplechat left09:29
simplechat joined09:29
dr0id jast: is there some confusion here ?09:29
d0k left09:29
rmAdfinis joined09:29
javaanse_jongens joined09:31
jasper joined09:32
gebi left09:32
whyking joined09:34
opalka joined09:34
optikfluffel left09:36
aidalgol joined09:38
starcoder2 joined09:38
seivan joined09:39
sgronblo Hey can I list files that have existed in a directory at some point?09:42
cutmail left09:42
jast dr0id: http://git.or.cz/man/gitglossary09:42
dr0id read that, makes lil sense really :S09:43
manual is definitely confusing for newb09:43
s09:43
jast non-bare = files with your code in them + .git subdir. bare = only the .git dir, directly at the top level09:43
hyperbor1ean BinGOs: where <tag> is the whole svn url with /tags/my_tag or just the my_tag thing? it doesn't work for either of those09:43
BinGOs: thanks09:43
dr0id jast: so you should not push to repos where there is .git + code files ?09:44
jast dr0id: usually not09:45
dr0id sounds weird, people push everyday on github.09:45
jast yes, but the repositories on github don't have physical copies of your code files09:45
they just contain the contents of your files somewhere deep inside the git object database09:45
github uses bare repositories on their servers09:46
dr0id hmm09:46
I see09:46
jast you know what, I suggest you try it yourself09:46
create a bare repository, clone from it locally, edit/add/commit some stuff in the clone and push it09:46
then look at the two repositories09:46
that will probably make it a lot clearer to you09:46
dr0id I have done it yesterday09:47
gebi joined09:47
javaanse_jongens left09:47
dr0id on my server and it was just fine, maybe I am missing something09:47
jast have done what?09:48
dr0id there were files on the server, did git init->add . -> commit09:48
then git clone on my dev box09:49
modified files, added new09:49
javaanse_jongens joined09:49
dr0id git add . -> got commit on my box and then git push09:49
jast and you got no warnings/errors?09:49
fivetwentysix joined09:50
dr0id no09:50
mikelangelo joined09:50
fivetwentysix left09:50
yaotti_aw__ left09:50
jast what version of git are you running on the server?09:50
dr0id I was learning git last month and had done git push and got this error09:50
I asked here, and someone said me the same thing09:50
I started re-learning git on Sunday and yesterday did my first git push everything was fine :)09:51
I will check one sec09:51
should be 1.6.3.309:51
blast_hardcheese left09:51
dr0id actually, I wish try git push again right now :)09:51
1.6.409:51
it is09:51
jast okay, we already had the warning (but not the error) in 1.6.x09:52
starting from 1.6.2 I think09:52
hyperbor1ean git svn branch -t <tag> is for creating new tags in svn09:52
gebi left09:52
dr0id also last month when I got that error, I was using some 1.5.3 or something09:53
but the server was same though :/09:53
jast the error message is generated on the server09:53
BinGOs 'tag' probably got added as a shortcut at some point.09:53
dr0id weird then, not sure09:53
mattt0 Having a server for my remote git repositories which is gonna have multple repos depending on project, I am going to have a folder structure named git/project-name where each project-name folder is a --bare init ... This seems right, doesnt it? Or is there some other more proper way to organize multiple repos09:55
engla left09:55
workmad3 mattt0: you could look at gitolite for managing the server09:56
jast mattt0: by convention, bare repositories live in directories like projectname.git; it doesn't matter how you structure the whole thing though09:56
mattt0 Ok thanks both of you workmad3 and jast09:56
dr0id jast: so basically github don't hold any files ? when we see the files from web browser they are fetching from .git and showing ?09:57
jast dr0id: yeah, though they might be using some fancy in-house caching system on top of that. who knows.09:57
dr0id true09:57
selckin .git caontains just files09:57
jast yeah, but special files :}09:58
magical, magical files09:58
dr0id jast: is there some command that can tell whether the repo is bare or not ?09:58
or do we just consider it bare if no files/folders except .git is present09:58
jast dr0id: in properly configured repositories: git config core.bare09:58
only extremely old or manually modified repositories will fail to give you a result09:59
dr0id on my server it says false :D09:59
drl joined10:01
marcob joined10:01
kpreid joined10:04
dr0id jast: buddy, the value is always false :P10:05
if the files are not there and you run git status then it will say that those files are deleted10:06
yaotti_aw joined10:06
jast just deleting the files doesn't make the repository bare10:06
that's why I said: create your own fresh bare repository to see the difference10:06
dr0id you mean just git init and nothing else ? :)10:07
even then git config core.bare is false10:07
snearch left10:09
seivan left10:10
xelister in git how to do like svn info10:10
to see gir URL, current version etc10:10
FauxFaux git remote -v10:11
git fetch && gitk --all10:11
xelister this is the version of current locally checked out version?10:11
gs joined10:11
FauxFaux How about you run them and find out.10:11
xelister again, how to see the version name of currently locally checked out version? possibly with indication if it is modified (liek M versions in svn)10:11
FauxFaux git status; git rev-parse HEAD10:12
xelister I dont have gitk10:12
seivan joined10:13
Vampire0_Vampire010:13
FauxFaux It's in nearly every distro's package manager; I'd guess you're using a debian clone if you have git but no gitk, sudo apt-get install gitk10:13
xelister touches FauxFaux's gf boobs *honk* *honk* ; dont CTCP version me ;)10:13
xelister its a debian10:13
ubuntu actually10:13
FauxFaux It's quicker than asking what OS you're on, and normally more accurate than asking, even including people like me.10:14
mklappstuhl left10:15
sitaram left10:16
ph^ joined10:20
roop_ joined10:22
marcob left10:23
namemon joined10:24
jasper left10:24
winterweaver joined10:24
marcob joined10:25
hyperbor1eanhyperboreean10:25
aidalgol left10:25
roop__ joined10:26
marcob left10:26
cordoval_ left10:26
marcob joined10:26
cordoval_ joined10:26
_pingu left10:26
roop_ left10:28
sraue left10:28
cenuij left10:28
jadu joined10:29
drake01 left10:29
_pingu joined10:30
lanthan joined10:31
sitaram joined10:32
sitaram left10:32
sitaram joined10:32
lanthan left10:32
JEEB left10:32
sraue joined10:33
seivan left10:34
lanthan joined10:34
shiba_yu36 left10:35
cenuij joined10:36
cenuij left10:36
cenuij joined10:36
winterweaver left10:36
whyking left10:36
namemon left10:37
whyking joined10:37
Adys left10:38
javaanse_jongens left10:39
Adys joined10:40
javaanse_jongens joined10:41
icwiener joined10:42
Kjellski joined10:42
avdg joined10:42
Kjellski Is there a way to find out which server a repository is saved to?10:43
_pingu left10:43
nevyn^ left10:43
nevyn^ joined10:43
FauxFaux You mean, who's pulled your repository? Or what git remote -v prints?10:43
Kjellski FauxFaux: I can see the local repository and don't know where it was backed up to... where it was pushed to?10:44
larsmoil left10:44
RaceCondition left10:45
FauxFaux Given a push of a repo is basically a file copy, no?10:45
larsmoil joined10:46
Kjellski FauxFaux: I don't know. I'm pretty new to git, so I just wanted to know whether there is a way to find out where a repo was pushed to and where that remote side is or not...10:46
trupheenix left10:48
Kjellski FauxFaux: And the git remote -v shows just one line with origin.10:48
DarkUranium joined10:49
DarkUranium hey10:49
I've a question -- I've got two branches, master and console10:49
how can I merge a single file from console into master?10:49
now, I know I can simply copy over the file, but what would be the "proper" way of doing it?10:50
SRabbelier|Lappy joined10:50
DarkUranium "git checkout console fname.ext"?10:51
javaanse_jongens left10:52
Fandekasp left10:52
albel727 to copy it over and git add it is the best way. and that checkout does exactly "copying it over" part. I doubt you want to perform even a tricky merge here (like git merge --no-commit, unstage all but frame.ext, git-commit), cause there are implications in having a merge info in history.10:52
DarkUranium albel727: okay, thanks =)10:53
JEEB joined10:53
javaanse_jongens joined10:55
linusoleander joined10:55
etnt` joined10:56
linusoleander left10:56
gebi joined10:58
JohnFlux joined10:58
JohnFlux How do I branch and track "origin/master" to a new branch name "fixes" ?10:58
etnt left10:58
thiago git branch fixes origin/master10:58
dr0id git checkout -b fixes origin/master10:58
eww :P10:59
JohnFlux thiago: and that will track?10:59
etnt` left10:59
dr0id yes JohnFlux10:59
JohnFlux cool10:59
dr0id the second version will create and checkout10:59
etnt joined11:00
saschagehlich left11:00
etnt it seem that 'git tag -l' also list branch names, how can I list tags only?11:01
dr0id just git tag ?11:01
pdelgallego left11:01
mabrand joined11:02
teuf etnt: git tag -l only gives tags here11:02
albel727 left11:04
cenuij left11:04
javaanse_jongens left11:04
etnt hm...I got loads of old branchnames in .git/refs/remotes/origin/ , leftovers from an old svn conversion11:04
they all show up with git tag -l11:04
alberto56 joined11:06
amondracorp left11:06
dpino_ left11:07
kpreid left11:08
javaanse_jongens joined11:09
cilly left11:10
RaceCondition joined11:11
elyob joined11:15
sftp joined11:15
Ruudjah left11:15
juliohm joined11:17
antagomi1 left11:18
juliohm Hi, what means the ..HEAD notation in git?11:18
nimrod10 joined11:18
juliohm this is an interval notation, right?11:18
dpino_ joined11:19
cilly joined11:20
nimrod10` left11:21
glitterfang joined11:21
aminpy left11:21
mariusso joined11:22
mariusso So, how do I get back to merge conflict? Say I resolved a conflict incorrectly, in only one file, how do I get that one file back to the conflicted state so I can re-resolve it?11:23
cenuij joined11:24
cenuij left11:24
cenuij joined11:24
davzie left11:26
Jake_ joined11:26
cordoval_ left11:26
linusoleander joined11:26
cordoval_ joined11:26
davzie joined11:27
sebersole joined11:27
cenuij left11:28
mariusso 'git checkout -m <file>' seems to be the magic formula11:28
juliohm mariusso, do you know what means the origin/master..HEAD notation?11:28
mags left11:29
Jake__ left11:30
iband joined11:30
xelister git rev-parse HEAD11:30
how to get the shorter format of the git version?11:30
rane_ --short11:31
namemon joined11:31
xelister thanks11:31
Jygga joined11:31
aminpy joined11:31
spaceonline joined11:32
dr0id juliohm: that's used to see the commits that are available in HEAD but not in origin/master11:32
git show origin/master..HEAD11:32
git show or git diff , don't remember exactly :S11:32
iband left11:33
iband joined11:33
iband left11:33
iband joined11:34
gfto joined11:35
etnt hm...correction I got unannotated tags in the output of 'git tag -l', but where are they stored?11:35
dr0id .git/refs/tags ?11:35
etnt dr0id: nope, only 3 annotated ones there11:36
mabrand left11:36
dr0id I am not any good with tags :P still to read some tuts on it, but I guess unannotated tags are known as lightweight tags :D11:36
drev1 left11:37
etnt dr0id: yes, but I'm confused because I don't understand where they are store, find .git -name <tag> doesn't give me anything11:37
bremner there is also the possibility of packed refs11:38
hyperair left11:38
dr0id yup :)11:38
woozie left11:38
bremner so do git show-ref "mystery tag"11:39
etnt aha, that could explain it, didn't know about that11:39
gives me: 977b164b9b8f30f95fc4db26aeb419fe34f0dcdb refs/tags/pre_merge_1_4-011:40
but it doesn't exist in that dir though11:40
bremner right. its packed11:41
etnt ok, thx11:41
wo9x joined11:42
ChanServ set mode: +v11:42
bitkiller joined11:43
urkud joined11:46
pdelgallego joined11:46
ereslibre joined11:46
ereslibre left11:46
ereslibre joined11:46
saleh joined11:47
keystr0k joined11:48
larsmoil left11:49
evelyette hi, I setup the git post-receive hook to update my working dir automatically ... but the problem is that the working dir is owned by root and the git (gitolite) doesn't have permission to update it ... I get this error: remote: error: cannot open .git/FETCH_HEAD: Permission denied11:50
pratz left11:50
wereHamster evelyette: and your question is ... ?11:50
evelyette I could change the permissions , which would work, but then the other service doesn't work, because it has to be run as root11:50
so I'm asking, is there any elegant solution to this ... I would create a new group11:50
wereHamster evelyette: faq non-bare11:51
jast evelyette: Pushing to non-bare repositories is discouraged: please see https://git.wiki.kernel.org/index.php/GitFaq#non-bare [automatic message]11:51
evelyette but is there a way that gitolite can still have permission to update even though the working dir is owned by root11:51
albel727 joined11:51
troessner left11:52
hendeby joined11:52
kpreid joined11:52
kotique joined11:52
kotique If you run "git branch" at this point, you'll see that git has temporarily moved you to a new branch named "bisect".11:52
bash-3.2$ git branch11:52
* (no branch)11:52
evelyette wereHamster, well, the git push .. is the only one that pushes to the working dir ... there are no local changes, so this isn't a problem11:52
kotique how do i git archive from this bisected state?11:53
wereHamster evelyette: it doens't matter. YOu shouldn't push to a non-bare repo11:53
kotique: git archive11:53
kotique wereHamster, what's the tree spec?11:53
wereHamster HEAD ?11:53
kotique are you sure?11:53
wereHamster HEAD is where you are at11:54
kotique did you do bisects previously?11:54
evelyette wereHamster, well this wasn't the question ... I want to know if the git can have access to root working dir ?11:54
robinbowes left11:54
wereHamster evelyette: no11:54
ChanServ set mode: +v11:54
wereHamster kotique: if you hate HEAD, then you can also do git branch oh-I-hate-HEAD; git archive oh-I-hate-HEAD; git branch -d oh-I-hate-HEAD11:55
freimatz hi, how can i comment out a line in config11:55
kotique that will reset bisect state probably11:55
wereHamster kotique: no11:55
creating a brnach will not reset anything11:55
freimatz: have you tried the standard under unix?11:56
albel727 left11:56
freimatz what is the stadard under unix?11:56
fairuz left11:56
freimatz unix is 20 years ago for me :-)11:57
albel727 joined11:57
wereHamster #11:57
freimatz thx11:57
first machine i worked on with unix had a Motorola 68000 CPU11:57
avdg1 joined11:58
jsick3 joined11:58
urkud left11:59
avdg left11:59
avdg1 left11:59
javaanse_jongens left11:59
avdg joined11:59
walf443 left11:59
mab01 joined12:00
walf443 joined12:00
kpreid left12:01
javaanse_jongens joined12:01
linusoleander left12:01
mklappstuhl joined12:02
bremner newb12:04
Spockz joined12:04
dr0id :P12:05
lanthan left12:05
larsmoil joined12:06
javaanse_jongens left12:06
alberto56 left12:06
iband left12:06
javaanse_jongens joined12:07
ereslibre left12:08
juliohm dr0id, thank you :-)12:09
ereslibre joined12:09
ereslibre left12:09
ereslibre joined12:09
dr0id juliohm: so what was it git show ?12:09
juliohm left12:10
shiba_yu36 joined12:10
javaanse_jongens left12:10
rgr left12:10
jfkw joined12:11
glitterfang left12:11
javaanse_jongens joined12:11
fairuz joined12:12
juangiordana joined12:14
linusoleander joined12:15
foocraft joined12:17
ymasory left12:17
urkud joined12:18
dajhorn joined12:18
hcl2_ joined12:23
mklappstuhl left12:23
mattt0 Is checkout only used to change branch?12:23
nixness joined12:24
dr0id left12:25
roop__ left12:26
dr_lepper checkout is used to retrieve file or files from the repository into the working copy12:26
branch changing is just a side-effect12:26
cordoval_ left12:26
SimonP86 joined12:27
cordoval_ joined12:27
dr_lepper you can, for example, checkout an older commit; or a single file from an older commit12:27
ziro` joined12:27
ziro` hi, is it possible to make it clearer what branch you're working on with git?12:27
mattt0 So how can branch changing be a side-effect?12:27
dr_lepper12:27
patrikf it's not a side effect, it's a different usage12:28
foocraft left12:28
dr_lepper ziro`, you can add branch name to PS112:28
Predominant left12:28
[intra]lanman joined12:28
[intra]lanman left12:28
[intra]lanman joined12:28
PabloM joined12:28
dr_lepper mattt0, when during checkout you reference a commit by a branch name, git switches current branch12:28
Predominant joined12:28
patrikf dr_lepper: no.12:29
dr_lepper patrikf, very argumented :)12:29
ziro` left12:30
Predominant left12:30
ziro` joined12:30
ziro` left12:30
mattt0 :P12:31
roop joined12:32
Predominant joined12:32
ericbarnes joined12:32
mattt0 dr_lepper: You gave an example that you could checkout an older commit... Is there any other use of checkout than that or changing branch, sideeffect or not? I need a clear definition of checkout and its usage12:35
Predominant left12:35
selckin checkout can do a lot of things12:35
_pingu joined12:35
dr_lepper mattt0, basically it just retrieves given set of files from the repository. I guess you'd want to see man git-checkout for details12:37
jast mattt0: the 'git-checkout' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html [automatic message]12:37
rgr joined12:37
mattt0 ok thanks12:38
icwiener left12:38
_pingu left12:40
NetHawk left12:40
robinbowes joined12:41
bartek joined12:41
_pingu joined12:43
dharrigan left12:43
cordoval_ left12:44
Predominant joined12:45
gorekee joined12:48
svg left12:48
dharrigan joined12:48
Predominant left12:49
gebi left12:49
Predominant joined12:49
nixness left12:49
owst joined12:50
fr0sty|mobile joined12:50
Predominant left12:50
Predominant joined12:51
Kjellski left12:51
Predominant left12:52
Predominant joined12:52
shiba_yu36 left12:53
sigh joined12:55
rondon left12:55
KolakCC I need some help with my .gitignore file. I have this line: */config/config.php12:56
kotique left12:56
KolakCC However, when I edit that file, it still wants to commit the change12:56
jacobat KolakCC: Git only ignores files it doesn't know about12:57
RaceCondition left12:57
jacobat KolakCC: You will need to tell git to remove the file if you don't want it listed12:57
KolakCC jacobat: With git rm file?12:57
wo9x_ joined12:57
crashanddie left12:57
jacobat KolakCC: Yes - copy it somewhere first though12:57
ereslibre_laptop joined12:58
shiba_yu36 joined12:59
ereslibre left12:59
dv310p3r joined13:00
KolakCC jacobat: But now it wants to commit that I deleted the file, then the file will be deleted for everybody, right?13:00
wo9x left13:00
KolakCC jacobat: But the config file shouldn't be deleted, just ignored13:01
crashanddie joined13:02
SimonP86 left13:03
fr0sty KolakCC: people will be able to check out the old version of the file if they need to.13:03
drubies|mbp joined13:03
deekayen joined13:04
linusoleander left13:04
pratz joined13:05
fr0sty and you will only have this problem once (when going across the deletion).13:05
KolakCC Okay.13:05
It still lists the file in "unstaged changes", can I remove it from there?13:05
fr0sty you might want to add and commit a 'template' config file for people to copy and modify.13:05
KolakCC It doesn't want to commit it though.13:05
deekayen left13:05
fr0sty git rm --cached <filename>13:05
theoretical joined13:06
fr0sty that will leave your local copy.13:06
mab01 left13:06
deekayen joined13:06
aminpy left13:06
hvgotcodes joined13:07
linusoleander joined13:07
logankoester left13:07
_pingu left13:09
jadu left13:09
thierryp joined13:10
cilly left13:11
tokkee .oO( git config --global alias.unadd 'rm --cached' )13:11
roop left13:11
selckin git status tells you how13:11
dermoth|home joined13:12
avar where would I put a server git hook to deny pushes of certain tag names (because some people here did an unholy push of foreign tags into another repo)13:12
KolakCC In git gui for windows, can I remove untracked files from unstaged changes?13:13
kukks joined13:13
rane_ i hope not13:13
jaeckel left13:13
wo9x_ left13:14
ben42 joined13:15
ben42 hello13:16
deekayen left13:16
fr0sty avar: the update hook is probably the place13:16
ben42 can git diff ignore entire added or removed empty lines ?13:16
selckin -w will ignore all whitespace13:17
deekayen joined13:17
fr0sty if you want to be heavy handed pre-receive will deny the entire push if it contains unallowed tags. the update hook will only deny the specific tags...13:17
ben42 it doesn't seem, according to the man but maybe i missed it13:17
selckin, it keeps telling me about added or removed empty lines13:17
Finalflash50 joined13:18
logankoester joined13:18
saschagehlich joined13:18
fr0sty \n is not whitespace13:19
for the purposes of "ignore whitespace changes", that is...13:19
panike joined13:19
saschagehlich left13:20
robert_david joined13:20
borwar left13:20
avar fr0sty: right, hacking that..13:20
jatt joined13:21
linoj joined13:21
linoj left13:21
javaanse_jongens left13:21
roop joined13:21
mattt0 Is it considered to be good practice to do a checkout after a commit/push?13:21
fr0sty for what purpose?13:22
chrisdev joined13:22
Pieter no13:22
javaanse_jongens joined13:23
urkud left13:23
chrisdev left13:24
selckin why is it always the people with +v that ask the most silly questions13:24
crashanddie to make sure you're paying attention13:25
elb0w left13:25
selckin does it voice all webchat people maybe, how odd13:25
Tabstar joined13:25
javaanse_jongens left13:26
silfreed left13:27
javaanse_jongens joined13:27
Fuzzy joined13:27
fs-sylr left13:27
Soliton left13:27
gorekee left13:28
silfreed joined13:28
Soliton joined13:29
javaanse_jongens left13:30
koo6 joined13:30
svg joined13:30
rem joined13:31
javaanse_jongens joined13:31
jonatasnona joined13:32
rem left13:33
candybar joined13:33
nembutal joined13:33
ziro` joined13:33
nembutal left13:34
nembutal joined13:35
Barry-Nichols joined13:36
Barry-Nichols left13:36
Barry-Nichols joined13:36
pprkut joined13:36
Ryback_ joined13:37
Ryback_ left13:37
Ryback_ joined13:37
nembutal left13:37
Swimming_bird left13:37
tewecske joined13:38
whyking left13:38
rgr left13:39
q0rban joined13:40
ph^ left13:41
q0rban left13:41
chrisdev joined13:41
foocraft joined13:42
urkud joined13:42
jelmer left13:43
JohnFlux This works: git push -f origin "HEAD:refs/merge-requests/1734"13:43
how do I make that an alias?13:43
I've tried; bug = push -f origin "HEAD:refs/merge-requests/$1"13:43
Claviceps_Clavicep13:43
JohnFlux but it says: error: src refspec 1734 does not match any.13:43
fr0sty JohnFlux: you can't use $113:43
rayners joined13:43
_ClavicepClaviceps13:44
DarkUranium left13:44
drl left13:44
fr0sty not like that, at least.13:44
tatsuya left13:44
selckin JohnFlux: probably need to prepend with !git13:44
q0rban joined13:45
saschagehlich joined13:46
DaveIngram joined13:47
fr0sty yeah, bug = !git push -f origin "HEAD:/refs/merge-requests/$1"13:47
JohnFlux I can't seem to get that to work13:47
bug = !git push -f origin "HEAD:refs/merge-requests/$1"13:47
oh13:47
missing /13:47
nm, doesn't matter13:47
git bug 173413:48
fatal: remote part of refspec is not a valid name in HEAD:refs/merge-requests/13:48
rchavik left13:48
fr0sty "!sh -c git ..." maybe...13:48
JohnFlux no change13:48
bug = !sh -c 'git push -f origin "HEAD:refs/merge-requests/$1"'13:48
fr0sty lose the double quotes?13:49
(might be killing the expansion)13:49
bug = !sh -c 'git push -f origin HEAD:refs/merge-requests/$1'13:50
henrikbjorn left13:51
JohnFlux same error. I've used " instead ' before, like:13:51
· locate = !sh -c 'git ls-files | grep --color=auto "$1"' -13:51
this works13:51
jelmer joined13:51
fga joined13:51
nembutal joined13:51
cordoval_ joined13:52
selckin the - ?13:52
engla joined13:52
mattt0 An easy way to publish from a remote repo to the web?13:52
engla left13:52
engla joined13:52
blind_oracle left13:52
ziro` left13:52
xiong joined13:53
JohnFlux selckin: hmmmmm, that - seems to be very important13:53
Myth17 joined13:53
Myth17 left13:53
Myth17 joined13:53
koo6 left13:53
hyperair joined13:53
JohnFlux This works: bug = !sh -c 'git push -f origin "HEAD:refs/merge-requests/$1"' -13:53
ziro` joined13:53
JohnFlux I wonder what that - means13:53
koo6 joined13:54
fr0sty The final dash is so that arguments start with $1, not with $0.13:54
^ from man githooks13:54
jast the 'githooks' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/githooks.html [automatic message]13:54
Ruudjah joined13:55
owst left13:55
owst joined13:55
mrx1_ joined13:55
mrx1_mrx113:56
cordoval_ left13:56
roop left13:56
cordoval_ joined13:56
drl joined13:57
BlindOracle joined13:57
mrx1 test.13:57
ChanServ set mode: +v13:59
fr0sty|mobile mrx1: just ask your question...13:59
selckin why would they start at 014:00
mrx1 fr0sty: no, some guy on another channel told me he can't speak here14:00
saleh left14:00
mrx1 so i tested if i can :)14:01
Typh left14:01
selckin needs to be registered i think14:01
larsmoil left14:01
fr0sty or voiced14:01
nembutal do u see me now?14:01
fr0sty yes...14:01
nembutal great14:01
can someone help me with gitignore pattern?14:02
cilly joined14:02
nembutal i want to exclude all paths that contain "obj" directory14:03
opalka left14:03
nembutal how to do that?14:03
fr0sty do you have multiple obj/ directories?14:03
nembutal yes14:04
jaeckel joined14:04
nitish joined14:04
fr0sty and you don't want to track anything in them (or their subdirectories)?14:04
nembutal no, nothing14:04
fr0sty what have you tried so far?14:04
dim joined14:04
nembutal */obj/*14:05
fr0sty obj/14:05
that ^ should work14:06
ceej joined14:06
v0n joined14:06
nembutal it works but I wonder why14:07
Myth17 left14:07
nitish_mythology joined14:07
nembutal counterintuitive14:08
fr0sty how so?14:08
cannonball joined14:08
psoo left14:09
nembutal i would expect it just excludes top level obj dir14:09
fr0sty why would you expect that?14:09
you need a leading slash for that to be the case...14:09
"A leading slash matches the beginning of the pathname. For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". <-- (from man gitignore)14:09
jast the 'gitignore' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gitignore.html [automatic message]14:09
nembutal it doesnt contain "*" so i wouldnt assume it matches obj subdir14:10
jast: i've read that man page14:10
and came here nevertheless14:10
fr0sty not very well...14:10
fr0sty wanders off for coffee...14:11
nitish left14:11
nembutal anyway thanks for help14:11
gs left14:12
sigh left14:12
michael_lf left14:12
roop joined14:13
nembutal left14:14
jast it seems awfully difficult to read a small piece of bold text14:14
Yuffster joined14:14
saleh joined14:14
SimonP86 joined14:14
cwillu_also_at_w joined14:14
cwillu_also_at_w left14:14
AkumaStreak joined14:16
nitish_mythology left14:16
mrx1 left14:16
ph^ joined14:17
jceb joined14:19
ph^ left14:20
ph^_ joined14:20
michael_lf joined14:20
fr0sty jast: in all fairness the formatting is client-specific...14:20
koo6 left14:20
fr0sty but still...14:20
javaanse_jongens left14:20
jast perhaps I should move it to the front14:21
fr0sty I wonder what sort of life people presume you to lead where all you do is lurk, waiting to pounce on people's suggestions to read the manpages14:21
jfkw left14:21
picasso left14:22
jast !jast @14:22
[automatic message] jast runs a script that provides all kinds of information, but rumour has it that he's also human. Sometimes.14:22
aminpy joined14:22
jast let's see if that works better14:23
bremner fr0sty: but I do that, it's jast that just is always faster14:23
Remixman left14:23
jast bremner: try again :}14:23
mikewintermute_ joined14:23
fr0sty jast: probablility of success .414:23
nixness joined14:24
mikewintermute left14:24
mikewintermute_mikewintermute14:24
jast well, my away log will keep collecting data for me14:24
rondon joined14:25
Finalflash50 left14:25
xerora joined14:25
ymasory joined14:26
mattt0 left14:26
picasso joined14:26
shiba_yu36 left14:27
foocraft left14:27
pratz left14:27
q0rbanq0rban|otp14:27
hobodave joined14:28
pratz joined14:28
airborn joined14:30
beatak joined14:30
gfto left14:30
mattly left14:31
namemon left14:32
mattly joined14:33
Swimming_bird joined14:33
jceb left14:33
georgedove left14:34
hobodave left14:35
mikelangelo left14:35
dnorman joined14:35
roop left14:36
RaceCondition joined14:38
AAA_awright_ joined14:38
gs joined14:38
Myth17 joined14:38
deekayen left14:38
soc42_ joined14:39
AAA_awright left14:39
soc42 left14:40
Remixman joined14:41
peper joined14:41
drake01 joined14:42
dnorman left14:42
deekayen joined14:43
georgedove joined14:46
georgedove left14:46
drake01 left14:46
Barry-Nichols left14:46
urkud left14:47
Deesl left14:48
kumbayo joined14:49
argor joined14:50
jfkw joined14:51
argor left14:51
webPragmatist joined14:53
TiBook left14:53
kumbayo left14:53
whatdoesitwant joined14:53
reds joined14:54
drev1 joined14:54
crocket joined14:54
crocket How can I download git://slackbuilds.org/slackbuilds/perl/perl-xml-twig ?14:54
git://slackbuilds.org/slackbuilds is the original git repository.14:54
elliottcableec|detached14:56
BinaryMuse joined14:57
cmn crocket: man git-clone14:57
jast crocket: [automatic message] the 'git-clone' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clone.html14:57
avinashhm left14:57
EricInBNE left14:58
icwiener joined14:58
thierryp left14:59
texel joined14:59
Croms left15:00
crocket meh~~~~15:02
bn_ joined15:02
alvaro_o joined15:03
NetHawk joined15:03
Croms joined15:03
icwiener_ joined15:03
nixness left15:04
deuterium joined15:04
avinashhm joined15:04
icwiener left15:04
hendebyhendeby|afk15:05
kumbayo joined15:06
fga left15:07
ShooterMG left15:07
helvete joined15:08
ShooterMG joined15:08
Myth17 left15:08
wilmoore left15:08
alberto56 joined15:10
gusnan joined15:11
Remixman left15:11
Myth17 joined15:12
Myth17 left15:12
Myth17 joined15:12
dreamcode joined15:12
dreamcode left15:12
dreamcode joined15:12
nitish joined15:14
nitish left15:14
nitish joined15:14
dim left15:14
dim_ joined15:14
cilly left15:14
eschnou left15:15
crocket According to "man git-clone", I can't clone only a subdirectory of a git repository.15:15
jast [automatic message] the 'git-clone' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clone.html15:15
_psychic_ joined15:15
crocket I have to clone an entire repository.15:15
Bombe Right.15:16
Guest60131 left15:16
teukka left15:16
Davey joined15:16
aminpy left15:16
cbreak_work left15:17
Myth17 left15:17
teukka joined15:17
aminpy joined15:18
bentob0x left15:19
foocraft joined15:20
leo2007 left15:20
angelsl left15:21
tjholowaychuk joined15:21
henrikbjorn joined15:21
leo2007 joined15:21
pj_1 joined15:22
etnt left15:22
ChanServ set mode: +v15:23
webPragmatist1 joined15:23
webPragmatist left15:23
pj_1 I created a branch, switched to a it, made changes, committed the changes and did a git push15:23
but I don't see that branch on github.com15:23
anything I am doing wrong?15:23
cmn git push doesn't push branches that don't exist upstream15:24
git push origin yourbranch15:24
iravid left15:24
cmn I should say "that don't exist in the remote" instead of "upstream"15:24
bkozal joined15:25
iravid joined15:25
pj_1 oh yeah. I forgot . thanks15:25
linusoleander left15:25
warthog9 joined15:26
verto joined15:26
nevyn^_ joined15:29
nevyn^ left15:29
nevyn^_nevyn^15:29
nevyn^ left15:29
sako left15:30
dnorman joined15:31
slonopotamus joined15:31
bauruine left15:32
rmAdfinis left15:32
darkskiez if i've resolved conflicts during a git merge, and later want to rebase, why cant the rebase use the merge resolution that i used for the merge, or is that was rerere is for.15:32
deekayen left15:33
envi joined15:34
avinashhm left15:34
crocket left15:34
cmn darkskiez: that is exactly the reason rerere exists15:34
if you want to do that king of thing, you should activate it15:34
s/king/kind15:34
michael_lf left15:35
Anubisss joined15:35
dnorman left15:36
darkskiez but can rebase not see the merge commit that also changes files as a patch rather than just dropping it15:37
Drakevr left15:37
deekayen joined15:37
fs-sylr joined15:37
cmn rebase can't know you already resolved conflicts15:38
unless it uses the rerere machinery15:38
giallu left15:39
alvaro_o left15:39
darkskiez but it can see from the merge commit what was changed ?15:39
hackez left15:40
thiago left15:40
SRabbelier|Lappy left15:41
AkumaStreak left15:41
AkumaStreak joined15:42
q0rban|otpq0rban15:42
d0k joined15:42
darkskiez instead of just deleting the merges from the history, treat them as patches15:42
singlow left15:42
robotarmy joined15:42
jonatasnona left15:43
mariusso darkskiez: Did you try to use the -p option with rebase, which tries to recreate merges?15:43
mklappstuhl joined15:43
Heimidal joined15:43
darkskiez AAAAAAAAAaaahhhh15:44
i had a blind spot looking at the man page15:44
kipras joined15:45
freimatz left15:45
darkskiez magic15:46
xelister darkskiez: =)15:47
coachz joined15:48
Finalflash50 joined15:48
rmAdfinis joined15:48
__name__ joined15:50
rmAdfinis left15:52
infid to delete a file from a repo / locally, do you do: 'rm file; git rm file' ?15:52
karstensrage just git rm file15:53
coachz do you want to remove it from your disk also ?15:53
cilly joined15:53
coachz or just form the staging area15:53
reds left15:54
infid both15:54
coachz git rm path/file15:54
infid from the repo, staging and disk15:54
kumbayo left15:54
coachz if you ever manually delete it from disk, you can sync your staging area up with what the disk is using 'git add -A'15:55
devth joined15:56
fr0sty|mobile left15:56
fr0sty|mobile joined15:56
infid what if i rm a file locally but now want it back locally15:56
eg i do 'rm file' from disk, but now want to restore it from the head of the repo15:57
mariusso git checkout HEAD -- path/file15:57
PerlJam infid: git status will tell you how to restore it15:57
Drakevr joined15:57
infid thanks15:57
coachz how do i delete a tracking branch ?15:57
tyteen4a03 left15:57
mariusso git branch -D <branch>15:58
jason237 left15:58
JohnFlux left15:58
oriba joined15:58
devth coachz: do you mean the remote brach?15:58
coachz thx15:58
Spockz left15:58
coachz local15:58
that works15:58
devth k, yep15:58
acelent left15:58
amerine joined15:58
acelent joined15:59
jason237 joined15:59
j0ran left15:59
wilmoore_ joined16:00
vanmik left16:03
infid i deleted a file with 'git rm file ; git commit -a -mm' but when i do 'git ls-files -d' it doesn't show it16:05
webPragmatist1 left16:05
coachz you are trying to restore a file from a previous commit ?16:06
fr0sty infid: if you committed the delete then the file is gone from both the index and working tree.16:06
if you did ls-files before the commit it would have shown you the delete...16:06
infid fr0sty: so git ls-files -d is only if it's deleted from the index?16:06
ok thanks16:06
but so would have 'git status'16:06
i guess i just misunderstood what git ls-files is for16:06
fr0sty git-ls-files - Show information about files in the index and the working tree16:07
RaceCondition left16:07
infid yeah it's the 'and the working tree' that through me off16:07
joel_falcou left16:07
infid is there another way to do what i'm wanting16:07
like ls the history to only show me deleted files16:07
fr0sty what do you want?16:07
q0rban left16:08
fr0sty git log --name-status --diff-filter=D? <-- just a guess...16:08
q0rban joined16:08
infid wow, nice thanks16:09
vanmik joined16:10
q0rbanq0rban|lunch16:10
cmn r16:10
pj_1 left16:10
cmn damn, wrong screen16:10
gitRMhelp joined16:10
mariusso fr0sty: That was a cool and powerful options combo :) nice16:11
kylehayes left16:11
mklappstuhl left16:11
nitish left16:11
nitish joined16:12
kumbayo joined16:12
babbio left16:12
coachz how do a create my local branch and make it a tracking branch from origin/dev that i pulled down ?16:12
kenichi joined16:13
mariusso coachz: git checkout -b <local branch> origin/dev16:13
coachz thanks16:13
mariusso coachz: That both creates the (tracking) branch and checks it out16:13
coachz worked perfectly, thank man16:14
hackez joined16:14
mariusso embarks on a rebase of 620+ patches, with several merges in the branch..16:14
eydaimoon how do I delete a branch on a remote repo on something like github for example? Is it possible through git?16:15
BinaryMuseBinaryMuse[away]16:15
AkumaStreak left16:15
rane_ git push <remote> :<branch>16:15
spb eydaimoon: man git-push /delete16:16
jast eydaimoon: [automatic message] the 'git-push' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-push.html16:16
eydaimoon thanks16:17
drl left16:17
migrantgeek joined16:17
leadgy joined16:17
leadgy hi guys16:17
anyone with EGit experience?16:18
crashanddie left16:18
uwjweq left16:19
achadwick left16:19
flaguy48 left16:20
fr0sty mariusso: git rebase with merges may not do what you expect, so be aware...16:20
bn_ left16:20
fr0sty leadgy: just ask the question...16:21
bn_ joined16:21
leadgy I'm pushing the current branch(master) via EGit with Push to Upstream, but in history I don't see the origin to change16:21
however, if I do a "git push" from console, the history in Eclipse gets updated16:21
hi fr0sty, thanks for replying16:22
Finalflash50 left16:22
rendar damnit, i've wrong the last commit's comment, can i chage that now?16:22
devth git commit --amend16:23
rendar ok16:23
TrineLocke left16:23
leadgy fr0sty: but if in Eclipse I do a Fetch after the push, the history gets updated and it shows correctly that the origin(remote branch) was updated16:23
mikewintermute left16:24
mariusso fr0sty: I know. Ideally I want to get rid of all those merges, and rebase it properly. I'm giving it a go both with and without -p though..16:25
q0rban|lunchq0rban16:25
drake01 joined16:26
bonhoffer joined16:26
bonhoffer what does it mean if "Your branch is ahead of 'origin/master' by 1 commit."16:28
i get that from a git status16:28
spb it means what it says16:28
PerlJam it means you've got a commit you haven't pushed.16:28
fr0sty bonhoffer: it means exactly what it says...16:28
coachz bonhoffer, you know that origin/master is a local copy of master on your server16:28
bonhoffer PerlJam, so i just thought i pushed it via git push origin/master16:28
PerlJam bonhoffer: it means you have one more commit in your local branch than you do in the branch its tracking, origin/master16:29
coachz when you run 'git remote update' it pulls down the latest origin/master and others16:29
fr0sty leadgy: it is possible Egit is not using the correct upstream repository (or you perhaps don't have one defined).16:29
bonhoffer am i on a local branch? i thought i was on master16:29
coachz run 'git branch -a' and you will see all your branches AND the remotes you pulled down16:29
fr0sty when you did it from the console did you just do 'git push'?16:29
oriba left16:29
coachz you do NOT push origin/master or any of the remotes16:29
you push your local branches16:29
bonhoffer oh16:29
git push origin/master16:30
coachz no16:30
drl joined16:30
coachz git push origin master16:30
bonhoffer yes, that16:30
coachz in my example origin is found in .git/config file16:30
and pushes to that server16:30
bonhoffer i get "everything up to date"16:30
coachz so you are even now16:30
bonhoffer true, ok16:30
coachz all is well16:30
leadgy fr0sty: but if I do a "git push" from the local folder everything gets pushed correctly and then "git branch -v -v" shows the remote version was updated16:31
RaceCondition joined16:31
coachz but origin/master is a local cached copy of the server16:31
cordoval_ left16:31
bonhoffer coachz, makes sense16:31
coachz and you get the latest version of that with 'git remote update'16:31
leadgy doing a "git branch -v -v" after pushing from EGit shows [1 step behind]16:31
FauxFaux leadgy: Ooh, didn't know about git branch -vv, nice.16:31
fr0sty leadgy: which is behind?16:31
gusnan left16:32
kenichi left16:32
kenichi joined16:33
ziro` left16:34
leadgy fr0sty: the origin/master remains behind16:35
with 1 commit16:35
fr0sty so the local branch is one commit ahead?16:35
does 'git fetch origin' fix the problem?16:36
nitish left16:37
nitish joined16:37
tyfighter joined16:38
codespectator left16:38
simplechat left16:39
leadgy fr0sty: yes, it fixes the issue16:39
towski left16:39
leadgy but I wanted to obtain that directly from Eclipse/EGit when I was doing the push to upstream16:39
fr0sty then the 'git push' Egit uses is at fault.16:39
leadgy why do I have to fetch after push?16:39
devth best option is to use the CLI instead of egit16:40
tyfighter left16:40
fr0sty it is pushing "git push origin mybranch:theirbranch" probably, which doesn't update origin/theirbranch.16:40
(just a guess)16:40
Zephyrus joined16:40
leadgy do you use EGit, maybe you could try my test case and tell me if you get same results16:40
devth no, i avoid it. coworker uses it and says its buggy16:41
(i also avoid eclipse :)16:41
leadgy :)16:41
fr0sty: how can I test if the case you told me above is what happens in reality?16:42
xiangfu left16:42
BinaryMuse[away]BinaryMuse16:42
fr0sty I think you already did, in essence. you push a commit to the remote repository but the update isn't reflected in refs/remotes/origin/master16:42
Egit is a re-implementation of git in Java (I believe) so it isn't doing any native 'git' operations at all.16:43
jatt left16:43
mando joined16:43
namemon joined16:44
drl left16:45
leadgy fr0sty: this is my EGit Push configuration: http://min.us/mbf9XlXUGcrOZC#116:45
robinbowes left16:45
leadgy fr0sty: I didn't specify anything for RefSpec - maybe I should?16:46
it says it pushes refs/heads/*:refs/heads/*16:46
don't know if this is correct16:47
dharrigan left16:47
helvete left16:47
fr0sty that's the default, should be fine...16:47
dharrigan joined16:48
dharrigan left16:48
dharrigan joined16:48
leadgy fr0sty: well then, it's not working - probably buggy as you said..16:48
vol7ron joined16:48
leadgy I hope someone that uses EGit could test this behavior16:48
trupheenix joined16:51
teukka left16:51
teukka joined16:51
ptr_uzlptr_uzl_away16:51
Chillance joined16:52
smolyn joined16:52
linoj joined16:52
zekus joined16:52
LiamH joined16:52
gebbione joined16:53
saschpe joined16:53
metcalfc joined16:54
sako joined16:54
LouisJB left16:55
davzie left16:55
yunosh joined16:56
PigeonFriend left16:56
drl joined16:56
krosenvold joined16:57
curtana left16:57
vol7ron left16:57
yrlnry Suppose commit X has caused a test failure, and then I make commit Y, with parent X, to fix the test failure. What's a good way to mention X in the commit message for Y? Is it enough to just say "Fix test failure in preceding commit"? Or it it better to include the abbreviated SHA1 of X?16:58
The former is fragile if Y gets cherry-picked elsewhere. But the latter is not transparent and forces the reader to run a command to figure out that the commit referred to is actually Y^.16:58
IslandUsurper joined16:58
SimonP86 left16:58
robinbowes joined16:58
SimonP86 joined16:59
Textmode joined17:00
fr0sty quote the header of the previous commit? : e.g. "Fix bug introduced by 'Add frotz to bar-dongle in baz widget'"17:00
yunosh hi, for some reason commit ids of two partially merged branches don't line up anymore (probably some accidental rebase or something). when i try to merge those branches, i get conflicts of course. none of the merge strategies seem to able to cope with that. how can i tell the merger to actually look out for the same changes in both branches, or how can i tell git to skip a numer of commits when doing the merging?17:00
cschneid joined17:00
adamholtadamholt_away17:01
adamholt_awayadamholt17:01
k0rnel_ left17:01
k0rnel joined17:01
fr0sty yrlnry: a unique enough string makes 'git log --grep="..."' somewhat easy.17:02
acelent left17:03
dharrigan left17:03
fr0sty yunosh: "partially merged branches"?17:04
linoj left17:04
HrznDefeated left17:04
eletuchy joined17:05
migrantgeek left17:05
mattly left17:05
tvw joined17:05
dreiss joined17:06
mattly joined17:07
TrineLocke joined17:07
yunosh fr0sty: yes, they are merged, up to certain point in the past, but git doesn't seem to recognize it, i guess because for the most recent merged commits, the two branches have different commit ids. now one of the branches has even more commits that i want to merge into the other branch. but git not only tries to merge those new commits, but also all the old commits from the point on where the commit ids diverge17:07
fr0sty yunosh: the branches are merged, or they are not...17:08
does 'git merge-base A B give the last merge commit between A and B ?17:08
yunosh for git they are not. for the code they are. let me check17:08
ningia left17:08
t0rc joined17:08
cbreak if there's no merge commit, then they have not been merged17:09
elementz joined17:09
elementz hi all.17:09
cbreak there's nothing like "git doesn't recognize it"17:09
because git KNOWS what was merged and what was not. there's nothing to recognize17:10
fr0sty yunosh: "kinda having the same changes" is not the same as "merged"...17:10
cbreak when you merge two branches in git, it will make a new commit that has both branch heads as parent17:11
and merge all changes since the branches diverged17:11
elementz i just tried to use the following .gitignore rules https://github.com/github/gitignore as a global setting for my git installation. added a java project, and ended up with the .class files being tracked17:11
i used this line to set global ignores git config --global core.excludesfile ~/.global_ignore17:12
slonopotamus left17:12
cbreak elementz: all of them?17:12
fr0sty elementz: what was in ~/.global_ignore?17:12
elementz cbreak: you mean if i used all of those ignorefiles? yep. i just checked out the repo17:12
towski joined17:12
cbreak elementz: so, you know that you used none of them, right?17:13
yunosh yes, i know but somebody messed up this tree, so that git somehow lost track about that last merging17:13
elementz cbreak: yeah, i guess... but how come?17:13
fr0sty yunosh: there was no merge, then...17:13
cbreak because you didn't tell git to use an ignore file17:13
gp5st joined17:13
cbreak besides .global_ignore17:13
fr0sty which was likely empty...17:13
if it even exists...17:14
yunosh i KNOW the difference between what git considers a merge and what happened in the work tree17:14
gp5st is there anythign similar to git commit -v but that comments the patch lines?17:14
spaceonline left17:14
cbreak yunosh: what happens in a work tree is irelevant17:14
chrischambers joined17:14
fr0sty yunosh: can you pastie: 'git log --oneline --graph --decorate A B' ?17:15
Zephyrus left17:16
ysulaiman joined17:16
Yuffster left17:16
cakehero joined17:16
elementz fr0sty: cbreak hm. .global_ignore is full of foo.gitignore files. and shouldn't the line above add all those files to the global ignore rules?17:16
fr0sty or git log --graph --format="%h %d" A B if you are paranoid...17:16
gp5st also, is there anyway to do commits while doing an interactive add?17:16
fr0sty elementz: the argument is "excludesfile" not "excludesdirectory"17:17
elementz ah ok.17:17
elementz blushes17:17
leo2007 left17:18
cbreak elementz: it will read the .global_ignore file and ignore everything in it17:18
ysulaiman Hi. Anyone using git to track LaTeX files on Windows?17:18
dpino_ left17:19
eletuchy left17:20
nhance left17:20
Zephyrus joined17:20
eletuchy joined17:20
cbreak I used git to track LaTeX files on Mac OS17:20
nhance joined17:20
elementz cbreak: so there is no simple way to actually add all those .gitignore files? do i understand it right, that i would have to add them to a custom .global_ignore file?17:20
cbreak elementz: cat fileA fileB >> .global_ignore17:21
ysulaiman cbreak: Did you use the vc bundle?17:21
pdelgallego_ joined17:21
devth elementz: you prob only want to use those files on a project-by-project basis instead of globally17:21
cbreak ysulaiman: no bundle17:21
squiggy joined17:21
ysulaiman cbreak: I see.17:21
fr0sty yunosh: you lose interest?17:23
mando left17:24
yunosh no, but i figured i don't want to pastie that few year's worth of 20000 commits list. i'm trying right to reset the tree to the last known stable state and re-merge17:24
nitish left17:24
ShooterMG left17:24
ptl left17:24
Myth17 joined17:25
Myth17 left17:25
Myth17 joined17:25
robert_david left17:25
ptl joined17:25
yunosh and that actually seemed to have worked fine. i guess i have a rewritten history now, but i don't care at this point17:26
whaley left17:26
fission6 joined17:27
jonanin left17:27
fission6 if i have a merge conflict how do i take mine?17:27
alex__c2022 left17:28
alex__c2022 joined17:28
LouisJB joined17:28
frogonwheels left17:28
Bass10 joined17:28
frogonwheels joined17:29
nitish joined17:29
nitish left17:29
nitish joined17:29
t0rc left17:29
Bass10 left17:29
Myth17 left17:30
jdummy joined17:30
Bass10 joined17:30
jdummy Hi all. Any idea why git status shows all files in the project as modified, even though they haven't been modified?17:31
Jippi_mac left17:31
ysulaiman jdummy: What does git diff show?17:31
gp5st jdummy: permission or mtime changes?17:32
jdummy: diff it like ysulaiman said17:32
cehteh lineendings trouble?17:32
beyondcreed joined17:32
jdummy git diff shows everything as well17:32
fission6 "error: Your local changes to 'settings.py' would be overwritten by merge. Aborting." how do i take my local copy17:32
ricky left17:33
cehteh jdummy: then look closer you quite certainly did something very stupod17:33
yunosh eh, that doesn't work of course. how do i revert all commits, back to a certain point, without having to specify all commits individually? iiuc git revert only reverts individual commits, while git reset rewrites the history, right?17:33
gp5st fission6: commit or revert it (revert discards your changes17:34
friskd joined17:34
gebbione hi i m reading the kernel.org tutorial on GIT17:34
gp5st alt, you could stash it then stash pop17:34
cehteh yunosh: no ..17:34
chrizz left17:34
jdummy cehteh: you are correct :) the files have been chmodded. Thanks ysulaiman, gp5st cehteh17:34
gebbione I am not really following it completely i would like to understand the logical structure of GIT, any better tutorial?17:35
cehteh git revert adds a reverse commit on top, git reset resets history to some (earlier) point but doesnt rewrite it17:35
devth gebbione: http://progit.org/book/17:35
gebbione devth: thanks17:36
gp5st gebbione: the git-book17:36
spaceonline joined17:36
gitRMhelp left17:36
yunosh cehteh: hm, but if i reset, my tree is behind origin's tree. or do i need to specify some other reset option?17:36
dreamcode left17:37
yunosh the problem is those change i want to revert are already in origin, not only locally17:37
slonopotamus joined17:37
cehteh sure .. it chops commits off, you really loose then17:37
if you then commit again you divert from the origin17:37
yes then use git revert17:38
coachz left17:38
cehteh origin is yours, not some upstream?17:38
jelmer left17:38
fission6 gp5st, okay i commited still have unmerged issues, i just want to take "mine"17:38
yunosh which takes me back to the original question, can i tell revert to revert more than one commit? we're talking about a few hundred commits17:38
orgin is upstream but under my control17:38
cehteh outch .. iirc revert has a -n option for no commit (RTFM) .. that lets you revert a lot commits and then commit this reversals in one big commit17:39
robert_david joined17:39
alex__c2022_ joined17:39
cehteh but if you want to revert more than a fre commit you prolly want to do something else17:40
siprbaum joined17:40
cehteh starting a new branch and declare that 'official'17:40
yunosh meh17:40
gp5st fission6: then fix up the merge17:40
cehteh or reset --hard and tell everyone that he has to follow you :P17:40
fr0sty yunosh: git revert can take a range of commits...17:41
gp5st if it's a file that's different on each computer fission6 it prob shouldn't be under scm17:41
fission6 how do i use "mine"17:41
cehteh ah i didnt know :)17:41
cilly left17:42
cillybabe joined17:42
devth fission6: git checkout --ours <file>17:42
fission6 then commit that?17:42
cillybabecilly17:42
devth yep17:42
fission6 ok17:42
alex__c2022 left17:42
alex__c2022_alex__c202217:42
gigamonkey joined17:42
fission6 thanks17:42
mithridates joined17:42
sechrist joined17:43
zekus left17:43
mithridates does anyone know how git store information in sha-1 and how it extracts it?17:44
can someone tell me what algorithm is used there?17:44
gebi joined17:44
cbreak the source can17:44
PerlJam "store information"?17:44
reds joined17:44
mithridates yes, date,...17:44
gp5st mithridates: you can't extract info from a sha, that's the point. it's a one-way/trap-door function17:45
mithridates date, size ,.. I call these things infromation17:45
sgronblo yeah you cant store anything in a hash, its a one-way transformation17:45
fr0sty http://repo.or.cz/w/git.git?a=tree;f=Documentation/technical;hb=HEAD17:45
that's technical documentation, including file formats ^^17:45
gp5st mithridates: i'm not 100% sure what is being sha'd at any given time, but it's basically the state of that file/tree. if the file/tree changes, so does the sha and a difference can be detected17:45
mithridates what do u mean about one-way?17:45
Nugget sha1 is one-way.17:46
you can't un-sha something17:46
zekus joined17:46
fr0sty http://en.wikipedia.org/wiki/Cryptographic_hash_function17:46
PerlJam mithridates: think of it as a black hole. You put stuff in, and it never comes back out.17:46
booginga joined17:46
ricky joined17:46
joel_falcou joined17:46
mithridates so what's the point of puting stuff into it?17:46
PerlJam mithridates: you can check if two black holes have been constructed the same, but you have to make them first.17:46
Nugget to comapre things and spot changes17:46
mithridates you mean it's like md5 sum-check?17:46
gp5st mithridates: yes17:47
chrizz joined17:47
Nugget yes, but more secure than md517:47
gp5st but for the state of the object at that time17:47
PerlJam mithridates: the point is really "uniqueness"17:47
sgronblo well i wouldnt compare it to a black hole17:47
its a function, so you do get something out of it17:47
gp5st yeah, it's an (should very well be) unique value to describe that point in time17:47
mithridates well, if uniqness was the point there is some sha collision problems...17:47
thiago_home joined17:48
PerlJam mithridates: because ... ?17:48
saleh left17:48
gp5st mithridates: that's a very rare occurance17:48
yunosh fr0sty: i'm trying to grasp git-rev-parse(1) but i can't figure out how to specify all commits from a tag up to HEAD for git revert. this is rocket science17:48
gp5st mithridates: for better hash functions it's almost impossible to create a collision by hand. and in general, two states _wont_ have the same hash unless they are the same17:49
fr0sty tag..HEAD ?17:49
mithridates so you guys all sure 100% that sha-1's purpose is only comparison like md5 checksum17:49
hackez left17:49
GrowLinux left17:49
cbreak not comparison17:49
it's used as identifier17:49
fr0sty identification17:49
madewokherd joined17:49
cbreak _unique_ identifier17:49
codespectator joined17:49
BinaryMuseBinaryMuse[omg17:49
BinaryMuse[omgBinaryMuse[omgfo17:49
sgronblo pseudo-unique or something17:49
BinaryMuse[omgfoBinaryMuse[screw17:49
mithridates ok I gochya17:49
gastaldi joined17:50
cbreak it's also a content-derived specifier17:50
mithridates thanks17:50
yunosh fr0sty: nope17:50
devth mithridates: read up in http://progit.org/book/ch9-2.html17:50
gastaldi hey17:50
cbreak so it's reproducible17:50
leadgy left17:50
gastaldi I added some files on my GIT project and "git reset --hard" did not delete them17:50
is that right ?17:50
sgronblo gastaldi: only adding them won't put them in the repository yet17:50
gastaldi I simply copied the files, no GIT ADD were performed17:51
cbreak if you want to delete files, git rm is the way17:51
sgronblo first you add, then you commit17:51
fr0sty yunosh: why not? what is missing? (or added)?17:51
jhoepken joined17:51
gastaldi My intention is to revert to the last commit17:51
devth gastaldi: that's right. use `git clean` to remove untracked files17:51
gastaldi: man git clean17:51
jast gastaldi: [automatic message] the 'git' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git.html17:51
nitish left17:51
yunosh fr0sty: git cannot even find the commits: "fatal: Cannot find 'before-update-20110408..HEAD'"17:51
devth gastaldi: man git-clean17:52
jast gastaldi: [automatic message] the 'git-clean' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-clean.html17:52
sraue_ joined17:52
sraue_ left17:52
gastaldi git clean does not removes the added folder17:52
Croms left17:52
Croms_ joined17:52
devth gastaldi: read the options17:52
gastaldi Ah ! It worked with -d -f17:52
But why git reset --hard does not do that ?17:53
Yuuhi`` left17:53
gp5st mithridates: in fact, it's "so good" that often only the first 7 or 8 chars of the sha can be used and have it be unique in the project. sometimes there will be another one or two that share those, but never the full sha17:53
devth gastaldi: because those files aren't in the repo yet17:53
gastaldi devth: You mean that if I run git add it will work ?17:53
walf443 left17:53
fission6 what do i do to address this, ! [rejected] master -> master (non-fast forward)17:53
phaedrix joined17:54
PerlJam fission6: nothing?17:54
devth gastaldi: yes17:54
gastaldi fission6: git push origin master --force17:54
PerlJam fission6: pull first?17:54
mithridates gp5st: it was the reason that I became suspicious that may be there is way that it extracts data from it17:54
Yuuhi`` joined17:54
gp5st gastaldi: fission6 that's dangeours17:54
PerlJam fission6: you haven't given enough information to get a useful response :)17:54
fission6: but don't listen to gastaldi17:54
gp5st fission6: that means that the version on the server is newer than the last version you pulled from the server17:55
fission6 ah got it thanks17:55
gp5st i'd recommend to pull from the server17:55
rns joined17:55
gp5st merge17:55
then push17:55
fission6 yea that worked17:55
gp5st mithridates: what caused you to be suspicious ? and no, you can't extract data from it17:55
gastaldi left17:56
codespectator left17:56
kumbayo left17:57
walf443 joined17:57
mithridates gp5st: because a portion of hash doesn't change if you make a small change, I know my reason is not technical but it was just a simple question in my mind17:57
gp5st mithridates: no, a small changes causes the whole hash to change17:57
gasull joined17:57
gp5st normally the ones that conflict in the first couple chars are random17:57
jonatasnona joined17:57
mithridates gp5st: For example, changing dog to cog produces a hash with different values for 81 of the 160 bits (wikipedia)17:58
hemmecke joined17:58
mithridates but I think you are right17:58
it says it changes the whole hash17:58
gp5st mithridates: it's a good question, don't get me wrong. it's just misguided since small changes will, more oftent han not, change the whole hash dramatically17:59
owst left17:59
mithridates I gochya17:59
tnx17:59
gp5st np:)17:59
fr0sty yunosh: where did you get that tag name?17:59
gp5st like i said, good question and i'm sure you learned something about hashes17:59
Jake_ left17:59
cilly left18:00
yunosh fr0sty: i set it earlier myself18:00
sgronblo mithridates: the hash algorithms arent that complicated really, and when you realise how the bits are flying around you'll probably realise that it's basically impossible to extract any information back from the end result18:00
yunosh and git tag still shows it too18:00
sebersole left18:00
fr0sty does "git show before-update-20110408" give you what you expect.18:00
logik-bomb joined18:00
logik-bomb left18:00
logik-bomb joined18:00
fr0sty ?18:00
sebersole joined18:01
leo2007 joined18:01
yunosh fr0sty: yes18:01
fr0sty and 'git rev-parse before-update-20110408..HEAD' ?18:01
gasull Hi. Why do I get this error? http://dpaste.com/532055/ Thanks.18:02
fr0sty gasull: what are you trying to accomplish?18:02
opalka joined18:02
yunosh fr0sty: that gets me some SHAs18:03
Plouj joined18:03
Plouj hi18:03
gasull fr0sty: I want to grab the latest version in origin of media/css/screen.css and overwrite what I have in local.18:03
Plouj is there a way to find _all_ tags reachable from a given commit?18:03
fr0sty yunosh: but it doesn't work with 'git revert' ?18:03
yunosh fr0sty exactly18:03
fr0sty git --version ?18:03
gasull fr0sty: git version 1.7.2.218:04
Evious joined18:04
eydaimoon left18:04
fr0sty gasull: fetch is not what you want. you need checkout18:04
flaguy48 joined18:04
yunosh fr0sty 1.7.118:04
thiago_home left18:05
flexable777 left18:05
gasull fr0sty: error: path 'media/css/screen.css' is unmerged18:05
fr0sty: using checkout18:05
robotarmy left18:05
fr0sty yunosh: git revert only takes single commits in 1.7.118:06
adamholtadamholt_away18:06
adamholt_awayadamholt18:06
fr0sty gasull: are you in the middle of a merge?18:06
woozie joined18:06
gasull fr0sty: yes18:06
bla left18:06
bla joined18:06
fr0sty git checkout --theirs media/css/screen.css18:06
Plouj left18:06
pedrobelo joined18:07
yunosh fr0sty: oh. an i thought that would be a recent version18:07
gasull fr0sty: how can I tell git to forget everything from the last commit?18:08
eydaimoon joined18:08
ysulaiman left18:08
robert_david left18:09
panike left18:09
fr0sty yunosh: 1.7.4.4 is the latest18:09
flexable777 joined18:09
fr0sty gasull: do you want to abort your merge?18:10
gasull fr0sty: yes18:10
cordoval_ joined18:10
gp5st is there anythign similar to git commit -v but that comments the patch lines? also, is there anyway to do commits while doing an interactive add?18:10
marcob left18:10
gasull fr0sty: git reset —hard HEAD?18:10
slonopotamus left18:10
bgy joined18:10
fr0sty yes, that will abort the merge.18:11
dreiss left18:11
gasull fr0sty: thanks18:11
patrikf gp5st: everything after the first comment line is ignored.18:11
elementz ok, i am getting really confused now. i added the following to my core.excludesfile http://pastebin.com/aASeZxKA , but still .project .classpath and .zip files are being tracked by git18:11
patrikf gp5st: so with commit -v, the patch is not part of the commit message18:11
fr0sty elementz: ignore/exclude does not work on tracked files...18:11
elementz fr0sty: i removed my .git dir in the respective project, and then did a new git init && git add . - to no avail18:12
acelent joined18:12
irc2samus joined18:12
acelent left18:12
trupheenix left18:12
bguery left18:13
bnovc I had a submodule in foo/bar and when I did a merge it had a conflict in .gitmodules. I remoevd it from gitmodules and just want to remove it entirely now18:13
but when I do a `submodule update --init`, it says that there is no entry in .gitmodules for it18:13
fr0sty elementz: are you sure the excludesfile name is correct?18:13
gp5st patrikf: i thought it was, since there are no #s prefixing the lins18:13
eydaimoon left18:14
elementz fr0sty: how can i check?18:14
bnovc is there a better way to fix this than searching through .git to remove whatever stored that18:14
theoros joined18:14
sontek left18:14
sontek joined18:14
p3rg2z joined18:15
eydaimoon joined18:15
elementz fr0sty: git config -l gives me core.excludesfile=.global_ignore18:15
gp5st patrikf: i guess you're right?:-p now is there a way to commit within an interactive add?18:15
elementz fr0sty: should .global_ignore reside under ~ ?18:16
saleh joined18:16
ricky left18:16
eydaimoon left18:17
eydaimoon joined18:17
Captain`Ramen something strange happened in git-svn today. someone here committed to both trunk and a branch at the same time using svn18:17
he probably checked out /18:18
whaley joined18:18
saschpe left18:18
Captain`Ramen so now, when git svn fetch[ing], i have two different commits with the same git-svn-id. will this break git svn?18:19
dyer joined18:19
dyer left18:19
dyer joined18:19
fr0sty elementz: use the full path...18:20
saschpe joined18:20
elementz fr0sty: yep. that seemed to be the problem. thank you18:21
jdummy left18:21
HG` joined18:21
dreamcode joined18:21
dreamcode left18:21
dreamcode joined18:21
bindaas left18:22
eydaimoon left18:22
mehwork_ joined18:23
eydaimoon joined18:23
eydaimoon test18:23
finally. ok, how can I stash just one file in a change? is it possible?18:23
eydaimooneydaimon18:23
hemmecke left18:24
gp5st can multiple commands be aliased into a single command in git?18:24
like if i wanted to run add -p and then commit -v18:24
FauxFaux You can use ! to make it a shell command, git config --global alias.foo '!git add -p && git commit -v' etc.18:25
workmad3 left18:25
Pyker left18:28
phantomcircuit left18:28
gp5st FauxFaux: thanks:)18:28
phantomcircuit joined18:29
Pyker joined18:29
PykerGuest7641118:29
dreiss joined18:30
soc42_ left18:30
LouisJB left18:30
mattly left18:31
ph^_ left18:31
ceej left18:32
dannas joined18:32
codespectator joined18:33
mattly joined18:33
codespectator left18:33
rendar left18:36
eletuchy left18:36
ereslibre_laptop left18:37
cakehero left18:38
guardian left18:39
hackez joined18:40
robotarmy joined18:40
cordoval_ left18:41
noonoooo left18:43
icwiener joined18:45
elementz left18:45
icwiener_ left18:45
Myth17 joined18:45
voidx joined18:45
hemmecke joined18:46
irc2samus left18:46
elementz joined18:47
elementz left18:47
elementz joined18:47
hemmecke left18:48
nitish joined18:48
LouisJB joined18:49
kingfishr_ joined18:50
drake01 left18:50
deekayen left18:51
xiong left18:51
drake01 joined18:51
kingfishr_ generally speaking, are git operations slowed down more by the raw size of the repository or the number of commits saved in the repo?18:51
deekayen joined18:51
Myth17 left18:52
levifig joined18:52
fr0sty kingfishr_: which operations?18:52
yrlnry kingfishr_: depends a lot on the operation.18:52
nitish left18:53
yrlnry kingfishr_: something like git log PATH has to search through the commits, but the repository size probably won't affect it much.18:53
sycofly joined18:54
kingfishr_ yrlnry, git status would probably be most affected by the size, right?18:54
wereHamster kingfishr_: number of files in the working tree18:54
kingfishr_ ah good point18:54
PerlJam kingfishr_: why are you worrying about the speed of git operations anyway?18:54
wereHamster kingfishr_: clone, however, is pretty much linearly dependent on repo size18:55
toabctl joined18:55
dl9pf joined18:55
L42y joined18:55
rson joined18:55
jason237 left18:56
kingfishr_ wereHamster, this occurred to me. Can you think of other operations which would be negatively impacted by, say, committing a 10GB binary to your repo?18:56
voidx left18:56
rson If I pull changes from a remote repo that has poorly formatted commit messages, it's bad to rebase those commits against my master, is that correct?18:56
khaije|minder left18:57
wereHamster kingfishr_: all of them. Don't do it18:57
yrlnry kingfishr_: push/fetch18:57
robert_david joined18:57
kingfishr_ PerlJam, just collecting information because we're thinking of splitting our repo up into multiple repos.18:58
wereHamster kingfishr_: while your'e at it, don't put files which are more than a couple megabytes into the git repo18:58
PerlJam kingfishr_: because it's already slow?18:58
eletuchy joined18:59
kingfishr_ wereHamster, I'm aware of best practice here; I'm just wondering what the real consequences are of not following it18:59
wereHamster kingfishr_: pain. Lots of pain.19:00
namemon left19:00
kingfishr_ PerlJam, not too slow, but enough that we have to turn off automatic gc because it can ruin your day19:00
Heimidal_ joined19:01
Heimidal left19:02
troessner joined19:03
fr0sty dare I ask the size of .git?19:03
nyingen joined19:04
kingfishr_ 4 gigs19:04
sycofly left19:04
troessner left19:04
Captain`Ramen ...19:04
texeltexas19:04
texastexel19:04
fr0sty what sort of crap is in there?19:05
bremner "assets"19:05
erichammond joined19:05
bremner we call crap "assets" now19:05
fr0sty bremner: no doublt...19:05
sycofly joined19:05
kingfishr_ the thing is, most of the unnecessary size is from people who checked in vendored code and binaries long time ago for some reason. So, we can easily pull that out and then have a <100MB repo19:05
rson left19:05
wereHamster fr0sty: maybe you are right with 'crap' :P19:05
kingfishr_: then do it!19:05
kingfishr_ and by 'pull that out' I mean make a new repo19:05
but i'm trying to push for further splitting up (by projects) and i'm attempting to find pros/cons for that19:06
dunpeal joined19:06
wereHamster you have multiple projects in a single repo?!?19:06
kingfishr_ indeed19:06
dunpeal Hey. I'm squashing a bunch of commits with `rebase -i`, and getting some conflicts. In a bunch of files, I now have "<<< HEAD" and ">>> 123 foo commit"19:06
wereHamster kingfishr_: that's stupid.19:07
dunpeal Is there an easy way to tell Git to resolve all of them in favor of HEAD?19:07
wereHamster one git repo = one project. End of story19:07
nembutal joined19:07
wereHamster dunpeal: checkout --ours -- . ?19:07
dunpeal `checkout --ours/--theirs` doesn't work.19:07
kingfishr_ wereHamster, I agree with you, but I can't come up with super compelling arguments. The best I've got is that it's annoying to see so many unrelated commits.19:08
dunpeal wereHamster: `fatal: --ours/--theirs is incompatible with switching branches`19:08
mklappstuhl joined19:08
fr0sty wereHamster: that does 'take their version' not 'resolve conflicts in their favor' IIRC.19:08
ChanServ set mode: +v19:08
yrlnry fr0sty: it checks out the stage-2 version from the index.19:08
wereHamster kingfishr_: the argument is that one git repo = one project. There is nothing to discuss19:08
yrlnry fr0sty: then you can git-add the checked-out version, which is the one you wanted.19:08
fr0sty rly, yrlnry?19:08
lanthan joined19:09
robotarmy left19:09
kingfishr_ wereHamster, yep, tha'ts definitely not an argument. That's an unsupported statement.19:09
yrlnry fr0sty: see man page19:09
fr0sty didn't know that...19:09
wereHamster kingfishr_: did you use svn before?19:09
kingfishr_ again, i'm not disagreeing with you, i'm just looking for better reasons. A link would be great...19:09
fr0sty yrlnry: when did all this 'stage' stuff start showing up in the docs?19:09
kingfishr_ wereHamster, yes19:09
yrlnry fr0sty: a long long time ago.19:09
lanthan left19:10
fr0sty I've only heard people yammer about it in the last few months...19:10
yrlnry fr0sty: as far as I know the index has always had stage 0,1,2,3 to record the different vrsions inc ase of a conflict.19:10
eijk left19:10
eijk joined19:10
levifig left19:10
mt3 joined19:11
wereHamster kingfishr_: what arguments do your coworkers have for keeping one repo?19:11
lanthan joined19:11
yrlnry fr0sty: git-checkout got --ours in Aug 200819:11
kingfishr_ mostly just that that's how it currently is19:11
voidx joined19:11
fr0sty kingfishr_: having one repository requires multiple 'master' branches for each repository to prevent mingled commits.19:11
wereHamster that's no argument either19:11
DaveIngram left19:12
gebbione left19:12
fr0sty it invites people to commit changes to the wrong branch, or comingled changes in the same commit.19:12
yrlnry fr0sty: and git-rev-parse supported the :[0-3] notation for the stage number in the index since Oct 2006.19:12
mattp_ joined19:12
fr0sty and makes browsing history potentially difficult...19:12
mattp_ say i make a fork on github, how do i rebase said fork to sync to upstream?19:12
sorry if this is a dumb question19:13
yrlnry We have multiple repos here at my workplace, one per project. I think it's a mixed bag.19:13
fr0sty yrlnry: thanks.19:13
wereHamster kingfishr_: another argument: separate repos allow you to work on each project separately. You won't have to clone the big repo if you just want to work on one small project19:13
yrlnry On the down side, it sometimes happens that project A incorporates project B, and then someone needs to make commits to both A and B that are interdependent; it would be good if the history recorded that, but it doesn't.19:14
jonanin joined19:14
rondon left19:14
fr0sty submodules...19:15
yrlnry Similarly, when working on A, and you realize it needs a concomitant change to B, you need to take extra care to make sure that someone checking out A doesn't get confused by the test failures they will see if they fail to run the tests against the right version of B. A mingled repository would avoid the problem completely,19:15
fr0sty but that brings its own barrel of fun...19:15
yrlnry Yes, but I consider "submodules" a "con" argument in one word. :)19:15
mt3 left19:16
yrlnry Another one is that if you are looking for some component, just doing git-grep or whatever will not find it, you just have to magically know which repo to look in.19:16
PerlJam If there's tight coupling between projects, I tend to put them in the same repo rather than use submodules.19:16
There are too many update headaches with submodules.19:16
yrlnry PerlJam: But even if there's not tight coupling, you get the same problems. For example, A is an application that uses module B, which is developed independently of A.19:17
PerlJam right.19:17
yrlnry It has often happened that the project I am working on will call library function foo, and I can't find foo, and have to ask someone, and oh, it turns out to bee in the blarf.git repo, which I never even cloned.19:17
linoj joined19:17
dunpeal wereHamster: thanks, and I used the wrong syntax before.19:18
yrlnry I am not so well set up to argue against a large single repository, since we don't do that here and so I can't report on the non-obvious problems.19:18
dunpeal wereHamster: `git checkout --ours` does work, user just didn't specify any paths.19:18
empity left19:20
linoj left19:20
gebbione joined19:20
zivester left19:20
levifig joined19:21
mattp_ anyone?19:21
whaley left19:21
olle_ joined19:22
fr0sty mattp_: add upstream as a remote, fetch it; git checkout <yourbranch>; git rebase upstream/branch; git push origin <yourbranch>19:22
mattp_ fr0sty: got it. cheers19:22
jrdavid left19:23
toabctl left19:23
olle_ Hi, when I do a git ls-remotes I have one listed that I want to get rid of. The output is at https://gist.github.com/92026419:24
wereHamster delete it19:24
olle_ How would I go about deleting refs/head/master?19:24
wereHamster olle_: do you know how to delete brnaches from remote repos?19:24
pielgrzym left19:24
olle_ no but if thats what I need to do I can read up on that.19:25
theoros left19:25
theoros joined19:25
nembutal left19:26
gebi left19:27
gp5st left19:27
whaley joined19:28
hendeby|afk left19:28
zivester joined19:29
olle_ wereHamster: thanks, worked out!19:30
HG` left19:31
Dr4g left19:32
makubi left19:33
tgunr_ joined19:33
makubi joined19:34
AkumaStreak joined19:34
gebi joined19:35
leo2007 left19:36
RaceCondition left19:36
Textmode left19:37
theoros_ joined19:37
theoros left19:37
ricky joined19:38
saschagehlich left19:38
gasull left19:39
drl left19:39
gs left19:41
pantsman joined19:42
Textmode joined19:42
squiggy left19:43
saschagehlich joined19:44
tjholowaychuk left19:44
olle_ left19:44
gebbione left19:44
BinaryMuse[screwBinaryMuse19:46
dl9pf_ joined19:46
theoros_ left19:46
dl9pf left19:46
saleh left19:49
pantsman left19:49
bartek left19:50
eletuchy left19:52
dreamcode left19:52
aminpy left19:52
bartek joined19:52
drl joined19:53
xelister left19:53
OOPMan left19:53
kenichi left19:53
warz joined19:53
warz l19:53
kenichi joined19:54
warz left19:54
squiggy joined19:54
sbell joined19:55
warz joined19:56
drake01 left19:56
warz left19:57
LongBeach joined19:58
tyfighter joined19:58
mmattice left19:59
codebeaker joined20:00
envi left20:00
comptekki joined20:01
mklappstuhl left20:01
joel_falcou left20:01
saschagehlich left20:02
drubies|mbp left20:02
vdv joined20:02
drubies|mbp joined20:02
Dave^| left20:02
olle_ joined20:02
theoros joined20:03
Heimidal_ left20:04
Heimidal joined20:05
drizzd joined20:05
tjholowaychuk joined20:06
ptl left20:07
mklappstuhl joined20:07
kynlem left20:08
OOPMan joined20:08
woozie left20:08
whatdoesitwant left20:08
Barry-Nichols joined20:08
Textmode left20:09
saleh joined20:09
keystr0k left20:10
mastroDani left20:11
ptl joined20:13
RaceCondition joined20:14
KaffeeJunky123 joined20:15
jonatasnona left20:15
drake01 joined20:15
deuterium left20:16
KaffeeJunky123 I'm having trouble in getting rid of a local branch, I'm trying to delete the branch with git branch -D branchname, and then I'm creating a new branch with the same name, but for some reason it got the same patches applied to it as the branch I deleted, so it isn't an exact copy of master :/20:16
cordoval_ joined20:16
mastroDani joined20:16
Textmode joined20:17
Sonderblade joined20:17
KaffeeJunky123 any Ideas what to do?20:17
saleh left20:17
fr0sty|mobile How are you creating it?20:17
KaffeeJunky123 git branch -f name20:18
I tried without the -f too20:18
Titosemi left20:18
fr0sty|mobile What is checked out right now?20:18
KaffeeJunky123 master20:19
fr0sty|mobile Sure?20:19
KaffeeJunky123 I know that I cannot delete the branch I'm working on20:19
yeah sure20:19
fr0sty|mobile Does "git show master" show you the commit you want for branch foo?20:19
KaffeeJunky123 yes20:20
fr0sty|mobile git branch foo master then...20:20
adreghiciu left20:20
KaffeeJunky123 okay I did that and now I did git ckeckout foo20:21
adreghiciu joined20:21
KaffeeJunky123 and it does report changes to some files20:21
glitterfang joined20:21
kpreid joined20:21
dannas left20:21
KaffeeJunky123 exactly those files that I don't want patched, because the patch I applied is outdated for the current commit20:21
fr0sty 'changes'?20:22
you have uncommitted changes in your working copy?20:22
KaffeeJunky123 I seem to have uncommited changes in the foo branch20:23
the one I just created from master :/20:23
fr0sty uncommitted changes do not belong to a branch...20:23
they are in your working copy20:23
they float along as you change branches.20:23
do you want to keep those changes? (or apply them elsewhere?)20:24
metcalfc left20:25
KaffeeJunky123 okay thanks20:25
a checkout -f in my master branch got rid of it20:25
LongBeach left20:26
fr0sty left20:27
Mattias joined20:27
reds left20:28
phantomcircuit left20:28
sako hey guys so does git diff <commit> head path/to/file give me the difference between head and that commit?20:28
gasull joined20:29
sako there was a bunch of lines deleted in a commit we got the sha id20:29
i want to show what was deleted in a patch style diff20:30
anyone know if thats correct?20:31
mmattice joined20:31
slonopotamus joined20:31
ptl_ joined20:32
yrlnry sako: git diff <commit> head -- path/to/file20:33
verto left20:33
ptl left20:33
dajhorn left20:33
yrlnry sako: git diff <commit> HEAD -- path/to/file20:33
or you could just git diff <commit>:path/to/file20:33
henrikbjorn left20:33
reds joined20:35
mando joined20:36
saleh joined20:37
cordoval_ left20:37
q0rbanq0rban|afk20:38
dunpeal left20:39
codespectator joined20:40
phishy left20:42
Luke joined20:42
LukeGuest5916320:43
Mattias left20:43
KaffeeJunky123 left20:43
SRabbelier1 joined20:43
SRabbelier left20:43
SRabbelier1 left20:43
ptl_ left20:43
SRabbelier joined20:44
sako thanks20:45
saschpe left20:46
yrlnry sure20:46
panike joined20:48
Guest59163 left20:48
workmad3 joined20:48
linusoleander joined20:49
LukeScott joined20:49
phantomcircuit joined20:49
drl left20:49
Zenith77 joined20:50
ptl joined20:50
p3rg2z left20:50
jsick3 left20:50
LukeScott left20:51
ShadowBelmolve joined20:51
namemon joined20:52
lukescott joined20:52
q0rban|afkq0rban20:54
AkumaStreak left20:55
lukescott left20:56
lukescott joined20:58
lukescott Does anyone know the difference between $ git submodule add URL local/path when "path" exists or doesn't exist? What if "path" is a symbolic link? Is that a "bad" thing? I've read a ton on submodules but I'm still a bit confused. I don't know if that is the "right" thing to do. I'm trying to avoid duplicated files. (I have several apps pointing to the same dependency)20:59
PabloM left21:00
tgunr left21:00
jelmer joined21:00
jason237 joined21:00
cschneid left21:00
ki__ joined21:00
tgunr joined21:00
drl joined21:02
IslandUsurper left21:04
robotarmy joined21:04
ericbarnes left21:04
jutaro joined21:05
AAA_awright_AAA_awright21:05
apocalyptiq joined21:05
bartek left21:05
olle_ left21:06
albel727 left21:07
Finalflash50 joined21:07
mariusso lukescott: I don't think that's wise. Each submodule is it's own repo, with its own state, since the top-level repo syncs the submodule to whatever the "submodule SHA1" points to for the current HEAD in the top-level repo. This means that each "identical" sub-module needs to be able to synced at various SHA1s at the same time.21:07
dnorman joined21:07
mariusso lukescott: With a symlink for each "identical" submodule to the same physical repo on disk, you loose that21:08
mithridates I'm trying to clone kernel with git, if I disconnect or kill the process and run the command again will it continue or restart downloading21:08
?21:08
deekayen left21:08
mariusso it'll restart21:08
comptekki left21:09
eletuchy joined21:09
sgronblo it will?21:09
mithridates mariusso: anyway to handle that issue?21:09
mariusso mithridates: The sever creates a unique pack file for your clone, which it needs to recreate the next time, (and which might be different) so the clone restarts21:09
jin28 joined21:10
sgronblo will one pack file be created for the whole repo?21:10
mariusso mithridates: If the repo is exposed through http, you can grab the whole repo (with pack files) using a downloader which can resume21:10
Ryback_ left21:10
mithridates but kernel is huge and if I let it to keep downloading it in one time my room mates will rape me for internet speed!!!!!!21:10
paja joined21:10
mariusso sgronblo: it depends, normally it repacks to one large one containing all the objects you don't have21:11
helvete joined21:11
mariusso mithridates: Good, then you have something to do while it's downloading ;-)21:11
sgronblo wouldn't it make more sense to split it up a bit? so you can clone part of it and if it fails and you have to start over you would at least have gotten somewhere21:11
verto joined21:11
lukescott mariusso: I'm not entirely clear what that means. I basically need my application repo to see the dependency (framework) as readonly and manage that framework in it's own repo. The only reason why I'm using submodules is because at some point Beanstalk (the service I use) will support submodules for deployment. I just want to pull the latest version from the specified branch. Does that make sense? Is what I'm doing not suited21:12
mithridates mariusso: so after wget -c http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git what should I do to make it on my local machine?21:12
mariusso sgronblo: clone resume is being discussed21:12
sgronblo mariusso: i see21:12
jason237 left21:12
mariusso sgronblo: http://article.gmane.org/gmane.comp.version-control.git/168906/match=clone+resume21:13
ChanServ set mode: +v21:13
mithridates mariusso: any idea that how I can make it a local project after downloading it?21:13
lukescott mariusso: When I make the directory a softlink git seems to ignore the sub module completely, besides having a reference in .submodules. I *think* that might work for what I'm trying to do. Normally I would just use symlinks, but I need Beanstalk to pull the framework during deployment.21:14
drubies|mbp left21:14
mariusso mithridates: You can clone with the original URL, and use the local download as a reference. That way it'll pick all the objects you have locally first, and download the missing ones21:14
paja left21:15
mithridates how can I clone with the original URL without downloading it and then refer it to that http manually downloaded pack21:15
ineiros joined21:16
rayners left21:18
jin28 test to see if I can talk. I need some basic help but I think I'm getting the terminology wrong21:18
I downloaded a repository that's read only, had some problems with it made fixes. I want to send a list of just the changes to the author whats the git command to create the changefile ?21:18
workmad3 jin28: you want to generate a patch file then, I believe21:18
jin28 yeah21:18
mariusso mithridates: You can also just clone locally, and afterwards point the origin.url to the remote repo, so it fetches there on the next 'git pull' or 'git fetch'21:19
workmad3 jin28: iirc, you can do that with git diff21:20
mithridates mariusso: you mean I download this file for ex. http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git then use this command: 'git pull linux-2.6.git' ?21:20
guardian joined21:21
[intra]lanman left21:21
workmad3 mithridates: you'd do 'git clone <repo-url>' which would create a local clone21:21
panike left21:21
mithridates workmad3: well I did that but it started to download it , I don't want it because kernel is huge and I can't keep my connection for a long time21:22
workmad3 mithridates: so you only want a shallow clone of it21:23
mithridates: you can do 'git clone <repo-url> --depth 5' to only get the latest 5 commits21:24
mithridates I don't know what you call it, I want to download it manually with wget, then make it as if what git clone does21:24
jin28 <workmad3> thanks, that will work as a quick work around21:24
mithridates workmad3: but if I do that I can't search through old stuff21:24
jutaro left21:24
workmad3 mithridates: oh, you do want the full repo...21:25
mithridates: well, then you're looking at git clone then... and look for the git:// url for the repo, not the http one21:25
mithridates workmad3: I have it, it's here: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git21:25
woozie joined21:26
gebbione joined21:26
workmad3 mithridates: clone that one then... it'll be the most efficient you'll get21:26
booginga left21:26
TrineLocke left21:27
bdiu joined21:27
mzero joined21:27
mithridates workmad3: yes I know that, but the problem is that it's HUGE and I can't keep my connection, and git is not resumeable ! so I wanted to get it with wget -c and --limit-rate option.........21:27
L42y left21:27
v0n left21:27
larsl left21:27
lukescott What would be the appropriate way to manage external dependencies that you want to be read-only? (As in you don't plan to make changes directly to that dependency, or submodule). I would like to make changes to the dependency as a dedicated repo/clone outside of the other repo. Reason being is I have several "applications" that need the "framework" in the private/library folder. These applications should use the latest branch21:28
workmad3 mithridates: afaik, there isn't a way to generate such a file21:28
mithridates does git have --limit-rate option for downloading ?21:28
mzero I've got "git status" reporting that there is a change to be committed (staged), but "git diff --cached" gives no output at all!21:28
larsl joined21:28
mzero any idea what i should check?21:29
ayust git update-index --refresh21:29
mzero nope21:30
fr0sty|mobile left21:31
bauruine joined21:31
fr0sty|mobile joined21:32
mzero oy - it was bad interaction with less (my pager)21:32
RaceCondition left21:33
bousquet joined21:35
woozie left21:35
logik-bomb left21:35
Zephyrus left21:36
workmad3 left21:37
amcsi__ joined21:37
robert_david left21:37
lahwran how do I list current remotes?21:39
ayust git remote -v21:39
lahwran ah, no `show`.21:39
ayust alternatively if you just want the remote names, you can leave off the -v21:39
lahwran ...oh...21:39
I guess I don't have any remotes21:39
:P21:39
amcsi_ left21:40
BiggFREE joined21:40
pantsman joined21:42
pantsman left21:42
pantsman joined21:42
mithridates I didn't get any answer :( how can I download a huge project with bandwidth limit or -c feature like wget21:42
jackjennings joined21:42
FauxFaux mithridates: There's basically no support for anything like that; if you're cloning over http (or http is available) you can download the large pack-files by hand with whatever.21:43
mithridates FauxFaux: then what? git pull file ?21:43
FauxFaux No, just put them in .git and pray.21:43
mithridates tnx21:44
bremner what about man git-bundle?21:44
jast [automatic message] the 'git-bundle' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-bundle.html21:44
bremner then wget the bundle21:44
or heck, make a tarball/zip/file and wget that.21:45
robert_david joined21:45
mariusso mithridates: Maybe you could wget this http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/ and then when you're done, 'git clone <path to wget repo> linux && cd linux && git remote set-url origin git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git && git pull'?21:45
q0rbanericduran21:46
ericduranq0rban21:46
mariusso mithridates: The download URL can also be changed to something closer to you, like www.us.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/ for norway etc..21:46
Eh, that was the US21:47
http://www.no.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/ for Norway21:47
You get the drift21:47
elementz left21:47
mariusso mithridates: In total, you'll be looking at downloading 904MB21:48
sbell left21:48
mithridates mariusso: I gochya, tnx, oh is it totally 904MB?21:48
so it shouldn't be too much even with git clone21:48
q0rban left21:49
vanmik left21:49
mariusso mithridates: nah, the bottleneck is really the server..21:50
wanders_ left21:51
wanders joined21:52
mzero left21:52
kylehayes joined21:53
jackjennings left21:53
mariusso just downloaded the whole thing himself21:53
kylehayes Can gc be run against bare repos too?21:54
mariusso yes, gc doesn't touch the working directory at all21:54
AdmiralSausage joined21:54
mariusso kylehayes: You often should run gc to compress a repos size on servers too, since they get 'fragmented' on push21:55
lukescott mariusso: Would you know the answer to my question?21:55
kylehayes mariusso: ok good to know21:55
thank you21:55
EricInBNE joined21:56
mariusso mithridates: Actually, doing a 'git gc --aggressive' on the linux kernel after downloading it, it's only 480MB in /.git21:56
.git/21:56
mithridates: So I think I gave you too high a number earlier21:57
uau left21:57
mithridates mariusso: I'm trying to get those files but the http ones don't seem to be available21:57
mariusso lukescott: Sorry, didn't see your question21:57
hobodave joined21:57
lukescott mariusso: (hopefully this makes sense) What would be the appropriate way to manage external dependencies that you want to be read-only? (As in you don't plan to make changes directly to that dependency, or submodule). I would like to make changes to the dependency as a dedicated repo/clone outside of the other repo. Reason being is I have several "applications" that need the "framework" in the private/library folder. These ap21:57
whaley left21:57
uau joined21:58
drizzd_ joined21:58
mithridates what does gc --agressive do? show the size?21:59
mariusso lukescott: With plain git that use-case is not plainly supported. However, there's a Python framework, which supports that, kinda like a substitute for git submodules21:59
mithridates: Garbage collects the repo, and compresses it into larger pack files21:59
dv310p3r left22:00
BinaryMuseBinaryMuse|away22:00
mariusso lukescott: Trying to remember what it's called, but now it escapes me22:01
jast "compresses into larger files" – you don't read something like that every day ;)22:01
kipras left22:01
mariusso jast: lol :-D22:01
lukescott mariusso: I could theoretically use relative symlinks though, right? As long as I check out both repos in the same place. My concern is being able to deploy the complete project using Beanstalk. They're going to be adding submodule support soon.22:01
mithridates I just couldn't understand it22:01
drizzd left22:01
lukescott mariusso: So what I tried doing is adding the submodule on a symlink that already exists. Git seems to ignore the submodule and just add a reference into .submodules. But you said there was a draw back to doing that? I didn't fully understand.22:02
mariusso jast: Yeah, normally when you commit, you create many small (object) files in the .git/ repo parts. That's suboptimal for git, since a larger pack file with all the objects better compressed is much better for performance and storage space :)22:02
ymasory left22:02
airborn left22:03
mariusso lukescott: The state of the submodule is recorded in the top-level repo. So when you switch branches, or move to another commit, the submodule should be updated to whatever SHA1 for the submodule was recorded for that commit. That means that each repo which uses that submodule must support that this submodule can be a different SHA1s. You cant do that if they all share the same physical repo on disk22:04
opalka left22:04
mithridates mariusso: it's what I get from git gc --agressive git://<link>.git22:04
fatal: Not a git repository (or any of the parent directories): .git22:04
lukescott mariusso: So what you're saying is an earlier version would link to the newer version of a dependency, not the version of the dependency that it was at the time. Wouldn't that also be the case with regular symlinks?22:05
drl left22:06
theoretical left22:06
mithridates mariusso: I just didn't understand what you told me! how can I get that in 480 MB ?22:06
iAmerikan left22:06
lukescott mariusso: (I mean regular as in if you just used symlinks without submodule reference)22:06
mariusso mithridates: What I meant to say is that it probably was only ~480MB in the first place :)22:06
mithridates mariusso: that's good but now I should download 900 MB ?22:07
vdv left22:07
mariusso lukescott: With the symlink, git will just record the symlink, nothing more. So a sub-module with only a symlink makes no sense22:08
mithridates: No, 900 was with both the repo, *and* the working directory you get checked out afterwards. It was my bad when I reported the size the first time22:09
BinaryMuse|awayBinaryMuse22:09
robert_david left22:09
mithridates mariusso: ok, to get everything clear, now I started cloning with git clone git:\\... how can I check the size? what's the size?22:10
ereslibre joined22:10
ereslibre left22:10
ereslibre joined22:10
mklappstuhl left22:11
mariusso mithridates: it won't report the total size, but it'll show you how much you have cloned upto now, and how many percent22:11
mithridates mariusso: it's funny because they could make a field for total size with a simple calculation22:11
lukescott mariusso: So with submodules the project is not actually storing the dependency. It's actually storing the SHA1 hash of that dependency (the commit). And if I use a symlink in-place of that dependency then I'm not recording the SHA1 hash I'm recording a symlink. Is that right? So basically the snapshot of my app has no idea what commit is being used, which is why it's not a good idea.22:12
mariusso mithridates: Worst case, point wget to marius.storm-olsen.com/sources/linux-2.6.tar ;-)22:13
patmaddox joined22:13
mariusso has to head off..22:13
jin28 left22:13
mithridates mariusso: thanks man for your help22:13
sako hey guys so i am using git to version control my vim configs and also using pathogen...22:14
vim/bundle/snipmate is a git submodule... why does it keep telling me the above message?22:14
I get this when i do git status modified: vim/bundle/snipmate (untracked content)22:14
jaeckel left22:14
GodEater_ joined22:15
Weiss joined22:15
mklappstuhl joined22:15
ShadowBelmolve left22:16
yunosh left22:16
tpope joined22:16
jaeckel joined22:16
GodEater left22:18
mattalexx joined22:18
apocalyptiq left22:18
bkozal left22:19
agile joined22:19
drl joined22:19
woozie joined22:20
sebersole left22:20
d0k left22:20
dermoth|work left22:20
verto left22:21
AdmiralSausage left22:22
dnorman left22:23
[intra]lanman joined22:23
tmz left22:23
ThomasLocke left22:24
ptl left22:24
drl left22:24
ptl joined22:24
beatak left22:25
whyking joined22:26
danlentz_ left22:29
ymasory joined22:29
eydaimon what does it mean when I have two branches with the same name, like here? https://gist.github.com/67d225c8ca405737750722:29
mithridates why git doesn't show the total size?22:30
gebbione hi22:31
anybody in the house?22:31
alester left22:32
gebbione yo yo22:32
jast gebbione: the other one has a different name, it's literally called "mordor (2)"22:33
hobodave left22:33
uroboros joined22:33
jast though actually current versions should make that invalid22:33
what does this say: git show-ref22:34
gebbione jast ... i m just starting with GIT not sure that answer was for me22:35
mithridates is it dummy to have a total size in cloning (progress.c) ? or is it a dummy idea or there is a reason that there is no total size?22:35
gebbione I am looking for some answer to my lame questions22:35
AdmiralSausage joined22:35
guardian left22:35
gebbione i keep all my projects in a specific folder and i would like to use a separate folder as my GIT repository22:36
jast sorry, I'm not capable of coherent thought right now :) I need sleep22:36
nb_ left22:36
gebbione for instance myGitRepo22:37
drl joined22:37
danlentz joined22:37
danlentz left22:37
danlentz joined22:37
danlentz left22:37
mortenmj left22:37
gebbione can i add each folders of my projects to this single repo or do i need to create a separate repo for each folder/project22:37
danlentz joined22:38
danlentz left22:38
jast we recommend creating a separate repository for each independent project22:38
danlentz joined22:38
tgunr left22:38
tgunr joined22:38
ISF joined22:38
jast usually this is not a big bother because it's easy to create 'em and they don't really have a lot of overhead22:38
amerine left22:39
eletuchy left22:39
tgunr left22:40
tgunr joined22:40
woozie left22:41
codebeaker left22:41
mastroDani left22:41
nb_ joined22:42
chrisdev left22:42
drl left22:43
chrisdev joined22:44
tgunr__ joined22:44
eydaimon jast: I've not created anything literally called "mordor (2)"22:44
tgunr left22:44
eydaimon jast: one sec on show-ref22:44
jast: https://gist.github.com/5298b46b5d93e3aa2e1822:45
lukescott What is the "correct way" to update submodules within a super project?22:45
As in pull new versions of each submodule22:45
jast eydaimon: well, *something* created a branch with that name, though with recent versions it's pretty difficult to create that kind of name22:45
reds left22:45
eydaimon jast: checkig it out gives me a detached state22:45
jast lukescott: if someone has properly committed updates to the submodules, git submodule update --recursive22:46
eydaimon jast: doesn't that suggest that it put me on the remote branch?22:46
jast after pulling the changes in the supermodule that contain the submodule changes22:46
eydaimon: since git doesn't currently consider it a valid branch name, who knows what it does with that22:46
the 'git branch' tool, that is22:46
angelsl joined22:47
Sonderblade left22:47
eydaimon jast: the history makes no mention of the creation of such a branch22:47
jast branch creation is not versioned22:47
soidexe joined22:48
gebbione can directories be added to a GIT repo?22:48
cakehero joined22:48
jast at least not by git22:48
lukescott jast: That isn't working. I need to pull the newer versions. Right now the submodules are stuck on an older commit.22:48
jast gebbione: yes, but empty ones are ignored22:48
soidexe hey there! how do I remove a file from list to be committed?22:48
eydaimon well, I deleted it22:48
alex__c2022 left22:48
gebbione i just tried to add something22:48
jast lukescott: probably the submodule references weren't updated to a newer version (update submodule, use "git add path/to/submodule" in main repo, commit, push)22:49
gebbione git add .././myfolder/*22:49
chrisdev left22:49
eydaimon jast: must have been a git joke, last commit was on April 1st :P22:49
gebbione but it gave me the error ../../myfolder/subfolder is outside repository22:49
jast soidexe: git status mentions virtually all things you can do to change what's currently planned for a file22:49
soidexe please help! I added wrong file to be commited. will "git reset" reset the changes from that file?22:49
lukescott jast: The super project isn't seeing that it's new. Do I need to go into each submodule and do "git pull origin master" first?22:50
jast lukescott: well, yes22:50
workmad3 joined22:50
jast otherwise how are you going to tell the superproject which different version to record :)22:50
soidexe jast, git status shows me files that I don't want to commit so how do I remove them from it?22:50
lukescott jast: First time using Git. Wasn't sure how this was supposed to work.22:50
jast soidexe: 'git status' shows several sections. at the top of each section, it gives you commands to change things. if it says "use git reset to undo", do that, etc. :)22:51
lukescott jast: So I can do git submodule foreach git pull origin master, then git submodule update —recursive ?22:51
alex__c2022 joined22:51
jast lukescott: no, then the second part will just undo the first22:51
lukescott: a superproject internally remembers which version of each submodule to use, but only when you tell it (which you do by 'git add'ing the submodule after you have checked out the right version of it, then committing)22:52
soidexe jast, okay, seems like working22:52
AdmiralSausage left22:52
c00kiemon5ter left22:53
c00kiemon5ter joined22:53
c00kiemon5ter left22:53
c00kiemon5ter joined22:53
lukescott jast: So after "git submodule foreach git pull origin master" do "git add ." ? Where does "git submodule update" fall in the equation? I think I get it. I think I only do git submodule update if I need to pull down what someone else did.22:54
jast lukescott: yep. someone else updates the records for the submodules -> you do git submodule update22:54
you change submodules yourself -> you don't need git submodule update22:54
lahwran how do I revert a file to the latest commited state?22:55
jast lahwran: git checkout HEAD -- file22:55
aces1up left22:55
lukescott jast: Ah I get it now. Do you know of any good clients (on Mac) that work with submodules, or am I just stuck on the command line?22:55
lahwran git checkout HEAD -- file1 file2 #this valid?22:55
jast lahwran: sure22:55
lukescott: a) I don't have OSX, b) I haven't really ever felt the need to look for any22:55
drl joined22:55
fr0sty joined22:55
lahwran I wouldn't say you're "stuck" on the commandline ...22:56
gebbione git add .././myfolder/* gave me the error ../../myfolder/subfolder is outside repository ... but the folder is not empty22:56
is this something not allowed?22:56
Amorphous left22:56
jast gebbione: when you do 'git init', you can only add stuff to that repository that's in the same directory where you did the init, or subdirectories22:56
mari00sh left22:56
jast otherwise you'd probably end up adding your whole hard drive to your project repository ;)22:57
gebbione right so i cannot keep all my repos in a separate folder22:57
lets say repos22:57
lahwran how do I show what revision and such I'm on?22:57
gebbione and then in repos/subfolders put the actual repositories22:58
jast if your projects are in different folders, you just create a repository in each one22:58
eletuchy joined22:58
jast lahwran: git log shows the current one at the top, for instance22:58
lahwran that works22:58
jast there are dozens of ways to get at that kind of info22:58
git log answers many questions simultaneously and is easy to type ;)22:58
DarthGandalf left22:59
jast and now, good night. I'm pretty darn tired.22:59
gebbione jast: thanks for the confirmation, i would have liked to have a separate folder for the repositories but i guess thats not how this has been designed like23:00
DarthGandalf joined23:03
maguey_ joined23:06
ISF left23:07
fr0sty|mobile gebbione: why would you want the .git directory somewhere else?23:07
gebbione to have a central folder with all the sub repos23:08
separate from the working files23:08
fr0sty|mobile Sub-repos?23:08
gebbione myfolder/repo1 ... myfolder/repo223:08
fr0sty|mobile gebbione: you can always create a symlink...23:09
ShooterMG joined23:09
fr0sty|mobile But I'm probably missing your point...23:09
lukescott left23:10
gebbione i guess your might be a solution but i still dont want to be restricted to be able to add files from my current folder only23:11
LouisJB left23:11
reds_ joined23:11
amerine joined23:11
saleh left23:11
gebbione for instance at the moment i am creating the repo under the folder of the project as i could not add a folder outside23:11
when i upload this repo to a remote server how will it work23:12
albel727 joined23:12
gebbione will it copy the full folder?23:12
fr0sty|mobile You have nested repositories?23:12
gebbione no23:12
i have my eclipse workspace/project123:12
so at the moment i have to create repos under each project23:13
and then i will want to upload the repositories to my remote server23:13
fr0sty|mobile As it should be23:13
One repo per project...23:13
Amorphous joined23:13
fr0sty|mobile Git push...23:13
AdmiralSausage joined23:14
gebbione ok so on the server i will get only the files under .git23:14
on a folder i decide to push them too?23:14
just asking because i dont want to overwrite files or create problems on the remote server23:15
LouisJB joined23:15
bousquet left23:15
bousquet joined23:16
cakehero left23:16
fr0sty|mobile You can push wherever you want, but faq non-bare23:17
jast Pushing to non-bare repositories is discouraged: please see https://git.wiki.kernel.org/index.php/GitFaq#non-bare [automatic message]23:17
nimrod10` joined23:18
kermit left23:19
nimrod10 left23:20
Nikoli_ joined23:22
Nikoli left23:22
_psychic__ joined23:22
gigamonkey left23:23
maguey_ left23:24
tewecske left23:24
namemon left23:25
_psychic_ left23:25
mattalexx left23:26
TabstarTabmow23:26
eijk left23:26
dlam joined23:26
bitkiller left23:27
sigh joined23:27
_psychic__ left23:27
dlam mmm, is there a way to do 'git diff b3358a11 <revision before b3358a11> some.file'?23:27
trying to find an equivalent to 'svn diff -c 55690'23:28
fr0sty|mobile Maan gitrevisions23:29
__name__ left23:29
dlam wait i found it... git diff b3358a11^..b3358a1123:29
ExtraSpice left23:30
cbreak look at git shnow23:30
show23:30
fr0sty|mobile Git show hash would give you the diff and the commit information23:30
phantomcircuit_ joined23:30
Heimidal left23:30
adamholtadamholt_away23:31
adamholt_awayadamholt23:31
Wes joined23:31
dlam oooo git show seems easier, thanks!23:31
Wes I'd like to pull a single change from a remote repository, without any of it's descendents. Is this possible, or should I just use diff/patch?23:32
pyroscope joined23:32
c00kiemon5ter left23:32
lahwran what's that thing called that shows current git repo on ps1?23:32
tmz joined23:32
phantomcircuit left23:34
icwiener left23:34
Wes git cherry-pick changeset23:34
oops23:34
LiamH left23:35
c00kiemon5ter joined23:36
c00kiemon5ter left23:36
c00kiemon5ter joined23:36
alip left23:40
drl left23:40
ereslibre left23:41
alip joined23:41
rettub left23:41
ISF joined23:42
BinaryMuse left23:42
nyingen left23:43
Chillance left23:44
cenuij joined23:44
cenuij left23:44
cenuij joined23:44
verto joined23:45
fr0sty|mobile lahwran: git bash-completions23:45
rettub joined23:46
slonopotamus left23:46
Titosemi joined23:49
seivan joined23:50
drl joined23:52
robotarm_ joined23:52
robotarmy left23:55
uroboros left23:56
rchavik joined23:58
mithridates left23:58
coldboot|home joined23:59

Logs Search ←Prev date Next date→ Channels Documentation