IRCloggy #git 2014-03-10

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.

2014-03-10

Vampire0 Ah, I see Hello71, thx :-D00:00
jbalsano joined00:01
TheMainFunction skorgon: So in that case, by merely specifying the name of the non-existent remote branch, it becomes created when I push?00:01
skorgon yep00:01
TheMainFunction Vampire0: What you wrote will push, create, and set up remote, all in one command?00:01
skorgon: thank you.00:01
anry left00:01
madewokherd joined00:01
Brando753 left00:02
johnkevinmbasco left00:02
Nazca left00:03
n-st left00:03
Vampire0 TheMainFunction, If I'm not too tired, yes :-)00:04
TheMainFunction Vampire0: thanks!00:04
Axsuul_ joined00:05
Vampire0 yw00:05
TheMainFunction Vampire0: are you in Europe then?00:05
el3ctron left00:06
Axsuul_ left00:06
Sonderblade left00:06
johnkevinmbasco joined00:06
Axsuul_ joined00:07
Brando753 joined00:07
dougsland left00:07
axsuul left00:08
axsuul joined00:08
axsuul left00:08
axsuul joined00:09
Vampire0 TheMainFunction, yes, why?00:10
kirbdee left00:10
TheMainFunction you said you were tired..... It indicates not US, which is 8 pm in Eastern time.00:10
simesy joined00:10
Vampire0 You can also be tired at 8pm *g*00:11
sgambino joined00:11
mizu_no_oto left00:11
Vampire0 But yes, 1 am here00:11
Axsuul_ left00:12
srji joined00:13
axl_ joined00:13
Nicholas_Rishel left00:14
Umschwung left00:14
Silmarilion left00:15
simesy left00:15
trewe left00:15
snuffeluffegus joined00:15
MattMaker left00:15
srji_ left00:16
dort left00:16
yhager joined00:18
Nazca joined00:18
DolphinDream joined00:18
Zebroid joined00:18
hyperair left00:18
axl_ left00:19
reskp joined00:19
jbalsano left00:19
axsuul left00:19
asQuirreL left00:20
Watabou joined00:20
Goplat left00:20
dsantiago left00:21
reskp_ joined00:21
yosito joined00:21
lifelike left00:21
lifelike joined00:22
Watabou left00:22
dragon3_ joined00:22
Zebroid left00:23
lolmaus left00:23
Watabou joined00:23
reskp left00:23
neo1691 left00:24
reskp_ left00:25
oodavid left00:26
Guest41671 left00:26
Guest41671 joined00:26
Guest41671kulp00:26
cjsarette left00:27
asQuirreL joined00:28
cjsarette joined00:28
asQuirreL left00:30
dmnd left00:30
asQuirreL joined00:31
dsantiago joined00:31
gebbione left00:32
armyriad joined00:33
joelrobichaud joined00:34
lindenle_ joined00:34
tokik joined00:35
SilverBln left00:35
Spyro joined00:37
Nicholas_Rishel joined00:37
Naoe-Kanno left00:38
kcj joined00:39
asQuirreL left00:39
fletch49er joined00:39
bwreilly joined00:40
john2x joined00:40
jbalsano joined00:40
dmnd joined00:41
lifelike left00:41
lindenle_ left00:41
lifelike joined00:41
bitsandbooks joined00:42
reim_ joined00:43
black_13 left00:44
reim left00:44
bwreilly left00:44
AaronMT left00:44
sdouglas left00:45
cagedwisdom joined00:45
simesy joined00:46
ariscop left00:46
damccull joined00:46
DrShoggoth joined00:46
WormDr1nk left00:47
Nazca__ joined00:47
timewa1ker left00:47
godgodgodgo left00:47
Nazca left00:48
hyperair joined00:48
sdouglas joined00:48
timewa1ker joined00:48
sluther joined00:48
mellernoia left00:49
mellernoia joined00:49
jgoss joined00:49
yhager left00:50
simesy left00:50
harish_ left00:51
lolmaus joined00:51
neo1691 joined00:52
noxd left00:52
jimmyy left00:53
godgodgodgo joined00:53
lifelike left00:53
neo1691 left00:53
treaki_ left00:53
lifelike joined00:54
marcjs joined00:54
jbalsano left00:55
Nicholas_Rishel left00:56
fatalhalt joined00:58
dark_splinter left00:58
godgodgodgo left00:59
b4rbz joined00:59
jimmyy joined00:59
marcjs left00:59
neo1691 joined01:00
Zebroid joined01:00
LuxuryMode joined01:01
hyperair left01:02
rgr joined01:02
ORiON-- joined01:03
lifelike left01:04
Zebroid left01:05
lifelike joined01:05
Sabbath joined01:05
yhager joined01:05
TheFuzzball left01:06
BadProphet joined01:07
robustus left01:07
treaki_ joined01:07
amikiri joined01:07
jcrubino joined01:08
ErKa left01:08
akitada joined01:08
mellernoia left01:09
axsuul joined01:09
robustus joined01:11
jimmyy left01:11
jcrubino is there a git gui with code (not file) search for linux?01:12
jimmyy joined01:12
foredoomed joined01:13
weiyang joined01:14
ariscop joined01:14
jimmyy left01:15
jimmyy joined01:16
jimmyy left01:16
jimmyy joined01:17
Nazca__ left01:17
foredoomed left01:17
jimmyy left01:18
lifelike left01:19
jimmyy joined01:19
lifelike joined01:19
jimmyy left01:20
sohail left01:20
rchavik joined01:20
kpreid jcrubino: what do you mean by "code search"?01:20
jimmyy joined01:20
tomengland left01:21
jcrubino I would like to seach within the lines of code without using regex is possible01:21
foredoomed joined01:21
jcrubino if possible01:21
jimmyy left01:21
snits left01:21
tomengland joined01:21
tmcmahon joined01:22
jimmyy joined01:22
reskp joined01:22
kcj left01:22
axsuul left01:23
Mackseraner joined01:23
snits joined01:23
tmcmahon left01:24
atn34 joined01:24
Mackseraner hello, im sorry for this amateur question: using the terminal, i want to push changes to my private github repo but i get a 403 because i seem to be "logged in" with my university account. how do i authenticate with my other github account?01:24
sdouglas left01:25
foredoomed left01:25
DrNick well, step one would be asking in a github channel01:25
tomengland left01:26
hyperair joined01:26
dancat left01:26
reskp left01:26
Mackseraner DrNick ok, thanks, will do!01:26
jimmyy left01:28
jimmyy joined01:30
yosito left01:30
jrahmy joined01:31
tomengland joined01:31
hobodave left01:31
SonicX left01:31
jimmyy_ joined01:31
lifelike left01:31
BadProphet left01:31
yosito joined01:31
emes joined01:31
lifelike joined01:32
fletch49er left01:32
dagnachew joined01:33
ArcTanSusan left01:33
Nazca__ joined01:33
WaReZ left01:33
DrShoggoth left01:34
jimmyy left01:34
hobodave joined01:35
dagnachew left01:35
dagnachew joined01:35
jimmyy_ left01:35
axsuul joined01:35
dagnachew left01:37
dancat joined01:38
Zifre joined01:39
axsuul left01:40
lifelike left01:42
bitsandbooks left01:42
lifelike joined01:43
harish_ joined01:43
lindenle_ joined01:43
ethlor joined01:44
francisfish joined01:44
eletuchy joined01:44
ethlor left01:44
emes left01:45
ethlor joined01:45
ethlor left01:45
ethlor joined01:45
jrahmy left01:46
jrahmy joined01:46
bitsandbooks joined01:46
ErKa joined01:46
BiggFREE joined01:47
lindenle_ left01:47
francisfish left01:49
Spyro left01:49
Spyro joined01:50
fletch49er joined01:52
dagnachew joined01:53
rewsky joined01:53
MattMaker joined01:53
rewsky I want to be able to make commits when commiting such as # this is my comment01:53
yosito_ joined01:54
rewsky i want the comment # to be able to come first, how can I do that?01:54
thiago rewsky: git commit --cleanup=verbatim01:54
lifelike left01:54
thiago I'm not sure I understood you01:54
that will allow you to write # in your messages01:54
lifelike joined01:55
marcjs joined01:55
yosito left01:56
rewsky thats what i want01:58
want to be able to have # be the first character on my commit lines01:58
skorgon rewsky: the comment character is configurable01:59
rewsky: you can change it to something else, then # would be a normal, valid char01:59
TheMainFunction can you just use an escape char?02:00
marcjs left02:00
skorgon is there an escape char?02:00
jbalsano joined02:00
thiago no02:01
Zebroid joined02:01
nn0101 joined02:02
tomengland left02:02
bburky left02:04
lifelike left02:04
daito joined02:04
rewsky how do I modify ut02:05
tried02:05
git commit --cleanup=verbatim02:05
but it doesn't commit02:05
luc_ joined02:05
lifelike joined02:05
nn0101 hello. if i wanted to identify what changed in a src tree (which dir specifically) when a user pushes, which hook should i look at? i've got one git repo which couple of src tree under it. the goal is to notify jenkins to pull & build only the appropriate src tree02:05
Zebroid left02:05
fletch49er left02:06
whitby joined02:06
thiago rewsky: it does create a commit02:06
nn0101: pre-receive or post-update02:06
nn0101: both work02:06
nn0101 thiago: oh. i was looking at post-receive. damn.02:07
pikaren joined02:07
thiago nn0101: that too02:07
nn0101: all the hooks work02:08
nn0101 thiago: the trouble is though i can't get which src tree changed specifically.02:08
felipewm left02:08
rewsky thiago it's not working for me, is there another way?02:08
thiago nn0101: then the problem is in your hook script02:08
rewsky: what did you expect to change?02:08
rewsky i made a small change02:09
hochmeister joined02:09
rewsky so basically i just want to be able to type in a # in the front of my commit messages02:09
nn0101 thiago: ok. let me see02:09
rewsky when I do a git commit -a02:09
thiago rewsky: ok. So you did that git commit -a --cleanup=verbatim02:09
rewsky: what then?02:09
pikaren left02:09
rewsky well you are right02:10
pikaren joined02:10
jcrubino left02:10
rewsky it does make a commit02:10
but it doesn't post the # or anything following in th ecommit02:10
commit02:10
instead it post this02:10
forgive me if its spammy02:10
thiago rewsky: with --cleanup=verbatim?02:10
shinnya joined02:10
pikaren left02:10
thiago don't paste more than 3 lines02:10
shruggar left02:10
dmnd left02:10
rewsky k02:10
ill pastebin02:11
http://pastebin.com/Hnf211QC02:11
that gets put in as my commit message02:11
thiago ok02:11
nn0101 thiago: how would you identify what changed exactly? is there doc i can consult? thanks02:11
thiago what had you typed?02:11
nn0101: git diff on the previous and the now-current commit02:11
nn0101: you may want the --names-only option02:12
rewsky: did you save the file in your text editor?02:12
rewsky yes02:12
skorgon rewsky: well, verbatim does simply not clean up the commit message. apparently it still pastes the template in though02:12
rewsky: try changing the comment char. that should work better - i hope02:13
Vampire0_ joined02:13
dglambert is there an easy way to review the conflicts after attempting to merge02:13
_5kg left02:13
thiago rewsky: I don't get what the problem is02:13
rewsky skorgon: how do I change the comment character?02:13
skorgon dglambert: open the conflicting file, it should have the conflict markers02:13
nn0101 thiago: ok02:14
thiago rewsky: did you type something in the editor that isn't now in the commit message?02:14
rewsky thiago, simply I don't want # to be used as a comment character02:14
skorgon rewsky: man git config - i guess it's somewhere in there02:14
gitinfo rewsky: the git-config manpage is available at http://jk.gs/git-config.html02:14
rewsky thank you02:14
dglambert skorgon, is there a way to recall which files are conflicting?02:14
skorgon dglambert: git status02:14
dglambert ahh thanks02:14
sdouglas joined02:15
sword left02:16
sohail joined02:16
Vampire0 left02:16
_5kg joined02:16
dglambert So I did some renaming of files, and 2/3 conflicts are over a file name change. Should I be fine with it adding the latest version and think its deleting an old file? Or is there a way to have it recognize the rename?02:17
dagnachew left02:17
dagnachew joined02:18
Eugene !rename02:18
gitinfo git does not support explicitly file renaming - the 'git mv' command is shorthand for 'git rm --cached; mv; git add'. All "rename" statistics are generated at runtime when examining history with git-log. See the -M option in the git-log manpage for more info. Also http://thread.gmane.org/gmane.comp.version-control.git/27/focus=217 and `diff.renames = true` in man git-config02:18
skorgon dglambert: a rename should not conflict, IMHO. the other side must have edited the file as well02:18
b4rbz left02:19
dagnachew left02:19
dagnachew joined02:19
m0viefreak left02:19
el3ctron joined02:19
kaictl left02:20
ippxs joined02:21
ArcTanSusan joined02:21
LuxuryMode left02:21
Hecter left02:21
kaictl joined02:22
koda left02:23
dagnachew left02:24
dagnachew joined02:24
lindenle left02:26
ariscop left02:26
jrahmy left02:27
sgambino left02:29
snits left02:30
dglambert skorgon, yeah I had some differences in the files as well02:30
yosito_ left02:30
Lemony left02:31
Lemony joined02:32
dagnachew left02:33
dagnachew joined02:33
dreiss left02:35
_ikke_ left02:36
rewsky left02:37
scarabx joined02:37
_ikke_ joined02:37
vijay13 joined02:39
diegoviola joined02:39
tomengland joined02:39
SonicX joined02:40
Zifre_ joined02:41
amikiri left02:41
dagnachew left02:42
dagnachew joined02:42
jon-mac how does git handle file moves? is it based only on the hash of the entire file..?02:42
if so, I am wondering how it would handle stuff like Java, where if you move a file to a new package -- the file (package statement) changes at the same time02:42
tomengland left02:42
axl_ joined02:43
snits joined02:43
lindenle joined02:44
ariscop joined02:44
Zifre left02:44
ellie_fitzy joined02:44
SonicX left02:44
SonicX joined02:45
ellie_fitzy is there any way to have a project on one machine and download it to another as the same person? Is this forking?02:45
shingshang joined02:47
frogonwheels__ ellie_fitzy: Local clones of a projects are always, in effect, a 'branched' version of a project. You can certainly have multiple clones of the same project. Forking is more a GitHub concept as far as Git goes.02:48
frogonwheels__frogonwheels02:49
dagnachew left02:50
dagnachew joined02:50
jrahmy joined02:50
frogonwheels ellie_fitzy: It depends a lot on the workflow model you are using, but generally you'll have one 'upstream' (bare) clone of a project that becomes the authorative server - or a sort of 'commit serialisation' point.02:51
shinnya left02:51
ariscop left02:51
ariscop joined02:51
Droolio joined02:52
ellie_fitzy frogonwheels__: thanks!02:53
LuxuryMode joined02:54
ryanakca left02:54
dreiss joined02:55
marcjs joined02:55
tomengland joined02:55
jrahmy left02:55
lindenle_ joined02:57
ellie_fitzy left02:57
Mackseraner left02:58
SorenHolm joined02:59
marcjs left02:59
jrahmy joined03:01
lindenle_ left03:02
zajn left03:02
Zebroid joined03:02
NBhosting joined03:04
amcsi_work left03:04
amcsi_work joined03:04
sluther left03:05
dagnachew left03:06
dagnachew joined03:06
Zebroid left03:06
offby1 It's a frog ... and it's on wheels!03:08
nn0101 thiago: thanks. that worked perfectly.03:08
dmnd joined03:11
yosito joined03:13
netcarver left03:14
axl_ left03:14
yosito left03:15
dagnachew left03:16
dagnachew joined03:17
bitsandbooks left03:17
dagnachew left03:20
dagnachew joined03:21
Goplat joined03:21
foredoomed joined03:22
LuxuryMode left03:22
Rex357 joined03:23
reskp joined03:23
Rex357 Hi. Having trouble pulling the git repository from here:03:23
http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git03:23
dmnd left03:24
Rex357 Using command git clone git://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git03:24
Am getting error: fatal: the remote end hung up unexpectedly03:24
milki Rex357: thats not a repo03:25
Rex357: look at the bottom of the page03:26
o wait..03:26
the click is different03:26
dagnachew left03:26
milki o03:26
no03:26
foredoomed left03:26
milki Rex357: look at teh bottom of the page03:26
and use the correct urls03:26
dagnachew joined03:26
Rex357 Haaa03:26
Thanks.03:26
Working now03:26
kukks left03:27
TheMainFunction heh03:27
That's a great problem/solution!03:27
milki ?03:28
reskp left03:28
lindenle_ joined03:28
maestrojed left03:29
TheMainFunction milki: Easy to fix!03:30
grep0r left03:30
TheMainFunction the best kind of problem to have.03:30
caption joined03:33
caption hey guys, i want to use beanstalkpp ftp for deployment on a wordpress site, but I update plugins through the website, how can I handle getting these changes commited, even though I'm deploying through ftp03:33
not sure how to go about handlign this03:33
dagnachew left03:34
dagnachew joined03:34
joelrobichaud left03:35
stellarhopper left03:37
BtbN not using ftp sounds like a great solution03:38
javasox joined03:38
zuzytel left03:38
stellarhopper joined03:38
vijay13 left03:38
lindenle left03:38
grep0r joined03:39
caption but im saying, when i make updates on wordpress03:40
which change files03:40
and i'm not sure how to track this back into beanstalkapp.com03:40
thiago how is that even a Git question?03:40
if you're uploading via FTP, that's not Git03:40
caption u serious?03:40
thiago yes03:41
caption bad03:41
bwreilly joined03:41
madewokherd left03:42
ethlor left03:44
yhager left03:44
lifelike left03:45
francisfish joined03:45
yhager joined03:45
lifelike joined03:46
pheaver joined03:46
bwreilly left03:46
Wulf left03:47
armyriad left03:47
lindenle joined03:48
cworth`cworth03:48
javasox left03:48
chernjie joined03:48
hochmeister left03:48
Zifre_ left03:49
Wulf joined03:49
axsuul joined03:49
francisfish left03:49
yacks joined03:51
rgr left03:52
jimmyeatworld left03:54
lindenle left03:54
cads left03:55
dancat left03:55
marcjs joined03:55
lindenle joined03:56
Watabou left03:58
watabou joined03:58
lifelike left03:58
delasteve joined03:59
lifelike joined03:59
marcjs left04:00
pwnz0r left04:02
snuffeluffegus left04:02
whitby left04:02
tomengland left04:02
Zebroid joined04:03
tomengland joined04:03
weiyang left04:03
Dougie187 left04:03
Zebroid_ joined04:04
kcj joined04:06
Zebroid left04:07
tomengland left04:07
dmnd joined04:07
armyriad joined04:08
Zebroid_ left04:08
dreiss left04:08
lifelike left04:09
lifelike joined04:10
CheckDavid left04:12
axl_ joined04:12
chamunkszz_chamunks04:14
daito left04:14
Noldorin left04:15
simesy joined04:15
LuxuryMode joined04:16
amikiri joined04:16
jimmyy joined04:17
sohail left04:18
diegoviola is there a way to see what files were removed in a commit, not the actual changes?04:18
file names04:18
someElise git log --stat --diff-filter=D04:18
Eugene diegoviola - man git-diff; --name-only04:18
gitinfo diegoviola: the git-diff manpage is available at http://jk.gs/git-diff.html04:18
zumba_ad_zumba_addict04:18
diegoviola thanks04:19
thiago diegoviola: git whatchanged04:19
sohail joined04:20
diegoviola thanks04:21
:)04:21
lifelike left04:21
lifelike joined04:21
acidjnk left04:21
zz_chamunkschamunks04:22
axl_ left04:23
reskp joined04:24
jcvfen_ joined04:25
jcvfen left04:25
reskp_ joined04:26
WormDrink left04:27
pfg left04:27
reskp left04:28
pfg joined04:28
CKyle left04:28
CKyle joined04:29
CKyle left04:29
LuxuryMode left04:29
reskp_ left04:30
cads joined04:31
akitada left04:32
saurabh joined04:32
saurabhGuest713804:33
sohail left04:34
yhager left04:34
lifelike left04:34
lifelike joined04:35
JSharpe_ left04:35
craigp left04:35
polyzen joined04:36
hiredman left04:37
caption left04:37
hiredman joined04:37
unknwn- joined04:37
unknwn- left04:38
_iron left04:39
chris_thomson left04:40
delasteve left04:41
beautifulmind joined04:42
JerryT left04:45
jalmeida joined04:45
lifelike left04:46
beautifulmind left04:46
dagnachew left04:47
yhager joined04:48
kerrick joined04:48
Lunatrius left04:48
dagnachew joined04:50
beautifulmind joined04:50
Lunatrius joined04:52
jimmyy left04:55
marcjs joined04:55
axsuul left04:55
jules__ joined04:55
jalmeida left04:56
cads left04:56
jules__ hi, i'm trying to find history for a file but I moved the file so i'm not getting the whole history.04:56
lifelike joined04:56
souther left04:57
john2x_ joined04:57
marcjs left04:57
marcjs joined04:57
john2x left04:58
milki hm, theres an option to follow rename04:58
s04:58
o04:58
jules__: --follow04:58
jules__ okay, cool. thanks. I'm also using "gitblit" and it doesn't appear to be that smart04:59
once i have the commit id/hash is there an easy way to get the diff/more info about it04:59
dagnachew left05:00
jules__ git diff I gess05:00
Fandekasp left05:01
jules__ dang this is fconfusing05:01
MindfulMonk left05:01
marcjs left05:02
lindenle left05:04
JerryT joined05:04
Generator_ joined05:04
Zebroid joined05:05
sdouglas left05:05
sdouglas_ joined05:07
Generator_ my git is having a silly problem, sometimes it just cannot push, waiting for long time and then prints this http://fpaste.org/83878/28086139/05:08
after I try 2 or 3 times or sometimes even more than that, It pushes the code05:09
Guest96490 joined05:09
milki since does work eventually, its not a problem with git05:09
kerrick left05:09
cillybabe left05:09
milki you shoudl debug your connection and your remote05:09
Zebroid left05:09
lifelike left05:09
mangesh joined05:10
Guest96490 left05:10
lifelike joined05:10
archdori joined05:10
Generator_ ok05:11
armyriad left05:12
cilly joined05:13
zoso joined05:14
zajn joined05:15
jaimef left05:15
milki Generator_: also, you can do GIT_TRACE=1 just to see what its doing05:15
Generator_ ok05:15
jaimef joined05:16
khmarbaise joined05:16
mangesh do need to have ssh key to push in my remote repo?05:18
do I*05:18
milki mangesh: that depends on your remote repo05:18
SamB left05:18
mangesh its on github05:19
jcvfen_ left05:19
lifelike left05:19
mangesh is there any other way for pushing?05:19
lifelike joined05:19
daito joined05:20
mangesh without the complications for generating ssh key05:20
And1 joined05:20
milki mangesh: theres github faqs for that. there are two ways to auth with github05:20
mangesh okay, will check faqs05:21
And1 Good morning folks. I'm looking for a smart way of how to automatically do a git pull of my dotfile-bare-git-repo, before commiting anything new. Do you have any ideas on that?05:21
armyriad joined05:21
milki make a new git alias that does a pull before you commit05:22
make a shell function that makes a pull whenever you descend into a repo05:22
SonicX left05:22
milki uh05:22
milki shrugs05:22
khmarbaise left05:22
amikiri left05:23
And1 milki: If there are any unpulled changes and I would edit something and want to commit it then (with first pulling from git), won't my edited files be overwritten with the old version again?05:23
pfg left05:23
milki pull will not overwrite things, only fail05:24
And1 So I thought about pulling even before editing a file from my repo. But how.05:25
Executing a git pull whenever logging in to bash (or opening a new terminal/shell) is a bit too much I think. ; )05:26
mizu_no_oto joined05:26
reskp joined05:26
dougsland joined05:27
ArcTanSusan left05:28
ArcTanSusan joined05:28
neo1691 left05:28
beautifulmind left05:30
lifelike left05:30
reskp left05:30
lifelike joined05:31
zumba_ad_ joined05:31
milki most people just remember to pull whenever they feel they need to05:31
milki shrugs05:32
hahuang65 left05:32
ScottE left05:32
dglambert left05:33
jimmyy joined05:33
zumba_addict left05:33
SorenHolm left05:34
ScottE joined05:35
SorenHolm joined05:35
beautifulmind joined05:35
GT4066 joined05:35
sdouglas_ left05:36
ninsei left05:37
tokik left05:38
pwnz0r joined05:38
sdouglas joined05:39
Mitchbones left05:42
dougsland left05:42
tgkokk joined05:43
axsuul joined05:43
Rex357 left05:43
DolphinDream left05:44
Tommy[D]_ joined05:44
ArcTanSusan left05:44
lifelike left05:45
francisfish joined05:46
tgkokk left05:47
CorySimmons joined05:48
Tommy[D] left05:48
Neozonz joined05:49
NeozonzGuest3171905:49
francisfish left05:50
tpollard left05:51
jaequery joined05:52
goTAN joined05:52
CorySimmons left05:52
Guest31719 left05:54
Guest31719 joined05:55
marcjs joined05:55
MattMaker left06:00
marcjs left06:00
MattMaker joined06:00
atn34 left06:02
ArcTanSusan joined06:03
cads joined06:03
Sabbath left06:03
paolooo joined06:03
tomengland joined06:05
Zebroid joined06:06
JSharpe joined06:06
Sabbath joined06:07
bobast left06:07
diegoviola left06:08
lindenle_ left06:09
goTAN left06:09
the_cybersphinx left06:10
Zebroid left06:11
Guest31719 left06:11
hesco left06:11
lindenle joined06:12
paolooo left06:12
Hecter joined06:14
jimmyy left06:14
djapo joined06:15
djapo what happens if an app already exists in a project and is in version controll under it, how can i preserve the changes before i decide to brake it out into a submodule?06:15
cads left06:15
craigp joined06:16
frogonwheels djapo: you can use git-filter-branch to break it out into the submodule - so all changes are there.. then you can just git rm --cached directory/ and add the submodule back - and commit that.06:17
djapo: it WILL be awkward if you want to checkout before that commit .. but the history is at least preserved.06:17
leeN joined06:18
crazydiamond joined06:18
weiyang joined06:18
pheaver left06:19
tomengland left06:21
mizu_no_oto left06:22
sdouglas left06:22
crazydiamond left06:24
ninsei joined06:25
ferreum joined06:26
djapo frogonwheels: thanks! that clears things up06:26
SorenHolm left06:27
reskp joined06:27
User458764 joined06:29
User458764 left06:29
sdouglas joined06:30
mizu_no_oto joined06:30
reskp left06:32
akher0nakheron06:32
thiago left06:32
lolmaus left06:32
lolmaus joined06:33
jimmyy joined06:33
lite_ joined06:33
yhager left06:34
oojacoboo left06:34
nnyk_ left06:34
ThomasLocke joined06:35
system64 joined06:36
mangesh left06:36
jaequery left06:38
Hecter left06:38
Sabbath left06:38
Sabbath joined06:39
jackneill joined06:39
jackneill left06:39
jackneill joined06:39
lindenle left06:39
polyzen left06:39
crazydiamond joined06:40
_tpavel joined06:40
Hecter joined06:41
tomengland joined06:41
hoschi joined06:42
Hecter left06:42
Raging_Hog joined06:43
m0ltar joined06:44
mizu_no_oto left06:44
ghostlines joined06:45
ghostlines left06:45
jaequery joined06:47
jaequery left06:47
ferreum left06:47
ferreum joined06:47
jaequery joined06:47
ferreum left06:48
ferreum joined06:48
ErKa left06:49
CorySimmons joined06:49
Goplat left06:52
Kayra joined06:52
pwnz0r left06:52
CorySimmons left06:54
pheaver joined06:55
TheMainFunction left06:55
marcjs joined06:55
lolmaus left06:56
djapo left06:57
scarabx left06:57
lolmaus joined06:58
marcjs left07:00
Umschwung joined07:01
reskp joined07:02
SamB joined07:02
ayaz joined07:03
tokik joined07:03
starkhalo left07:03
jbalsano left07:04
snits left07:05
rath joined07:06
Zebroid joined07:06
reskp left07:07
Sabbath left07:08
Sabbath joined07:09
Sabbath left07:09
sdouglas left07:09
watabou left07:09
k4r1m left07:09
sdouglas joined07:10
Zebroid left07:11
Naeb joined07:12
rethus joined07:13
Sabbath joined07:14
johnkevinmbasco left07:14
sdouglas left07:14
johnkevinmbasco joined07:14
marthinal joined07:15
jimmyy left07:16
SorenHolm joined07:17
stodan joined07:18
ifdm_ joined07:19
ifdm_ left07:19
ifdm_ joined07:19
WormDrink joined07:21
SonicX joined07:21
ippxs left07:21
saorge joined07:23
ORiON-- left07:23
Not_Whatever joined07:24
roelmonnens joined07:25
PeterBooker joined07:25
qknight_qknight07:25
ORiON-- joined07:26
mishok13 left07:26
saorge_ left07:26
St_Marx left07:28
V__ joined07:29
beautifulmind left07:29
rob_w joined07:30
jrahmy left07:31
eletuchy left07:32
m104 joined07:33
j0ran joined07:33
Gizburdt joined07:34
johnkevi_ joined07:34
beautifulmind joined07:35
johnkevinmbasco left07:35
V__ left07:36
leeN left07:36
pduin joined07:36
j0ran left07:37
ArcTanSusan left07:37
jargon joined07:38
Kayra left07:38
sdouglas joined07:40
dougsland joined07:41
beautifulmind left07:42
sdouglas left07:45
francisfish joined07:47
m104 left07:47
St_Marx joined07:48
Gaga left07:49
CorySimmons joined07:50
axsuul left07:50
j0ran joined07:51
francisfish left07:51
sig left07:52
robertnix left07:52
njsg left07:52
Juri_Agarin joined07:52
njsg joined07:53
njsg left07:53
njsg joined07:53
CorySimmons left07:54
marcjs joined07:55
j0ran left07:56
draftqin joined07:56
Kayra joined07:56
marthinal left07:56
draftqin left07:56
luxgeek left07:58
marcjs left07:59
lite_ left07:59
jceb_ joined08:01
lite__ joined08:01
m0ltar left08:01
harobed joined08:02
harobed left08:02
damccull left08:02
Gonzo89 joined08:02
harobed joined08:02
eletuchy joined08:03
jluc joined08:03
yacks left08:03
robertnix joined08:04
eletuchy left08:04
eletuchy joined08:05
Misan joined08:06
dmnd left08:06
papegaaij joined08:06
Zebroid joined08:07
snql joined08:08
Macaveli joined08:08
eletuchy left08:09
johnkevinmbasco joined08:10
mishok13 joined08:10
el3ctron left08:10
j0ran joined08:11
johnkevi_ left08:11
Zebroid left08:11
Sicp joined08:12
robertnix left08:12
axsuul joined08:12
fatalhalt left08:13
invinceable left08:13
bobkosse joined08:14
pheaver left08:14
nepochal left08:15
whowantstolivef1whowantstolivefo08:16
zajn left08:17
Naeb left08:17
user258467_ left08:17
Naeb joined08:17
francisfish joined08:17
paolooo joined08:17
talios joined08:19
Lemony left08:19
francisfish left08:19
harobed_ joined08:20
Lemony joined08:21
francisfish joined08:21
bobkosse left08:22
axsuul left08:22
harobed left08:22
_iron joined08:22
bobkosse joined08:23
gv left08:23
dougsland left08:24
Lemony left08:25
francisfish left08:25
Vivekananda joined08:26
rgr joined08:26
ghostlines joined08:26
yacks joined08:26
jnavila joined08:26
ItsMeLenny joined08:27
ItsMeLenny i'm having a problem; i want to update my fork using the master but i just want to master to override my changes i've done in one of the files08:28
how do i do that08:28
vurma joined08:29
lavong joined08:29
_ikke_ 'the master'?08:29
osse ItsMeLenny: depends, how do you intend to update your fork?08:29
marthinal joined08:30
ItsMeLenny in terminal, i cant just type; git pull upstream master08:30
because ive changed one of the files08:30
_ikke_ You cannot selectively merge08:31
Just merge it, and then retrieve the changes to that file08:31
hkon__ joined08:31
sandorjanssen joined08:31
ItsMeLenny it wont merge08:32
osse git pull --no-commit ...; git checkout master -- file; git commit08:32
ItsMeLenny because there are changes08:32
gv joined08:32
_ikke_ osse: ugh, evil merges :P08:32
ItsMeLenny is that git pull upstream master --no-commit?08:32
_ikke_ !fetch508:32
!fetch408:32
gitinfo [!fetchfour] We recommend against using 'git fetch/pull <remote> <refspec>' (i.e. with branch argument), because it doesn't update the <remote>/<branch> ref. The easy way to fetch things properly is to get everything: 'git fetch' or 'git pull' are sufficient if you have one remote; otherwise we recommend 'git fetch <remote>' (plus 'git merge <remote>/<branch>' if you wanted to pull/merge).08:32
talios left08:32
osse _ikke_: good point. I would do it after08:33
WormDr1nk joined08:33
osse unless those changes are the source of a merge conflict08:33
psoo joined08:33
goTAN joined08:34
blackmesa joined08:35
asQuirreL joined08:35
veebers left08:36
Umschwung left08:36
asQuirreL left08:36
ItsMeLenny this is the problem:CONFLICT (content): Merge conflict in mlrawviewer.py08:36
Automatic merge failed; fix conflicts and then commit the result.08:36
asQuirreL joined08:36
johnkevi_ joined08:36
nn0101 if i wanted to change a src to an earlier commit but didn't want to loose your all future commits from then, how would i go about that? Is there a better approach/08:37
?08:37
Anticom joined08:37
_ikke_ ItsMeLenny: And you want to keep the file you had locally?08:37
nnyk_ joined08:37
_ikke_ nn0101: "git checkout <hash> ." will change the file contents to the version of that commit08:38
nn0101: You can then commit it08:38
(note the . is required)08:38
ItsMeLenny _ikke_, no i want to get rid of the file, but the file exists in both repos, i want to write over the top of it08:39
johnkevi_ left08:39
nn0101 _ikke_: ok that'll get me a working dir at that particular commit. however then if i commit the code, i then need to merge right?08:39
_ikke_ nn0101: no, for git, it's just another commit08:39
nn0101 _ikke_: ahh08:39
johnkevinmbasco left08:40
_ikke_ nn0101: Note it wil fail if there are uncomitted changes which would have been overwritten08:40
nn0101 _ikke_: ok08:40
_ikke_ ItsMeLenny: Which version of the file do you want?08:40
nn0101 thanks dude08:40
ItsMeLenny _ikke_, the upstream master08:41
asQuirreL left08:41
_ikke_ ItsMeLenny: git checkout --theirs <file>08:42
j0ran left08:43
ItsMeLenny _ikke_, that seemed to work, but now i have error: 'merge' is not possible because you have unmerged files.08:43
_ikke_ ItsMeLenny: just git commit08:43
dc5ala joined08:44
_ikke_ that will finish the merge08:44
axsuul joined08:44
ItsMeLenny error: 'commit' is not possible because you have unmerged files.08:44
new2GIT joined08:44
new2GIT I am trying to store database versions in GIT any good way to do it?08:44
crater2150 joined08:45
_ikke_ ItsMeLenny: Ah, git add <file> first08:45
netcarver joined08:45
_ikke_ new2GIT: What do you mean with database versions/08:45
?08:45
jatt joined08:46
new2GIT Its like say I create tableA (10 cols) >> move it to UAT. then some days later add 2 more cols >> need to move them to UAT08:46
jatt left08:46
jatt joined08:46
new2GIT my sql file would initially have a create, how do I manage an ALTER?08:46
dougsland joined08:46
arietis joined08:46
ItsMeLenny _ikke_, ah thanks!!! that has done what i want i'm pretty sure, thanks very much08:47
SilverBln joined08:47
axsuul left08:48
vurma left08:49
_ikke_ new2GIT: That is not really a git problem. There are sql diff tools that will create them automatically, otherwise, you have to collect these alter statements yourself08:50
gebbione joined08:50
j0ran joined08:50
new2GIT I know about the paid tools, my point is after I have the alters in hand I cannot paste them in the create sql files ...08:50
how do I handle them?08:51
BiggFREE left08:51
new2GIT any suggested folder-structure?08:51
_ikke_ new2GIT: Just either date named or version named files08:52
LimeBlast joined08:53
new2GIT which is each time I create a new file.. but then versioning would not help as date would not allow me to know the contents or history.. version-named?08:53
lb1a joined08:53
j0ran left08:54
marcjs joined08:55
nepochal joined08:58
xerxas joined08:58
marcjs_ joined08:59
marcjs_ left08:59
marcjs left08:59
nfk left09:00
marcjs_ joined09:01
reskp joined09:01
new2GIT _ikke_ any hints?09:02
jasonroyle joined09:02
unek joined09:03
unek ok09:03
unek left09:03
ariscop left09:04
ariscop joined09:04
nfk joined09:04
reskp left09:05
eletuchy joined09:05
shruggar joined09:06
dougsland left09:06
kcj left09:06
Druide_ joined09:06
daito left09:06
jaequery left09:07
phanimahesh joined09:08
gitinfo set mode: +v09:08
reskp joined09:08
Zebroid joined09:08
snql left09:09
reskp left09:09
shingshang left09:09
Kneferilis left09:09
j0ran joined09:09
reskp joined09:09
arietis left09:09
reskp left09:09
blackmesa left09:09
new2GIT any good strategies to use GIT for DB version control?09:10
matteo` joined09:10
reskp joined09:10
moritz yes, there's a tool for that; let me look it up09:10
eletuchy left09:10
MattMaker left09:11
reskp left09:11
foredoomed joined09:11
intellix joined09:11
Gizburdt left09:11
reskp joined09:12
moritz new2GIT: look for squitch09:12
reskp left09:12
Mindfart joined09:13
HSaka joined09:13
Mindfart left09:13
Mindfart joined09:13
Zebroid left09:13
cllamas joined09:13
new2GIT moritz, any link ?09:13
konadr joined09:15
moritz new2GIT: google.com/?q=squitch09:15
john2x joined09:16
moritz oh wait, it's spelled without u09:16
foredoomed left09:16
moritz http://sqitch.org/09:16
new2GIT ahh09:17
Keridos_offKeridos09:17
reskp joined09:18
ArSn joined09:18
moberberger joined09:19
reskp left09:19
Naeb left09:19
reskp joined09:19
john2x_ left09:19
carbon joined09:19
mewm joined09:21
shingshang joined09:22
jagob joined09:22
new2GIT this too seems to be having the same concern which I am facing with GIT directly.. CREATE TABLE in sql1.sql & alter in sql2.sql I can't get a trace of when each column was added to the table ... any other suggestions09:22
foredoomed joined09:22
osse !GIT :p09:23
gitinfo Git is not an acronym. Writing it in all caps is heresy and will be punished by Subversion or SCCS for more grievous offences. It's "git" or "Git". Thank you for your help in making the world a better place. 48a8c26c625a4d3631c4f614bceb38933e74140809:23
francisfish joined09:23
cbreak new2GIT: SQL is not history aware?09:23
maybe with a transactional database you could keep a trace of the transactions?09:23
otherwise, log them yourself?09:23
doesn't sound like a git related problem at all though09:24
moritz new2GIT: if you simply have a DDL file under version control, you can use 'git blame' to find out when a line was added/changed09:24
new2GIT thats what I plan to use GIT for09:24
_ikke_ cbreak: ddl statements are not part of transactions09:24
new2GIT but moritz, lines would be in different files09:24
arif-ali joined09:25
jast !GIT ;P09:25
gitinfo Git is not an acronym. Writing it in all caps is heresy and will be punished by Subversion or SCCS for more grievous offences. It's "git" or "Git". Thank you for your help in making the world a better place. 48a8c26c625a4d3631c4f614bceb38933e74140809:25
eletuchy joined09:25
cbreak _ikke_: why not?09:25
osse jast: haha, I beat you to it09:25
osse is best09:25
jast I realized two seconds after hitting enter09:25
but apparently the message didn't get across anyway ;)09:25
new2GIT I need to see it as CREATE (10 cols) on 1st March, 2 cols added on 3rd then 4 more on 5th .. all in 1 file so that I can revert a single file if ever needed...09:26
moritz so, do it09:26
jast I don't think git can help you achieve that in any reasonable way09:26
SilverBln left09:26
blinkdesign joined09:27
m0ltar joined09:27
jast even for versioning database dumps git isn't really a good choice, and versioning the database itself is even worse09:27
not to mention the database ain't gonna notify git when a DBA alters the database schema09:27
Gizburdt joined09:28
new2GIT well ... how do I trace changes to my DDL's? if there are different files then each file would always be in version0.09:28
daito joined09:28
cbreak you could just forbid messing with the database.09:28
(without writing code to do that)09:29
then you can just track said code.09:29
foredoomed left09:29
new2GIT cbreak, its a team on a single db..09:29
cbreak and you don't need to care about the database itself a single bit09:29
moritz new2GIT: depends on how you do the "different files" approach09:29
new2GIT any ideas?09:29
cbreak new2GIT: so, that makes it even easier09:29
moritz new2GIT: if you have one file per table, for example, that file won't always stay on version 009:29
new2GIT but adding cols?09:29
cbreak don't add them.09:30
demand that people write code to create them09:30
tkissing joined09:30
HSaka left09:30
cbreak git can track code :)09:30
new2GIT can't leave the alters in the same file ... else that would be saying CREATE + ALTER on an existing table with data .... prod ;)09:30
oodavid joined09:31
oodavid left09:31
moritz new2GIT: but if you version-control the ALTER statements, you still see who added them, and when09:31
cbreak just create a new database09:31
moritz and you can still 'git grep' for columns when you want to find out where they were touched09:31
cbreak and them migrate the data over?09:32
oodavid joined09:32
moritz and 'git blame' and 'git log' for the details09:32
or keep both the current state AND the change files around, both under version control09:32
that's even easier to analyze later on09:32
and you can even auto-generate the change files with something like sql fairy09:33
or with apgdiff, if you're lucky enough to use postgres :-)09:33
new2GIT sorry, but I'm a bit off the mark .. when I exec the single file it would be running both the CREATE + ALTER which would be a prob on prod .... if I have different files then all would be in version0.09:34
Kneferilis joined09:34
new2GIT I am on Postgres :)09:35
moritz new2GIT: let's start slowly09:35
dort joined09:35
moritz new2GIT: you could do it the following way09:35
new2GIT: 1) you have a single file with the CREATE TABLE etc. statements09:35
john2x left09:36
moritz new2GIT: 2) that file is under version control09:36
new2GIT: 3) whenever somebody wants to change the schema, they modify the CREAT TABLE ... statements in that file09:36
john2x joined09:36
moritz new2GIT: 4) when the changes are deployed, you dump the schema, do an SQL diff (with apgdiff) between the current state and your schema file, and run the resulting ALTER TABLE statements against the DB09:37
new2GIT: 5) if there are more involved migrations, they are checked in as separate files into git, and are run before step 4)09:38
Lemony joined09:38
Lemony left09:38
moritz squitch can manage the whole process, including test and rollback scenarios; but you don't have to use it09:39
lolmaus left09:39
goTAN left09:39
tkissing left09:40
anry joined09:41
lolmaus joined09:41
new2GIT a few concerns ... pt3) if we change the CREATE file (I guess you mean put the ALTER's too in it), when we run on UAT it might run top to bottom, so what happens to the creates? they would fire as exceptions ...p4) we unfortunately cant pulls UAT dumps so cant diff ...09:42
moritz what is UAT in this context?09:43
user acceptence tests?09:43
yacks left09:44
new2GIT yup09:44
moritz why and what exactly would "fire as exceptions"?09:44
and if you can't pull dumps, you must simply store the last state in a file (though that's not as reliable)09:45
or simply modify the environment so that you can09:45
new2GIT the CREATE file would have ALTER's .. now when the complete file fires it would also fire the create ...09:45
lite__ left09:45
moritz NO09:45
the CREATE file would NOT have alters09:45
new2GIT sorry, then ..09:45
moritz the ALTER TABLE statements come from the apgdiff (or whatever tool you use to generate SQL diffs)09:46
(step 4)09:46
achadwick joined09:46
new2GIT "last state" is what I am trying to get so that I can say dev in state1005, UAT in state700, BETA in ....... LIVE .......09:46
moritz well, with my scheme, you have it09:47
weiyang left09:47
new2GIT sorry but I generally use ALTER TABLE .. to make db changes.. where do I put those?09:47
moritz if you know that version 2.34 of your software is installed in BETA, you simply look into the git repo to find the state of the CREATE file at that version09:48
new2GIT: you don't. You let them auto-generate.09:48
torchie is a subtree supposed to be like... an empty folder when you first try to make one09:48
moritz gives up09:48
torchie is it like a repo in the repo?09:48
djh_djh09:48
cbreak new2GIT: you take a hard look at them, and think long and intense about how you can express them with creates.09:49
Devastator left09:49
cbreak torchie: it's like history from an other repository merged in09:49
r1tz joined09:49
_ikke_ torchie: It's a subtree merge09:49
torchie oh so a subtree would include the history of commits you have on the repo as a whole?09:50
_ikke_ You merge two repos, but the files from one repo end up in a folder in the other repo09:50
cbreak I wouldn't recommend subtree merging09:50
torchie I'm trying to figure out which thing to use to push only a subset of my repo to a remote09:50
SilverBln joined09:50
cbreak it's a very inseparable and inflexible strong bonding09:50
frogonwheels left09:50
cbreak torchie: what point would that be?09:50
Devastator joined09:50
cbreak torchie: half of a project sounds quite worthless09:50
you can rewrite history with filter-branch to delete everything else though09:51
torchie partially closed source09:51
cbreak and then just push that rewritten history09:51
torchie: man git-filter-branch, look for subdirectory-filter09:51
gitinfo torchie: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html09:51
matteo`matteo09:51
CorySimmons joined09:51
new2GIT folks, just took a peep @ https://gitorious.org/testlink-ga/atisne-testlink-code/source/81fe9f55343a9785da9e637b3cfb6b981f6f1e2e:install/sql/alter_tables but here I can't compare the changes to each table as all would be in version0.09:52
goTAN joined09:52
torchie hmm cbreak thanks09:52
CodeShar_ left09:52
CodeShark joined09:52
moritz new2GIT: we keep telling you not to do it that way; if you don't listen, we can't help you. Sorry.09:54
bliker joined09:54
arand joined09:55
new2GIT which way should I go abt, I'm eager to learn & change so that I can get thru09:55
MachineX joined09:55
new2GIT any pictorical rep for me to grasph09:55
CorySimmons left09:55
cff joined09:56
lite_ joined09:56
arif-ali left09:56
jnavila left09:57
nnyk_ left09:59
nnyk_ joined10:00
michael_lee joined10:00
ItsMeLenny left10:00
lite_ left10:02
lite_ joined10:02
rchavik left10:03
ggherdov_ hi. How do I get the hash of the commit I am currently sitting on?10:04
simesy left10:04
gain joined10:05
dfanjul joined10:05
Bombe ggherdov_, git rev-parse HEAD.10:05
ggherdov_ thanks Bombe10:06
arif-ali joined10:06
arnihr joined10:07
dougsland joined10:08
SilverBln left10:09
Zebroid joined10:09
netcarver left10:10
hyperair left10:10
vurma joined10:12
tvw joined10:12
simesy joined10:13
Zebroid left10:13
SonicX left10:14
yacks joined10:14
Lemony joined10:14
makije joined10:14
anry left10:14
root___ joined10:15
root___ hi there10:16
gitinfo root___: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.10:16
SonicX joined10:16
anry joined10:16
Vinnie_win left10:17
root___ Interested in the project: Pack bitmap support for libgit2 for this years gsoc. I am new in the open source world a 2nd year student of B eng in UB. Can some one direct me on how to start. I have already downloaded the source code of git but don't realy know from where to start studying.10:18
beautifulmind joined10:19
merica joined10:20
The-Mad-PirateThe-Mad-Pirate|U10:21
The-Mad-Pirate|UTMP|Uni10:21
jluc left10:21
jluc joined10:23
DanielHollands joined10:23
torchie can you push a subtree to remote if the repo it references is local10:23
cbreak history is history.10:24
LimeBlast left10:24
cbreak it doesn't matter where it came from10:24
osse root___: hmm, wouldn't you need the libgit2 source for that?10:25
harish_ left10:25
Exancillatus joined10:25
Exancillatus left10:26
marcjs_ left10:26
kalleth_kalleth10:28
robinsmidsrod left10:30
robinsmidsrod joined10:31
robinsmidsrod left10:31
simesy left10:32
rchavik joined10:32
robinsmidsrod joined10:32
hkon__ left10:32
moberberger left10:32
dreiss joined10:33
daedeloth joined10:33
thevishy joined10:34
lolmaus left10:37
Naeb joined10:37
lolmaus joined10:37
neo1691 joined10:38
nilg joined10:38
tomengland left10:39
neo1691 left10:40
tomengland joined10:40
Hounddog joined10:42
KeridosKeridos_off10:42
sdouglas joined10:43
goTAN left10:44
oodavid left10:44
mellernoia joined10:44
new2GIT *10:44
tomengland left10:45
new2GIT left10:45
torste joined10:46
oodavid joined10:47
felixjet__ joined10:47
WaReZ joined10:47
jperry2 joined10:47
torste what is the correct way if I work on master and want to delete a few files, rename some and then make a new commit?10:47
sdouglas left10:47
pduin_ joined10:47
JSharpe_ joined10:47
jperry left10:47
jperry2jperry10:47
obert_ joined10:47
Kicer86 joined10:47
[1]JPeterson joined10:48
fuzzygeorge joined10:48
moritz you delete files with 'git rm', and rename them with 'git mv'10:48
skyUnical joined10:48
torste and if I remove 100 files?10:49
JEEB left10:49
hkon__ joined10:49
moritz did you already remove them with normal 'rm'?10:50
torste yes10:50
moritz then git add -A10:50
pduin left10:50
obert left10:50
felixjet_ left10:50
JPeterson left10:50
torste ok, I did git add * , is that wrong?10:50
shingshang left10:51
skyUnical left10:51
JEEB joined10:51
cbreak it might be incomplete.10:51
JSharpe left10:51
rstritt left10:51
cbreak git status will tell10:51
moritz it might not pick up deletions10:51
because the shell expands the *, and when files are gone, they aren't included in that result list10:52
tgkokk joined10:52
torste ok, I will start over and try git add -A10:52
cbreak why start over?10:52
torste to learn the proper way10:52
skyUnical joined10:52
cbreak just git add -A now...10:52
then git status10:52
done.10:52
kongthap joined10:53
Druide_ left10:53
tkissing joined10:54
kongthap hi, if i like to fix very small changes at for example 10 commits ago, is there any technique more suites this problem than git rebase interactive ? please advise10:54
torste no files in folder on latest commit, detached from head10:54
cbreak kongthap: public history?10:54
kongthap cbreak, no my private repo10:55
cbreak then just rebase -i10:55
canton7 left10:55
cbreak you'll have to force push if you have a remote.10:55
canton7 joined10:55
Not_Whatever left10:57
blackmesa joined10:58
kongthap cbreak, allow me to ask more specific step, right now my HEAD position the contents are quite different compare to were i wanna fix, the question is i must edit changes to what i want at the current HEAD position? or i can like checkout to HEAD~10 position and do the change there ? i meant i don't quite understand what to do10:58
torste now I copied the project to a folder, git init, git add -A, git commit -m "...", can I just remove and rename with linux 'rm'/'mv' and then do git add -A git commit -m?10:58
goTAN joined10:59
daito left10:59
torste git status on master nothing to commit10:59
KimHansen joined10:59
TheFuzzball joined11:01
GT4066 left11:01
mikecmpbll joined11:01
ZujkisNx_ joined11:01
cbreak kongthap: just git rebase -i HEAD~11 or so, then select edit for the commit you want to edit11:02
then perform your edit, git commit --amend11:02
then git rebase --continue11:02
paulweb515 left11:02
cbreak done.11:02
kongthap: checkout is not involved.11:02
torste: sure.11:02
using normal means to modify files is totally fine.11:03
kongthap cbreak, ok i got it :)11:03
shingshang joined11:04
kongthap cbreak, when it "pauses" after my edit i must use commit --amend not normal commit ?11:04
merica left11:04
goTAN so git push origin:newBranch creates a new branch on the remote and pushed the current state to it right?11:04
bremner that syntax is wrong11:05
TheFuzzball left11:05
bremner man git push, see synopsis11:05
gitinfo the git-push manpage is available at http://jk.gs/git-push.html11:05
bremner you seem to have combined "repository" and "refspec"11:06
acidjnk22 joined11:06
acidjnk22acidjnk11:06
neunon left11:06
z8z joined11:07
pduin_ left11:07
tkissing left11:07
TheFuzzball joined11:07
pduin joined11:07
neunon joined11:07
goTAN hm11:07
so its git push origin master:newbranch?11:08
bremner that should work. assuming you want the newbranch created from the local branch "master11:08
"11:08
goTAN yes but that means that I create this branch only on the remote right?11:09
not locally11:09
bremner correct11:09
Zebroid joined11:09
torste cbreak: thx, this time it worked fine11:10
goTAN and how do I get this branch also locally?11:10
after the next git pull origin?11:10
cbreak kongthap: yes11:10
bremner goTAN: in two steps. First create the local branch, then push it11:10
cbreak a normal commit would make a normal commit, and not edit the one you want to edit11:10
goTAN bremner: well but I already did git push origin master:newbranch11:11
takamich_ joined11:11
bafain joined11:11
rom1504 joined11:12
goTAN I basicallly did this only for "backup" but now I decided to have this a branch everyone can work on11:12
bremner goTAN: you will still need to create the local branch11:12
asQuirreL joined11:13
Gizburdt left11:13
a_l_e joined11:13
goTAN bremner: really? so If I create a bunch of branches and push them everyone else which wants to work on those branches has to create them locally first?11:14
Vivekananda left11:14
bremner yes11:14
well, the can create them from the remote branch11:14
Zebroid left11:14
takamichi left11:14
bremner !remote_branch11:14
gitinfo [!remote_branches] Remote branches are not created locally on clone. They show up as remote branches (git branch -r). To create local branches from them use git checkout -b local_name remote/branch_name or more recently git checkout -t remote/branch-name11:14
lolmaus left11:14
Naeb left11:15
lolmaus joined11:15
goTAN oh11:15
I really didnt know that11:15
Vivekananda joined11:15
goTAN so in my case with git push origin master:newbranch11:16
I just have to do git checkout -t remote/newbranch11:17
origin/newbranch I mean11:17
davividal joined11:17
bremner after either fetch or "git remote update origin"11:17
reskp left11:17
bremner that's why it's a bit easier to create the local branch first11:17
dougsland left11:18
omegahm left11:19
goTAN hm yea but I sometimes have the need to just "backup" my current state (the remote gets backuped frequently)11:20
newbie999 joined11:21
goTAN so I thougth I just push my stuff to a new branch11:21
does this make sense?11:21
m0viefreak joined11:21
bremner sure11:21
phanimahesh left11:23
foredoomed joined11:25
reskp joined11:26
hobodave left11:27
dreiss left11:27
netcarver joined11:27
netcarver left11:27
jatt left11:28
bobkosse left11:28
ewet joined11:28
ewet left11:29
ewet joined11:30
foredoomed left11:30
the_cybersphinx joined11:31
pfg joined11:31
asQuirreL left11:31
simesy joined11:32
pfg left11:33
bobkosse joined11:33
ferreum left11:34
northfurr left11:36
omegahm joined11:36
simesy left11:37
amikiri joined11:37
Gizburdt joined11:38
binnisb left11:39
nilg left11:41
zumba_ad_ left11:41
hkon__ left11:42
binnisb joined11:43
Sicp left11:43
Sicp joined11:45
ferreum joined11:47
leandrosansilva_ left11:48
dragon3_ left11:50
Dudi joined11:50
tokik left11:50
kesha joined11:51
_PN joined11:53
shruggar left11:54
binnisb left11:54
goTAN so there is a branch on remote but not locally. I do git fetch and then git checkout --track origin/thebranchIwantToHaveLocally11:54
shruggar joined11:54
binnisb joined11:54
goTAN which creates the new branch but when I do git branch -a Iit doesnt show me that this new created branch is tracked like remotes/origin/HEAD -> origin/master11:55
shouldnt there be something like: remotes/origin/newBranch -> origin/newBranch11:55
?11:55
intellix left11:56
bremner no, those arrows are symbolic-refs, that's something different11:56
try git branch -vv11:56
foredoomed joined11:57
foredoomed left11:57
goTAN ah ok11:57
goodwin joined11:57
bliker left11:58
goTAN is there something better so view all local branches and commits? I only have git log --graph11:58
carbon left11:58
LeMike joined11:59
m0ltar left12:00
bremner gitk --all ?12:00
or tig for a similar curses tool12:01
binnisb left12:01
cannonball joined12:01
binnisb joined12:01
bafain left12:02
goTAN oh yea gitk is fine but maybe there is something nicer?12:02
I am checking out tig12:02
j416 scenario: I create branch [topic] from branch [master], they both diverge. I create branch [topic_rebased] from [topic] and rebase that on the latest [master] and continue working on that. How can I at this stage find out what happened in [topic_rebased] since [topic], but ignoring all changes that occured in [master]? Here is a minimal working example of the scenario:12:03
http://pastebin.com/e6E5GZZT12:03
anry left12:03
mourest joined12:03
achadwick left12:03
tgkokk left12:03
Keridos_offKeridos12:04
j416 I can achieve what I want by doing (after the above commands): git checkout -b x topic && git rebase master && git diff x topic_rebased12:05
Sicp left12:05
j416 can I somehow achieve it without doing a throw-away rebase?12:05
amikiri left12:06
yacks left12:06
binnisb left12:06
bremner dunno. that is what I'd do (just did, yesterday)12:06
binnisb joined12:07
tokik joined12:08
j416 I figured there may be some way to say like, git diff topic..topic_rebased ^master12:08
maybe there isn't12:08
goTAN ok I know how to difftool the current branch with the remote one but how can I diff with a specific commit? like git difftool master:HEAD origin/master:f423?12:08
_ikke_ lol, 3 people speaking with the same color name :P12:08
m0ltar joined12:09
j416 goTAN: if you have the commit sha1 that is all you have to specify12:09
goTAN: the sha1 is universally unique12:09
er, at least repo..ly unique12:09
universally unique in your repo (and perhaps universally, too) :)12:10
goTAN you mean git difftool master <SHA1>?12:10
j416 yeah12:10
Zebroid joined12:10
j416 the refs are just ways to refer to a specific sha1 without typing out that sha112:10
goTAN hm that diesnt work12:11
doev joined12:11
goTAN but the SHA is a commit from the remote (which i get via git fetch)12:11
it sais: short SHA 3932 is ambiguous12:11
osse goTAN: provide more digits12:12
j416 goTAN: that's because you have another sha that begins with that, add more digits12:12
psoo left12:12
craigp_ joined12:12
osse digits. it needs moar!12:12
Sonderblade joined12:12
marcjs joined12:12
goTAN I did and the ahh12:12
j416 goTAN: 6 or 7 usually works, just add more until it works. :)12:12
goTAN ok12:12
j416 depends on the size of the repo12:13
goTAN yea ofcouse...12:13
I just misinterreted the error message12:13
j416 bremner: thanks for confirming I'm not the only one doing it this way, anyway. :)12:13
noxd joined12:15
Zebroid left12:15
craigp left12:15
grumbel_ j416: if topic does not change anymore, you could of course use a tag on topic_rebase12:15
Flowinho joined12:16
jargon left12:16
j416 grumbel_: I'm not sure what you're suggesting, in what way would that solve it?12:17
dort left12:17
Kayra left12:17
yacks joined12:19
bremner j416: I think "topic rebased" is too hard to calculation on the fly12:19
renatow joined12:20
DoniRS joined12:20
j416 bremner: yeah, maybe it is.12:20
tgkokk joined12:22
ewet_ joined12:22
aarapov joined12:22
ewet_ left12:22
grumbel_ j416: Maybe I musunderstood; think of git checkout topic; git checkout -b topic_rebased; git rebase master; git tag orig_topic; <commit changes to topic rebased>; git diff orig_topic..HEAD12:22
dirte joined12:22
gitinfo set mode: +v12:22
grumbel_ but that might be the completely wrong direction :)12:23
j416 grumbel_: ah, I see what you mean.12:23
yeah, that could be an idea, saving the state along the way12:23
ewet_ joined12:24
j416 if I rebase again on a new master though I'd still need to update that ref (be it a tag or a branch) to reflect12:24
ewet left12:24
j416 the use case is, I send [topic] for code review, while I continue working in [topic_rebased], then I want to say to the reviewer "here are my changes since I sent that branch to you for review"12:25
maroloccio2 joined12:25
grumbel_ an alternative would be not to rebase, but to merge with master12:25
jperry left12:25
j416 yeah that's one alternative12:25
bremner using a new branch for rebasing the topic helps, if master does not move12:26
j416 still I need to rebase it in the end though and handle the conflicts12:26
james_d_h joined12:26
bremner e.g. topic-v212:26
j416 yeah, been there heh12:26
bremner then git diff topic topic-v212:26
jperry joined12:26
ninsei_ joined12:26
grumbel_ j416: yeah, and the fact that you'd have to resolve conflicts twice does not help much in that kind of workflow12:27
dytrivedi left12:27
jperryGuest4268612:27
j416 grumbel_: indeed, it's a bit silly. There's rerere of course but.12:27
still need to go through and check it twice.12:27
skyUnical left12:27
maroloccio left12:27
grumbel_ bremner: but that would show all changes made in master as well, no?12:28
dytrivedi joined12:28
gua_ould joined12:28
j0ran left12:28
bremner grumbel_: "if master does not move"12:28
ninsei left12:28
tokik left12:29
intellix joined12:29
z8z left12:29
j0ran joined12:29
j416 bremner: I assumed you meant create a branch, work on that, then create a new branch just for the rebase, right12:29
then the rebased one could be ignored until it's time for last review + deploy12:30
but it'd still be there, on the edge12:30
that's kind of how I'm working now12:30
ewet_ left12:30
smashwilson joined12:31
bremner I mean every version you send for review, you keep. But that only works if nobody else is working on master (or whatever branch topic is based on)12:31
j416 yeah, I do that12:31
I've topic_review_1, topic_review_2 etc.12:31
but master moves every day12:31
TD joined12:32
j416 and I rebase on that, so I still need to find what changed between topic_review_2 and the new (rebased) topic_review_3 I'm sending12:32
back to square one. blergh. :)12:32
TD if i am on a detached branch, is there a way to merge that branch into another one without switching to it and losing my work? kind of like a "push merge"12:32
bobkosse left12:32
TD i guess, can i do git push with a local branch?12:32
Xethron joined12:32
j416 TD: you can merge it, just remember its sha1, _or_ create a branch from where you are and merge that12:34
TD ok12:35
arif-ali left12:35
j416 TD: but you need to switch to the branch you want to merge into.12:35
TD: merge is always "merge into where I am now"12:36
TD thanks12:36
reskp left12:36
arif-ali joined12:36
reskp joined12:37
j416 TD: and, as long as you have everything committed and you have that sha1, the commit won't go away even if you check something else out. Unreferenced commits will still hang around for.. I don't remember the number now but I think 90 days or so12:37
TD: (unless you try really hard to kill it, that is. 'git gc' won't cut it)12:38
TD ok12:38
interesting. i'd have assumed it would.12:38
didn't realise git had arbitrary timeouts in it12:38
j416 git tries hard to protect your code. :)12:38
xsbeats joined12:39
cbreak TD: they are user configurable12:39
reskp_ joined12:39
j416 TD: when 'git gc' is run (sometimes it will run automatically if there are too many loose objects), it'll check to see if you have any unreferenced objects (e.g. commits) that are old enough, and delete them12:40
reskp_ left12:40
j416 TD: however, unreferenced objects won't survive a clone, clone only takes referenced objects12:41
Flowinho left12:41
reskp left12:41
tokik joined12:41
Error404NotFound joined12:41
Flowinho joined12:41
TD thanks for the education :)12:41
crazydiamond left12:41
j416 bows (15°)12:42
arif-ali left12:43
reskp joined12:43
kesha left12:43
LuxuryMode joined12:44
reskp left12:45
rfoust left12:47
HelperW joined12:48
Kayra joined12:48
jiku joined12:48
axsuul joined12:48
LuxuryMode left12:48
axsuul left12:49
paulweb515 joined12:49
bobkosse joined12:49
dbolser joined12:50
dbolser hello12:50
luc_ left12:50
a_l_e left12:50
northfurr joined12:50
northfurr left12:50
northfurr joined12:50
dbolser is there some rule that says you should pull and then co vs. co and then pull (other than the fact that the refspec may not exists yet?12:50
hkon__ joined12:51
cbreak no.12:51
eletuchy left12:51
cbreak dbolser: those two operations are unrelated12:52
eletuchy joined12:52
cbreak pull is a fetch + merge12:52
_ikke_ dbolser: pull merges in the current branch12:52
cbreak so you'd do it if you want to merge something into the current branch after fetching it12:52
checkout just switches branches (in branch mode)12:52
dbolser I'm writing a quick script to update several repos (with identical branch names)12:52
dougsland joined12:52
cbreak update?12:52
dbolser pull and co12:53
cbreak why co?12:53
dbolser or co and pull....12:53
cbreak it has nothing to do with updating12:53
Kayra left12:53
dbolser cbreak: because I want all repos on the same branch12:53
_ikke_ !pitfalls12:53
gitinfo [!hook_pitfalls] Guidelines for writing hooks: 1. Consume all input (cat >/dev/null if you don't want it). 2. If you use any 'cd', also 'unset GIT_DIR'. 3. Don't git-pull in a hook (or any other script).12:53
pepijndevos joined12:53
cbreak dbolser: then switch to the branch before you pull, obviously12:53
_ikke_ especialle #312:53
cbreak dbolser: otherwise you'd pull in the other branch...12:53
r1tz left12:53
dbolser cbreak: what if the branch I want doesnt exist locally yet?12:54
Generator_ left12:54
pepijndevos Uhm, I attempted this, but I kind of messed up I think. https://git.wiki.kernel.org/index.php/GitSvnSwitch Unable to determine upstream SVN information from working tree history12:54
cbreak dbolser: doesn't matter12:54
dbolser so co just creates it?12:54
cbreak dbolser: if it exists on a remote, then you'll create it12:54
weiyang joined12:54
cbreak if not then you'll get an error and you can decide what to do12:54
dbolser I think I just had exactly that *not* happen12:54
git checkout release/7512:55
error: pathspec 'release/75' did not match any file(s) known to git.12:55
cbreak so?12:55
paulweb515 left12:55
cbreak there's no such branch, locally or on a remote12:55
so you can't check it out, duh.12:55
create it yourself, or fetch first12:55
dbolser cbreak: after I pull I see that branch locally12:56
cbreak: that branch does exist on remote duh ;-)12:56
cbreak dbolser: you don't need to pull12:56
j0ran left12:56
dbolser git version 1.7.112:56
cbreak dbolser: read what I write please12:56
[13:55:42] <+cbreak> create it yourself, or fetch first12:57
reskp joined12:57
dbolser cbreak: I don't see what I'm missing... oh... so I should fetch then switch?12:57
cbreak if you want...12:57
dbolser pull seems the wrong thing to do here12:57
cbreak of course it's wrong.12:57
as I said above, it's fetch + merge12:58
do you have local history?12:58
jargon joined12:58
jargon left12:58
jargon joined12:58
cbreak that you want to merge with the remote?12:58
then it's useful12:58
jluc left12:58
dbolser cbreak: ultimately, I want multiple repos in an unknown state (but should be clean) to switch to a given branch (common to all repos) and to pull that branch.12:58
cbreak why pull?12:58
KimHansen left12:58
dbolser cbreak: because I'm dumb :-)12:58
cbreak then don't pull12:58
dbolser ok12:58
j0ran joined12:59
cbreak first, fetch12:59
that'll give you the state on the remote12:59
dbolser so I'd cd repox, fetch branch r, checkout r, cd ..12:59
cbreak then check out the branch you want12:59
rudisimo joined12:59
cbreak then git reset --hard12:59
dbolser cbreak: oooh12:59
cbreak to the branch you want12:59
dbolser can't I try a merge first?12:59
cbreak that'll nuke all local changes away without a trace12:59
why waste time with a merge?12:59
dbolser I mean, I'm assuming the repo is clean... but who knwos what user x has been up to13:00
cbreak also, fetch is like "git fetch remotename"13:00
don't write a branch13:00
dbolser I'd rather try to merge, and if I can't, bail and suggest git reset --hard13:00
SonicX left13:00
TD left13:00
cbreak dbolser: if the user is dumb enough to have local changes, then he deserves to lose them when using such a script13:00
dort joined13:00
roelmonnens left13:00
dbolser cbreak: yes in theory, but in practice that user could be me, so I'm not so harsh ...13:00
cbreak dbolser: merging is never something you should even think of trying to do automated, it is DESIGNED to fail13:00
dbolser cbreak: right13:01
cbreak the result MUST be verified by a human13:01
roelmonnens joined13:01
dbolser that's what I told my boss man13:01
cbreak (or unit tests)13:01
dbolser but he said ... meh...13:01
CussBot left13:01
mamarley left13:01
cbreak merges can silently fail, and git won't notice, but the result would be invalid code13:01
gua_ould left13:01
dbolser cbreak: OK, basically I want to let the user know that merge failed... what will happen if I just fetch and co?13:01
cbreak no merge.13:02
dbolser (assuming that a merge would fail if I tried)13:02
cbreak fetch will get all remote history13:02
and checkout will switch to a branch13:02
sgambino joined13:02
dbolser cbreak: but what state is the workign directory?13:02
cbreak if it existed locally, then that'll be used13:02
CussBot joined13:02
mamarley joined13:02
cbreak the working directory state will not be changed by the fetch13:02
geekbri joined13:02
cbreak if the user was on a different branch, then checkout will change it13:02
dbolser yup13:02
cbreak if he was on that branch, then nothing will change13:02
no changes will be removed13:02
no remote changes will be added13:03
Sabbath left13:03
cbreak that's what the reset --hard @{u} part will do13:03
it will nuke away all local commits13:03
dbolser cbreak: and if there are changes in the wd that would get clobbered by the checkout will fail?13:03
cbreak and all local uncommitted changes13:03
dbolser: yes13:03
the changes will just stay in the working dir13:03
until the reset --hard13:03
aarapov left13:04
CorySimmons joined13:04
amikiri joined13:04
skyUnical joined13:04
jimmyy joined13:04
jluc joined13:04
SonicX joined13:04
aarapov joined13:04
dbolser cbreak: so my thought now is, ... for each repo r, cd r, git fetch branch/x, if git checkout branch/x is ok, cd .., else, barf ?13:04
adyromantika|AFK left13:04
amikiri left13:04
cbreak no13:04
read what I wrote above :/13:04
ninsei joined13:04
ninsei left13:04
cbreak fetch remotes, NOT branches13:04
checkout does NOT get remote history13:05
welly joined13:05
tokik left13:05
cbreak reset/merge/rebase/... will get remote history into the local branch13:05
all in different ways13:05
dbolser ok, so fetch is called without any arguments13:05
cbreak no13:05
tgkokk left13:05
cbreak it's called with the remote name as argument13:05
dbolser oh right ;-)13:06
cbreak probably origin, but it's user customizable13:06
dbolser sorry13:06
yes13:06
ninsei joined13:06
cbreak you can just git fetch --all13:06
ninsei left13:06
dragon3_ joined13:06
dbolser so I fetch, attempt to switch, if switched, OK, else barf?13:07
joki left13:07
cbreak switch?13:07
ninsei_ left13:07
dbolser switch branch by calling checkout13:07
cbreak sure.13:07
Internet13 left13:07
cbreak that will not give you any remote history though13:07
paulweb515 joined13:07
nnyk_ left13:08
ninsei joined13:08
dbolser because I haven't merged?13:08
cbreak (unless the branch didn't exist, in which case it will be created from the remote history)13:08
[14:05:13] <+cbreak> checkout does NOT get remote history13:08
[14:05:40] <+cbreak> reset/merge/rebase/... will get remote history into the local branch13:08
dbolser cbreak: when you said that, I thought you meant that so long as I didn't fetch first, co wont get remote history, but if I fetch then co, I'm good (ovbs. I read wrong)13:09
nnyk_ joined13:09
dbolser ok, when (if at all) can a merge fail silently?13:09
or will it always barf if there are conflicts?13:09
binnisb left13:09
dbolser exit non 013:09
cbreak when the merge result is a failure13:09
and git doesn't notice13:09
cjwilburn joined13:09
dbolser oh, failed code?13:09
cbreak because git doesn't care about the semantics of the code13:10
tmcmahon joined13:10
dbolser that I'm putting back on the user ;-)13:10
Internet13 joined13:10
cbreak conflicts are never silent13:10
incorrect results are.13:10
dbolser cbreak: ty13:10
I'll paste my script in a minute if you don't mind13:10
cbreak if you paste into this channel, I'll kick you :)13:10
use a pastebin :D13:10
dbolser haha13:10
Zebroid joined13:11
binnisb joined13:11
dbolser User reg. : Nov 01 09:07:11 2004 (9 years, 18 weeks, 5 days, 04:04:39 ago)13:12
dbolser pastes in chan anyway13:12
cbreak you never know... :)13:12
noxd left13:12
dbolser ;-)13:12
grumbel_ dbolser, be aware that git reset --hard will not remove untracked files / directories though13:12
decotii joined13:13
joki joined13:13
jimmyy left13:13
omegahm left13:13
moritz git clean does that, with the appropriate options13:14
Flowinho left13:15
roelmonnens left13:15
dreiss joined13:15
Zebroid left13:16
polyzen joined13:16
dik_dak joined13:16
ZujkisNx_ left13:17
rfoust joined13:17
SonicX left13:17
chris_thomson joined13:18
crazydiamond joined13:18
paolooo left13:19
nnyk_ left13:19
tmcmahon left13:21
bwaxxl joined13:22
Gavrisimo joined13:22
bwaxxlbwaxxlo13:22
bwaxxlo Would anyone recommend on using git for a static website?13:23
bremner bwaxxlo: well, as long as you understand the limitations. see !deploy13:24
gitinfo bwaxxlo: Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html13:24
cbreak as long as it's mostly code.13:24
bwaxxlo bremner: mostly for a simple website for one of our clients13:24
they update it constantly. We have numerous folders for backups, etc etc13:25
I don't think it's an efficient way to manage the site's data13:25
gnugnu9 left13:26
Sly1986 joined13:26
chris_thomson left13:26
bremner bwaxxlo: also be aware of !binaries13:26
err, whatever the bot trigger is, git is not so good at versioning large binary blobs (nothing is _really_ good at it, afaik)13:27
bwaxxlo cheers, trying to check this out13:27
JerryT left13:27
foredoomed joined13:27
bwaxxlo Oh, so if I'm managing static html sites, it's probably not good?13:27
gnugnu9 joined13:28
bremner html is fine. e.g. large video files not so much13:28
achadwick joined13:28
dbolser It's so ugly, I'm afraid to paste... https://gist.github.com/dbolser/946490913:28
grumbel_ bwaxxlo: you should also take care to not accidently expose the .git directory13:28
luxgeek joined13:29
bwaxxlo grumbel_: to avoid people copying it?13:29
grumbel_ yes, or to access sensitive data with http://yoursite/.git/...13:30
_tpavel left13:30
gua_ould joined13:31
sparr left13:31
dbolser should I use GIT_DIR in my script, or just check it's unset?13:32
Vinnie_win joined13:32
simesy joined13:33
knownasilya joined13:33
jonatasnona joined13:33
asQuirreL joined13:34
sdouglas joined13:34
drodger left13:34
Error404NotFound left13:34
drodger joined13:34
binnisb_ joined13:35
m0ltar left13:35
binnisb left13:35
binnisb_ left13:35
omegahm joined13:35
edgy360 joined13:35
Nazca__ left13:35
binnisb joined13:35
AaronMT joined13:36
Error404NotFound joined13:36
torste are git add * and git add . the same?13:36
shuaib joined13:36
Gizburdt left13:37
dbolser torste: I think . will recurse13:37
nixfloyd left13:37
dbolser * prolly won't13:37
my script is buggy...13:37
simesy left13:37
mourest left13:38
Nazca__ joined13:38
Foldager joined13:39
CorySimmons left13:39
Vampire0_Vampire013:39
Gizburdt joined13:39
acidjnk22 joined13:40
acidjnk left13:40
IrishPrime joined13:40
acidjnk22acidjnk13:40
Vampire0 dbolser, torste: also * will not catch files starting with . because Bash expansion skips dot-files for *13:40
Not sure if . will skip them also, I don't think so13:40
binnisb left13:41
andr3a joined13:41
binnisb joined13:41
mepl joined13:42
Guest41699ozymandias13:42
matteo left13:42
ozymandias left13:43
ozymandias joined13:43
buffal0 joined13:43
rchavik left13:43
buffal0 left13:43
mepl can I specify a user name when I commit or push?13:43
buffal0 joined13:44
hyperair joined13:44
ToxicFrog mepl: those are two very different things.13:44
mepl: when commiting, it takes the username from your git configuration, or (if you are amending) from the commit that you are amending.13:44
arietis joined13:44
ToxicFrog When pushing, it takes it from the URL of the remote you're pushing to, if applicable, but this is used only for authentication - it doesn't affect authorship of the commits you're pushing.13:45
hydrajump left13:45
LuxuryMode joined13:45
Dougie187 joined13:45
torste what is the safest way to delete a commit?13:45
souther joined13:46
ToxicFrog torste: what do you mean by "delete"?13:46
MindfulMonk joined13:46
ToxicFrog torste: !revert might be helpful to you.13:46
gitinfo torste: That's a rather ambiguous question... options: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard uncommitted changes in the working tree [git reset --hard]; c) undo committing [git reset --soft HEAD^]; d) restore staged versions of files [git checkout -p]; e) move the current branch to a different point(possibly losing commits)[git reset --hard $COMMIT]?13:46
Guest7138 left13:46
lov torste: orbital bombardment13:47
I suppose it depends on who you are making safe13:47
matteo joined13:48
lov are you making the surviving population safe from your commit?13:48
matteo left13:48
matteo joined13:48
m0ltar joined13:48
mepl ToxicFrog: thank you but I do not believe you answered my question, can I change the name that is being used?13:48
ToxicFrog mepl: being used for what?13:48
You asked about two totally different things.13:48
mepl my commit13:49
Error404NotFound left13:49
Guest42686 left13:49
mepl git commit --author="Martin" -m "comment", is this the proper way to go?13:49
Kayra joined13:49
jperry joined13:49
moritz no, author should be of the form Firstname Lastname [email@hidden.address]13:50
livingstn joined13:50
ToxicFrog mepl: there is no --author option, unless that was added in a more recent version than I have - it takes authorship information from the user.name and user.email settings.13:50
moritz --author has existed for ages13:51
ToxicFrog Then I have a bug to file against the documentation.13:51
neo1691 joined13:51
ToxicFrog ...or perhaps I'm just an idiot this morning.13:51
reskp left13:51
ToxicFrog I blame DST.13:51
mepl Ok, excellent. ToxicFrog: no worries, were all human13:52
ToxicFrog mepl: ignore everything I said and listen to moritz13:52
skorgon left13:52
torste ToxicFrog: lets say I do a commit -m "main function done", then I realize I have missed one line, so I change that too, how do I proceed, I dont want two commits that are identical (not a practical example)13:52
moritz torste: you 'git add' your changes, and then type git commit --amend -C HEAD13:52
vmiklos left13:52
moritz that rewrites the commit, so only do that if you haven't pushed it yet13:53
jperry left13:53
mepl can I change username of a pushed commit? Or is it to late13:53
jimmyy joined13:53
torste moritz: ok, good13:53
thx13:53
zumba_addict joined13:53
mourest joined13:54
dglambert joined13:54
Kayra left13:54
jimmyy left13:54
moritz mepl: if others have pulled that commit, rewriting public history is a huge hassle13:54
!rewrite13:54
gitinfo Rewriting public history is not recommended. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum13:54
vmiklos joined13:54
ni__ joined13:54
reskp joined13:54
jperry joined13:54
dort left13:55
jimmyy joined13:55
Raging_Hog left13:55
jperryGuest3817713:55
edgy360 left13:55
noxd joined13:55
lindenle joined13:56
dsdeiz left13:56
arif-ali joined13:57
skorgon joined14:00
mepl moritz: can I block a name for being used as author?14:00
crazydiamond left14:00
arietis left14:01
ethlor joined14:01
mizu_no_oto joined14:01
moritz mepl: you could reject pushes with specific author names in a hook14:01
_ikke_ That's the only way14:01
arietis joined14:02
thierryp joined14:02
adac joined14:03
adac how can I clone the latest tag guys?14:03
aarapov left14:03
Dougie187 adac: clone the repo. And checkout the latest tag.14:03
adac Dougie187, ok I see14:04
yacks left14:04
_ikke_ git clone -b <tag> for short14:04
adac thanks guys14:04
_ikke_ Note this will land you in a detached HEAD14:04
SorenHolm left14:05
eletuchy left14:05
eletuchy joined14:05
mizu_no_oto left14:05
tmcmahon joined14:06
craigp joined14:06
silverstripe joined14:06
ni__ left14:07
ni__ joined14:08
tmcmahon left14:08
el3ctron joined14:08
grohne joined14:08
grohne left14:08
afuentes joined14:09
JerryT joined14:09
lindenle left14:09
binnisb_ joined14:09
craigp_ left14:09
crazydiamond joined14:09
polyzen left14:09
eletuchy left14:10
tokik joined14:11
Zebroid joined14:12
binnisb left14:12
aarapov joined14:13
Parnic left14:13
shuaib left14:14
harish_ joined14:14
jaequery joined14:15
delboy1978uk joined14:15
kongthap if i used "git rebase -i" and i wanna cancel (exit from the edit screen without re-apply) how to do that?14:15
aarapov left14:15
tomengland joined14:16
Parnic joined14:16
Zebroid left14:16
kongthap i type :q git still re-apply all commits14:16
el3ctron left14:17
mizu_no_oto joined14:17
delboy1978uk i seem to have a submodule which isnt installing, [submodule "jquery-browser-fingerprint"] path = /js/jquery-browser-fingerprint url = git://github.com/carlo/jquery-browser-fingerprint.git. i should theoretically just git submodule init and git sobmodule update, right?14:17
sparr joined14:18
GoZoner joined14:18
skyUnical left14:19
bremner kongthap: delete all the lines14:20
hesco joined14:20
tomengland left14:20
Patrouss joined14:21
bwreilly joined14:21
thierryp left14:22
ojacobson joined14:22
thierryp_ joined14:22
Patrouss Hi there, I'm experiencing a strange issue with gitolite. Is this a good place to ask help about gitolite configuration on my server?14:23
kongthap bremner, i thought delete all the lines mean to drop those commits14:23
ojacobson Patrouss: here, #gitolite; !ask14:24
gitinfo Patrouss: Yes, it's okay to ask questions here.... in fact, you just asked one! ;-) Pretty much any question is fine. We're not terribly picky, but we might be asleep. Please be patient and you should get an answer soon.14:24
binnisb_ left14:24
delboy1978uk1 joined14:25
kongthap after rebasing with -i, and use "edit" option, this is result http://pastie.org/8903784 is it normal ?14:25
bremner kongthap: read the full text in the git-rebase-todo buffer14:25
Patrouss Thx I'll ask here and see if I can get an answer :)14:25
kongthap bremner, ok14:25
bwreilly left14:26
beautifulmind left14:26
n-st joined14:26
moritz kongthap: looks like a pretty normal conflict to me14:26
!eek14:26
gitinfo [!eekaconflict] Merge conflicts are a natural part of collaboration. When facing one, *don't panic*. Read "How to resolve conflicts" in man git-merge and http://git-scm.com/book/ch3-2.html#Basic-Merge-Conflicts then carefully go through the conflicts. Picking one side verbatim is not always the right choice! A nice video explaining merge conflicts: https://www.youtube.com/watch?v=zz7NuSCH6II14:26
moritz (though in a rebase, you do git rebase --continue instead of git commit after you've resolved them)14:26
delboy1978uk left14:26
_echelon_ joined14:27
Patrouss So my git server is working great, I also have gitolite installed on the server to manage the configuration via a local repository. Everything was going fine until we changed the user git on the server on another partition to get more space for the repos. With users that were previously added, everything is still working well. But the issue is taht now when I push the gitolite repository, the public keys are still going in the good fo14:27
kongthap moritz, i use "edit" on only one line i did commit --amend and rebase --continue but seems like my last two commits have not been re-applied, what's wrong?14:28
jagob left14:28
binnisb_ joined14:28
Patrouss arren't added in the .ssh/authorized_keys anymore in the # gitolite start #gitolite end section!14:28
_ikke_ seems something wrong with the hooks14:29
moritz kongthap: dunno14:29
renatow_ joined14:29
moritz kongthap: it might help if I saw more output (like git log before and after the rebase, and the commands you actually typed, in correct order), though I can't guarantuee it14:29
_echelon_ hi there. I will like to take part in this year gsoc 2014: Pack bitmap support for libgit2. i have already downloaded the source code and gone via some of them but don't know how to continue. Please can anyone help me with direction?14:29
moritz kongthap: are you on the branch that you wanted to end up in? or rather in a detached head?14:30
Patrouss _ikke_: I'll look at what I can get from the hooks directory in the .gitolite directoy14:30
moritz _echelon_: maybe ask the libgit2 developers?14:30
Purveyor left14:30
Dudi left14:30
delboy1978uk1 whebn using git submodule add [URL], is there a way to say where to put the submodule? it dumped it in my site root14:30
EminenceHC joined14:31
Dudi joined14:31
goTAN left14:31
moritz delboy1978uk1: yes. man git-submodule14:31
gitinfo delboy1978uk1: the git-submodule manpage is available at http://jk.gs/git-submodule.html14:31
becks__ joined14:31
_echelon_ please moritz, how do i get in contact with them cos i just saw their names on the project list but dont know how to get to them.14:31
kongthap moritz, i got merge conflic, so must edit the file again, but i don't understand the system message "make them as resolved using git add" just edit the conflic then use git add filename, then commit --amend again as normal or what else to do ?14:31
delboy1978uk1 thanks guys :-)14:31
ojacobson Patrouss: how, exactly (commands, diffs) did you change the git user?14:32
binnisb joined14:32
sdouglas left14:32
gumnos joined14:32
renatow left14:32
Patrouss ojacobson: good question, it's the network admin who made the changes ;)14:32
ojacobson gitolite largely uses $HOME to find its own brains, so if you moved the user's homedir *and* updated passwd to match (usermod, etc) then the change should have been transparent14:32
Do you have a non-gitolite user on the same host?14:32
moritz _echelon_: I typed 'libgit2' into the search engine of my choice (duckduckgo.com), and the very first hit is a mailing list14:32
Patrouss ojacobson: yes I do, i'm logged on the server via Putty with my own user14:33
gumnos Is there an easy way to remember the last branch I was on? I find myself on a given branch, flipping over to master and then wanting to merge with the one I was just on. Vim uses the "#" filename to refer to the previous file. Any analog in git?14:33
delboy1978uk1 awesome that worked perfect :-D14:33
moritz kongthap: no, after the 'git add' you run 'git rebase --continue', not 'git commit ...'14:33
_echelon_ thanks moritz14:33
moritz gumnos: iirc there's git checkout -14:33
or you can look into the reflog14:34
simesy joined14:34
moritz dunno if git-merge also understands -14:34
gumnos hm...is there a name for "-"? (searching "git help checkout" has a bajillion "-" characters in it)14:34
ojacobson moritz: it does14:34
gumnos: man git-merge, man git-checkout14:34
gitinfo gumnos: the git-merge manpage is available at http://jk.gs/git-merge.html14:34
gumnos: the git-checkout manpage is available at http://jk.gs/git-checkout.html14:34
raccoon_ left14:35
ojacobson it doesn't have a name of its own, \b-\b is a good approximation though14:35
like so much of git's UI, it's special cased in some commands, rather than being part of git's revision language14:35
raccoon_ joined14:35
Leoneof joined14:35
thiago joined14:35
BadProphet joined14:35
eletuchy joined14:36
binnisb_ left14:36
Ozch joined14:37
Patrouss ojacobson: what do you exactly mean by updated passwd to match (usermod, etc) ?14:37
jaequery left14:37
rgr left14:37
ojacobson Patrouss: the $HOME env var is initialized by ssh using pam, which looks in your user database to figure out what value it should have. Conventionally, that's /etc/passwd, which can be edited with `usermod`.14:37
gumnos hrm. Was this (semi)recently added? My 1.7.10.4 on Debian doesn't seem to list that "-" feature14:37
ojacobson On linux, getent passwd <username> will return the entire user record14:38
ErKa joined14:38
ojacobson which should tell you what the user's homedir actually is14:38
simesy left14:38
blackmesa left14:39
agenteo joined14:39
JakePee From the command line how do I only display the overview of a commit14:39
agenteo left14:39
osse JakePee: git show -s commit14:40
_ikke_ JakePee: git show <hash>14:40
osse JakePee: or git log -114:40
elbeardmorez joined14:40
osse hmm14:40
JakePee Sorry, particularly looking for a filediff overview14:40
gumnos but at least those online pages that ojacobson had gitinfo show specify that I can use "@{-1}" instead.14:40
_ikke_ git show -p <commit>14:40
hobodave joined14:40
nnyk_ joined14:41
eletuchy left14:41
Patrouss ojacobson: getent passwd git returns me : "git:x:108:116:git version control,,,:/home/git:/bin/bash" I don't know if this can helps?14:41
ojacobson So is /home/git where gitolite's brains actually are, now?14:41
JakePee e.g. YourFirstChangedFile +++-------- +20 -5014:41
osse JakePee: git diff --name-only14:41
ojacobson Or are they somewhere else14:41
osse ehh, now I'm confused14:41
ToxicFrog JakePee: git diff --stat14:41
Patrouss ojacobson: yes the folder .gitolite is within /home/git14:41
gumnos even more strange, I just tested "git checkout -", and it *works*, it just wasn't in Debian's git man pages. Thanks, as that solves my troubles.14:42
JakePee Ah, there we go. Thanks ToxicFrog14:42
mizu_no_oto left14:42
hobodave left14:44
kinigitz joined14:44
it_tard joined14:45
crazydiamond left14:45
_ikke_ osse: It's where you install gitolite14:46
reskp left14:46
_ikke_ osse: But by default it installs in the homedir of the user you create14:46
gabedain_ joined14:47
dsdeiz joined14:48
_ikke__ joined14:48
allouis___ joined14:48
obert joined14:48
mribeirodantas joined14:49
osse FW: ojacobson14:49
_ikke_ arg, autocomplete fail again14:49
JTF195 left14:49
ahammond left14:49
nfk left14:49
knigitz left14:49
goTAN joined14:49
tmart left14:49
Klumben left14:49
dserodio left14:49
ConstantineXVI left14:49
raz left14:49
osse JakePee: if you want the diff associated with a particular commit then git show <commit> is what you want14:49
souther left14:49
gabedain left14:49
AlexanderS left14:49
simpleminds left14:49
pinage404 left14:49
stealthii left14:49
joelsmith left14:49
allouis__ left14:49
kini left14:49
MindfulMonk left14:49
xsbeats left14:49
nanotech left14:49
cephalostrum left14:49
Okaria_ left14:49
souther joined14:49
_ikke_ left14:49
neal__ left14:49
offbyone left14:49
simpleminds joined14:49
stealthii joined14:49
amcsi_work left14:49
relipse left14:49
jaeckel left14:49
mutex left14:49
rath left14:49
Okaria_ joined14:49
dserodio joined14:49
lopezt joined14:49
lopezt hi guys14:49
anyone familar with git submodules and merging?14:49
coasterz left14:49
koda joined14:49
homer91 joined14:49
ojacobson Patrouss: so what does "changed the git user" actually mean, then?14:49
mutex_ joined14:49
twisted` left14:49
danemacmillan left14:49
Klumben joined14:49
chriswk___ left14:49
sohail joined14:49
stealthii left14:49
stealthii joined14:49
Okaria_ left14:49
Okaria_ joined14:49
stealthii left14:49
stealthii joined14:49
sohail left14:49
sohail joined14:49
dserodio left14:49
dserodio joined14:49
stealthii left14:49
stealthii joined14:49
syst3mw0rm left14:49
allouis___allouis__14:49
johntitor2036 left14:49
ConstantineXVI joined14:49
MindfulMonk joined14:49
neal__ joined14:49
syst3mw0rm joined14:49
nanotech joined14:50
johntitor2036 joined14:50
AlexanderS joined14:50
chriswk___ joined14:50
sdouglas joined14:50
matheus23 joined14:50
Kneferilis left14:50
bambams_ joined14:50
felixjet joined14:50
offbyone joined14:50
homer91 left14:51
ojacobson "I don't know what changed, but now it doesn't work" is singularly difficult to diagnose over the internet :)14:51
VaticanCameos joined14:51
VaticanCameos Is it possible to clone a github wiki page if I have forked the repository?14:51
ahammond joined14:51
Patrouss ojacobson: By "changed git user" I mean that we moved it from /dev/sda1 ti /dev/sdb1 to get more space for the repertories14:51
obert_ left14:51
felixjet__ left14:51
yacks joined14:51
cephalostrum_ joined14:51
razZzz joined14:51
razZzzraz14:51
joelsmith joined14:51
blackmesa joined14:51
rath_ joined14:51
rath_rath14:51
j0ran left14:52
Kayra joined14:52
ArSn left14:52
ojacobson moved it how?14:52
Is /home/git now a mount point?14:52
Is there a symlink somewhere?14:52
Did you move the whole of /home?14:52
observ3r joined14:52
decotii left14:52
bwreilly joined14:52
decotii joined14:53
flazzflazz_gone14:53
jaeckel joined14:53
twisted` joined14:53
raz left14:53
raz joined14:53
gumnos left14:53
amcsi_work joined14:53
fr33 joined14:53
xsbeats joined14:53
DoniRS left14:53
Kayra left14:53
kini joined14:54
skyUnical joined14:54
tmart joined14:54
ArSn joined14:54
DoniRS joined14:54
relipse joined14:54
godgodgodgo joined14:54
Patrouss ojacobson: It doesn't seem to be a symlink14:55
ojacobson: If we have changed the git user password, may it have cause this issue?14:56
ojacobson Given that gitolite doesn't use password authentication, it's unlikely14:56
pinpin404 joined14:56
reskp joined14:57
binnisb left14:58
_ikke__ the gitolite command has options to fix the hooks14:58
cvanball joined14:58
Patrouss _ikke__: Do you have an idea of what it looks like?14:58
thedodd joined14:58
OnkelTem left14:59
nnyk_ left14:59
sburgess joined15:00
rgr joined15:00
OnkelTem joined15:00
binnisb joined15:00
jaequery joined15:03
jaequery left15:03
jaequery joined15:04
jaequery left15:04
shinnya joined15:04
SorenHolm joined15:04
infynyxx joined15:04
_ikke__ Patrouss: gitolite setup15:04
j0ran joined15:04
jaequery joined15:04
nnyk_ joined15:04
_echelon_ left15:04
crazydiamond joined15:05
weiyang left15:05
pduin left15:05
roelmonnens joined15:05
root___ left15:05
starkhalo joined15:06
bobkosse left15:06
pduin joined15:06
_echelon_ joined15:07
tokik left15:07
ciampix joined15:07
silverstripe left15:07
cjwilburn left15:08
reskp left15:09
senj joined15:10
Patrouss _ikke__: gitolite is setup on the server but I don't have access to gitolite command. I verified that it is well install by doint sudo apt-get install gitolite and it says it is already isntalled15:11
Dudi left15:11
reskp joined15:12
_ikke__ gitolite setup also fixes hooks on repos15:12
_echelon_ left15:12
Zebroid joined15:12
_ikke__ And other things15:12
Patrouss: can you login as the git user?15:13
ie, su - git?15:13
Patrouss _ikke__: yes15:13
jaequery left15:13
stodan left15:13
_ikke__ Then login as git, you should be able to execute the gitolite command there15:13
Patrouss _ikke__: I'm now as git@15:13
_ikke__ ok15:14
try gitolite15:14
Patrouss gitolite: command not found15:14
_ikke__ hmm15:14
ok15:14
If you check the homedir of the git user, do you see any gitolite specific files?15:15
ni__ left15:15
Patrouss _ikke__: It's the network admin who installed gitolite and I think he run the setup from its own account on the server15:15
flazz_goneflazz15:15
Patrouss in this guy user files I can see some .gitolite installation specific files15:15
binnisb left15:16
john2x left15:16
bremner the gitolite would be installed in e.g. /usr/bin by linux distros15:16
Zebroid left15:17
dglambert left15:17
binnisb joined15:17
john2x joined15:17
Patrouss bremner: I can't see anything specific to gitolite in /usr/bin15:18
jds joined15:18
bremner Patrouss: do you know how gitolite was installed?15:18
Patrouss 1 sec15:18
bliker joined15:18
perlpilotPerlJam15:19
cvanball left15:19
mizu_no_oto joined15:19
Patrouss bremer: the person who isntalled gitolite followed these steps : http://kaibehrends.org/ubuntu-git-server-setup/#setting-up-the-server15:19
cff left15:19
lite_ left15:20
hkon__ left15:20
moritz maybe that person should be asking the questions here :-)15:20
maestrojed joined15:21
GT4066 joined15:21
bremner Patrouss: it's probably gitolite-v2, so work from the gitolite v2 docs15:21
maestrojed left15:21
goTAN left15:22
Patrouss bremner: thx I will try to do something with the doc ;)15:22
CorySimmons joined15:22
axsuul joined15:23
Xethron left15:23
Nickeeh left15:23
foredoomed left15:23
Nickeeh joined15:24
Patrouss Just a last question in witch chmod should i put .ssh folder on git user?15:24
bremner 070015:25
Patrouss ok thx15:25
m0ltar left15:25
srji left15:25
hholtmann joined15:26
srji joined15:26
dougsland left15:26
maestrojed joined15:27
SorenHolm left15:27
rath left15:27
rath joined15:28
rath left15:28
dogarrhea_ joined15:29
dogarrhea_ 'merge' is not possible because you have unmerged files.15:29
lol i'm tired of git error messages.15:29
blackmesa left15:29
nnyk_ left15:29
Forkk_Forkk15:29
GoZoner left15:29
_ikke__ dogarrhea_: You are already in a merge15:29
dsdeiz left15:29
hholtmann left15:31
foist joined15:31
omegahm left15:32
Kneferilis joined15:32
aarapov joined15:32
foist Any idea why this doesn’t work? ’git submodule add https://bitbucket.org/ns9tks/vim-l9 _vim bundle/vim-l9/‘ It says repo not found.15:32
sdouglas left15:33
armyriad left15:33
ojacobson foist: the URL is not a git repo: $ git ls-remote https://bitbucket.org/ns9tks/vim-l915:33
fatal: repository 'https://bitbucket.org/ns9tks/vim-l9/' not found15:33
cvanball joined15:33
ojacobson dig around the bitbucket UI, the *correct* repo URL is somewhere in there15:33
(the web UI is a view of the repo, not the repo itself)15:33
armyriad joined15:33
_ikke__ git submodule add takes two parameters, not 315:34
(two positional arguments)15:34
simesy joined15:34
kballou joined15:34
ni__ joined15:35
foist _ikke__: woops, that was a typo.15:35
_ikke__ usually the repository urls and with .git15:36
Patrouss Little question about linux in general, in my .gitolite.rc I can see than some local variable are defined based on $ENV{HOME} but if I do echo $ENV{HOME} in my terminal, this var seems to be null. echo $HOME is allthough pointing on /home/git, can it be a base of the issue you think?15:36
foist ojacobson: Is it possible they only have hg on, and not git?15:36
_echelon_ joined15:36
ojacobson Patrouss: .gitolite.rc is perl15:36
moritz that would just be $HOME on your shell15:36
ojacobson $ENV is a perl hash containing all the environment vars; in bash, those vars are exposed as normal vars15:36
Patrouss Ok I understand15:36
eletuchy joined15:36
jiku left15:36
ojacobson foist: It is nearly certain that they do15:37
foist ojacobson: because I only see hg repo URLs15:37
hholtmann joined15:37
_ikke__ That's possible15:37
ojacobson if the project is using mercurial it's nearly definitionally not using git15:37
and vice versa15:37
_ikke__ It's either a git repo, or a hg repo15:37
gabedain_ left15:37
sdouglas_ joined15:37
ojacobson You can map from one to the other, but neither git, hg, nor bitbucket does that automatically15:37
foist Can I get that repo to play nice with my submodules?15:37
goTAN joined15:38
jcvfen joined15:38
cjwilburn joined15:38
foist Ah, it's on GH anyways. Thanks, guys.15:38
ojacobson The git-remote-hg helper may be able to do something15:38
hobodave joined15:38
simesy left15:39
MattMaker joined15:39
Gizburdt left15:40
el3ctron joined15:40
adamm_ joined15:40
eletuchy left15:41
adamm_ left15:42
adamm_ joined15:42
jperry joined15:42
adamm left15:42
noxd left15:42
adamm_adamm15:42
yacks left15:43
Raging_Hog joined15:43
Parnic left15:44
Mitchbones joined15:45
jimmyy left15:45
goTAN ok so when I create a new branch via git checkout -b mybranch and change some data and then push it via git push origin. does this mean that now there is a new branch on the remote other people can use?15:45
torjus joined15:46
Trudko joined15:46
jaequery joined15:46
LuxuryMode left15:46
thiago goTAN: if git push told you that it created a new branch, that means there's a new branch15:46
goTAN well I am scared to do it so I thought its better to ask first15:47
axl_ joined15:47
sburgess goTAN: yes, but if you want to be more specific, qualify the branch you are pusing via git pus origin mybranch:mybranch15:47
zoso left15:47
sburgess then you know other people should be able to see origin/mybranch15:48
goTAN ok so when pther people do a git fetch they also can see the created branch?15:48
acidjnk left15:48
pikaren joined15:48
sburgess if they do a git fetch on the remote that is your repo15:48
pfg joined15:48
sburgess git fetch --all #gets all remotes15:48
chuck54 joined15:48
sdouglas_ left15:48
jperry left15:48
goTAN uh ok15:48
sburgess they might have multiple remotes, one for your repo, one for theirs15:49
sdouglas joined15:49
mribeirodantas left15:49
axsuul left15:49
LuxuryMode joined15:50
goTAN but what does this mybranch:mybranch mean?15:50
xlinkz0 joined15:50
goTAN it creates the branch under origin15:50
?15:50
thiago goTAN: that pushes mybranch to the remote named mybranch15:50
I mean, to the remote, with a branch named "mybranch"15:50
sburgess Yeah, it specified the local and remote names for the branch15:50
git push REMOTE localname:remotename15:51
rgr left15:51
goTAN well but I just created the local branch, I just want to move it not the remote15:51
ahh15:51
I got it15:51
damn the name convetion are a bit confusing15:51
aarapov left15:51
Ozch left15:51
jargon left15:52
whitby joined15:52
goTAN but I am getting close to get all the branching stuff ;)15:52
sdouglas left15:54
_ikke__ goTAN: git push origin, depending on the push.default setting, only pushes existing branches15:54
joelm joined15:54
GT4066 left15:54
markovh left15:55
jaequery left15:56
saikrishna_ joined15:56
lpapp joined15:56
lpapp hi, what is the best way of squashing certain commits in a feature branch for inclusion into another, like the main?15:57
the commits do not come in a series because I kept merging back from the main branch, so there are gaps among them.15:57
neo1691 left15:57
hyperair left15:57
osse lpapp: rebase -i, then reorder the commits15:57
lpapp is that the only way or there is a more convenient squash option for it?15:58
sdouglas joined15:58
sburgess and you can leave out the ones you dont want with git rebase -i15:58
_ikke__ lpapp: Not when they are not consecutive15:59
Misan left15:59
lpapp :-(15:59
osse lpapp: you have to tell git which commits you want to move. Git will not detect it for you. rebase -i is the only way I know15:59
jbalsano joined15:59
_ikke__ lpapp: What is wrong with rebase?15:59
"I want to drive in this nail. Is there any other way then using a hammer?"15:59
thiago nailgun16:00
:-)16:00
dort joined16:00
osse thiago: then you have to use a different nail16:00
ehmatthes left16:00
joemcgill joined16:00
rob_w left16:00
osse unless the nail you already have fits the nailgun16:00
roelmonnens left16:00
Parnic joined16:01
vurma left16:01
roelmonnens joined16:01
lpapp _ikke__: I would prefer an option for enumerating the commits, and then I would get a commit message session.16:01
ojacobson You could do it with git cherry-pick --no-commit but that's more or less what git rebase -i uses anyways so16:01
lpapp _ikke__: all this without the workaround of "re-ordering". It should be unnecessary.16:01
Guest84615 left16:02
lpapp it is a workaround extra step, which should not be logically compulsory.16:02
ORiON-- left16:02
osse lpapp: that's basically what rebase does. you can re order and squash in one operator16:02
operation16:02
Gizburdt joined16:02
lpapp osse: yes, rebase does in two steps what an option could do.16:02
(in one step)16:02
cronin joined16:02
cronin is there a way to show the date with git fsck?16:03
osse lpapp: how is it two steps?16:03
ojacobson lpapp: is the point of this "someone should write this for me" or is the point of this "how do I solve my problem" ?16:03
ni__ left16:03
lpapp osse: reorder + squashing. reordering is a fully extra step with the current feature set.16:03
ojacobson if the latter, talking about how much you don't like the solution is only going to drive people to ignore you16:03
osse lpapp: you only have to run rebase once16:03
ojacobson if the former, well, patches welcome. Try the !list. :)16:03
gitinfo [!mailing_list] The mailing list can be reached via [email@hidden.address] You don't need to subscribe to the list, you will always be put in cc on reply. Read archives at http://j.mp/gitlist16:03
lb1a left16:03
_ikke__ lpapp: You *have* to rewrite the history, otherwise those commits would just stay part of it16:04
lpapp ojacobson: I already know about git rebase, etc. I was specifically asking for a more convenient method as written.16:04
pduin left16:04
flazzflazz_gone16:04
_ikke__ rebase is the tool for that16:04
lpapp _ikke__: I really do not see how16:04
ojacobson lpapp: why would you ask here? Not too many git core developers bother with this channel.16:04
Try the !list.16:04
gitinfo [!mailing_list] The mailing list can be reached via [email@hidden.address] You don't need to subscribe to the list, you will always be put in cc on reply. Read archives at http://j.mp/gitlist16:04
osse I would be impressed to see an --option=foo,bar,baz,lol that would be more convenient than moving lines around in a file16:04
quetz joined16:04
lpapp git "squash" sha1 sha2 -m "Done, cool". -> done.16:04
WormDrink left16:04
ojacobson If you don't mind two commands, 'squash' is 'cherry-pick --no-commit'16:05
rgr joined16:05
ojacobson which is what git-rebase uses under the hood anyways16:05
(for squash and fixup, anyways)16:05
chuck54 left16:05
roelmonnens left16:05
osse lpapp: anyway, the way you do it now is: rebase -i, in the editor find the commit you want to move and squash. move the line up to below the other commit. change 'pick' to 'squash' and then you're done.16:05
arietis left16:06
ORiON-- joined16:06
lpapp osse: ojacobson you are saying features cannot be discussed in here?16:06
-osse16:06
_ikke__ lpapp: Can you explain in a bit more detail what you want to achieve?16:06
Neozonz|Disc joined16:06
pfg left16:06
_ikke__ I mean, what the situation is and what the result is you want?16:06
goles Hello, I'm trying to do a subtree pull, (git subtree pull --prefix External/APIClient master --squash) however I'm getting "fatal: 'master' does not appear to be a git repository". What could be going on here? (haven't done this in a while :S)16:06
Neozonz|DiscGuest27916:06
Macaveli left16:07
Gizburdt left16:07
goTAN so I have a origin/master and a origin/develop. now someone added a origin/update. I want to merge this branch into origin/develop and delete it... can I just do git checkout develop; git merge origin/update; git push?16:07
cbreak goTAN: sure.16:07
lpapp osse: I am not asking for that as written.16:07
goTAN cbreak: seriously? so when I am on develop branch the remote branch is origin/develop?16:08
I dont have todo git push origin/develop?16:08
acharlieh joined16:08
lpapp osse: you might be impressed by automatically getting the sha1 by a very short script and supplying that to an option rather than finding 3-4 commits in a few hundred items in a list ...16:08
cbreak goTAN: yes.16:08
if it is auto created16:09
if you already have a develop, then who knows.16:09
arand goTAN: origin/develop is a local "remote tracking branch".16:09
cbreak goTAN: you can find out with git branch -vv16:09
goTAN its created vie git checkout -b branch and then push origin branch:branch16:09
lpapp especially when the list does not even contain author for easy finding, etc.16:09
lite_ joined16:09
_ikke__ lpapp: then do: got cherry-pick -n <hash> <hash> <hash>16:09
osse lpapp: the list doesn't have to be hundreds of items long. it needs only be as long as the the number of the oldest commit you want to change.16:10
pfg joined16:10
cronin i'm trying to recover lost data that occurred yesterday. i had an urgent fix and apparently messed things up. My last commit was on 3/6 and I must have stashed the code or something, committed and then reverted. I'm not 100% sure. What steps can I take to see if I can restore the code that was written on 3/7?16:10
ThomasLocke left16:10
lpapp _ikke__: cherry pick does not squash.16:10
rainmanjam joined16:10
lpapp osse: which is few hundred ...16:10
_ikke__ lpapp: cherry-pick --no-commit does16:10
It applies the commits only to the working tree. You can then commit that, creating a squashed commit16:11
osse lpapp: using your hypothetical method. how would you find the SHAs ?16:11
lpapp osse: I understand you have not met this scenario yet, but I am.16:11
nnyk_ joined16:11
lpapp osse: that is really depending on the case, absolutely.16:11
in my case, it is a simple author check.16:11
osse also, for every squash you did you would have to re-find the SHAs since they would change.16:11
lpapp _ikke__: ok, thanks, will try.16:11
ojacobson lpapp: less "cannot"16:12
atrus cronin: 'git reflog' may help.16:12
ojacobson more "unlikely to lead to any satisfying outcomes"16:12
lpapp seems almost what I was looking for.16:12
cbreak cronin: did you commit the changes you seek?16:12
Gizburdt joined16:12
lpapp the only missing thing about it is inline commit message in the command.16:13
or "in place".16:13
ojacobson lpapp: adding a new git command that wraps cherry-pick and commit is "easy" up to shell scripting, tbh16:13
jceb_ left16:13
Zebroid joined16:13
ojacobson in the time you've spent complaining that git's UI doesn't work the way you want here, you could probably have written the command16:13
ehmatthes joined16:13
ojacobson added it to $PATH16:13
and moved on with life :)16:13
(git's UI is terrible)16:14
cronin atrus: reflag shows my commit on 3/6 and then a commit on 3/9 and a reset shortly after. the commit on 3/9 doesn't show the lost code. cbreak it's possible i stashed it and then lost it somehow during a rest16:14
reset*16:14
Packardnode left16:14
cbreak no16:14
stashes are not lost due to resets16:14
lpapp ojacobson: that is not quite fair...16:14
cbreak they are listed with git stash list16:14
lpapp it is not a one person thing.16:14
tg left16:14
xsbeats is there a way to git clone withouth cd'ing into the directory i want the repo to be cloned it, while also eliminating the need to specify the name of the repo?16:14
ojacobson lpapp: Okay, true, I'm assuming you already know how to write shell scripts (and parse arguments sanely)16:14
lpapp in fact, if you work in a feature branch, and you keep merging back to remain up to date, it is pretty much what anyone needs.16:14
cbreak cronin: if you haven't committed the changes you seek, then you are out of luck, and git can not help you.16:14
ojacobson (that second thing is kind of a question, since shell arg parsing is >_<)16:14
xsbeats s/cloned it/cloned in16:15
lpapp ojacobson: nah, it is not about that.16:15
cronin cbreak: oh i found it! i used gitk --all $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )16:15
lpapp I am telling you this is not a one-person operation.16:15
cronin wow what a relief16:15
lpapp surely, people should not write the same all around for the same scenario.16:15
ojacobson Ah, I see16:15
lpapp of course, anything can be made "work".16:15
ojacobson I'm sorry, I mistook you for someone I could help. I apologize for wasting your time and attention.16:15
cbreak then you did commit it and it should be in the reflog16:15
pfg left16:15
lpapp but if we worked like that, we would get much less thing done in the long run.16:15
Patrouss Little question here, if another user on the git server setup gitolite on its own session in /usr/local/gitolite and I'm administrator on the server, is there a way to aceed to this specific user /usr/local/ folder without having its password?16:16
dmnd joined16:16
lpapp ojacobson: when meeting such scenarios, I usually know how to work it around, but why I come here is to ask if I need the workaround, and if I do, whether it makes sense to make it friendlier.16:16
either way, I will use cherry-pick and commit for now.16:16
cbreak Patrouss: if you're an admin, then you can do anything on that computer without password16:16
without any password other than your own.16:16
Patrouss cbreak: ok but does the folder /usr/local change in function of the user that is logged on?16:17
cbreak Patrouss: but if you're an admin on a computer and normal users can mess up /usr/local, then you should be ashamed of yourself.16:17
lite_ left16:17
cbreak of course not.16:17
ojacobson /usr/local is a normal directory16:17
cbreak the /usr/local directory is one like every other16:17
Zebroid left16:17
Patrouss ok thx ;)16:18
cbreak typically a place where you can install stuff as admin16:18
lite_ joined16:18
lpapp _ikke__: thanks for the no commit hint.16:18
cbreak without overwriting system things that are in /usr/16:18
Exio4 left16:18
LeMike left16:18
aarapov joined16:18
lpapp perhaps I will ask the mailing list about a squash option for cherry-pick.16:18
cvanball left16:18
atn34 joined16:18
skyUnical left16:19
joemcgill left16:19
adac left16:19
neo1691 joined16:20
pfg joined16:20
cbreak it does have -n16:20
Patrouss allright! I'm having an hard time trying to find where gitolite is really setup on the server, when we setup it, we can chose 3 options as cited here : http://stackoverflow.com/questions/13645190/bash-gitolite-command-not-found (changing the way we can acceed to gitolite command after the install) I think I need to say the full installation path to use the gitolite command on my server. i made a locate on gitolite and I found some thi16:20
but I still can't find how to execute gitolite16:21
cbreak Patrouss: why do you want to execute it?16:21
Patrouss cbreak: I would like the repair the hooks16:21
Zebroid joined16:21
srji left16:21
cbreak then you'll have to know how it was installed16:21
atn34 left16:21
cbreak typically, a user is the gitolite user16:22
pheaver joined16:22
atn34 joined16:22
cbreak that user has a ~username/.ssh/authorized_keys file16:22
qsuscs left16:22
cbreak in that file, the required access permissions and the path to the binary is available16:22
lite_ left16:22
papegaaij left16:22
lpapp cbreak: -n is no commit, but I wish to do a squashed commit.16:22
cbreak lpapp: if you cherry pick a bunch with -n, you can then commit all at once, squashing them.16:23
jaequery joined16:23
Patrouss yes I know wich user has setuped it on the server and where is its public key, but as I don't know its password is there a way to still access to the binary ?16:23
dougsland_ joined16:23
lpapp cbreak: yeah, but that is two steps instead of one.16:23
mewm left16:23
cbreak Patrouss: the password is irrelevant16:23
you're admin16:24
WormDr1nk left16:24
cbreak you can use sudo su username16:24
bremner "admin"16:24
cbreak lpapp: correct16:24
lpapp: it can be even more than two steps if you want to cherry-pick a lot16:24
and fix up cherry pick conflicts16:24
and so on16:24
omegahm joined16:25
dragon3_ left16:25
lpapp http://pastebin.kde.org/pqayzub2u16:25
that looks bizarre...16:25
as the end result of the experiment ...16:25
cronin okay, i found my lost code in a commit called "temp commit" but it's apparently not attached to a branch. or at least "branches" is blank in gitk. it has a parent commit though and i have this commits sha1 id. how can i safely apply the code? do i just do git checkout sha1?16:25
Nickeeh left16:26
Zebroid left16:26
arand left16:26
fr33 left16:26
arietis joined16:27
cbreak cronin: just cherry-pick it16:27
cronin: checking it out is not a good idea16:27
cronin: you probably made it, then reset it away or something16:28
it will show up in the reflog too16:28
guzzlefry joined16:28
ngladitz joined16:28
qsuscs joined16:28
cronin cbreak: i see it in reflog. never used cherry-pick... is it just git cherry-pick sha1?16:29
DrShoggoth joined16:29
cbreak yes16:29
Guest279 left16:29
imachuchu joined16:29
lite_ joined16:29
_echelon_ left16:30
aarapov left16:30
yhager joined16:30
lpapp hmm, it seems cherry-pick totally broke the stuff... for instance, I get the "old" .cc suffixes for the files rather than the new .cpp16:31
goTAN is git case sensitive?16:31
lpapp it was renamed during the feature development... I wonder why it gets confused? It happened properly in chronological roder.16:31
shingshang left16:31
cbreak goTAN: yes16:31
neurodrone_ joined16:31
lpapp goTAN: in what sense?16:31
cbreak lpapp: in which order did you cherry-pick?16:31
saikrishna_ left16:31
goTAN strange because I changes a filename from Test.txt to test.txt and there are no changes shown16:31
prophile joined16:32
cbreak lpapp: I am not sure if cherry-pick handles renames... I'd expect it to.16:32
lpapp cbreak: chronological.16:32
cbreak goTAN: it's probably that your filesystem doesn't support it16:32
goTAN: git rm --cached that file, then add it again16:32
lpapp shalatest shamiddle shanewest16:32
cbreak lpapp: in which order?16:32
shinnya left16:32
lpapp sorry, I do not understand the question.16:32
cbreak you should pick the oldest first16:32
did you pick the newest first?16:32
bambams_ goTAN: As a rule on case-insensitive file systems you need to do a double move: Test.txt => test2.txt => test.txt.16:32
cbreak (in topographical order)16:33
lpapp have you seen this post? 16:26 < lpapp> shalatest shamiddle shanewest16:33
guzzlefry if I'm on a branch other than master, and I do git push origin master, does that push the current branch's code to the remote master branch?16:33
cbreak lpapp: nope, never seen. Who's that?16:33
goTAN bambams_: but that doesnt solve the problem in general right?16:33
craigp left16:33
HelperW left16:33
cbreak guzzlefry: no16:33
bambams_ goTAN: Define "the problem"?16:33
lpapp and git status does not show the .cpp files either16:34
cbreak guzzlefry: it pushes the local master to the master on origin16:34
guzzlefry ok, good :)16:34
lpapp this cherry-pick is a nightmare experience so far.16:34
guzzlefry thanks cbreak16:34
lpapp it might be easier to get around to it with git rebase -i16:34
cbreak lpapp: are the files in the working dir?16:34
senj left16:34
lpapp hopefully that preserves renaming properly.16:34
lite_ left16:34
cbreak lpapp: rebase uses cherry-pick under the hood (sometimes)16:34
Patrouss Is that normal that the user git doesnt have acces on mkdir in its own ~ folder?16:34
cbreak it's easier to use for large-scale operations16:34
bambams_ lpapp: Git doesn't do any magic, or guess what you're trying to do. It does what you tell it to. You need to understand what you're doing for it to make any sense.16:34
senj joined16:34
goTAN bambams_: well there is somewhere changing letters like that and I want to have that tracked16:34
cbreak if you want to copy a simple range, cherry-pick will do fine16:34
lite_ joined16:35
lpapp bambams_: that statement does not bring any information for us.16:35
cbreak goTAN: the problem is that you have wrong names16:35
Gizburdt left16:35
cbreak goTAN: so fix them as we told you above16:35
or live with them.16:35
lpapp will try rebase16:35
lpapp I am disappointed cherry-pick cannot get it right16:35
goTAN well I dont have a case sensitive filesystem16:35
cbreak lpapp: It can get it right, probably :)16:36
bambams_ git read-my-mind16:36
cbreak lpapp: chances are you did it wrong16:36
lpapp what is the best way to drop the ongoing cherry-pick?16:36
cbreak but since you didn't tell us what you did, we can only speculate16:36
lpapp git reset --hard HEAD or --abort?16:36
or checkout lastsha1, etc?16:36
cbreak: there is not much to do wrong about it really16:36
cbreak lpapp: you can reset --hard to where you want your current branch to be16:36
lpapp git cherry-pick -n sha1 sha2 sha316:36
and then solve the conflict in the files, and then commit16:36
cbreak lpapp: it's not a contiguous range?16:37
lpapp it is not.16:37
werlley joined16:37
cbreak then it'll be tricky to do that16:37
lpapp that is what I am saying.16:37
cbreak if the commits in between contain the renames16:37
lpapp no16:37
GoZoner joined16:37
lpapp my commits contain the renames.16:37
but cherry-pick just did not get it right, sadly.16:37
eletuchy joined16:37
gua_ould left16:37
cbreak then copying them should copy the rename too, if they are detected16:37
lpapp (and eventually I can reproduce this failure)16:37
cbreak I can recommend that you git config diff.renames copies16:38
that'll tell git to try quite hard finding renames16:38
lpapp the problem is not necessarily that it cannot find the renames.16:39
the problem is that it does not care to ask.16:39
lite_ left16:39
dmnd left16:39
guzzlefry Is there a way to see if git is tracking a directory or it's contents?16:39
s/it's/its16:39
bwreilly left16:39
cbreak care to ask?16:39
lpapp or to be fair, even if it does not ask, it should ship both .cc and .cpp16:39
axl_ left16:39
cbreak why should it ask about anything?16:39
lite_ joined16:39
lpapp but just shipping the old .cc, that is super odd.16:40
cbreak if it detects them, it will perform the rename16:40
if it doesn't detect them, then it doesn't perform it16:40
easy.16:40
it won't ship anything?16:40
what do you mean with ship?16:40
lpapp easily crappy. :-)16:40
ship to the local changes.16:40
cbreak copy?16:40
axl_ joined16:40
cbreak it should do what I told you above16:40
did you have conflicts?16:40
if you have changed the files that were renamed, you will have rename-change conflicts16:41
Guest279 joined16:41
sdouglas left16:41
cbreak so you have to tell git which of the two things you want16:41
hochmeister joined16:41
hochmeister left16:41
lpapp that is the thing, git did not ask for telling.16:41
cbreak (if you want the rename and the change, you have to tell git too)16:41
lpapp as in really.16:41
cbreak ask?16:41
so there were no conflicts?16:41
Patrouss GOT IT!16:41
bambams_ I think he already said there were conflicts.16:41
cbreak so then that explains it.16:41
hochmeister joined16:41
cbreak you just didn't want to keep the renames16:42
(probably)16:42
git status should tell you what kind of conflict it is16:42
Patrouss The user git wasn't the owner of its own ~ folder so doing a chown to give him back resolved the gitolite issue :)16:42
eletuchy left16:42
paulweb515 left16:43
JTF195 joined16:43
paolooo joined16:43
gebbione left16:43
cbreak Patrouss: wonder how that happened.16:44
xlinkz0 left16:44
skyUnical joined16:44
Patrouss cbreak: I really don't know! that is strange16:44
thierryp_ left16:45
ShooterMG joined16:45
ghostlines left16:45
Patrouss Anyway, thank you very much for you time and support :)16:45
Guest279 left16:45
Patrouss Have a good day!16:46
CorySimmons left16:46
danemacmillan joined16:46
athorp joined16:46
lpapp cbreak: as already written a few times, it did not.16:46
and yes, there were conflicts.16:46
cbreak so, what did it do?16:46
lpapp seems the whole cherry-pick stuff is in its childhood for this.16:46
cbreak nah16:46
sdouglas joined16:46
cbreak it works fine for me :)16:46
maybe git just hates you ... :P16:46
Patrouss left16:46
andr3a left16:46
lpapp you mean you renamed files like I do, etc?16:47
atomx joined16:47
pfg left16:48
coasterz joined16:48
ferreum left16:48
cbreak once to test16:48
lpapp I used my branch as a backup, so I did not just do a rename in one commit, but I made several other changes.16:48
cbreak I think I got a rename/change conflict16:48
lpapp still, it happened in chronological order, so git _should_ have this information.16:48
mizu_no_oto left16:48
GoZoner left16:48
chuckharmston_chuckharmston16:49
cbreak so I had to then resolve the conflict by renaming the file16:49
and committing16:49
(after git adding the rename)16:49
but it's been quite some time, so maybe I am forgetting details16:49
Gonzo89 left16:49
lpapp I definitely cannot reproduce that behavior.16:49
Noldorin joined16:50
lindenle joined16:50
lpapp I will go the nasty way, and drop the history altogether16:50
and I will merge files manually ...16:50
dmnd joined16:50
lpapp i.e. I will ignore git.16:51
Nicholas_Rishel joined16:51
Umschwung joined16:51
sdouglas left16:52
saikrishna_ joined16:52
GoZoner joined16:52
crazydiamond left16:53
ninsei_ joined16:53
cbreak works for me16:53
Just tested it.16:53
thevishy left16:54
lpapp show me the test case16:54
bambams_ lpapp: cherry-pick works similarly to a merge. If your current working tree is sufficiently different than the base of the commit you're trying to merge then Git won't be sure what to do. The context surrounding the patches won't line up. You will get conflicts. i.e., I don't know, "fix it yourself."16:55
dmarkham joined16:55
nnyk_ left16:55
dragon3_ joined16:55
lpapp the problem is not for asking resolving conflicts16:55
the problem is that there was no request from git for that.16:55
it took the old file suffices.16:55
Raging_Hog left16:56
hyperair joined16:56
Lemony left16:56
ninsei left16:56
bambams_ I can see Git being unable to do anything if you try to cherry-pick a commit that modifies a file that doesn't even exist in your current tree. I don't know what it does then. If it will checkout the full file from the cherry-picked commit or do nothing.16:57
cbreak lpapp: http://the-color-black.net/dl/temp/git.zip16:57
CorySimmons joined16:57
pfg joined16:57
cbreak lpapp: when I cherry-pick the test branch, the rename gets correctly performed16:58
jbalsano left16:58
hahuang65 joined16:58
mizu_no_oto joined16:58
JosephFerano left16:58
cbreak doesn't even give a conflict16:58
lpapp right, so you did something different than I did.16:59
neo1691 left16:59
lindenle left17:00
lpapp probably the changes are important factors in this scenario17:00
cbreak as I said above: configure rename detection17:00
and watch for conflicts17:00
lpapp as I really only ran git cherry-pick -n sha1 sha2 sha3 | solve conflicts | git add | git status17:01
dragon3_ left17:01
cbreak those are two factors that can make it more complicated17:01
jaequery left17:01
cronin left17:01
bambams_ Interestingly, I renamed, then I changed the file, and then I cherry-picked the change. The change got properly applied to the original file name. No conflicts. O_o17:01
lpapp "original file name"17:01
cbreak lpapp: you have to type git status before solving conflicts17:01
lpapp and that is exactly what you do not want, really.17:01
you want the renamed file.17:01
cbreak otherwise you just ignore the renames if you have conflicts17:01
bambams_ lpapp: In my case, I didn't cherry-pick the rename, so not I didn't.17:01
Devastator left17:01
Devastator joined17:01
jasonroyle left17:01
saikrishna_ left17:01
thiago left17:02
lpapp why are you doing something different than the scenario? :D17:02
yhager left17:02
aarapov joined17:02
bwreilly joined17:02
ZujkisNx_ joined17:02
cbreak bambams_: rename detection needs context, if you change too much in a file (line wise), then it looks like a new file to git17:02
foist left17:03
ojacobson This is one of the ways that purely snapshot-based version control falls over :)17:03
bambams_ cbreak: Yeah, I tried after changing the file and instead got a "deleted by us" conflict.17:03
ojacobson There are known techniques for addressing it deterministically, but linus & friends decided that SCM is a problem worth solving from first principles, so here we are17:03
gain left17:03
aarapov left17:03
cbreak I like how it's solved in git17:03
Gizburdt joined17:04
bambams_ Yes, SCMs that think they're too smart usually end up silently breaking things on me. >:(17:04
beyondcreed joined17:04
beyondcreed left17:04
beyondcreed joined17:04
cbreak it doesn't require complicated change tracking that is also error prone17:04
ojacobson hg has the same solution, *except* it supports writing down the results in the changeset17:04
cbreak changesets?17:04
results?17:04
bambams_ That is what hg calls "commits".17:04
ojacobson "file B is the result of moving file A" is a result of rename detection17:04
bambams_ In my experience, Mercurial does a worse job with renames/moves.17:04
cbreak if it uses change sets, then it works completely different from git17:04
ojacobson bambams_: the detection algorithm is jankier but the metadata is better17:05
I don't see a reason git couldn't, _in principle_, also store some diff-ish metadata for each commit17:05
cbreak and if they use rename detection, then what they store is worthless17:05
ojacobson where it would be possible to store, rather than compute, renames17:05
ter0 joined17:05
cbreak since you can perform that detection when ever you want on snapshots too17:05
ojacobson cbreak: rename detection is _an option_ in hg; you can also be explicit about it17:05
cbreak (which is what git does)17:05
johntitor2036 left17:05
ojacobson but the results are consistent either way, rather than being sensitive to each user's rename threshold the way git's are17:05
cbreak ojacobson: no, they are sensitive to the committer's threshold17:06
jaequery joined17:06
jaequery left17:06
johntitor2036 joined17:06
cbreak instead of being sensitive to the git log users/cherry-pickers/...17:06
bambams_ I think it's useful to draw user attention to it when somebody else renames something you've been working on. Probably is something you should be aware of.17:06
ojacobson cbreak: that can't possibly be true in git, since there's nowhere in a commit where the committer's threshold is stored17:06
it is true in hg, unless the committer uses `hg mv` and friends to spell it out17:06
cbreak ojacobson: yes, that's what I said.17:06
ojacobson either way it's up to the committer to author sane commits17:07
lpapp I am not sure why you discuss the detection algorithm.17:07
jaequery joined17:07
jaequery left17:07
lpapp my issue has nothing to do with that.17:07
ojacobson That two different git configs can come to different conclusions about the same sequence of commits is a design wart17:07
cbreak lpapp: it probably has.17:07
lpapp so it is probably a separate discussion.17:07
cbreak lpapp: about 25% probability17:07
lpapp no, it does not.17:07
all the facts show that.17:07
cbreak there are no facts :)17:07
lpapp there are.17:07
1) Tried what you say.17:07
cbreak all we've heard so far is your moaning17:07
jaequery joined17:07
lpapp 2) It kept the old file with the old changes _without_ offering the new as new files.17:07
cbreak and as I proved above, it works for me17:07
so you must do something different17:07
lpapp if it really was a detection issue, both statements would collapse abruptly.17:07
cbreak what? Rename detection is one of the things that could be.17:08
bambams_ ojacobson: I'd say it is indeed a feature, not a bug. The SCM is a tool. It should do what is right for you, not what the developers thought was universally right. :)17:08
saikrishna_ joined17:08
bambams_ If there's one universal truth, it's that the developers don't know what's better for the users. :P17:08
lpapp rename detection is one of the things that can be locked out due to the experiments and results.17:08
Umschwung left17:09
bambams_ lpapp: Can you reset back to the beginning, try again, and pastebin a log of what you do? Make sure to show the git status after the cherry-pick.17:09
lpapp no, it is a proprietary project, sorry.17:09
reskp left17:10
ayaz left17:10
phantomtiger joined17:11
bambams_ We can't try to help you if you can't show us what is happening, or reproduce the problem with a test repository.17:11
Reason # 2381 why proprietary software is harmful.17:12
flazz_goneflazz17:12
cbreak I guess we can file that with 75% probability for user error :)17:12
but who knows.17:12
michael_lee left17:13
rethus left17:14
axsuul joined17:14
a_ joined17:14
a joined17:14
catsup joined17:14
a__ joined17:14
a_____ joined17:14
a______ joined17:14
aGuest3093217:15
a_Guest9935117:15
j0ran left17:15
a_______ joined17:15
neo1691 joined17:15
rainmanjam left17:16
Guest30932 left17:16
a__ left17:16
Guest99351 left17:16
a_____ left17:16
catsup left17:16
a______ left17:16
a_______ left17:16
dfanjul left17:16
rainmanjam joined17:16
a__ joined17:16
catsup joined17:16
a_____ joined17:16
a______ joined17:16
a_______ joined17:16
a________ joined17:16
GoZoner left17:16
reskp joined17:16
lewellyn catsup: fix your client(s) :P17:16
takamich_ left17:17
whitemoustache joined17:17
a_______1 joined17:17
atn34 left17:18
rjc left17:18
a_______1 left17:18
a__ left17:18
a______ left17:18
catsup left17:18
a_______ left17:18
a_____ left17:18
a________ left17:18
ezekielnoob2 joined17:18
ezekielnoob2 hello guys17:18
gitinfo ezekielnoob2: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.17:18
CheckDavid joined17:19
arif-ali left17:19
ezekielnoob2 that's a nice bot17:19
blinkdesign left17:19
catsup joined17:19
blinkdesign joined17:19
mizu_no_oto left17:19
ezekielnoob2 i just want to ask on how would your approach be: we're building a REST API system and we wanted to include a client system for it, should this thing be a separate project? i'm thinking that is it possible to have nested repositories in a single GIT folder?17:20
sburgess !backup17:21
gitinfo Worried about your data while trying out stuff in your repo? To back up commit history on all branches/tags: `git clone --mirror`. To backup everything, including work tree and staging area: `tar cf repo-backup.tar repodir`. Or do your experiment in a throwaway clone instead. See also http://sethrobertson.github.com/GitBestPractices/#backups17:21
goodwin left17:21
catsup left17:21
ezekielnoob2 i suppose that message was for me?17:21
tripwired joined17:21
sburgess no it was not, I just saw that on the bot there17:21
cbreak ezekielnoob2: you can have them separate17:21
sburgess thought I would give it a go17:21
Tobarja left17:21
catsup joined17:22
cbreak but if the client and server belong closely together, it might be enough to just use one repo17:22
(but remember that splitting it afterwards is hard)17:22
ezekielnoob2 i see17:22
thanks17:22
i'll have it in a separate thing17:22
tripwired left17:22
ezekielnoob2 maybe even make it opensource17:22
somewhat like what Paypal does for its API classes17:23
Leoneof left17:23
ezekielnoob2 thanks again! o/17:23
Leoneof joined17:23
blinkdesign left17:24
cbreak if you want to keep them separate, you could use submodules17:24
Tobarja joined17:24
ezekielnoob2 hmmm17:24
but they're not exactly part of the system17:24
jules__ left17:24
ezekielnoob2 when's the time that you use submodules as opposed to separate?17:24
cbreak I'd use submodules if I have code that depends on the submodule's code17:25
like libraries17:25
konadr left17:25
ezekielnoob2 hmm17:25
axl_ left17:26
ezekielnoob2 okay :D17:26
lite_ left17:26
robarell_ joined17:26
sburgess left17:27
Kayra joined17:27
catsup left17:27
catsup joined17:27
Ziber joined17:27
arif-ali joined17:28
catsup left17:28
ezekielnoob2 left17:28
GoZoner joined17:28
Sly1986 left17:28
paolooo left17:29
cagedwisdom left17:29
mizu_no_oto joined17:30
GoZoner left17:31
WormDrink joined17:31
sburgess joined17:32
hhuuggoo joined17:33
herdingcat joined17:35
sgambino left17:35
shruggar left17:36
phox joined17:36
CKyle joined17:36
Ziber left17:36
jnavila joined17:36
anry joined17:36
Ziber joined17:36
mikecmpbll left17:37
Lemony joined17:37
ninsei joined17:38
tummy joined17:38
goTAN left17:38
eletuchy joined17:38
torjus_ joined17:38
cjsarette left17:39
neo1691 left17:39
cjsarette joined17:39
qsuscs left17:39
marcjs left17:40
infynyxx left17:40
neo1691 joined17:40
qsuscs joined17:40
torjus left17:40
ferreum joined17:40
fr33 joined17:40
ninsei_ left17:41
catsup joined17:41
axl_ joined17:42
aarapov joined17:42
eletuchy left17:43
infynyxx joined17:43
ezakimak_work left17:44
Anticom left17:44
ncthom91 joined17:44
RofricTheBearded joined17:44
CKyle left17:45
pheaver left17:46
pierre1_ joined17:46
aarapov left17:47
CKyle joined17:47
ojacobson I enjoy the UI differences between "git rebase --abort" and "git bisect reset"17:47
Corey I'm giving a talk on Git to my company next week; I'm looking to create a sane merge conflict to demonstrate how to resolve one. Anyone have any suggestions as to how to create one for a lab environment?17:47
cllamas left17:48
ojacobson Corey: github.com/ojacobson/conflicts17:49
cjsarette left17:49
WormDrink left17:49
Corey Ooh. Thaks.17:49
Thanks*17:49
lindenle joined17:49
goTAN joined17:49
m8 joined17:50
cbreak ojacobson: that's because bisect has sub commands, and rebase doesn't.17:50
tg joined17:50
cbreak ... it seems :)17:50
CorySimmons left17:50
SocalNick joined17:50
atn34 joined17:50
cjwilburn left17:50
diegoviola joined17:51
Neozonz|Disc joined17:51
luxgeek left17:51
Neozonz|DiscGuest4578517:51
noxd joined17:52
cjsarette joined17:52
luxgeek joined17:52
Ziber left17:53
lavong left17:54
Ziber joined17:54
WormDrink joined17:54
lindenle left17:54
jaimef left17:55
n-st what commands can produce the error "fatal: This operation must be run in a work tree"?17:55
dglambert joined17:56
at7 joined17:56
jaimef joined17:56
ojacobson n-st: 'git checkout', trivially17:56
lpapp left17:56
shawndumas joined17:56
ojacobson whose job is exactly "copy files from the revision graph to the staging area and work tree"17:57
dragon3_ joined17:57
n-st i'm using oh-my-zsh and it's prints that above my prompt when i'm in a git-annex directory. i've grepped for git commands in oh-my-zsh and i can't seem to find one whose output isn't redirected to /dev/null...17:57
ncthom91_ joined17:57
saikrishna_ left17:57
n-st s/it's/it/17:57
ojacobson That message arises on stderr, not stdout17:58
CorySimmons joined17:58
ojacobson 'git status' will also complain if there's no work tree for the current repo17:58
which is a more likely candidate for oh-my-zsh17:58
n-st i know, but every command i've found is invoked with either &> /dev/null or 2> /dev/null, so that should be covered, right?17:58
reskp left17:58
WormDrink left17:59
LBV_User joined17:59
lindenle joined17:59
nicedice left17:59
WormDrink joined18:00
ncthom91 left18:00
mishok13 left18:00
nicedice joined18:00
n-st ojacobson: grep -r 'git status' .oh-my-zsh only finds occurences in comments and ones with 2> /dev/null...18:00
CorySimmons left18:00
tvw left18:01
dragon3_ left18:01
ojacobson Presumably zsh has something analogous to sh's 'set -x' for tracing execution18:01
paulweb515 joined18:01
ojacobson That'd be where I'd look: have your shell trace the commands it's running and see which one runs right before the offending message18:01
cvanball joined18:01
ojacobson then work backwards until you find the place in the script the command originates from18:02
(the -x tracing mode replaces variables with their expansion, so it's not as simple as grep)18:02
cvanball left18:02
yhager joined18:02
n-st holy cow! no wonder oh-my-zsh is so slow!18:02
i got half a second worth of command trace just by changing directory...18:03
francisfish left18:03
n-st +VCS_INFO_get_data_git:119> git diff --no-ext-diff --ignore-submodules --quiet --exit-code18:03
fatal: This operation must be run in a work tree18:03
takamichi joined18:03
jnavila left18:03
lindenle left18:04
CorySimmons joined18:04
ZaeDrake joined18:04
mourest left18:05
dglambert Hey so I have a branching scenario I have a question about18:06
ojacobson n-st: it'll be slower when every command has to wait for a terminal write :)18:07
dglambert I created a branch, did some work on it and then merged it and then deleted it18:07
WormDrink left18:07
CorySimmons left18:07
tomengland joined18:07
ojacobson n-st: if I had to guess, that check is probably "are there unstaged changes in the work tree"18:07
dglambert What I didnt realize, two other were also working on the branch and it is still alive18:07
rjc joined18:07
snql joined18:08
herdingcat left18:08
snql left18:08
snql joined18:08
kriks joined18:08
dglambert So there is a underlying conceptual problem I guess with how we are working, should only one person work on a branch at a time?18:09
atn34 left18:09
ojacobson dglambert: critically, "the same" branch in three repos is actually three branches18:09
ZaeDrake left18:09
ojacobson only one person *can* be working on a branch at a time, in that sense :)18:09
(up to sharing a work tree, which: don't)18:10
it's up to you to decide how all the people sharing the same conceptual branch should be collaborating on it; git is not a replacement for communicatoin18:10
n-st ojacobson: indeed. but it's a bug in zsh itself, not oh-my-zsh18:10
felipewm joined18:10
n-st the offending line is /usr/share/zsh/functions/VCS_Info/Backends/VCS_INFO_get_data_git:11918:10
felipewm left18:10
lopezt left18:10
koda left18:11
retnuh joined18:11
ZaeDrake joined18:12
dmarkham left18:12
dglambert so we should decide as a group when a branch is dead, and then one of us merges, and then we each individually delete them in our own repos18:12
koda joined18:13
joelm_ joined18:13
ArSn left18:14
goTAN left18:14
intellix left18:14
bambams_ dglambert: Is it really a problem for the branch to come back? If people are still using it then it isn't really "dead". :) Of course, you don't need to share all branches you use. You can keep branches locally if nobody else needs them.18:14
dmarkham joined18:15
blackmesa joined18:15
NimeshNeema joined18:15
nephyrin left18:15
jaimef left18:15
jaequery left18:15
nephyrin joined18:16
jaimef joined18:16
Hecter joined18:16
joelm left18:16
dmnd left18:16
salamanderrake left18:16
primitive joined18:17
n-st ojacobson: alright, i've fixed it locally and will report it to the zsh developers. thanks for the hints! :)18:18
WormDrink joined18:18
whitemoustache left18:19
noxd left18:19
demiurgo joined18:20
dougsland_ left18:20
neurodrone_ left18:21
CorySimmons joined18:22
demiurgo left18:22
salamanderrake joined18:23
dglambert is it bad practice to have multiple people working on one branch18:23
demiurgo joined18:23
demiurgo left18:24
demiurgo joined18:24
InvidFlower joined18:24
LuxuryMode left18:25
demiurgo left18:25
bambams_ dglambert: No.18:25
demiurgo joined18:25
welly left18:25
bambams_ dglambert: It is bad practice to develop different concepts on one branch.18:25
gnugnu9 hi18:25
ZaeDrake left18:25
bambams_ dglambert: If your work doesn't depend on the work your colleagues are doing then you should be developing on a separate branch until you're ready to merge.18:25
demiurgo left18:26
ZaeDrake joined18:26
bambams_ (Or rebase, as the case may be)18:26
demiurgo joined18:26
gnugnu9 So when I want to create a patch on a cloned git repository, I often read one should create a new branch for the patch, is that better?18:26
kongthap left18:26
kukks|2 joined18:27
bambams_ gnugnu9: The reason for that is probably to keep your changes distinct from the upstream changes. Just makes it easier to understand for yourself and others.18:27
zequence left18:27
guzzlefry Could someone pop-up the link from the bot regarding deployment with git?18:28
leeN joined18:28
bambams_ !deploy18:28
gitinfo Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html18:28
craigp joined18:28
guzzlefry thanks :)18:28
craigp left18:28
craigp joined18:28
atomx left18:29
gnugnu9 bambams_: ah18:29
_brett_ joined18:31
_brett_ left18:31
yhager left18:31
quetz left18:32
pierre1_ left18:33
lindenle joined18:33
bambams_ gnugnu9: Makes it cleaner to fetch upstream changes since you started your work, compare what they've changed since then, and rebase your work on top. Basically, branches in Git are cheap and mutable.18:33
gnugnu9: In the end there never needs to be any trace left behind that a branch ever existed. There can be if you choose. So by all means use them without regard! There's no harm in doing so.18:33
whitemoustache joined18:33
dougsland_ joined18:33
v0n left18:34
jizanthapus joined18:34
zequence joined18:34
Gizburdt left18:35
gnugnu9 bambams_: ah, so after the patch is merged with upstream and no need of it anymore, one can simply delete the branch, right?18:35
skyUnical left18:35
lite_ joined18:37
nilg joined18:38
achadwick left18:38
eletuchy joined18:39
SocalNick left18:39
gitinfo set mode: +v18:39
skorgon gnugnu9, sure, why not?18:39
carbon joined18:39
scarabx joined18:40
aard_ joined18:40
lite_ left18:41
Guest45785 left18:42
VaticanCameos left18:42
Hounddog left18:42
gnugnu9 right18:42
pheaver joined18:42
Gizburdt joined18:43
codezomb joined18:43
RofricTheBearded left18:43
agliodbs joined18:43
WaReZ left18:43
eletuchy left18:44
Gavrisimo left18:44
WaReZ joined18:44
thevishy joined18:44
yhager joined18:45
bartman`` left18:45
kcj joined18:45
Iconate joined18:45
dancat joined18:47
jsilver joined18:48
jbalsano joined18:48
thiago joined18:49
JoshDreamland joined18:50
WormDrink left18:50
whitemoustache left18:51
whitemoustache joined18:51
v0n joined18:51
JoshDreamland Hiya, I want to merge a pull request which contains an image of questionable copyright. I've informed the submitter it has to be replaced, and he did not object. If I pull his changes locally, and use git amend, will I have to force push to master, or will he just have to force pull?18:52
snits joined18:52
Luke-Jr left18:52
osse JoshDreamland: both18:52
JoshDreamland meaning everyone will have to force pull, yes?18:52
osse there is no such thing as a force pull, btw. But yeah, he would have to do some magic18:53
bambams_ JoshDreamland: If he has already pushed and you don't want it in your history then a !rewrite is necessary.18:53
gitinfo JoshDreamland: Rewriting public history is not recommended. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum18:53
Luke-Jr joined18:53
osse yep18:53
Luke-Jr left18:53
Luke-Jr joined18:53
JoshDreamland his changes have not been merged in, yet18:53
grawity If you do a *local* merge, and edit it, then --force will be completely unnecessary18:53
osse JoshDreamland: it would be easier if you made the submitter change the picture before you merge18:53
JoshDreamland yeah, that's what I was referring to, grawity18:53
phantomtiger left18:53
JoshDreamland I want to keep the copyrighted material out of master's history (it isn't there, yet)18:53
osse ahh, ok then no force is necessary18:53
asQuirreL left18:54
JoshDreamland great18:54
robarell_ left18:54
osse well, when you merge it will become part of master's history18:54
nnyk_ joined18:54
aarapov joined18:54
JoshDreamland right18:54
but by then it won't have the icon18:54
jsilver left18:54
osse true, but it will always be recoverable if you follow the breadcrumbs from master18:54
JoshDreamland well, when I merge it locally, it will; I'll rewrite my commits, but they'll all be ahead of master18:55
mikecmpbll joined18:55
felipewm joined18:55
osse imho. you should make your submitter rewrite his pull request replacing the image across all the commits. but you do as you like of course18:55
pheaver left18:56
JoshDreamland I'll run your recommendation by him18:56
dmnd joined18:56
dragon3_ joined18:56
asQuirreL joined18:56
CKyle left18:56
jbalsano left18:56
mewm joined18:57
atn34 joined18:57
jperry joined18:57
frobware_ joined18:57
MrLovejoy joined18:58
kballou left18:58
dc5ala left18:58
Guest38177 left18:58
craigp left18:59
pikaren left18:59
jbalsano joined19:00
yhager left19:00
MrLovejoy hi19:00
gitinfo MrLovejoy: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.19:00
MrLovejoy does anyone know how to run a irc bot on a windows laptop? (sorry if its off topic)19:01
dragon3_ left19:01
SonicX joined19:02
guzzlefry Say I don't want to have certain submodules pulled in during `git submodule update`, can I simply remove them in .gitmodules on my branch?19:02
neo1691 left19:02
neo1691 joined19:03
torjus joined19:03
bremner MrLovejoy: yes, it's offtopic.19:04
MrLovejoy ok sorry bremner19:04
dfarler left19:04
neo1691 left19:04
Umschwung joined19:04
Umschwung left19:04
Jon-Desktop joined19:05
Umschwung joined19:05
Umschwung left19:05
foo joined19:06
Umschwung joined19:06
Umschwung left19:06
yhager joined19:06
torjus_ left19:06
Jon-Desktopyazug19:06
Patrouss joined19:07
arif-ali left19:07
oracal joined19:07
yosito joined19:07
infynyxx left19:07
WormDrink joined19:08
WormDrink left19:08
WormDrink joined19:08
Patrouss Hi, I have a little question about deamon. When should we give access R permission to daemon on a repo?19:08
pheaver joined19:08
akiva joined19:09
Iconate Has anyone experiences Double Lines when performing a git pull? I have a particular project which when I pull, all the files are double spaces19:09
bremner Patrouss: this is covered in the gitolite docs.19:09
Iconate double spaced*19:09
thierryp joined19:10
yosito left19:10
Umschwung joined19:11
firc joined19:11
firc Hi19:11
gitinfo firc: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.19:11
firc !backup19:12
gitinfo Worried about your data while trying out stuff in your repo? To back up commit history on all branches/tags: `git clone --mirror`. To backup everything, including work tree and staging area: `tar cf repo-backup.tar repodir`. Or do your experiment in a throwaway clone instead. See also http://sethrobertson.github.com/GitBestPractices/#backups19:12
lolmaus left19:12
lolmaus joined19:12
yosito joined19:12
gnugnu9 left19:12
neo1691 joined19:13
thiago left19:13
And1 left19:13
firc Allright, I have a rebase related question. I made a branch off a master branch at commit A, say branch foo. Now, I made commits to foo, B,C,D. and pushed it. So now, branch foo is at D. Meanwhile, other people made commits to master, E,F,G. So master is at G. Now, on my branch foo, I did git rebase master.19:13
infynyxx joined19:14
firc After that, a git status (on my branch) shows your branch and origin/foo differ by X commits ,etc.19:14
gusnan joined19:14
osse so far, so good19:14
firc Is it safe to do a git push? Does it mean my branch is upto date with the latest from master?19:14
osse if you push you will have to push --force19:15
gnugnu9 joined19:15
Gavrisimo joined19:15
firc it will push to my branch, right?19:15
osse if this is a "private" branch that noone else is supposed to work on top of then you can push19:15
firc Will it alter history?19:15
osse yes19:15
firc Yeah, nobody else is using it. So it should be fine?19:15
osse well, you've already altered it locally. you just need to alter it on the remote too19:15
firc ok19:16
Is this the right way to go? Or should have I done merge instead?19:16
osse depends on who you ask19:16
guzzlefry Is it possible to have submodules on a branch such as staging, but merge those files into a master branch for deployment?19:16
Patrouss bremner: I just read the doc, it says that when using daemon, it should give public read access on the repository. But isn't the same thing as gitweb Read access?19:17
firc Hmm ok. So, is it recommended that I take a backup before I push since I'm altering history?19:17
bremner Patrouss: git-daemon and gitweb are completely independent19:17
AhabsBeard joined19:17
zajn joined19:17
RofricTheBearded joined19:17
EminenceHC left19:18
osse firc: as I said you've already altered it. If you are happy with the result then it's fine19:18
EminenceHC joined19:18
Guest45785 joined19:18
firc cool!, thanks osse.19:18
osse firc: the history rewriting happens when you rebase, not when you push19:19
MrLovejoy left19:19
SilverBln joined19:19
Gavrisimo left19:20
oojacoboo joined19:20
sgambino joined19:21
retnuh left19:23
Kayra left19:23
EminenceHC left19:23
votyx joined19:24
LuxuryMode joined19:24
gusnan Is Git ever written like GIT?19:24
bremner only by gits19:24
gusnan hehehe19:24
dort left19:24
osse gusnan: it was, but not anymore19:24
votyx I made a commit, changed some stuff but now realized I want to commit th changes in a new branch, how do I do that?19:24
invinceable joined19:24
dort joined19:24
cbreak votyx: the already existing commit?19:24
votyx: git checkout -b newbranchname19:25
then commit the new changes.19:25
then remove the commit from the old branch, with a git checkout oldbranch && git reset --hard HEAD~1 or similar.19:25
kukks|2 left19:25
votyx wont checking out a new branch discard the changes?19:25
cbreak votyx: be sure you know what you're doing :D19:25
nope19:25
changes are in the working dir19:25
they are not on a branch until you commit them19:26
osse !float > votyx19:26
gitinfo If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution.19:26
athorp left19:26
lolmaus left19:26
lolmaus joined19:26
sdouglas joined19:27
votyx git checkout oldbranch && git reset --hard HEAD~1 or similar.19:27
uh?19:27
i can do that exactly or not?19:27
PerlJam votyx: reset --hard will destroy stuff in your working dir.19:28
cbreak votyx: you can do it if your branch is called oldbranch19:28
osse votyx: something's not clear here: you said you've made a commit and some uncommited changes. Is it only the uncommited changes you want to move to a new branch? Or the commit you made as well?19:28
cbreak and if you want to nuke away exactly one commit19:28
doev left19:29
cbreak if you want to nuke away more, change the number19:29
athorp joined19:29
cbreak if you want to nuke away less, then don't reset19:29
jaequery joined19:29
votyx what, now one commit disappeared on main...19:29
cbreak reset nukes away things.19:29
votyx how much?19:30
mizu_no_oto left19:30
cbreak how much you want.19:30
as I said above.19:30
teran joined19:30
cbreak a reset to HEAD~1 removes the newest commit.19:30
if you don't want to remove a commit, then don't reset19:30
as I said above :)19:31
firc osse: so if I am unhappy after i did git push --force, i can still revert to an older working commit, right?19:31
votyx ok now my master is 1 behind origin /master, how do I fast-forward it?19:31
cbreak votyx: you didn't want to remove that commit?19:31
votyx nope19:31
jonatasnona left19:31
cbreak then you should not have done the reset...19:31
you can merge it again19:32
snollux joined19:32
osse firc: revert however you like using your local repo and then force push again19:32
cbreak probably git pull is the easiest.19:32
kcj left19:32
osse firc: if you want to exactly undo the rebase you need to look into the reflog19:32
firc osse: cool, I can undo the rebase locally ?19:32
ah ok19:32
Guest45785 left19:32
snollux Hello! I accidentally included some irrelevant files I'd like to ignore in a git push.. how can I just remove those from the list of files to change? Essentially, to un-add them19:33
reskp joined19:33
osse snollux: git rm --cached19:33
snollux: ehh, have you commited yet? or just run git-add ?19:33
shawndumas left19:33
snollux I have committed and pushed19:33
stupidly19:33
nothing is merged yet though and its on its own branch19:33
osse then git rm --cached (or just git rm if you want to delete the actual files on disk too)19:34
and then commit -m 'Fixed snafu'19:34
Zifre joined19:34
firc weird, even with git push --force i couldn't push19:34
osse ... or commit --amend and then push --force19:34
snollux git rm cached will do what, exactly? Remove all of my changes or just the ones I didn't mean to specifically add?19:35
joelm_ left19:35
firc says "remote: To prevent you from losing history, non-fast-forward updates were rejected."19:35
snollux ah I need to specify them19:35
cbreak it will remove the file from git.19:35
it will not remove changes.19:35
osse snollux: you need to give filenames19:35
firc and " ! [remote rejected] foo -> foo (pre-receive hook declined)19:35
Destos joined19:35
cbreak that's what force is for.19:35
joelm joined19:35
cbreak but remotes can reject force pushes19:36
simesy joined19:36
cbreak if they do, talk to an admin.19:36
MrLovejoy joined19:36
cbreak or find an alternative :)19:36
osse firc: then someone set a hook up on the remote.19:36
firc: no clue what it does. It should produce some output19:36
Patrouss left19:36
firc whats a hook up?19:36
MrLovejoy may i ask what this channel is for?19:37
osse firc: not a hook up. a hook19:37
firc can I remove it?19:37
cbreak MrLovejoy: http://git-scm.com/19:37
osse firc: it's something that Git is configured to execute whenever something happens.19:37
firc Ah, ok19:37
steps0x29a joined19:38
firc Then how do I get my changes in?19:38
osse firc: eg. you can create a hook so that whenever you checkout something the code is recompiled. and you can create a hook on the server so that when you push then the web server restarts or whatever. this particular hook rejected your push. I have no idea why. Talk to whoever configured the repo you're pushing to19:38
Vivekananda left19:38
salah joined19:39
salah join github19:39
steps0x29a left19:39
firc osse: http://paste.ubuntu.com/7069530/19:39
Octalot left19:39
arietis left19:39
eletuchy joined19:39
firc osse: Hmm, ok.19:40
osse firc: and this was even with --force?19:40
buffal0 left19:40
MrLovejoy so can i use it to back up my bot?19:40
firc osse: yep19:40
simesy left19:41
osse firc: then the admin of the repo as configured the repo in that way19:41
LBV_User left19:41
cbreak MrLovejoy: it's not a backup tool, so no.19:41
firc that means I cannot rebase?19:41
osse firc: weird that it said "pre-receive hook declined". Can you give me the FULL output of git push --force foo ?19:41
cbreak firc: you can always push to a new branch19:41
firc: (after deleting the old one :D)19:41
votyx having a static reference to a class and then everytime a certain fragment is created, you set this reference to a new instance. will the old ones be gc.ed?19:42
gc:ed19:42
firc ok. hang on19:42
osse firc: and you wrote 'git push --force foo' and not just 'git push --force' right?19:42
cbreak votyx: no19:42
MrLovejoy left19:42
d33tah left19:42
ojacobson votyx: did you mean to ask this in another channel19:42
cbreak votyx: gcing only happens sometimes, you can expect things to live at least 30 days19:43
votyx: probably 90 days or more if they are in the reflog19:43
offby1 "git checkout" isn't doing what I'd expect (probably a line ending thing) -- anyone got a suggestion? https://gist.github.com/947273219:43
firc osse: nope, I did git push --force19:43
rTeapot joined19:43
firc osse: http://paste.ubuntu.com/7069543/19:44
osse firc: then you try to force push all the branches you have (by default anyway)'19:44
votyx ojacobson: yes ty :). +cbreak: are you serious? the old instances wont be gc:ed?19:44
(java)19:44
ojacobson votyx: cbreak'19:44
firc ok, then I should try --force foo19:44
ojacobson votyx: cbreak's answer was specific to git19:44
phantomtiger joined19:44
eletuchy left19:44
ojacobson where the minimum gc interval is measurable in weeks by default19:44
hahuang65 left19:44
firc hmm, nope19:45
jgornick left19:45
osse firc: ugh, I meant git push --force origin foo19:46
jgornick joined19:46
offby1 I've got core.autocrlf set to "input" fwiw19:46
osse but I assume it won't work19:46
firc yeah, it doesn't work19:46
osse firc: same thing?19:46
firc same error19:46
yep19:46
osse firc: try git push origin foo:replacementfoo (no --force)19:47
firc replacementfoo?19:47
osse firc: yeap, a different branch new19:47
name,19:47
rTeapot left19:47
firc oh you mean a new branch?19:47
Droolio left19:47
osse yeap19:47
cbreak votyx: in git it'll take weeks19:47
in java, who knows.19:48
g0z joined19:48
cbreak garbage collection isn't known for being deterministic or reliable :)19:48
firc osse: yes, I created the new branch19:48
osse firc: hooray19:49
firc and should I delte old branches?19:49
harobed_ left19:49
osse firc: did you run my command exactly or did you do some voodoo I don't know about?19:49
jluc left19:49
firc osse: exactly what you said, git push origin foo:newfoo19:50
veebers joined19:50
thiago joined19:51
osse firc: what is right to do from now on I don't know. Do you expect to rebase foo again?19:51
CorySimmons left19:51
sandorjanssen left19:51
osse then you'll have the exact same issue and need foo:newfoo219:51
multiverse joined19:51
Gavrisimo joined19:51
firc Hmm. Yeah. At some point I would want foo to merge back into master19:52
CorySimmons joined19:52
g0z is there any kind of script to show what would be ignored with .gitignore(s)? I can't upgrade the version of git I have to get `git check-ignore` command ...19:52
Bodger joined19:52
firc I'm currently working on a feature, i just wanted my branch to have the latest master changes, so I need not worry about a lot of changes when i do actually merge back to master19:52
osse firc: the simplest solution is to simply not push it19:53
yosito left19:53
Not_Whatever joined19:53
firc hmm yeah I guess. I had to push to foo, because others needed the change. But I see what you mean19:53
dfarler joined19:53
cbreak g0z: man git ls-files19:54
gitinfo g0z: the git-ls-files manpage is available at http://jk.gs/git-ls-files.html19:54
cbreak g0z: it can show ignored files19:54
sardoniks joined19:54
axl_ left19:54
osse firc: so people have based their work on foo? then they would have been screwed if your push succeeded19:54
hahuang65 joined19:54
jaimef left19:55
osse firc: there are several solutions: 1) Create a "scratch repo" somewhere else, a different one from the official repo, where you're allowed to do whatever you want 2) Talk to someone to get them to allow nonfastforwards19:55
d33tah joined19:55
rTeapot joined19:55
jaimef joined19:55
rTeapot left19:55
armyriad left19:55
cbreak in repositories I administrate, I sometimes give people private branch namespaces where they can ff as much as they want19:56
kemist left19:56
codezomb left19:56
cbreak so foo is not rewritable, but firc/foo would be (by firc only though)19:56
dragon3_ joined19:56
firc hmm. thanks for the help osse!19:56
shawndumas joined19:57
jimmyeatworld joined19:57
osse cbreak: then I assume you have an unwritten (or written!) rule saying "please don't merge <otherguy>/foo"? Or would other people have to do refspec magic to fetch them in the first place?19:57
n-st left19:58
yhager left19:58
aarapov left19:59
jbalsano left19:59
matteo left20:00
yhager joined20:00
cbreak osse: no, if they base their changes on other people's private branches then it's their own fault.20:00
but honestly, I only set it up that way.20:00
everyone actually works on master.20:00
prophile left20:01
atrus here, nobody pushes to "master". the code-review tool merges the review branches into the appropriate branch only once everybody's signed off, and checkin-time testing has passed :)20:01
jackneill left20:01
atrus i don't know how people work in a large group without that sort of arrangement.20:02
hyperboreean left20:03
adac joined20:03
damccull joined20:03
dragon3_ left20:04
cbreak atrus: it's easier to work on master if most projects are single-person :)20:04
boboc joined20:04
Bodger Howdy, folks. I'm trying to do an interactive add and getting "Can't locate Git.pm in @INC". I'm pretty sure -i worked last time I used it and I haven't changed anything since then, but it's been long enough I can't swear to it. (1). Help? (2) what version/system info should I be gathering first?20:04
IrishPrime left20:04
m8 left20:04
ethlor left20:04
demiurgo left20:04
jbalsano joined20:05
CorySimmons left20:05
Macaveli joined20:05
CKyle joined20:05
ncthom91_ left20:06
nnyk_ left20:06
hahuang65 left20:06
thiago left20:07
jbalsano left20:07
LBV_User joined20:08
kriks left20:08
osse Bodger: does eg. 'git difftool' work? That too is written in Perl20:08
chiromante joined20:09
EminenceHC joined20:09
Bodger Looks like no. Same error.20:09
sdouglas left20:10
osse Bodger: some distros package Git in a weird way. Do you have a 'git-all' package or something similar?20:10
hahuang65 joined20:10
thegorn Bodger: better question, which distribution of linux :)20:10
at7 left20:10
Xethron joined20:11
Xethron left20:11
Xethron joined20:11
Bodger OS X 10.8.520:11
bambams_ xD20:11
cbreak Bodger: git 1.9 seems to have broken on OS X20:11
I noticed that with git svn20:11
thegorn Bodger: official installer or .. ?20:11
cbreak haven't bothered finding the reason yet though.20:11
(on 10.9.2)20:12
n-st joined20:12
Bodger git 1.8.3.1, I think I used the official installer.20:12
reskp left20:12
sohail left20:13
thegorn Bodger: do you have xcode installed?20:13
Bodger Yeah.20:13
whitemoustache left20:13
ghostlines joined20:13
thegorn logs into his mac20:13
diegoviola left20:13
prophile joined20:13
nicxvan joined20:14
yhager left20:14
thegorn yea, git add -i works fine for me on OS X 10.9.x I think (Mavericks, right?)20:14
Bodger Hang on, xcode just offered to install command-line tools on launch. I could have sworn I had them already, but if not there's a likely culprit.20:14
yhager joined20:14
boboc left20:14
thegorn Bodger: that's probably it20:14
SocalNick joined20:15
boboc joined20:15
thegorn or at least I have xcode + command line tools + flawlessly working git20:15
nicxvan how do I force files to show up in a repository, I added some files, but they don't show up under git status, but they show up in the file directory20:15
I have moved them to several places and checked all .gitignore files too20:15
thegorn nicxvan: that means that you have them ignored20:15
Bodger I bet I updated xcode but not command line tools. sonuva.20:16
rgr left20:16
Bodger Downloading now, will report back.20:16
sohail joined20:16
sohail left20:16
sohail joined20:16
nicxvan thegorn: how do I see if they are ignored other than with the .gitignore file?20:16
thegorn nicxvan: git --version?20:17
sdouglas joined20:17
thegorn nicxvan: if you have a git new enough, git check-ignore -v <file>20:17
prophile left20:17
Gizburdt left20:17
thegorn looks like 1.8.220:18
cbreak nicxvan: maybe they are already tracked20:18
nicxvan thegorn: I just figured it out, some of the folders are empty for some reason20:18
cbreak nicxvan: do they show up in git ls-files?20:18
fowl joined20:19
fowl i hate you20:19
thegorn ah, you didn't say they were empty directories :-P20:19
fowl: i hate you too20:19
nicxvan thegorn: they weren't supposed to be20:19
another developer apparently emptied them20:19
thegorn oh, gotcha20:19
nicxvan time to see who20:19
fowl thegorn, if you speak for git then i hope you die20:19
in a slow fire20:20
ChanServ set mode: +o20:20
fowl and not of suffocation20:20
fowl left20:20
toralf joined20:20
ChanServ set mode: +o20:20
lov well that was neat.20:20
thegorn very20:21
guzzlefry Can you track files in a submodule in the containing repo without any issues?20:21
_ikke__ set mode: +q20:21
marcjs joined20:21
axl_ joined20:21
toralf why does a "git pull; echo; git remote update stable" not pull v3.12.14 into my local repo using this .git/config : http://bpaste.net/show/187321/ ?? (worked fine for years before...)20:21
cbreak guzzlefry: no.20:21
guzzlefry: you can not track anything in submodules, only the submodules themselves20:22
ayaka joined20:22
cbreak they are opaque as far as the outer repo is concerned20:22
_ikke__ set mode: -o20:22
Bodger thegorn: no change after installing. Do I need to reboot or some such?20:22
_ikke___ikke_20:22
thegorn Bodger: i have no idea :-/20:22
let me look where my Git.pm is20:22
cbreak Bodger: no reboot needed20:23
snollux left20:23
ayaka I have problem with git apply with the patch, if I want to apply the patch from a mail, shall I just copy the main content of that mail?20:23
francisfish joined20:23
ayaka or saving that mail with its header and then apply it20:23
fr33 left20:23
cbreak ayaka: save the whole e-mail20:23
grawity ayaka: usually `git am` is more apropriate for that – it'll also get the subject/author from mail headers20:23
demiurgo joined20:23
cbreak (if it was made with git send-email or git format-patch)20:23
_ikke_ thegorn, did you know him?20:23
thegorn _ikke_: nope20:23
just seemed like an appropriate response20:24
guzzlefry ah okay, that's affecting our deployment process. We need a single step to pull in code from origin, including specific submodules. Any suggestions?20:24
cpb joined20:24
ayaka cbreak, grawity I see thank you20:24
guzzlefry Can I exclude submodules on a specific branch by editing .gitmodule?20:24
InvidFlower left20:24
thegorn Bodger: i would just do a bit of debugging20:24
which git20:24
_ikke_ random spammer probably20:24
sdouglas left20:24
thegorn should be /usr/local/git/bin/git20:24
ayaka left20:24
prophile joined20:25
cbreak guzzlefry: deploying with pull is braindead.20:25
alvaro_o joined20:25
thegorn if you open /usr/local/git/libexec/git-add--interactive20:25
cbreak guzzlefry: you should think if you can find something that is not designed to fail20:25
thegorn you should see where it adds to the perl path, which should contain Git.pm20:25
guzzlefry Any suggestions?20:25
mellernoia left20:25
cpb is it possible (or advised against / recommended) to have a 'dev' branch that has all the micro commits, and another branch where those commits are 'squashed' into fewer larger commits?20:25
cbreak guzzlefry: maybe deploying with a script?20:25
pfg left20:25
thegorn cpb: why the heck would you destroy history?20:25
cbreak guzzlefry: one involving reset --hard and submodule update might work20:25
Bodger which git => /usr/local/bin/git20:26
_ikke_ cpb, sounds impractical20:26
thegorn Bodger: that isn't where the git installer puts it20:26
do you have /usr/local/git20:26
torste how can I add the "date" string from git log to 'git log --pretty=oneline'?20:26
salah left20:26
Bodger Yes, I do.20:26
sambae joined20:26
sardoniks left20:26
noxd joined20:27
Bodger I must have installed once with the installer and once some...other way? What a mess.20:27
thegorn Bodger: ok, you probably have an old version of git stuck around20:27
just remove /usr/local/bin/git*20:27
and it will be fine20:27
flazzflazz_gone20:27
guzzlefry cbreak: I think we're using checkout -f master right now. Will removing specific modules from .gitmodule on the production branch effectively stop them from being pulled in by git submodule update?20:27
thegorn and then you need /usr/local/git/bin in your path20:27
cpb thegorn: cleanliness? sometimes a commit is a line or two, and it doesn't solve the problem, and it'd be better to wrap them into one commit?20:27
Bodger Yep, /usr/local/bin/git --version ==> 1.7.6.1.20:28
ariscop left20:28
thegorn cpb: in that case it isn't necessarily useful, I'm thinking more along the line of linux kernel where by the time it gets put in the public repo it basically works20:28
but keep in mind if those commits are public20:28
simesy joined20:28
thegorn you can't really squash them anymore20:28
you are kinda stuck with them20:28
cpb _ikke_: i figured, i was checking, i'd seen references before for squashing commits before pushing upstream, and i'd like to preserve my personal history, but still contribute with more succinct commits.20:29
hfphfp`away20:29
flazz_goneflazz20:29
hobodave left20:29
thegorn cpb: oh, for pushing upstream, i would definitely rebase into logical commits20:29
but once they are public you're just out of luck20:29
ezekielnoob joined20:29
thegorn well, at least I would, some might not20:29
doener joined20:29
cpb thegorn: but can you preserve the 'micro' commits when doing that, or do you necessarily need to mirror the commits upstream?20:30
Bodger Aha! /usr/local/bin/git is linked to the git that Github.app provides.20:30
g1 joined20:30
adac left20:30
geekbri left20:30
thegorn cpb: not really, i mean, you can make a branch like git branch push_2014031020:30
_ikke_ cpb, the problem is you have no connection betwewn those commits20:30
cpb the practicality of having a dozen commits, just for myself isn't too strong, so i'm not opposed to squashing my personal fork/branches, but ... i figured i'd check with people more knowledgeable.20:31
thegorn and then rebase, and then push, and you'll have the history in your branch20:31
pantsman joined20:31
pantsman left20:31
pantsman joined20:31
cbreak guzzlefry: if they aren't there already.20:31
guzzlefry: but the .gitmodules thing is one part20:31
guzzlefry ah20:31
cpb _ikke_: yeah, that's what i noticed... heh... makes further contribution and keeping in sync with upstream much harder...20:31
cbreak guzzlefry: the actual submodule entry is the thing that's relevant20:31
guzzlefry: if you want to remove a submodule, do it with git rm --cached submodule20:32
thegorn Bodger: ah, ok, they probably didn't have their installation setup for perl stuff20:32
mikecmpbll left20:32
skyUnical joined20:32
cpb thegorn: so if i /really/ want to preserve all my 'clever' commit messages, save the feature branches, but compress the master branch, eh?20:32
ncthom91 joined20:32
flazzflazz_gone20:32
hfp`away left20:32
flazz_goneflazz20:32
jaimef left20:33
thegorn cpb: yea, i don't think it is a bad idea to make a local tag/branch before a bunch of rebasing anyway20:33
you can get it all back via reflog in your local repo for the next 30 days20:33
cbreak cpb: git log --first-parent20:33
simesy left20:33
thegorn but it is a lot easier if you make a temp commit/branch first20:33
simesy_ joined20:33
cbreak rewriting history before merging isn't bad, but completely discarding it sounds very stupid.20:33
depends on the granularity of your commits though.20:33
frobware_ left20:33
jaimef joined20:33
Bodger Reckon I'll try moving usr/local/git/bin earlier in my path than /usr/local/bin.20:34
thegorn Bodger: good idea, that's probably all you need20:34
cpb cbreak: cool, thank you20:34
NimeshNeema left20:34
jbalsano joined20:34
smashwilson left20:35
lekare_ joined20:35
cpb i should be doing way more 'development' in feature branches. still learning a lot about how to properly use git, for my needs.20:35
flazzflazz_gone20:35
Bodger And it works. Thanks for the help... now to see what else breaks from using git 1.7 by default.20:35
damccull left20:36
flazz_goneflazz20:36
rgr joined20:37
cbreak http://blog.victorquinn.com/fix-git-svn-in-mountain-lion :( ah well (20:37
pfg joined20:37
cbreak Bodger: you should get xcode20:37
Bodger: xcode has its own git :)20:37
CKyle left20:37
cbreak (1.8.3 at the moment)20:38
Bodger I have xcode, but ~never launch it.20:38
cbreak it's part of the command line tools20:38
you'll find it in /usr/bin/git and co20:39
eletuchy joined20:40
Bodger So I will. Woo, competing versions!20:40
conan_ joined20:41
ariscop joined20:42
nnyk_ joined20:42
observ3r left20:43
adac joined20:43
reskp joined20:43
james_d_h left20:43
SHyx0rmZ joined20:43
CKyle joined20:44
roymiloh joined20:44
axsuul left20:45
pawprint joined20:45
eletuchy left20:45
mizu_no_oto joined20:45
pawprint i just did a "git merge --no-commit", so that i can view and approve or deny any changes that were made during the merge, rather than just blindly committing20:46
but how can i actually see what changes were made?20:47
"git diff" doesn't show anything20:47
hoschi left20:47
pawprint (to give a bit more context, i was on a branch and did a "git merge --no-commit master" to merge from the master in to my branch)20:47
Bodger left20:49
harobed joined20:50
pawprint nevermind.. looks like all i had to do was specify the hash of the last commit, when i did a git diff20:50
rfoust left20:50
pawprint so "git diff abc123" (where "abc123" is the hash of the last commit)20:50
dort left20:50
zajn left20:51
ojacobson 'git diff --staged'20:52
neo1691 left20:52
ojacobson (git merge stages the results, even in --no-commit mode)20:52
the diffs wrt each parent are also interesting20:52
whitemoustache joined20:52
torste how can I show 20 last commits in branch?20:53
Dougie187 torste: `git log -n 20`20:53
or, if you're not on that branch20:53
`git log -n 20 <branch_name>`20:53
bodom joined20:53
hobodave joined20:54
torste thx, read almost all from the manual under commit limiting but missed the first line :)20:54
chiromante left20:54
n-st left20:55
agliodbs left20:55
torste Dougie187: how can I add that to my config?20:56
tpollard joined20:56
Dougie187 torste: `git config --global alias.log20 log -n 20`20:56
cannonball left20:56
dragon3_ joined20:56
rudisimo left20:57
DoniRS left20:58
pawprint hmm.. another problem: i just pushed my commit to a remote git repo, but then i decided to amend that commit's message, which i did.. but when i tried to push the amended commit, git thinks my local repo has diverged from the remote repo and won't let me push here's the error i get: http://bpaste.net/show/187331/20:58
mikecmpbll joined20:58
pawprint but they really haven't diverged.. only the commit comment is different20:59
how do i fix this?20:59
CorySimmons joined20:59
sburgess It has diverged, you are pushing a different commit with the same parent as the last commit20:59
reskp left20:59
torste Dougie187: that doesnt seem to work?20:59
sburgess git push -f will make it do it any ways20:59
pawprint well, i'm not even really pushing a commit per se.. i'm just trying to change the comment21:00
agliodbs joined21:00
ojacobson pawprint: everything in git is immutable21:00
things that "edit" commits actually operate by creating new commits and swizzling branches.21:00
gnugnu9 left21:00
ojacobson "everything in git" er everything in git's object store, hello ambiguous statement21:00
refs (branches, etc) obviously aren't immutable21:00
it diverged because you created a new commit with the same parent as the original commit, and then pointed your branch at it. 'git push --force' will effectively remove the original commit from the remote repo; be aware that this is kind of ugly for anyone else using the same remote branch21:01
pawprint well, how do i fix it without screwing up my branch or creating a new branch?21:01
dragon3_ left21:01
boboc left21:01
shawndum_ joined21:02
n-st joined21:03
ariscop left21:03
WormDrink left21:04
agliodbs left21:04
shawndumas left21:04
SocalNick left21:05
shawndum_ left21:05
el3ctron left21:05
SocalNick joined21:05
Iconate left21:06
CreativeEmbassy joined21:06
Xethron left21:06
axl_ left21:06
CKyle left21:06
guzzlefry Say I want to revert gitlab/gitolite/etc, whatever origin is, to a state that I have a local pull of. Can I simply move the files from local to remote via rsync, or would git pull origin master not pull everything from origin?21:07
Noldorin left21:07
hobodave left21:08
ojacobson guzzlefry: jargon abuse; can't figure out what you're trying to ask21:08
you have a remote named 'origin' that points to some hosted repo and you have some code in your local repo21:08
guzzlefry I'm bad about that.21:08
ojacobson what do you want to change in which repos?21:08
chiromante joined21:09
agliodbs joined21:09
guzzlefry ojacobson: I did `git pull origin master` before I made a mess with submodules and pushed it all to origin. Can I simply copy the .git/ from my local copy to the repo handled by gitlab to revert?21:09
jnavila joined21:09
Mekkis left21:10
Nicholas_Rishel left21:10
Mekkis joined21:10
ojacobson Probably not, no.21:10
torste how do I format git log so I get like columns? instead of my tabs, pretty = format:%C(yellow)%H %C(white)%ad%Creset\t\t%C(white)%s%Creset21:10
ojacobson Use the git protocol to transfer the desired state to gitlab, instead.21:10
system64 left21:10
guzzlefry okay, thanks21:10
ojacobson 'git push' and 'git fetch' do nothing but copy refs (branches) and objects (commits, trees, file blobs) around.21:10
marthinal left21:11
CorySimmons left21:11
ojacobson 'git pull' is 'git fetch; git merge', more or less, so avoid that until you've sorted this out21:11
CKyle joined21:11
Noldorin joined21:11
mrstocks joined21:11
mrstocks hello im have a problem with git on github21:12
how do i revert to the first version?21:12
nilg left21:13
WormDrink joined21:13
Foldager left21:13
Zifre left21:13
werlley left21:14
zajn joined21:14
simesy_ left21:14
skyUnical left21:14
rawtaz revert?21:14
Trudko left21:14
rawtaz which first version?21:14
mrstocks im not really shure i made a website with admin them i removed it21:15
skyweb joined21:15
rawtaz i have no idea what you are trying to say21:15
seriously21:15
do you think anyone understand what you mean with "i made a website with admin"?21:15
mrstocks nop :(21:15
rawtaz then try to rephrase ;)21:16
mrstocks im sortof flying (since 2009)21:16
rawtaz haha21:16
mrstocks i will try revert hang on21:16
carbon left21:16
salamanderrake left21:16
polyzen joined21:16
armyriad joined21:16
roymiloh left21:16
SocalNick_ joined21:16
mrstocks ok have a website on github21:17
Hello71 left21:17
CorySimmons joined21:17
mrstocks my previous version (i don't know what versions)21:17
have a admin folder21:17
and im trying to get it back21:17
scarabx left21:17
mrstocks https://github.com/mrstocks/secret-ninja21:17
JTF195 left21:17
mrstocks thats the url21:17
SocalNick left21:18
rawtaz there's 233 commits in that repository, so you might want to specify what you want to revert to21:19
also i guess that by "revert" you mean "go back to how things were at that point in time?21:19
ariscop joined21:19
mrstocks yes i do!!21:20
ZaeDrake left21:20
mrstocks i would like like a git clone <url.git> 2F343DF21:20
2F323DF is a random string but thats what i want21:21
SocalNick joined21:21
CorySimmons left21:21
SocalNick_ left21:21
rawtaz mrstocks: i think there's a bit too much ambiguity here, and that i should not answer because i might give you the wrong answer. i'll let pro's deal with this one21:22
Destos left21:23
ghostlines left21:23
Freeman42 joined21:23
SorenHolm joined21:24
mrstocks i breed dogs, im seriously not ready for it21:24
i found the admin https://github.com/mrstocks/secret-ninja/tree/4d6f31cb91e832be17d642461ddba29639e3b4aa/admin21:24
i would like do get that21:24
ojacobson left21:24
rawtaz the thing is that you get "get" that in so many different ways21:24
tvw joined21:25
bambams_ mrstocks: What are you trying to do with that directory?21:25
reskp joined21:25
mrstocks let say the first that come into your mined and i give a discount when you want a great dane21:25
rawtaz this guy is amazing :)21:25
mrstocks :D21:26
mishok13 joined21:26
lekare_ left21:26
bambams_ French is your native tongue?21:26
JerryT left21:26
bambams_ mrstocks: Do you know exactly when you removed that admin directory from the repository?21:27
mrstocks: Or are you sure that you want the version at 4d6f31?21:27
salamanderrake joined21:27
prophile left21:28
aard_ left21:28
mrstocks well noy really, i was adopted when i was 6 by some french people so english is my native language but..21:28
bambams_: well i don't know i don't know it's there so...21:28
bambams_ mrstocks: git checkout 4d6f31cb91e832be17d642461ddba29639e3b4aa -- admin/21:29
conan_ left21:29
bambams_ mrstocks: That should allow you to checkout that particular version of that directory. Whether that's what you want or not I can't tell.21:29
Kayra joined21:29
sjokkis joined21:29
bambams_ mrstocks: !revert21:29
gitinfo mrstocks: That's a rather ambiguous question... options: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard uncommitted changes in the working tree [git reset --hard]; c) undo committing [git reset --soft HEAD^]; d) restore staged versions of files [git checkout -p]; e) move the current branch to a different point(possibly losing commits)[git reset --hard $COMMIT]?21:29
it_tard left21:29
sambae left21:30
davividal left21:30
sjokkis hi. i've set "git config --global core.whitespace trailing-space,space-before-tab", but git still doesn't complain if i commit things with trailing whitespace. am i doing it wrong?21:30
torjus left21:30
bambams_ sjokkis: I'm not familiar with that option. Which version of git are you running?21:30
mrstocks oohh that work, even with my poor english! And i didn't even have to sell a dog21:31
bambams_ mrstocks: That comes with absolutely no guarantee that it did what you really wanted. ;)21:31
votyx how do i discard all changes? just do a pull?21:31
not_a_guest joined21:32
sjokkis bambams_: 1.8.5.321:32
jaimef left21:32
nobitanobi joined21:32
bliker left21:32
rawtaz votyx: what changes?21:32
toralf left21:32
nobitanobi Hi guys. I did a git stash pop, and some files were modified, accidentally I did ' git checkout . ' so I lost all those changes. Any way to do a git stash pop again, or undo the 'git checkout .'?21:33
jaimef joined21:33
sjokkis votyx: if you want to discard changes you have made to files you can use "git checkout -- filename"21:33
osse nobitanobi: see the very bottom of man git-stash21:33
gitinfo nobitanobi: the git-stash manpage is available at http://jk.gs/git-stash.html21:33
votyx +rawtaz: changes after commit in several files21:34
mrstocks http://www.btc-fr.org/21:34
works perfect21:34
bambams_ sjokkis: It sounds to me like that config option only warns by default. You may need to set apply.whitespace to something to have it error.21:34
sjokkis bambams_: it doesn't even warn21:34
CorySimmons joined21:35
cpb left21:35
mrstocks thx so much rawtaz & bambams_21:35
dougsland_ left21:35
nobitanobi osse: I see a commit there, but I am unsure how to redo the git stash pop21:35
osse nobitanobi: if you have sha you get git ch-erry-pick --no-commit SHA21:36
CorySimmons left21:36
LuxuryMode left21:37
nobitanobi osse: ok lets see21:37
rawtaz votyx: !revert21:37
gitinfo votyx: That's a rather ambiguous question... options: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard uncommitted changes in the working tree [git reset --hard]; c) undo committing [git reset --soft HEAD^]; d) restore staged versions of files [git checkout -p]; e) move the current branch to a different point(possibly losing commits)[git reset --hard $COMMIT]?21:37
chiromante left21:37
nobitanobi osse: I see this: error: Commit c68abd52e6ea1eb8f70ebea31297e4032e4bc79f is a merge but no -m option was given.21:37
osse nobitanobi: try git cherry-pick -m 121:38
axl_ joined21:38
nobitanobi osse: without the SHA1?21:39
osse no21:39
nobitanobi ok21:39
osse21:40
it worked21:40
thank god.21:40
OrpheusP joined21:40
dancat left21:40
nobitanobi well thank you.21:40
osse hooray21:40
now read up on what -m means to know what you did21:41
Gavrisimooo joined21:41
nobitanobi going to21:41
thanks21:41
pawprint can i do a "git reset --hard" to get back to the state before i did my "git commit --amend" ?21:41
eletuchy joined21:41
jast left21:41
livingstn left21:41
osse pawprint: use the reflog. if you have done literally nothing since doing the --amend it should be git reset --hard branch@{1}21:41
dougsland joined21:42
axl_ left21:42
guzzlefry I want to get rid of the last few commits/merges. Is git reset --hard <commit_id> the best way?21:42
pawprint osse, is "branch" the literal word "branch"? or the name of the branch i'm on?21:42
SocalNick left21:42
SocalNick_ joined21:42
osse pawprint: the latter21:42
skorgon guzzlefry, well, !rewrite applies21:42
gitinfo guzzlefry: Rewriting public history is not recommended. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum21:42
Nicholas_Rishel joined21:43
jast joined21:43
sdouglas joined21:43
mehdi__mehdi21:43
Gavrisimo left21:44
bambams_ pawprint: Also acceptable would probably be HEAD (which I think is also default so just @{1} should work, AFAIK).21:44
aberrant left21:44
CKyle left21:45
tyreld joined21:45
JoshDreamland left21:45
osse bambams_: true, but it's every so slightly more "vulnerable". If he has checked out other branches for example21:46
bambams_: then branch@{1} would be the same but HEAD@{1} not21:46
eletuchy left21:46
sdouglas left21:47
guzzlefry error: 'module/achievements' appears as both a file and as a directory <-- So, I think I've broken things.21:47
whitemoustache left21:47
guzzlefry How can I just reset everything back to HEAD?21:48
rawtaz maybe git reset --hard HEAD21:48
guzzlefry That's the source of the error.21:49
tyreld left21:49
rawtaz well, that if anything really resets stuff afaik21:49
so what else do you mean?21:49
guzzlefry ah, had to use sudo.21:50
Dougie187 left21:50
aberrant joined21:50
CorySimmons joined21:50
bambams_ osse: Sure, but $branch@{1} still hinges on the assumption that he hasn't done anything that would affect $branch. More than likely, HEAD@{1} is right, and if it's not then we should probably confirm first that $branch@{1} would be. :)21:50
mellernoia joined21:50
CorySimmons left21:50
maroloccio2 left21:50
osse heh yeah21:50
well, I said "use the reflog" :P21:50
CorySimmons joined21:50
bambams_ Does Git track the reflog for branches by default?21:51
sgambino left21:51
osse bambams_: yes21:51
otherwise foo@{1} wouldn't have worked21:51
hmm, maybe it's disabled by default for bare repos. not sure21:51
tyreld joined21:52
bambams_ Yep.21:52
Unless you set the core.logAllRefUpdates bare repos won't log them unless the file exists.21:52
zumba_addict left21:53
CorySimmons left21:53
thevishy left21:53
bambams_ guzzlefry: Eeek, ideally you should never need root privileges when using Git. :)21:54
guzzlefry I probably shouldn't be working with a fever either. >_>21:55
francisfish left21:55
adac left21:55
SocalNick joined21:55
tyreld left21:56
dragon3_ joined21:56
SocalNick_ left21:57
matt_ joined21:57
matt_Guest1458321:58
jnavila left21:58
tyreld joined21:58
CKyle joined21:58
Naoe-Kanno joined21:58
zajn left21:58
SHyx0rmZ left21:58
bobkosse joined21:59
Guest14583 Hi everyone. Would anyone be able to answer a quick question for me please?21:59
pawprint left21:59
Guest14583 I just installed git in cygwin, from the repo on git-scm.com, but when I do git --version22:00
I get "git version 1.9.0.152.g6ab4ae2" instead of "git version 1.9.0"22:00
oodavid left22:00
Guest14583 is this normal?22:01
dragon3_ left22:01
cbreak Guest14583: sure.22:01
tieTYT left22:01
_ikke_ yes, I think so22:01
cbreak you have a newer version.22:01
(it's from commit 6ab4ae2 in git.git)22:01
whitby left22:01
mizu_no_oto left22:02
Guest14583 ah, okay... I see. thank you so much22:02
_ikke_ I guess some windows specific patches22:02
Zifre joined22:02
cbreak maybe.22:02
Umschwung left22:02
LBV_User left22:03
ninsei_ joined22:04
ninsei_ left22:04
shawndumas joined22:04
arif-ali joined22:04
ninsei_ joined22:04
ninsei_ left22:05
Hello71 joined22:05
sjokkis i added a pre-commit hook in .git/hooks/ but it doesn't show up as an edited file with "git status" and i get an error when i try to add it with "git add". how am i supposed to be doing this?22:06
ninsei_ joined22:06
Guest14583 left22:06
bambams_ sjokkis: You do not track hooks. Anything inside of the repo (.git/) is not tracked.22:06
ninsei left22:06
jluc joined22:06
bambams_ sjokkis: If you wanted to hack it perhaps you could make .git/hooks/pre-commit a symlink that pointed up into your repo. Not sure if Git would like that or not.22:06
jizanthapus left22:07
erikruthven joined22:07
bambams_ sjokkis: If you want for everybody using the repo to automatically have that hook installed it doesn't work that way. :)22:07
sjokkis bambams_: how are you supposed to enforce certain things (no trailing whitespace in this instance) if you can't track commit hooks?22:07
james_d_h joined22:08
skorgon don't give everybody push permissions and review code?22:08
riceandbeans joined22:08
bambams_ sjokkis: You do that at some boundary. Perhaps a centralized repo that everybody pushes to, or perhaps whoever is responsible for accepting changes and merging them in needs to enforce this at their repo.22:08
ZaeDrake joined22:08
sjokkis we use github. not sure if it's possible22:09
riceandbeans I have a submodule that I added locally, I pushed to my server, and on another machine doing the pull, it doesn't get the contents of the submodule22:09
bambams_ sjokkis: Check if GitHub supports hooks (I think it does) and install a hook there.22:09
riceandbeans can anyone help me figure out how to get the contents or what I'm doing wrong?22:09
skorgon sjokkis, sure it is, let everybody work in a fork and let them open pull requests22:09
those can be reviewed and you merge them only if they comply to your coding standards22:09
sjokkis skorgon: that is our current workflow22:10
skorgon: i guess trailing whitespace just slips through sometimes22:10
skorgon sjokkis, then your review process is broken :P22:10
riceandbeans sjokkis: do you use vim?22:10
bambams_ sjokkis: You can't catch it at commit time. That is a client-side operation. The client must be considered hostile. :)22:10
riceandbeans sjokkis: I have some code you might like if you do22:10
AhabsBeard left22:10
Destos joined22:11
Macaveli left22:11
sjokkis riceandbeans: i already use the commit hook that catches trailing whitespace22:11
riceandbeans add this to your .vimrc22:11
" Delete trailing white space on save, useful for Python and CoffeeScript ;)22:11
func! DeleteTrailingWS() exe "normal mz" %s/\s\+$//ge exe "normal `z"22:11
endfunc22:11
autocmd BufWrite * :call DeleteTrailingWS()22:11
boombatower joined22:11
The-Mad-Pirate-2 joined22:11
riceandbeans so, if you ever open a file in vim from now on, and write, it deletes all trailing whitespace in the whole file22:11
anyway22:12
TMP|Uni left22:12
riceandbeans can anyone help me with my submodule issue?22:12
skorgon so don't program in whitespace :P22:12
reskp left22:12
riceandbeans skorgon: I hate python22:13
skorgon riceandbeans, you did git submodule init and git submodule update?22:13
pantsman left22:13
skorgon riceandbeans, not python, http://en.wikipedia.org/wiki/Whitespace_%28programming_language%2922:13
ZaeDrake left22:14
sgen joined22:14
xaq joined22:14
riceandbeans skorgon: no, I did git submodule add https://github..... localname22:15
git add localname22:15
git commit22:15
git push22:15
on the other end22:15
git pull22:15
other end didn't get contents of the cloned repo22:15
Tabmow left22:15
reskp joined22:15
Tabmow joined22:16
skorgon riceandbeans, i'm not fully sure, but i'm pretty sure you need to do git submodule init and update (or one of them at least, and i don't know the order either), but simply pulling doesn't fetch submodules, I think.22:16
SocalNick_ joined22:16
skorgon wait, it got nothing? or just not the contents of the submodule?22:17
SilverBln left22:18
ojacobson joined22:18
SocalNick left22:18
SocalNick_SocalNick22:18
riceandbeans skorgon: not the contents of it22:19
let's go this way, A, B, C22:19
A is my, B is server, C is another client22:19
with me so far?22:19
dirte left22:19
bambams_ riceandbeans: Try git submodule update --init. ;)22:19
dirte joined22:19
riceandbeans A does git submodule add repourl localname && git add localname && git commit && git push22:19
russ_ left22:20
skorgon as i said, if you clone a repo with submodules you need the init and update stuff22:20
riceandbeans C does git pul22:20
gitinfo set mode: +v22:20
bambams_ riceandbeans: I'm with skorgon. I don't think that submodules automatically clone. You need to explicit enable them in each clone.22:20
riceandbeans bambams_: on C or A22:20
skorgon C22:20
riceandbeans one sec22:20
git submodule update --init22:21
chris_thomson joined22:21
riceandbeans No submodule mapping found in .gitmodules for path 'cpan'22:21
githogori left22:21
pantsman joined22:23
diegovio1 joined22:24
oodavid joined22:24
jimmyy joined22:25
ezekielnoob left22:25
trusktr joined22:25
darnir_ joined22:25
jimmyy left22:25
githogori joined22:25
bambams_ riceandbeans: Does .gitmodules exist in C?22:25
mrstocks any linux peeps here?22:25
jimmyy joined22:25
oracal left22:26
bambams_ mrstocks: A stupid question, I'm sure.22:26
jimmyy left22:26
mrstocks just wondering why you know what deomon "ArrGGgg" is runing on a certain port22:26
LeMike joined22:26
dougsland left22:26
mrstocks i a netstat22:27
jimmyy joined22:27
axl_ joined22:27
jimmyy left22:27
diegovio1diegoviola22:27
roymiloh joined22:27
jimmyy joined22:27
jimmyy left22:28
ojacobson mrstocks: It's not something git-related, that's for sure22:28
Freeman42 left22:29
jimmyy joined22:29
mrstocks nop four sure dawg22:29
bwaxxlo left22:29
guzzlefry http://git-scm.com/book/en/Git-Internals <-- Can this chapter helpful to read through for the end-user?22:29
whitemoustache joined22:29
russ_ joined22:29
smrtz|nix joined22:29
jimmyy left22:29
hholtmann left22:29
reskp left22:29
Luke-Jr left22:30
bobkosse left22:30
jimmyy joined22:30
woollyams joined22:30
smrtz|nix Hey, I'm trying to push, but I'm getting a remote rejected master -> master (pre-receive hook declined). Can someone tell me what that means please?22:30
jimmyy left22:30
Luke-Jr joined22:31
russ_ left22:31
jimmyy joined22:31
russ_ joined22:31
jimmyy left22:31
oodavid left22:31
bambams_ riceandbeans: It worked for me just fine. Make sure that .gitmodules is tracked in A.22:31
roymiloh left22:32
jimmyy joined22:32
mrstocks i guess you better ban me for asking simple question ;)22:32
sorry22:32
oodavid joined22:32
mrstocks but im happy with my simple questions22:32
smrtz|nix mrstocks: if they did that, I've have been long gone..22:32
shruggar joined22:33
Destos left22:33
mrstocks aaaaaaaah /slap/22:33
multiverse left22:33
smrtz|nix mrstocks: Any idea on that error I just posted??22:33
misterpink left22:34
bambams_ smrtz|nix: A hook on the server doesn't like something about you pushing that master. If the hook is any good it should have told you what it didn't like.22:35
pantsman left22:35
riceandbeans bambams_: it is, but the file didn't get pulled either22:35
mrstocks Sorry im a retarded user when it comes to git but there are really interesting people like bambams_ and rawtaz22:35
AhabsBeard joined22:35
riceandbeans bambams_: to make TOTALLY sure I even rm -rfv the directory on C and cloned all over again22:35
thedodd left22:35
doener left22:35
smrtz|nix bambams Ok, I'll reread the error again.22:35
riceandbeans bambams_: I had to add the .gitmodule file manually on C with contents from A, then git submodule update --init22:35
bambams_ riceandbeans: Either PEBKAC or you've found a bug. Make sure that B has the right history.22:35
deuti joined22:36
githogori left22:36
riceandbeans bambams_: how would I do that?22:36
frogonwheels joined22:36
riceandbeans bambams_: I'm running gitolite on a VM in my cluster22:36
I spun it up as sort of a small thing to hold some of my code and now it's getting treated like production, which sucks because that wasn't my intent22:37
bambams_ riceandbeans: Go to your A subdirectory, fetch, and compare. E.g., git log origin/master..master.22:37
demiurgo left22:37
reskp joined22:37
riceandbeans bambams_: well it's not in master branch22:37
bambams_ s/subdirectory/working tree/22:37
gnugnu9 joined22:37
bambams_ riceandbeans: Well adjust the command accordingly for local and remote refs.22:37
riceandbeans A shouldn't need to fetch because it's the only one commiting and pushing22:37
robarell_ joined22:38
bambams_ riceandbeans: Which branch is checked out in C?22:38
ferreum left22:38
riceandbeans ...22:38
crap22:38
riceandbeans starts over...22:38
james_d_h left22:38
breakfast joined22:39
nobitanobi left22:39
demiurgo joined22:39
AaronMT left22:39
riceandbeans bambams_: :( I checked out the wrong branch after removal and clone22:40
so it kinda works now22:40
but still needed to run another command on client22:40
C22:40
Destos joined22:40
riceandbeans bambams_: so I have an hourly cron on C, because it has readonly access to the repo, to pull any changes22:40
if I add to that, git submodule update --merge, will that take care of the submodule too?22:41
mf_ left22:41
bambams_ riceandbeans: You know as much about submodules as I do.22:41
ariscop left22:41
eletuchy joined22:42
Kayra left22:42
bambams_ riceandbeans: My intuition without checking the man page would be that --merge isn't necessary if C is read-only.22:42
Kicer86 left22:42
bambams_ left22:42
smrtz|nix left22:43
ojacobson git submodule sync && git submodule init --update22:43
mf_ joined22:43
ojacobson update --init, rather22:43
the sync is to update any modules whose URLs have changed22:43
the update is to fetch changes and check them out22:43
mf_Guest8246022:43
ojacobson (and set up any new submodules)22:43
phantomtiger left22:44
erikruthven left22:44
riceandbeans ojacobson: thanks22:44
bwreilly left22:45
matheus23 left22:46
diegoviola left22:46
demiurgo left22:46
eletuchy left22:46
trewe joined22:47
guzzlefry Situation: I have been merging staging branch into master branch. Now I have a commit in master that needs to go into staging. What's the best route? Simply git checkout staging; git merge master? Or would something like rebase be more appropriate?22:48
diegoviola joined22:48
g1 left22:48
demiurgo joined22:48
misterpink joined22:49
OrpheusP left22:49
dsdeiz joined22:50
grumbel_ guzzlefry: if there is only that one commit in master since you've merged feature, co staging; merge master would work; if not, you could cherry-pick that one commit22:51
guzzlefry grumbel_: Will that destroy any uncommitted changes or untracked files without warning?22:52
shawndumas left22:53
Corey This is interesting. Git status shows a bunch of staged changes. "git commit" returns status code 0.22:53
Never seen this one before.22:53
rainmanjam left22:53
dagnachew joined22:54
guzzlefry status code 0 usually means everything was fine, doesn't it?22:54
Corey guzzlefry: Yes. :-)22:54
rainmanjam joined22:54
Corey That's the point.22:54
erikruthven joined22:54
guzzlefry oh, I misread. :P22:54
Corey "git commit" doesn't drop me to an editor, nothing-- but there are many files under "Changes to be committed:"22:54
ngladitz left22:55
scarabx joined22:56
afuentes left22:56
sohail left22:56
Corey git log shows the last change was six days ago.22:56
I'm really at a bit of a loss here.22:56
pierre1_ joined22:56
dragon3_ joined22:56
grumbel_ guzzlefry: untracked files - no, unless they were tracked by the other commit; staged changes - yes; commit them to a new branch or stash them first22:57
sburgess left22:58
Corey I'm wrong.22:58
git commit returns status code -122:58
But no error message.22:58
ariscop joined22:58
Corey Hmm, maybe I can increase the verbosity.22:59
sdouglas joined23:00
ninsei joined23:00
senj left23:00
Kayra joined23:00
mishok13 left23:01
dragon3_ left23:01
firc left23:01
firc joined23:01
firc left23:01
firc joined23:01
ninsei_ left23:01
Corey Were this on Linux I could strace it, but it's OS X.23:03
snql left23:03
albel727 left23:04
votyx left23:04
sparr left23:04
Gavrisimooo left23:05
ojacobson (env; git config --list) | pbcopy # and paste into a gist23:05
riceandbeans left23:06
ojacobson Then, while we read the entrails, consider the dtruss documentation.23:06
james_d_h joined23:06
Sabbath joined23:06
mrstocks `thx for all the fish23:06
mrstocks left23:06
torste left23:07
mewm left23:07
rainmanjam left23:07
sohail joined23:07
sohail left23:07
sohail joined23:07
sohail left23:08
sohail joined23:08
sohail left23:08
sohail joined23:08
bwreilly joined23:09
oodavid left23:09
sparr joined23:10
torste joined23:11
Sabbath left23:11
Corey ojacobson: https://gist.github.com/KB1JWQ/6035c52b44bbf27a43ae23:11
ojacobson: Ugh, dtruss. :-)23:11
axsuul joined23:12
Corey Waiiiit a second.23:13
SorenHolm left23:13
sdouglas left23:13
Corey ojacobson: Found it.23:13
I've got a lame pre-commit hook.23:13
RichardJ left23:13
Corey Remind me to strangle someone.23:14
Possibly me.23:14
sdouglas joined23:14
CKyle left23:15
n-st left23:16
RichardJ joined23:17
rfoust joined23:17
sdouglas left23:18
jluc left23:19
primitive left23:19
ojacobson Surprised not to see core.editor or EDITOR or VISUAL or GIT_EDITOR set23:21
Corey ojacobson: % echo $EDITOR23:21
vim23:21
yoday joined23:22
anry left23:22
robarell_ left23:22
Corey ojacobson: But % env |grep EDITOR doesn't display it. Is that a zsh strangeness I wonder?23:22
anry joined23:22
ojacobson possibly. Since the default editor is vi(m?) anyways, I doubt you'd notice.23:23
guzzlefry Is there anyway to do a 'test' merge?23:23
something completely non-destructive23:23
ojacobson guzzlefry: git checkout -b test-merge && git merge foo23:23
CKyle joined23:23
cbreak merges don't really destroy anything.23:23
infynyxx left23:23
armyriad left23:23
guzzlefry ah23:24
sparr left23:24
guzzlefry so, I can just go ahead and try to merge.. :P23:24
ojacobson you'll still need a clean work tree, for conflict-resolution reasons23:24
ncthom91 left23:24
ojacobson and you may be interested in man git-rerere23:24
gitinfo the git-rerere manpage is available at http://jk.gs/git-rerere.html23:24
yoday Hi. I wanted to know if it is possible to push your .git/conf to a git server. I have 2 remote entries in the config file and I want people to get them when they clone the repository.23:24
ojacobson no23:24
freestyl3r left23:25
ojacobson you can include an example config in the repo, but git _intentionally_ won't respect it23:25
skorgon sure, but not as long as it is in .git23:25
ojacobson some config options are equivalent to being able to run commands, which would be a security risk if they could be provided by the internet23:25
dagnachew left23:25
dagnachew joined23:26
yoday Got it! Thanks guys!23:26
yoday left23:26
guzzlefry So I did a git fetch; to pull in changes on master, I want to merge master with staging but that doesn't seem to work. What am I doing dumb?23:26
I'm on the staging branch.23:27
osse guzzlefry: 'git merge master'23:27
skorgon guzzlefry, do you want to merge with master or origin/master?23:27
guzzlefry origin/master23:27
osse 'git merge origin/master'23:27
guzzlefry oh wait, I can probably just...yeah that23:27
hyperair left23:27
guzzlefry thanks23:28
ariscop left23:28
decotii left23:29
LeMike left23:29
sparr joined23:30
dort joined23:30
GT4066 joined23:30
osse guzzlefry: when you do 'git fetch' only origin/master (and origin/foo and otherplace/bar) is updateed, not the local branches. But I suppose you could git checkout master; git merge origin/master; git checkout staging; git merge master23:30
torjus joined23:30
rfoust left23:31
osse the only different would be the default commit message text23:31
*difference23:31
guzzlefry Is there a good way to handle this: error: The following untracked working tree files would be overwritten by merge:23:31
osse (assuming master would be FFed to origin/master)23:31
Sonderblade left23:31
guzzlefry I'm guessing that error is due to the files being tracked in the branch I'm trying to merge?23:31
osse yep23:31
skorgon guzzlefry, commit or stash your changes23:31
guzzlefry They're not tracked.23:31
skorgon (doesn't git suggest that?)23:31
then they are tracked in the branch you merge with?23:32
guzzlefry yep23:32
suppose I could just delete them?23:32
osse guzzlefry: that they're untracked doesn't mean you can't commit them23:32
AhabsBeard left23:32
skorgon if you don't need them anymore, sure23:32
osse but seeing as they are untracked I assume they're not important.23:32
thiago joined23:32
osse but you know the answer to that better than us23:32
james_d_h left23:33
snuffeluffegus joined23:33
Okaria_ left23:33
dagnachew left23:33
dagnachew joined23:34
ojacobson asking the internet if you should "just delete" some files is a sure recipe for comedy23:34
Okaria joined23:34
diegoviola left23:34
guzzlefry or despair in my case23:34
osse but it's suspicious: in one branch they are *present* but untracked. In the other branch they're tracked. Reminds me of the dude who had commited .class files23:34
torjus left23:35
sgen left23:35
whitemoustache left23:35
tapout left23:36
guzzlefry An update was done on staging and production, but 'mostly' reverted on staging. The changes on production were committed and pushed to origin/master.23:36
Pretty sure that's the reason why.23:36
lagweezle left23:36
dagnachew left23:37
dagnachew joined23:37
ozymandias left23:37
madewokherd joined23:37
dreiss left23:37
Spamoi left23:38
Noldorin left23:38
thierryp left23:39
JanC left23:39
thierryp joined23:40
Spamoi joined23:41
W0rmDr1nk joined23:41
ethlor joined23:41
tapout joined23:41
CreativeEmbassy left23:42
eletuchy joined23:43
MachineX left23:43
tapout left23:43
agliodbs left23:43
PeterBooker left23:44
hyperair joined23:44
ozymandias joined23:44
aberrant left23:44
WormDrink left23:44
thierryp left23:45
armyriad joined23:45
whitemoustache joined23:45
dsdeiz left23:45
LBV_User joined23:46
jaimef left23:46
eletuchy left23:47
demiurgo left23:47
jaimef joined23:47
juril left23:47
agliodbs joined23:48
dagnachew left23:48
harobed left23:48
dagnachew joined23:48
trusktr left23:48
zumba_addict joined23:50
lindenle_ joined23:51
pinpin404 left23:52
JerryT joined23:52
v0n left23:52
lifelike joined23:52
JanC joined23:53
lindenle left23:53
leeN left23:53
Kayra left23:54
infynyxx joined23:54
darnir_ left23:54
jimmyy_ joined23:54
jimmyy_ left23:55
Kayra joined23:55
jimmyy_ joined23:55
Kayra left23:55
ozymandias left23:55
jimmyy left23:55
diegoviola joined23:56
jimmyy_ left23:56
arif-ali left23:56
rfoust joined23:56
axl_ left23:56
dragon3_ joined23:56
Naoe-Kanno left23:56
jimmyy joined23:56
Destos left23:57
Leoneof left23:57
juril joined23:58
Leoneof joined23:58

Logs Search ←Prev date Next date→ Channels Documentation