IRCloggy #git 2013-08-15

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.

2013-08-15

ArokhArokh[Off]00:00
hobodave joined00:01
dmarkham left00:01
rednaks joined00:01
steveoh left00:02
endiruna left00:03
whaley left00:03
frgtn left00:05
aarwine left00:06
endiruna joined00:06
endiruna left00:07
aarwine joined00:11
endiruna joined00:11
echo-area joined00:11
verysoftoiletppr left00:11
bobdobbs` joined00:11
ColKurtz left00:11
alexwhitman left00:11
arnej left00:11
gusnan left00:11
suy joined00:11
arnej joined00:11
bobdobbs left00:11
m0viefreak left00:11
dreiss left00:11
verysoftoiletppr joined00:11
bandroidx left00:12
tinti_ joined00:12
bandroidx joined00:12
bandroidx left00:12
bandroidx joined00:12
ColKurtz joined00:12
jgornick joined00:13
alexwhitman joined00:14
luxgeek left00:14
savr left00:14
dmarkham joined00:15
EF0 left00:15
savr joined00:16
ojacobson left00:17
glosoli left00:17
Roots47 left00:19
hobodave left00:19
Gitzilla joined00:21
dmarkham left00:22
iliketurtles left00:22
endiruna left00:23
rednaks left00:24
Nicholas_Rishel joined00:24
dmarkham joined00:25
simesy_ left00:26
insejn left00:27
scripty left00:29
michaela_ joined00:30
michaelarestad left00:30
nucatus joined00:31
fdel left00:32
vince_prignano left00:32
bmac_ left00:34
refried_ left00:35
nucatus left00:36
epta joined00:37
rickruby joined00:37
srcerer joined00:38
harish left00:39
michaela_ left00:40
simesy joined00:40
michaelarestad joined00:41
rickruby left00:42
tjbiddle left00:42
_iron left00:43
Swayz left00:45
michaelarestad left00:45
hyperair joined00:46
tplaner left00:47
ameagher joined00:48
ology left00:48
rfoust left00:49
Tuna-Fish left00:49
amcsi left00:49
Roots47 joined00:50
rfoust joined00:51
garbagecollectio left00:52
dkpi left00:52
Tuna-Fish joined00:53
BitPuffin left00:53
simesy left00:53
umib0zu joined00:56
simesy joined00:56
goshawk left00:57
Goplat joined00:57
bmac_ joined00:58
freestyl3r left00:58
tplaner joined00:58
Destos left00:59
Dougie187 joined00:59
sershe left00:59
weiyang joined01:00
ColKurtz left01:01
Roots47 left01:01
Joshi3s` left01:01
Milossh left01:01
jfoy left01:01
Joshi3s` joined01:02
Roots47 joined01:02
bmac_ left01:02
spaceonline joined01:03
lavaman joined01:03
intripoon joined01:03
spaceonline left01:04
k_sze[work] joined01:04
Suprano left01:04
mizu_no_oto joined01:06
HerrK left01:06
intripoon_ left01:06
Milossh joined01:06
lavaman left01:08
Marenz joined01:09
Suprano joined01:10
simesy left01:11
Davey joined01:11
v0n joined01:13
nadirvar_ left01:14
maroloccio left01:14
tmcmahon joined01:14
unomystEz joined01:15
Marenz left01:15
sershe joined01:16
unomystEz hey all.. as sad as it may sound, our repo has a mix of crlf and lf line endings, one of our team members set gitattributes to include '* text=auto' and committed it to our branch, since then a few merges took place from the parent branch to our branch with the gitattribute set and unfortunately these merged files' line endings changed to unix style.. we have since removed the git attribute and merges are fine now but every so often we get massive con01:16
flicts due to line endings when merging in...01:16
is there a way to revert our files (with our changes intact) to the same line endings as the parent branch for the files affected?01:17
thiago left01:18
Vampire0_ joined01:18
dmarkham left01:18
iveqy unomystEz: no and yes, you could do a rebase and edit the errornous commits01:19
unomystEz: more seriously though, it looks like you've a problem with your review process01:19
natechan joined01:19
AaronMT left01:19
iveqy unomystEz: a rebase will give you new commits and !public applies01:19
gitinfo unomystEz: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to). If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum01:19
unomystEz iveqy, it's actually a local branch, and yes, the offender is a new employee and intern and kinda screwed us01:19
review process is changing though01:20
iliketurtles joined01:20
zivester left01:20
unomystEz so if our branch is called master2 and it's branched from master, you're saying to do a `git rebase origin/master`?01:21
from master2 that is01:21
iveqy unomystEz: if they just are on a local branch, there can't be very many. I'd suggested a git rebase -i01:21
no01:21
Muuuh joined01:21
Muuuh Hello01:21
iveqy I would say: git checkout master2 && git rebase -i HEAD~<whatever number>01:21
gitinfo Muuuh: 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.01:21
pandeiro joined01:22
Vampire0 left01:22
unomystEz <whatever number> points to the commit where master2 was branched from master or where the gitattribute was introduced and all subsequent merges from master?01:23
FernandoBasso left01:23
unomystEz iveqy, sorry if I have trouble following, I'm doing my best to learn git01:23
stuff left01:23
iveqy unomystEz: http://git-scm.com/book/en/Git-Tools-Rewriting-History01:23
danecando joined01:24
unomystEz ah01:24
Muuuh Issuing a "git status" on two different shells gives different results. One one I'm ssh'ing into a linux box where the files are, the other one is msysgit bash, working directory set to samba shared folder of said linux box. First shows files with "changes not staged for commit", the second one doesn't show them. I'm puzzled.01:26
trungqtran joined01:28
flaguy48 left01:29
luc_ joined01:30
simesy joined01:31
nucatus joined01:32
pitzips left01:32
looper left01:35
tanema joined01:36
nucatus left01:36
tplaner left01:36
harish joined01:36
frgtn joined01:36
jfoy joined01:37
dsdeiz joined01:37
looper joined01:39
tmcmahon left01:41
ledestin left01:44
jfoy left01:44
Noldorin left01:44
Noldorin joined01:47
iveqy Muuuh: still did you edited the files on the windows machine?01:48
mdhopkins left01:50
frogonwheels joined01:51
vansonhk_ joined01:52
normanrichards left01:52
kesroesweyth left01:52
Nicholas_Rishel left01:53
relipse left01:53
mizu_no_oto left01:54
relipse joined01:54
Muuuh iveqy: yes01:54
vansonhk__ joined01:54
vansonhk_ left01:54
vansonhk__vansonhk_01:54
Muuuh iveqy: but I'm sure I had commited the changes01:54
rpg joined01:54
Muuuh iveqy: should I avoid editing on the win machine ?01:55
iveqy Muuuh: no, you should be aware of that git is a disk intense program not intended to be used over a network01:56
Muuuh: and that it might sync badly or slowly01:56
Muuuh hmmm01:56
tinti_ left01:56
Muuuh not too sure I understand... does git "monitor" the folder ?01:57
iveqy Muuuh: check the timestamps on the files that are marked as changed, are the timestamps the same on the windows machine and the linux machine?01:58
Muuuh hold on01:58
joki left01:58
daito joined01:59
thiago joined01:59
Muuuh hmm... interestingly enough, no. They have 3 hours difference01:59
vansonhk_ left01:59
Muuuh ahhh... time is not set properly on the linux box...02:00
pantsman joined02:00
yeboot joined02:00
iveqy do I need to say that it's a not recommended setup? ;)02:00
there's a lot of this kind of errors that git can't do anything about02:01
vansonhk_ joined02:01
yeboot is there a way to edit the commit message in vim? I'd rather be presented with a vim screen02:01
jhulten left02:01
iveqy yeboot: yes02:01
yeboot: set your $EDITOR enviroment variable or just set core.editor02:02
joki joined02:03
Muuuh iveqy: ok, timezone was wrong on linux box... timestamps are now the same in both shells, but I still get the same discrepency when running "git status" on both02:04
zerocool left02:04
CheckDavid left02:05
iveqy Muuuh: are the timestamps in the future on the linux box?02:05
yeboot thanks iveqy02:05
vansonhk_ left02:05
joshsmith left02:05
Muuuh iveqy: they were, yes, but now they are ok02:06
iveqy Muuuh: why do you have this strange setup?02:06
Nicholas_Rishel joined02:06
Muuuh strange ?02:06
Aside from the timezone being whacked, what do you find strange about having files on a linux server ?02:07
sarcasticsimba joined02:07
sarcasticsimbavigs02:07
iveqy Muuuh: I find it strange to have a disk intense distributed tool like git, running over a network02:07
Muuuh I don't understand. What is "running over a network" ?02:08
iveqy samba is a network file system02:08
rickruby joined02:08
Muuuh I have files on the linux box, I edit them from the windows box. This doesn't require git as far as I know.02:09
normanrichards joined02:09
iveqy Muuuh: but you run git on the windows box02:09
yeboot iveqy: there's nothing wrong with running git over a network02:09
Muuuh iveqy: yes, samba is a network file system, but I don't see how git has anything to do with me editing the file over samba02:09
cads joined02:09
iveqy yeboot: yes, it's slow as hell02:09
Muuuh: it have nothing to do with it, but you say that you're running git on the windows box too, that is running git over a network02:10
yeboot wait Muuuh are you just using the samba as a remote or as the location of the git repo02:10
Muuuh slow ? Is git doing anything in the background ?02:10
yeboot iveqy provided you have a local clone and are using the network to manage remotes, using a network is fine02:10
Muuuh yeboot: git repo... the remote is on github02:10
Guest6856 joined02:10
iveqy Muuuh: no, but a file access to a samba share is _much_ slower than a file access to the local harddrive02:10
iliketurtles left02:10
threesome left02:10
yeboot iveqy that might not be a concern to him02:11
iveqy yeboot: yes of course, that's the way git is intended to be used02:11
Muuuh iveqy: it's fast enough for me. Local LAN. Editing is perfectly fine. I just don't understand why both shells show different results02:11
Guest6856diegoviola02:11
iveqy yeboot: and it's obviously is because he have sync problems02:11
nkambo joined02:11
girishr joined02:11
Muuuh could have been because of the wrong timezone02:12
j416_j41602:12
iveqy Muuuh: probably a syncing issue, samba is probably setup to do some clever trick to make things look fast for you02:12
Muuuh they do have the same timestamp though02:12
iveqy Muuuh: but yeah, the timestamp issue can still be a problem if you've strange timestamps anywhere02:12
Muuuh they are physically the same files02:12
I fail to see how locally editing the file on the linux box is going to be any different than editing it on the windows box02:13
iveqy Muuuh: yes but what about the timestamps under .git?02:13
guzzlefry left02:13
Muuuh iveqy: how do I find out ?02:13
iveqy Muuuh: look at them?02:13
rickruby left02:13
Muuuh hold on02:14
ok... I'm pretty green with git02:15
v0n left02:15
iveqy Muuuh: when you edit a file on windows, the flow is file -> samba cache -> network -> smbd -> ext4 -> harddisk, when you edit a file on the linux machine it more like: ext4 -> harddisk02:15
Muuuh iveqy: agreed, but I've edited those file like an hour ago !02:15
iveqy Muuuh: you've a lot of more things to configure and make sure they work, and you've a lot more steps that can give you problem02:15
Muuuh I sure hope the samba cache is flushed by now ;-)02:15
rurufufuss left02:15
iveqy Muuuh: yeah, but you'd 3 hours wrong on your timezone02:16
pekster Why not just clone onto the Windows box?02:16
Muuuh iveqy: right, so how do I update the timestamp in .git ?02:16
pekster Wouldn't that just make this all go away?02:16
iveqy pekster: yes it would02:16
Muuuh: touch them02:17
Muuuh pekster: it might, but why clutter my laptop when I can have those files on a local server ?02:17
pekster Because git's not really designed to be used how you're using it02:18
And you appear to be running into some classic cross-platform issues with the setup02:18
Destos joined02:18
EugeneKay I left my h@ on again :-/02:19
EugeneKay set mode: -o02:19
Muuuh pekster: so, what you're saying is that when one has a local repo, he should only edit it on the machine where the repo is physically located ?02:20
iveqy EugeneKay: how would you convience someone that using a git repo on a samba share from both linux and windows simutaniously is a bad idea?02:21
EugeneKay With a cluebat.02:21
Muuuh Does it really matter how the file is edited ?02:21
ok.. now we're going to resort to insults02:22
iveqy Muuuh: didn't I explained that to you at 04:19?02:22
Guest54726 left02:22
pantsman left02:22
Muuuh iveqy: no02:23
tinti_ joined02:23
pekster Could be issues with your git config on the systems too02:23
iveqy Muuuh: 04:19 < iveqy> Muuuh: when you edit a file on windows, the flow is file -> samba cache -> network -> smbd -> ext4 -> harddisk, when you edit a file on the linux machine it more like: ext4 -> harddisk02:23
04:19 < iveqy> Muuuh: you've a lot of more things to configure and make sure they work, and you've a lot more steps that can give you problem02:23
pekster You're getting "different results" on "different systems" -- stop using different git configurations then02:23
Muuuh iveqy: 04:19 has no meaning to me whatsoever02:23
pekster Very simple really02:23
See git-config(1) for details02:23
iveqy Muuuh: it has, for example if you export your mtime setting wrong on samba, you'll have problems02:24
tiglog joined02:24
Muuuh pekster: ahh.. now we're getting somewhere02:24
rickruby joined02:24
pekster Yet *another* reason why what you're doing is a Bad Idea™02:24
iveqy Muuuh: you'll have a samba cache on your windows machine that break things02:24
Muuuh: let's say it like this. Yes it _should_ be possible to do the way you to, but in reality there's so many pitfalls that it's stupid to do. You're already experiencing them02:25
Muuuh iveqy: please drop the use of insults. I'm trying to get facts here, not opinions02:26
iveqy Muuuh: I haven't insulted you at all. and I've gived you plenty of facts02:26
Muuuh: for example have you touched all your files in .git yet?02:26
Muuuh the files are on the linux box because that's where I have node installed, and I won't install node on Windows02:27
Nitrodex joined02:27
Muuuh iveqy: no, I haven't touched anything yet cause I'm not sure that manually editing/updating stuff in .git is safe02:27
NitrodexGuest8335902:27
iveqy this sounds familiar, was it you that where here a few days ago with problems about this?02:27
Muuuh iveqy: no, first time ever on this channel02:27
iveqy Muuuh: I haven't told you to edit or update anything, I've told you to touch them02:28
type man touch in your terminal if you don't know what touch is02:28
Muuuh well, touch will update the timestamp, won't it ?02:28
iveqy Muuuh: okay, well, you're not the only one trying this setup and gets bitten by it..02:28
yes it will02:28
Muuuh Ok, so should one manually "touch" the contents of .git ?02:29
Fritz7 left02:29
Muuuh isn't .git to be "touched" only by git itself ?02:29
s/touched/manipulated02:29
daito left02:29
iveqy depends on if you might have some problems with the timestamps in there (since your 3 hour error)02:29
Muuuh ok.. let me try02:29
pekster touch doesn't modify files; it modifes the filesystem metadata (as the manpage you were referenced tells you)02:30
tinti_ left02:30
daito joined02:30
iveqy Muuuh: and yes, ideally, but if you ask what you *should* do with git, you shouldn't do this at all02:30
nucatus joined02:32
Muuuh ok, all files in .git now have the current time02:32
iveqy Muuuh: it can also be a problem with msysgit, I know they had problems with samba shares before and it hasn't been supported at all in all versions02:32
outcoldman joined02:33
mdiers1 left02:33
Muuuh Ok. What options do I have then ?02:33
simesy left02:33
Muuuh I need those files on the linux server to be able to use node, but it's only a server, it doesn't have any GUI, so I need to edit on the Windows box (I prefer Sublime Text)02:34
daito left02:34
Muuuh So should I keep two copies of the repo ?02:34
remember, the remote is on github02:35
iveqy I strongly suggest to have your development enviroment on one machine.02:36
jiangenj In client, if setting url.insteadOf in gitconfig, the git fetch can be redirected. But it needs each client to have the setting.02:36
right?02:36
zivester joined02:36
dougsland left02:36
Dreamer3 joined02:36
iveqy but since you ask, edit stuff in windows, then wait for a few seconds, and then run the git commands on linux02:36
jiangenj But is there a way to set on server side to forward the connections to some other servers02:36
iveqy jiangenj: yes, for each client02:36
nucatus left02:37
iveqy jiangenj: yes there's, look in the manual for your httpd or sshd server02:37
jiangenj can you more clear? I'm using git-daemon02:37
iveqy jiangenj: are you pushing to git-daemon?02:38
mizu_no_oto joined02:38
jiangenj no, I meant git clone/fetch operation02:38
simesy joined02:38
jiangenj because the concurrent connections is big02:38
garbagecollectio joined02:39
iveqy jiangenj: okay, but you want git to forward the fetch to an other machine?02:39
why?02:39
dreiss joined02:39
dsdeiz_ joined02:40
jiangenj yes, my server cannot afford too big connections02:40
dsdeiz left02:40
jiangenj And I don;t want each client to set gitconfig02:40
iveqy jiangenj: you need a load balancer, git is not it02:41
lookup nginx for exmaple02:41
jiangenj Assume I have 24 cores server, how much the max-connections it supports?02:41
nginx is a web service, I think? or it's load balancer02:41
iveqy jiangenj: the bottle neck is the disc IO not the CPU's02:42
nginx can be used as a load balancer, but of course there's other alternatives02:42
EugeneKay Muuuh - I'm not really sure wtf you're doing, but it sounds like you're trying to work with a git repo via a samba CIFS share on a Windows box?02:42
jiangenj - I don't know wtf you're doing either, but see !publish02:43
gitinfo jiangenj: [!publish_github] Publishing git repos via git-daemon or gitweb is not for the faint of heart. Consider using Github as a free place to post your work, and let them worry about administration.02:43
jiangenj so how to test the max-connections?02:43
!publish_github02:43
gitinfo Publishing git repos via git-daemon or gitweb is not for the faint of heart. Consider using Github as a free place to post your work, and let them worry about administration.02:43
sparq_ left02:43
jiangenj nice point of load balancer, will investigate, thanks02:44
iveqy jiangenj: make up a test scenario and run it. As I said, it depends on your operating system, your file system, your disc IO etc.02:44
jiangenj OK, understood02:44
iveqy jiangenj: there's no way I can tell you how many max-connections there can be to a 24 core server02:45
EugeneKay A gajillion02:45
If you're worried abotu the max connections on a git server, urdoinitrong02:45
EdGruberman joined02:46
EdGruberman left02:46
EdGruberman joined02:46
Muuuh iveqy: well, it seems others are reporting similar issues with samba, so I guess I should stick to running git commands on the linux box directly and never on the WIndows box.02:47
pekster Yes, that will solve difference in git configuration between the two02:48
iveqy Muuuh: ... yes, I didn't said it was a stupid idea just to mess with you02:48
Muuuh heh... this is IRC02:48
mdiers1 joined02:48
FreezingCold joined02:48
lindenle left02:49
EugeneKay Yup, which means either he's stupid or you are. In this case, sounds like the latter. :-p02:49
umib0zu left02:51
hahuang61 left02:52
umib0zu joined02:52
daito joined02:52
idoru left02:53
HedgeMage EugeneKay: You forgot the third option: both.02:53
HedgeMage ducks02:53
EugeneKay gooses02:53
iveqy HedgeMage: he said or, not xor ;)02:54
enjoi duck hunt - bang bang i win02:54
Muuuh So the real problem seems to be not in the remote editing of the files, but in the remote running git commands over samba, right ?02:54
iveqy Muuuh: both, but you're less likely to have problems with only editing02:55
mmattice left02:55
Muuuh iveqy: I'll test this for a few days and see02:55
danecando left02:55
pfranz joined02:56
frgtn left02:56
bmac_ joined03:00
trungqtran left03:00
v0n joined03:00
frgtn joined03:01
rbento left03:01
Swayz joined03:02
donmichelangelo left03:03
simesy left03:04
donmichelangelo joined03:04
mizu_no_oto left03:05
realeyes left03:06
deuterium left03:06
acharlieh joined03:07
realeyes joined03:08
jceb joined03:09
dreiss left03:09
dreiss joined03:10
sh4rm4 left03:10
sh4rm4 joined03:11
alvaro_o left03:11
savr left03:12
idoru joined03:12
mmattice joined03:14
tanema left03:14
mizu_no_oto joined03:16
EugeneKay says a few words about girlfriend03:18
acharlieh left03:19
simesy joined03:20
Nicholas_Rishel left03:21
Gwyxx joined03:23
Nicholas_Rishel joined03:24
plumpkin left03:25
GODDOG joined03:26
umib0zu left03:26
shinnya left03:26
kukks left03:27
v0n left03:27
HenryG left03:29
preflex_ joined03:29
Marquisk2 joined03:30
offby1 speaks of himself in the third person03:30
preflex left03:31
preflex_preflex03:31
EugeneKay makes offby1 wear a silly hat03:32
ChanServ set mode: +v03:32
Dreamer3 left03:32
nucatus joined03:33
michaelarestad joined03:34
offby1 wonders what "v" is03:34
hahuang61 joined03:35
pfranz left03:35
pekster "Voice", or allows the weilder to speak (chat) when the channel is moderated (or +m.) It's more commonly used as a gratitous status symbol03:35
Dreadnaught joined03:35
pekster gratuitious? The whiskey is impacting my spelling now :)03:36
Best not push anymore questionable commits tonight03:37
nucatus left03:37
bmac_ left03:38
Nicholas_Rishel left03:38
sparq_ joined03:39
frogonwheels pekster: .. another advantage of git - you can make whiskey impaired commits, and fix 'em up when you're sober before pushing up :)03:40
pekster Hey, even cvs did that!03:40
(just... more poorly.)03:40
offby1 is shocked, shocked03:41
s2013 joined03:41
pekster I already pushed an early commit to github before the whiskey even touched my lips, but I blame the bottle being opened03:41
silly var+="thing" not being POSIX-compliant03:41
Cromulent joined03:42
iveqy actually, cvs storing model is so simple that you can do almost anything with it03:42
bitkiller left03:42
Dougie187 left03:42
iveqy the problem is doing anything at all is really cumbersome03:42
pekster Yes, like convert it to svn or git :P03:42
rchavik joined03:43
rchavik left03:43
rchavik joined03:43
Marquisk2 left03:44
chrisshattuck joined03:45
MrRoot joined03:45
rchavik left03:48
k_sze[work] What's the proper way to edit the commit message of a commit that is even before HEAD (not pushed out yet)03:49
Swayz left03:50
Nicholas_Rishel joined03:50
diegoviola left03:51
hhuuggoo joined03:51
hhuuggoo how do you use git subtree to include a repo that is using submodules?03:51
cigarshark left03:51
guampa left03:51
ameagher That sounds painful03:52
kesha_ joined03:52
rpg left03:52
ecube left03:55
ecube joined03:56
hhuuggoo we pullled a library in using subtree03:56
and then they started using submodules03:56
frgtn left03:56
insejn joined03:57
Someguy123 left03:59
beautifulmind joined04:03
Someguy123 joined04:03
beautifulmind left04:05
towski joined04:05
chuckharmston joined04:05
beautifulmind joined04:08
AWinterm_ joined04:08
natechan left04:09
Someguy123 left04:09
JohnBat26 joined04:10
Cromulent left04:10
chuckharmston left04:10
bitkiller joined04:10
ewnd9 left04:11
jefflyne left04:11
Z3tta left04:13
Kneecaps joined04:14
enr joined04:14
Nicholas_Rishel left04:14
bitkiller left04:15
mizu_no_oto left04:18
MrRoot left04:18
enr left04:19
Tommy[D]_ joined04:19
Destos left04:20
rohan32 joined04:22
AWinterm_ left04:22
Tommy[D] left04:22
rohan32 hi! ive done quite a few local changes and commits but i want to edit the commit message for one of my previous commits before pushing04:23
it isn't my last commit though so i don't think i can use the --amend option, can i?04:23
thanks to anyone who can help in advance :)04:23
tanema joined04:24
huoxito rohan32, git rebase -i04:25
dreiss left04:25
chuckharmston joined04:25
huoxito rohan32, `git rebase -i HEAD~3` in case you want to edit the last three commits I guess04:25
chuckharmston left04:26
huoxito left04:26
tanema left04:29
frogonwheels rohan32: I !sausage make my commits all the time.04:30
gitinfo rohan32: [!sausage_making] Some developers like to "hide the sausage making", transforming their commits before presenting them to the outside world. See http://sethrobertson.github.com/GitBestPractices/#sausage and !perfect04:30
pekster Well, that said it is nice to have clear commit messages, so if one rebases a local branch to make it clear what a change does, that's probably "good"04:30
Z3tta joined04:31
frogonwheels rohan32: and yes, you need to specify the parent commit of the first one to edit in a rebase04:31
dsdeiz_ left04:31
rohan32rohan32|afk04:33
frogonwheels pekster: I think making clear commit messages before pushing is the no-brainer 'good' sausage making.04:33
nucatus joined04:33
Swayz joined04:34
frogonwheels pekster: Personally, I find sausage-making to save time in the end - since it makes reviewing history a LOT easier.04:34
matanya left04:34
AWinterm_ joined04:37
pfranz joined04:37
nucatus left04:38
subhojit777 joined04:39
the_cybersphinx left04:39
Guest23754 joined04:40
chrisshattuck left04:43
hoschi joined04:45
rohan32|afkrohan3204:45
Muuuh left04:47
Muuuh joined04:49
Kneecaps left04:50
lavaman joined04:52
irqq joined04:54
Guest23754diegoviola04:54
rodyhaddad left04:57
bobdobbs` left04:57
rodyhaddad joined04:57
tchan left04:58
bits8mybytes joined05:00
bits8mybytes left05:00
normanrichards left05:00
harish left05:02
hyperair left05:02
khushildep joined05:03
SeySayux left05:05
onethfour3 joined05:06
onethfour left05:06
sqlnoob joined05:06
onethfour3onethfour05:06
Ivo left05:07
rohan32rohan32|afk05:08
St_Marx joined05:08
akurilin left05:08
tchan joined05:08
tchan left05:08
tchan joined05:08
s2013 left05:09
daito left05:09
n8chur_ left05:09
Swayz left05:11
n8chur_ joined05:11
Guest___ joined05:11
Guest___ left05:11
SeySayux joined05:11
Guest___ joined05:12
Guest___Darkco05:12
kesha_ left05:13
kerrick left05:13
kerrick joined05:14
k_sze[work] left05:14
Gamecubic left05:16
gittish joined05:18
nsanden left05:20
Darkco left05:21
nicedice_ left05:21
khushildep_ joined05:21
dsdeiz joined05:23
michaelarestad left05:23
matanya joined05:24
michaelarestad joined05:24
khushildep left05:24
khushildep_khushildep05:24
yacks left05:24
ntus1017 joined05:25
e66 joined05:28
stairmast0r left05:28
michaelarestad left05:28
verysoftoiletppr left05:28
shruggar joined05:32
mdiers1 left05:33
tpollard left05:33
daito joined05:33
mdiers1 joined05:33
nucatus joined05:34
arietis joined05:34
stairmast0r joined05:35
mdiers1 left05:35
Caritade joined05:35
a-l-e joined05:35
PaulCapestany left05:36
nucatus left05:37
AWinterm_ left05:38
ThomasLocke joined05:39
gittish left05:39
ojacobson joined05:39
stairmast0r left05:39
girishr left05:42
s2013 joined05:42
garbagecollectio left05:42
garbagecollectio joined05:44
Vinnie_win joined05:44
ntus1017 left05:45
Roots47 left05:45
s2013 left05:45
texasmynsted1 joined05:45
dc5ala joined05:46
iliketurtles joined05:47
iliketurtles left05:47
Davey left05:47
texasmynsted left05:48
iliketurtles joined05:48
pandeiro left05:48
rurufufuss joined05:50
Davey joined05:51
Davey left05:53
marthinal joined05:53
michaelarestad joined05:54
texasmynsted1 left05:54
cads left05:54
dreiss joined05:54
ayaz joined05:55
sainaen left05:55
cads joined05:56
texasmynsted joined05:57
michaelarestad left05:58
ojacobson left05:58
shruggar left05:59
garbagecollectio left06:00
diegoviola left06:00
rath joined06:01
ayaz_ joined06:01
ayaz_ left06:01
fragje joined06:02
AWinterm_ joined06:02
k_sze[work] joined06:03
enjoi left06:03
ncd|leeN joined06:03
papegaaij joined06:04
sainaen joined06:06
Balliad joined06:07
DrShoggoth left06:08
AWinterm_ left06:08
ndim joined06:10
babilen left06:11
dvor joined06:12
vigs left06:12
jefflyne joined06:13
ErKa joined06:14
Balliad left06:14
khushildep left06:15
kardan left06:17
kardan joined06:17
robbyoconnor left06:18
sparq_ left06:18
babilen joined06:22
yacks joined06:23
albel727 left06:24
Sigma[Mtp] joined06:25
sainaen left06:26
albel727 joined06:28
michaelarestad joined06:29
boblu joined06:30
robbyoconnor joined06:30
Raging_Hog joined06:32
scorphus left06:32
wrouesnel joined06:33
arietis left06:33
emergion joined06:34
michaelarestad left06:34
nucatus joined06:35
towski left06:35
raf joined06:35
Sigma[Mtp]Sigma06:36
GODDOG left06:36
arand joined06:37
gittish joined06:39
nucatus left06:39
cbreak-work joined06:41
nova_ joined06:42
alue42 joined06:42
v0n joined06:43
GODDOG joined06:44
GODDOG left06:44
rurufufuss left06:45
Goplat left06:46
ziddey left06:47
mfilipe left06:48
mfilipe joined06:48
rendar joined06:48
pduin joined06:49
rendar left06:50
rendar joined06:50
arietis joined06:50
fRAiLtY- joined06:52
dfanjul joined06:52
KhashayaR joined06:53
KhashayaR left06:53
rohan32|afkrohan3206:54
KhashayaR joined06:54
KhashayaR left06:54
KhashayaR joined06:54
KhashayaR left06:54
Sigma left06:55
KhashayaR joined06:55
KhashayaR left06:55
mckendricks left06:55
cads left06:55
KhashayaR joined06:55
KhashayaR left06:55
Sigma joined06:56
KhashayaR joined06:56
KhashayaR left06:56
rchavik joined06:56
KhashayaR joined06:56
KhashayaR left06:56
matanya left06:57
ziddey joined06:57
KhashayaR joined06:57
KhashayaR left06:57
AWinterm_ joined06:57
KhashayaR joined06:57
KhashayaR left06:57
KhashayaR joined06:58
KhashayaR left06:58
KhashayaR joined06:58
KhashayaR left06:58
KhashayaR joined06:59
KhashayaR left06:59
KhashayaR joined06:59
KhashayaR left06:59
KhashayaR joined07:00
KhashayaR left07:00
michaelarestad joined07:00
plumpkin joined07:00
michaelarestad left07:00
KhashayaR joined07:01
KhashayaR left07:01
michaelarestad joined07:01
KhashayaR joined07:01
KhashayaR left07:01
KhashayaR joined07:02
KhashayaR left07:02
KhashayaR joined07:02
KhashayaR left07:02
rohan32rohan32|afk07:02
KhashayaR joined07:03
KhashayaR left07:03
KhashayaR joined07:03
KhashayaR left07:03
matanya joined07:04
KhashayaR joined07:04
KhashayaR left07:04
KhashayaR joined07:04
KhashayaR left07:04
aladdinwang joined07:04
KhashayaR joined07:05
KhashayaR left07:05
KhashayaR joined07:05
KhashayaR left07:05
michaelarestad left07:06
KhashayaR joined07:06
KhashayaR left07:06
KhashayaR joined07:06
KhashayaR left07:06
KhashayaR joined07:07
KhashayaR left07:07
KhashayaR joined07:07
KhashayaR left07:07
KhashayaR joined07:08
KhashayaR left07:08
KhashayaR joined07:08
KhashayaR left07:08
KhashayaR joined07:09
KhashayaR left07:09
dfanjul left07:10
KhashayaR joined07:10
KhashayaR left07:10
bvi joined07:10
lb1a joined07:10
ziddey left07:10
h0bbit joined07:10
KhashayaR joined07:10
KhashayaR left07:10
KhashayaR joined07:10
KhashayaR left07:10
KhashayaR joined07:11
KhashayaR left07:11
KhashayaR joined07:11
KhashayaR left07:12
KhashayaR joined07:12
KhashayaR left07:12
arand left07:12
KhashayaR joined07:13
KhashayaR left07:13
ncd|leeN left07:13
KhashayaR joined07:13
KhashayaR left07:13
moondoggy left07:13
KhashayaR joined07:14
TandyUK left07:14
KhashayaR left07:14
TandyUK joined07:14
KhashayaR joined07:14
KhashayaR left07:14
jefflyne left07:14
iliketurtles left07:15
moondoggy joined07:15
KhashayaR joined07:15
KhashayaR left07:15
heinrich5991 left07:15
KhashayaR joined07:15
KhashayaR left07:15
Sigma left07:15
KhashayaR joined07:16
KhashayaR left07:16
maasdesigner1 joined07:16
thiago left07:16
KhashayaR joined07:16
KhashayaR left07:16
dfanjul joined07:16
rednaks joined07:16
heinrich5991 joined07:16
KhashayaR joined07:17
KhashayaR left07:17
crane_work joined07:17
KhashayaR joined07:17
KhashayaR left07:17
KhashayaR joined07:18
KhashayaR left07:18
KhashayaR joined07:18
KhashayaR left07:18
up_the_irons joined07:19
ziddey joined07:19
KhashayaR joined07:19
KhashayaR left07:19
KhashayaR joined07:20
KhashayaR left07:20
KhashayaR joined07:20
KhashayaR left07:20
KhashayaR joined07:21
KhashayaR left07:21
Dreadnaught left07:21
LimeBlast joined07:21
KhashayaR joined07:21
KhashayaR left07:21
v8energy left07:21
LekeFly joined07:21
KhashayaR joined07:22
KhashayaR left07:22
plumpkin left07:22
KhashayaR joined07:22
KhashayaR left07:22
ukgamer left07:22
Kronuz left07:22
KhashayaR joined07:23
KhashayaR left07:23
pfranz left07:23
KhashayaR joined07:23
rudak joined07:23
KhashayaR left07:23
heinrich5991 left07:23
jceb left07:24
KhashayaR joined07:24
KhashayaR left07:24
ukgamer joined07:24
JonasF joined07:24
wolog joined07:24
Kronuz joined07:24
KhashayaR joined07:24
KhashayaR left07:24
aChatir joined07:24
KhashayaR joined07:25
KhashayaR left07:25
KhashayaR joined07:25
KhashayaR left07:25
iliketurtles joined07:26
KhashayaR joined07:26
KhashayaR left07:26
Tuna-Fish left07:26
KhashayaR joined07:26
KhashayaR left07:26
maasdesigner1 left07:27
KhashayaR joined07:27
KhashayaR left07:27
KhashayaR joined07:27
KhashayaR left07:27
KhashayaR joined07:28
KhashayaR left07:28
KhashayaR joined07:28
KhashayaR left07:28
alue42 left07:28
rohan32|afkrohan3207:28
KhashayaR joined07:29
KhashayaR left07:29
KhashayaR joined07:29
KhashayaR left07:29
Tuna-Fish joined07:29
KhashayaR joined07:30
KhashayaR left07:30
KhashayaR joined07:30
KhashayaR left07:30
sidus joined07:31
KhashayaR joined07:31
KhashayaR left07:31
whaley joined07:31
michaelarestad joined07:31
Cassiel left07:32
KhashayaR joined07:32
KhashayaR left07:32
KhashayaR joined07:32
KhashayaR left07:32
KhashayaR joined07:32
KhashayaR left07:32
kewah joined07:32
Cassiel joined07:33
KhashayaR joined07:33
KhashayaR left07:33
KhashayaR joined07:33
KhashayaR left07:33
KhashayaR joined07:34
KhashayaR left07:34
rohan32rohan32|afk07:34
n8chur_ left07:34
KhashayaR joined07:34
KhashayaR left07:34
KhashayaR joined07:35
KhashayaR left07:35
ErKa left07:35
nucatus joined07:35
michaelarestad left07:35
KhashayaR joined07:35
KhashayaR left07:35
KhashayaR joined07:36
KhashayaR left07:36
heinrich5991 joined07:36
KhashayaR joined07:36
KhashayaR left07:36
KhashayaR joined07:37
KhashayaR left07:37
KhashayaR joined07:37
KhashayaR left07:37
nucatus left07:38
deckTrout joined07:38
polymar joined07:38
KhashayaR joined07:38
KhashayaR left07:38
KhashayaR joined07:38
KhashayaR left07:38
Joshi3s` left07:39
KhashayaR joined07:39
KhashayaR left07:39
v0n left07:39
KhashayaR joined07:39
KhashayaR left07:39
danicampa901 joined07:40
KhashayaR joined07:40
KhashayaR left07:40
FreezingCold left07:40
maxmanders joined07:40
KhashayaR joined07:40
KhashayaR left07:40
arand joined07:41
KhashayaR joined07:41
KhashayaR left07:41
Raging_Hog left07:41
insejn left07:41
KhashayaR joined07:41
KhashayaR left07:41
KhashayaR joined07:42
KhashayaR left07:42
noname001 joined07:42
insejn joined07:42
KhashayaR joined07:42
Balliad joined07:42
KhashayaR left07:42
KhashayaR joined07:43
KhashayaR left07:43
tvw joined07:43
yassine joined07:43
CodeShark left07:43
KhashayaR joined07:43
KhashayaR left07:43
iliketurtles left07:43
KhashayaR joined07:44
KhashayaR left07:44
KhashayaR joined07:44
KhashayaR left07:44
KhashayaR joined07:45
KhashayaR left07:45
KhashayaR joined07:45
KhashayaR left07:45
KhashayaR joined07:46
KhashayaR left07:46
AWinterm_ left07:46
insejn left07:46
KhashayaR joined07:46
KhashayaR left07:47
abrkn\ joined07:47
KhashayaR joined07:47
KhashayaR left07:47
KhashayaR joined07:48
KhashayaR left07:48
KhashayaR joined07:48
KhashayaR left07:48
KhashayaR joined07:49
KhashayaR left07:49
alexwhitman left07:49
Guest____ joined07:49
KhashayaR joined07:49
KhashayaR left07:49
maxmanders left07:49
alexwhitman joined07:50
KhashayaR joined07:50
KhashayaR left07:50
Sonderblade joined07:50
jayrobot left07:50
KhashayaR joined07:50
KhashayaR left07:50
Sonderblade left07:50
abrkn left07:51
Sonderblade joined07:51
KhashayaR joined07:51
KhashayaR left07:51
threesome joined07:51
KhashayaR joined07:51
KhashayaR left07:51
KhashayaR joined07:52
KhashayaR left07:52
TandyUK left07:52
TandyUK joined07:52
KhashayaR joined07:52
KhashayaR left07:52
mdiers1 joined07:52
vince_prignano joined07:52
KhashayaR joined07:53
KhashayaR left07:53
aChatir left07:53
Sigma joined07:53
KhashayaR joined07:53
KhashayaR left07:53
whaley left07:54
KhashayaR joined07:54
KhashayaR left07:54
KhashayaR joined07:54
KhashayaR left07:54
Raging_Hog joined07:55
ziddey left07:55
dreiss left07:55
KhashayaR joined07:55
KhashayaR left07:55
KhashayaR joined07:55
KhashayaR left07:55
Vinnie_win left07:56
KhashayaR joined07:56
KhashayaR left07:56
Plummer joined07:56
KhashayaR joined07:57
KhashayaR left07:57
KhashayaR joined07:57
KhashayaR left07:57
KhashayaR joined07:58
KhashayaR left07:58
Vinnie_win joined07:58
KhashayaR joined07:58
acharlieh joined07:58
jon_r joined07:59
konadr joined08:00
beautifulmind left08:00
deckTrout left08:00
yassine left08:00
michaelarestad joined08:01
maxmanders joined08:03
TandyUK left08:03
TandyUK joined08:03
trusktr joined08:04
blinkdesign joined08:06
michaelarestad left08:06
aChatir joined08:07
aChatir left08:07
Caritade left08:09
Raging_Hog left08:09
acharlieh left08:09
OOPMan joined08:09
khushildep joined08:10
rchavik left08:11
mdiers1 left08:12
r04r|awayr04r08:12
jkremser joined08:12
jkremser left08:12
jkremser joined08:12
Arokh[Off]Arokh08:12
fdel joined08:13
mdiers left08:13
insejn joined08:15
TandyUK left08:15
TandyUK joined08:16
gonzzor I work with a couple of projects which all share some submodules, which are rather large. Is there a way to configure git to automatically set up --reference when doing clone and/or submodule init?08:17
Mode-M joined08:17
cenuij left08:17
milki gonzzor: use git config alias.newcommand and define your own set of commands08:19
hahuang61 left08:20
gonzzor milki: Thanks08:21
hahuang61 joined08:22
jon_r left08:22
rchavik joined08:23
onethfour left08:23
mdiers joined08:24
mdiers_ joined08:24
tatsuya_o joined08:24
jim0thy_ joined08:24
TandyUK left08:32
michaelarestad joined08:32
TandyUK joined08:32
michaelarestad left08:32
michaelarestad joined08:32
OOPMan left08:33
OOPMan joined08:36
michaelarestad left08:37
kerrick left08:43
kerrick joined08:44
nicholasruunu joined08:44
nicholasruunu left08:44
nicholasruunu joined08:45
BitPuffin joined08:45
SamB_ joined08:46
SamB left08:46
khushildep left08:46
Guest____ left08:46
rchavik left08:46
simesy left08:49
crazydiamond joined08:49
rohan32|afkrohan3208:50
arand left08:51
AllInOne joined08:52
AllInOne left08:54
arand joined08:55
hyperair joined08:55
khushildep joined08:56
arietis left08:57
achadwick joined08:57
rohan32rohan32|afk09:00
r04rr04r|away09:01
jadedIRCwarrior joined09:02
michaelarestad joined09:03
avar joined09:03
avar left09:03
avar joined09:03
jadedIRCwarrior Hi. How come git can tell when you've made a file modification through the "add ." command, without you having made any commits?09:03
michaelarestad left09:03
jadedIRCwarrior I.e. it says "modified file", but aren't you supposed to decide when that's to happen through commit?09:03
michaelarestad joined09:03
rchavik joined09:03
canton7 git has something called the index/staging area. The idea is that you add things to the index with 'git add', then 'git commit' takes the index and turns it into the next commit09:05
mikecmpbll joined09:06
canton7 so you can make a commit containing only a subset of the changes in your working copy09:06
luto working=>stage=>commit \o/09:06
nucatus joined09:06
canton7 'git status' tells you what's just in the working copy, or what's in the index as well09:06
michaelarestad left09:08
yassine joined09:10
nucatus left09:11
LekeFly left09:12
_goTAN joined09:12
jadedIRCwarrior canton7: Yeah but what I mean is, if you add a file with git add, then replace it with another and do git add again, it'll sense the file change and return with a message stating that the file has been modified09:13
shouldnt commit be responsible for modifications?09:14
while add manages the indexing?09:14
LekeFly joined09:14
Aww left09:14
babilen left09:15
canton7 jadedIRCwarrior, it does? pastie please.09:15
In general, 'modifications' refer to changes made locally since the last commit09:15
fuzzybunny69y joined09:15
jadedIRCwarrior Wow, you expect me to do a bunch of work to get help?!? GEEZ09:15
Ok I'm kinda paraphrasing here but09:16
enr joined09:16
jefflyne joined09:16
jadedIRCwarrior i copied a file into my working dir, did "git add .", renamed the file, copied another file into the dir and named it to the same thing as the first file09:17
then did "git add ." again09:17
after which it told me that the file had been modified and another one had been added09:17
hahuang61 left09:17
jadedIRCwarrior so im thinking, shouldnt it just add the other file, and let me do the modification with commit?09:17
nova_ left09:17
nova_ joined09:18
rhombus joined09:19
canton7 it's telling you the truth. the file which you replaced was 'modified', while the renamed one was 'added'09:19
(from a filenames point of view)09:19
Kabaka left09:20
babilen joined09:20
enr left09:21
canton7 I'd like to see exactly how it was "telling you" though. Is this 'git status' output? messages printed to stdout when you ran 'git add .'?09:21
dkpi joined09:21
Raging_Hog joined09:21
Sonderblade left09:21
rchavik left09:22
andrepadez joined09:22
Sonderblade joined09:22
rhombus What happens if I do 'git checkout HEAD~1'09:23
?09:23
canton7 you detach your HEAD - so it doesn't point to a branch any more, but instead points to a commit09:24
Kabaka joined09:24
canton7 any commits you make now won't be on a branch, so they're not referenced by anything, and might be lost09:24
andrepadez left09:24
canton7 (as git will warn you, quite loudly)09:24
oh, and your HEAD now points to HEAD~109:24
rhombus canton7: ok, that was going to be my next question.09:24
canton7: ok, then how do I move my HEAD back in my branch such that it is not detached? As in, I want to move back to a previous state and run some tests?09:25
canton7 'git checkout <branchname>'09:25
oh, 'back in' not 'back on'09:25
rhombus canton7: right09:26
canton7 create a new branch at HEAD~1, and checkout that09:26
'git checkout -b mytempbranch HEAD~1'09:26
rhombus canton7: ah, ok -- then, when done, delete said branch if it's no longer needed09:26
canton7 sure09:26
if you're not planning to commit, a detached HEAD is fine09:26
rhombus canton7: right, of course09:26
canton7 and is particularly useful for going back and inspecting the state of a previous commit, running tests, etc09:26
rhombus canton7: will git fail if I try and commit when head is detached? Or just warn me and merrily proceed?09:27
canton7 it'll warn you when you first the detach the HEAD, and is silent after that iirc09:27
rhombus canton7: those commits, would they show up in a graph?09:28
canton7: it sounds like a recipe for disaster09:28
canton7 until you checkout something else, they're referenced by HEAD, so they'll show up09:28
rhombus canton7: or at least, for a very big mess :)09:28
canton7 after that, they're referenced by the reflog, so they're recoverable09:28
!gitg09:28
rhombus canton7: but wouldn't show up in a regular commit graph, I take it09:28
canton7 hmm, what was that trigger...09:29
!gka09:29
gitinfo For a better way to view the reflog, try: gka() { gitk --all $(git log -g --format="%h" -50) "$@"; }; gka09:29
canton7 that'll show stuff in the reflog too09:29
rhombus canton7: ok09:29
canton7 as long as they're referenced by HEAD, they'll show up in git log --graph and gitk09:29
rhombus canton7: until such time as I checkout another branch09:29
canton7 the point is, once you go and checkout something else, they're no longer referenced by HEAD, so won't show up in gitk etc09:30
(unless you get gitk to show reflog entries too)09:30
rhombus right09:30
canton7 yeah. useful, powerful, but take care09:30
rhombus canton7: I liked your solution with the temporary branch, there's little excuse for not using it, given how easy it is to create and delete branches in git09:31
canton7 sure. by all means, if you're not comfortable with detaching the HEAD. ultimately it's one command more :P09:31
s/one/only one09:31
rhombus canton7: and I know from experience that a mere inspection can quickly turn into making changes -- a moment of inattention and you've got human sacrifice, cats and dogs sleeping together, mass hysteria09:32
canton7 hahaha09:33
rhombus or even living09:33
:)09:33
r0dn3y joined09:33
m0viefreak joined09:34
michaelarestad joined09:34
michaelarestad left09:34
michaelarestad joined09:34
dkpi left09:37
rurufufuss joined09:38
Aww joined09:38
rchavik joined09:38
dc5ala left09:38
michaelarestad left09:39
Milossh left09:39
r0dn3y left09:42
marhaban joined09:42
CodeShark joined09:44
mechanicalduck joined09:46
DoniRS joined09:48
ntus1017 joined09:48
CodeShark left09:49
kesha_ joined09:50
CheckDavid joined09:51
crazydiamond left09:52
aChatir joined09:53
flapenguin joined09:56
raf left09:56
GODDOG joined09:56
TandyUK left09:57
jkremser left09:57
TandyUK joined09:57
raf joined09:57
r0dn3y joined09:58
weiyang left09:58
mklappstuhl joined09:59
echo-area left09:59
amitz joined09:59
amitz can i limit who can delete a remote branch?09:59
any hook for that?09:59
r0dn3y amitz: Are you talking about on your local dev machine?10:00
amitz no, on our git central server. I'm managing the git central server.10:01
konadr left10:01
crazydiamond joined10:01
hahuang61 joined10:01
konadr joined10:01
amitz basically, is there a pre-receive hook and indicator that the operation requested is a branch delete?10:02
beautifulmind joined10:02
nsanden joined10:03
DoniRS left10:03
r0dn3y amitz: that one I'm not sure about.10:03
LekeFly left10:03
maasdesigner1 joined10:04
beautifulmind left10:04
fragje left10:04
maasdesigner1maasdesigner10:04
michaelarestad joined10:05
michaelarestad left10:05
aharris6 left10:05
michaelarestad joined10:05
r0dn3y amitz: what are you using for a git server? Just git running on the server with ssh keys of each of the developers allowing them to interact with it, or are you using something like gitorious or gitosis?10:07
irqq left10:08
amitz gitlab10:09
michaelarestad left10:10
r0dn3y amitz: I've just recently looked at that a bit.10:11
amitz i'm in research phase now, after the fact. heh. so is that possible in gitlab? I also want to enforce a rule where only limited people can push to a branch. normal git can use that pre-receive hook but i assume gitlab can be configured to be able to do that?10:12
r0dn3y amitz: If i remember correctly, the repo permissions in gitlab are as follows: individual users can be set to denied, Pull, or push/pull.10:12
But those are repo wide, not branch specific.10:13
amitz push/pull to specific branch or whole repo?10:13
ah dang10:13
fuzzybunny69y left10:13
amitz what is gitlab actually? a wrapper to normal git, or it changes git function?10:13
tiglog left10:13
sonOfRa isn't gitlab just a hosting provider?10:14
amitz the local version10:14
TandyUK left10:15
TandyUK joined10:15
deuterium joined10:15
dfanjul left10:16
kewah left10:16
deuterium left10:16
amitz that is, if it's a wrapper, if restrict on the normal git, the gitlab itself will follow the restriction naturally.10:17
if i restrict on the normal git10:17
jefflyne left10:17
deuterium joined10:18
beautifulmind joined10:18
r0dn3y left10:18
outcoldman left10:19
deuterium left10:19
Cromulent joined10:20
stack how do you handle reindentation of whole files without loosing history?10:20
Cromulent left10:20
quackgyver Does "origin" have different meanings depending on whether its used as a command parameter or in a path10:21
i.e. "origin" and "origin/"10:21
cannonball left10:22
nsanden left10:22
nicholasruunu left10:23
raf_ joined10:24
raf left10:24
dfanjul joined10:25
lemonjelly quackgyver: if you want to specify a path unambiguously, you cam put after a "--" at the of the command. e.g. git log -- origin10:25
quackgyver What does it mean to specify a path unambgiguously?10:26
nicholasruunu joined10:27
xequence left10:28
Cassiel left10:28
zhurai left10:29
ismlages joined10:30
angelsl joined10:31
marhaban left10:32
the_cybersphinx joined10:35
quackgyver Anyway, again, does anyone know if the term "origin" has different meanings depending on the context in which it's used? Such as when used in a command (i.e. git blah origin) compared to in a path (i.e. "origin/blah/blah")?10:36
michaelarestad joined10:36
michaelarestad left10:36
michaelarestad joined10:36
luto I don't know any git-specific paths that contain origin10:36
it's an remote most of the time10:37
and it can have branches => origin/master10:37
vince_prignano left10:37
m0ltar joined10:38
deuterium joined10:38
quackgyver what do you mean by "it can have branches => origin/master"?10:38
I don't now what that means.10:38
luto you know branches?10:38
quackgyver yes, but I don't understand what you're trying to tell me with that sentence10:39
babilen left10:39
luto origin is just an other git-repo. On some server most of the time10:39
quackgyver Yes, I know, that's not what I'm saking.10:39
luto and that other git repo can also have branches, like like yours10:39
quackgyver asking*10:39
luto just*10:39
quackgyver I'm asking if origin has different meanings depending on whether it's used as a command, or whether it's used when pointing to a path10:39
as a prefix10:39
luto define path10:39
quackgyver git checkout origin/branch10:39
luto that is no path. That's a branch on origin10:40
LekeFly joined10:40
yassine left10:40
luc_ left10:40
luto a path would be: git checkout -- src/foo.c10:40
note the --10:40
canton7 quackgyver, 'origin' is the name of a remote. 'origin/master' is a remote-tracking branch. Remote-tracking branches are read-only records of the states of remote branches. They're updated by 'git fetch'10:40
luto and canton10:40
canton7 So 'origin/master' is a local branch, which reflects the state of the branch 'master' on 'origin', and is updated by 'git fetch'10:41
'origin' on its own is the name of the remote10:41
brick joined10:41
michaelarestad left10:41
marhaban joined10:41
quackgyver canton7: I appreciate your clarification, but I still have to ask, can "origin" change its meaning depending on whether it's used in conjunction with a command, or as a branch prefix?10:42
because my coworker suggested that origin/branch points to one's own repo10:42
cbreak-work quackgyver: origin/foo can be many things10:42
tehroflmaoer joined10:42
cbreak-work most of the times it's the short form for refs/remotes/origin/foo10:42
so, a remote tracking branch for the origin remote's foo branch10:43
canton7 I think you missed by point. The origin in 'origin/master' is convention - it's convention that the remote-tracking branches for the remote 'origin' start with 'origin/'10:43
hyperair left10:43
cbreak-work but it could just as well be refs/heads/origin/foo, which is a local branch called origin/foo10:43
canton7 they're not linked, apart from a piece of configuration in .git/config10:43
mdiers left10:43
cbreak-work I think that's actually required by the default remote fetch ref spec10:43
quackgyver I'm really confused right now, so, just to cut to the chase and clarify: when doing "git checkout origin/branch_name-here", what are you actually doing in effect?10:44
canton7 you're checking out a branch called 'origin/branch_name-here'10:44
cbreak-work and I am not sure how git checkout finds the remote for a remote tracking branch. It could just assume.10:44
canton7 (a local branch)10:44
quackgyver canton7: And where is that branch located?10:44
ok10:44
so "origin/" is not a git concept at all?10:44
cbreak-work quackgyver: you can't do anything with branches that are not local apart from fetching their history10:45
quackgyver its literally part of the path name?10:45
cbreak-work yes.10:45
canton7 it is part of the path name, very literally10:45
quackgyver Ah10:45
cmn but that's an implementation detail right now10:45
k_sze[work] left10:45
cmn it's part of the reference name10:45
quackgyver cmn: So it actually is a reference then?10:45
cmn and not all references are on the filesystem even now10:45
raf_ left10:45
tehroflmaoer left10:45
quackgyver and therefor it is a git concept?10:45
or what10:45
now I'm confused agian.10:45
canton7 but there's some configuration which says that the branches which start with 'origin/' are updated the reflect the states of the (remote) branches on the 'origin' remote when you run 'git fetch'10:45
cmn yes, remote-tracking branches are references10:45
cbreak-work quackgyver: it is as much a git concept as google.com is an internet explorer concept10:46
canton7 (all branches are references, to commits)10:46
quackgyver canton7: Thanks, that sounds exactly like what I thought it was10:46
cmn I'm pointing out that the fact that it sometimes refers to part of a filename is irrelevant10:46
tehroflmaoer joined10:47
cbreak-work quackgyver: man gitrevisions10:48
gitinfo quackgyver: the gitrevisions manpage is available at http://jk.gs/gitrevisions.html10:48
quackgyver canton7: Okay so, I've always assumed that "origin" points to the master branch of the remote from which you checked out your repo, an will therefor config your local repo to have a few connections to the origin repo so as to make certain commands easier. I also assumed that origin/branch was therefor a reference to branches in the origin repo, so as to give10:48
you a chance to be able to differentiate local branches from origin ones10:48
Would you agree that my assumption is correct?*10:48
cbreak-work no10:48
origin on its own as a ref refers to a local branch origin10:49
or a tag with the name origin10:49
marhaban left10:49
canton7 you cannot reference remote branches from your local repo. you can't checkout a branch which is on another machine. instead, you have a local "remote-tracking" branch which is set to the the same as a remote branch by 'git fetch', and you can checkout that10:50
quackgyver I don't understand what you just told me. Is "local branch origin" a noun?10:50
:/10:50
cbreak-work quackgyver: only far down, in alternative 6 it could mean what you said10:50
quackgyver: yes10:50
LekeFly left10:50
quackgyver OKay10:50
cbreak-work with adjectives in front10:50
local is an adjedtive10:50
fragje joined10:50
cbreak-work branch is the noun10:50
and origin is the name, also a noun I suppose10:50
quackgyver: honestly, read the man page :)10:51
ref names are explained there10:51
quackgyver So10:52
on one hand I'm being told that "origin/" has no meaning to git and that it's not related to some sort of concenpt, and that its literally just part o the path name10:52
and on the other im told that its a ref and that i should look it up10:52
I'm confused.10:52
of*10:52
canton7 branches are refs. other things are refs, too10:53
dfanjul left10:53
quackgyver Ok but what about "origin/"?10:53
cbreak-work quackgyver: does google.com have a meaning in internet explorer?10:53
quackgyver I feel like I'm getting a lot of unrelated as well as conflicting information.10:54
So I'm a bit confused.10:54
cbreak-work quackgyver: you're just not thinking straight :(10:54
quackgyver I wish you'd just answer my question from within the scope of which I'm asking it. I get really confused when three people are throwing terms and concepts at me, and often not directly explaining how they relate to my question10:54
while somehow expecting me to inherently understand what they mean10:55
tanema joined10:55
quackgyver I'm not trying to sound argumentative10:55
Just explaining why I'm confused.10:55
aladdinwang left10:55
quackgyver I know about most (not all) of the stuff you've told me.10:55
I'm just confused about the meaning of origin/10:55
in comparison to origin (without the trailing slash)10:56
cbreak-work quackgyver: it can mean many different things depending on context...10:56
cmn when you pass 'origin' to a few commands, they'll accept that as refering to 'origin/HEAD'10:56
cbreak-work the word origin has no special meaning in git apart from it being a default value for a name10:56
quackgyver name?10:56
kewah joined10:56
cbreak-work origin/ can mean a directory called origin in your repository10:56
LekeFly joined10:56
quackgyver cmn: And origin/HEAD is in a remote repo, yes?10:57
cbreak-work it can mean no...10:57
cmn no10:57
quackgyver ok10:57
canton7 it *can*, but it's unlikely to10:57
tinyhippo quackgyver: origin is basically the name of a remote repository10:57
marhaban joined10:57
tinyhippo for 99% of use cases10:57
cbreak-work quackgyver: git remove shows you the remote repositories10:57
your repository might not have any10:57
cmn git remote*10:57
cbreak-work if it is a clone, then the default name for its source remote is "origin"10:58
quackgyver Okay see this is where I get confused. I'm told by one person that "origin/HEAD" does in fact not point to a remote repo, then I have another one telling me that "origin" is the name of a remote repo in 99% of the cases. How am I supposed to make sense of this?10:58
cbreak-work but you can easily change that10:58
frgtn joined10:58
cbreak-work quackgyver: you have to start to think10:58
quackgyver cbreak-work: About what?10:58
cbreak-work about what we say10:58
different things can have the same or similar names10:58
quackgyver Yes, that's what I asked from the beginning.10:59
cbreak-work as I said above, the meaning of words depends on the context10:59
quackgyver So, "origin" when used on its own in, say, a command, is not at all the same thing as "origin/" when used in conjunction with a branch name and as part of said branch name10:59
cmn you never use "origin/" on its own11:00
quackgyver I never said so?11:00
:|11:00
cmn by convention, you prefix the branches from a remote with its name11:00
tinyhippo quackgyver: given the context of your question, I will assume that origin is the name of your remote repo. therefore origin/something is a branch on that remote repo called something11:00
cmn almost11:00
it's the local copy11:00
cbreak-work mkdir origin/foo11:01
now it's a directory...11:01
marhaban left11:01
quackgyver tinyhippo: Yes, that is what I am assuming is the case, and I'm trying to get some clarificaiton but I'm pretty much completely confused now11:01
cbreak-work git branch origin/foo, now it's a local branch11:01
quackgyver: you think about totally the wrong things11:01
quackgyver cbreak-work: Why?11:01
and how11:01
cbreak-work because you think that origin is something special11:01
it is not.11:01
it's a name.11:01
babilen joined11:01
cbreak-work it's like asking who Hans is.11:02
there are thousands of them.11:02
they are all different.11:02
quackgyver cbreak-work: That's like saying "func()" is just text.11:02
enr joined11:02
cbreak-work what you have to think about is what it is in the context of your repository11:02
quackgyver: it is.11:02
it might do totally different things in different contexts.11:02
enr left11:02
enr joined11:03
_iron joined11:04
mklappstuhl left11:04
cbreak-work if you want to find out what it does in your repository, you'll have to learn the rules git uses to parse its text11:04
so you have to read up on the command you use, and find out what it expects11:04
does it expect a remote name and a branch name like git pull?11:04
or does it expect a ref name like git merge?11:04
or does it expect a file name like git add?11:04
canton7 in general, the only commands which deal with remotes are pull/fetch, push, 'git remote', 'git ls-remote', and maybe a couple more11:05
glosoli joined11:05
cbreak-work yeah. special things like git archive11:05
freestyl3r joined11:05
canton7 in general they're the commands to do with 1) configuring remotes, and 2) moving data to/from remotes11:05
cbreak-work wonder if git submodule accepts a remote as URL...11:05
mikecmpbll left11:06
quackgyver cbreak-work: I don't ask people questions so they can answer me from the POV that everything can - if you wish to present it as such - be ambiguously interchangeable, and that my question is therefor invalid. That's already a given and I don't really need to be informed of the many ways in which it's possible to invalidate what I'm saying with such11:06
intellectual loopholes.11:06
From my perspective I'm asking you what time it is, and you're ranting back at me about how my question is invalid because due to timezones the current time could be anything!!11:06
I'm just trying to get help in understanding this one single concept and11:06
I'm not even really trying to be argumentative11:06
but this is not an effective discussion11:06
mikecmpbll joined11:06
cbreak-work quackgyver: stop being dense :/11:06
sam113101 left11:06
canton7 hey hey now11:06
quackgyver Thanks.11:06
cbreak-work if you ask an incomplete question, you'll get nebulous answers11:06
that's just how it is11:07
canton7 cbreak was saying that something can take on different meanings depending on context, not that your entire question was invalid11:07
michaelarestad joined11:07
cbreak-work if you want to ask what origin means, at least tell us which damn command you want to use11:07
michaelarestad left11:07
wald0 joined11:07
nucatus joined11:07
michaelarestad joined11:07
kcj left11:07
quackgyver canton7: I understand this, but the way in which my original question was replied to, and the way in which it has turned into an irrelevant discussion which may be valid from a git/tech philosophical perspective but still ignores the fact that I'm continuously trying to get back to my very specific core question11:08
wald0 how i can create "temporal fixes" in git? i mean, a commit that i can remove in the future like it never existed (not like having another to revert, so 2 trashy commits flying around and annoying)11:08
quackgyver is sort of ridiculous11:08
mikejw what do I do when I see this 'CONFLICT (file/directory)'?11:08
quackgyver and now i'm being called dense for trying to just clarify things.11:08
That's real nice.11:08
babilen left11:08
canton7 quackgyver, mind repeating your specific core question? The stuff I@ve seen has been fairly vague11:08
cbreak-work wald0: make it on a branch11:09
wald0: never merge it11:09
mikejw does anyone here use git submodules and stay a sane human beings?11:09
cbreak-work mikejw: semi - sane11:09
mikejw :)11:09
wald0 cbreak-work: mmh, but if i want to "still continue" working on the master one ? (and use the temporal fix until its fixed by the author) ?11:09
simesy joined11:10
cbreak-work wald0: you can rebase your changes around if you work alone11:10
|Freeman| joined11:10
cbreak-work or you can rewrite history to remove the fix later on11:10
zhurai joined11:11
quackgyver canton7: In my environment I see "origin" being used as either parameters in commands or as part of branch names that are located on what I believe is a remote repo. My assumption was that origin points to the remote repo from which I first checked out my own local dev repo, and that the purpose of "origin" is to therefor act as a pointer or reference to the11:11
remote endpoint which has some kind of centralized significance, and which you may want to compare your local changes to through tracking. My friend on the other hand stated that while "origin" points to the origin repo, "origin/" as part of a branch name (or a prefix to branches rather) is a reference to something different11:11
michaelarestad left11:11
quackgyver canton7: And my assumption just keeps getting plucked apart to the point where I can't even get the topic back on track again.11:12
mmitchell joined11:12
sam113101 joined11:12
wald0 could be nice if rebasing will not affect other devs :), that could be a really nice fature for git11:12
quackgyver assumption = my assumption about the meaning of origin as seen in my environment11:12
nucatus left11:12
quackgyver and as stated in my question in here11:12
canton7 quackgyver, to avoid a return to the situation where we start commenting on different parts of your statement, do you have a specific question you want to start with?11:12
dfanjul joined11:14
simesy left11:14
cbreak-work quackgyver: your assumption is wrong. It is in fact as I told you repeatedly: the name totally depends on context.11:14
canton7 while you're thinking, he's a summarised run-down. it's not 100% correct, but bear with me. 'origin' is an alias for a url. you can push stuff to that url, and you can fetch stuff from it11:15
when you run 'git fetch', git accesses that url, and fetches all of the branches from it. it then creates local brances mirroring those branches on origin. by convention, these branches start with 'origin/', to indicate that they reflect branches on 'origin'11:16
they're read-only - you can't modify them directly11:16
kcj joined11:16
canton7 so if origin has a branch called 'foo', 'git fetch' will create a local branch called 'origin/foo' which mirrors it11:16
from then on, if you access 'origin/foo' through any means, you're accessing that local, mirror branch11:17
quackgyver canton7: Yes I have a question. I want to know why some of my coworkers say that "origin" (as in the very concept of origin) is a reference to the remote central repo which you got your local dev repo from, while another one states that "origin" is in fact not pointing to a remote endpoint, but rather a local read-only set of references to changes made on11:17
the remote central repo that I previously thought that "origin" referred to. The reason why I need to clarify this is because I have for some reason lost the entire contents of a couple of local branches, and I thought I could get them back from origin, whereas the latter coworker told me that since "origin" is really just points to my local repo, there's no11:17
need to start poking around in the remote one.11:17
-is11:18
cbreak-work it's context dependent...11:18
quackgyver cbreak-work: Kindly pull out of the conversation because you're not going to contribute with anything constructive. I'm not saying that as an insult, but to save all of us time.11:18
Thanks.11:18
cbreak-work if you don't want answers, ask somewhere else.11:19
pen joined11:19
canton7 saying 'origin' refers to the local repo is incorrect. 'origin' refers to a url, which points at a remote repo11:19
however, the states of all branches on the 'origin' repo - the remote repo - are stored locally11:19
cbreak-work origin as ref refers to a remote tracking branch, most likely.11:19
canton7 in branches beginning with 'origin/'11:19
cbreak-work to refs/remotes/origin/HEAD11:19
quackgyver cbreak-work: I feel that canton7 is better suited for setting me straight due to having a better sense of where I'm coming from, and he probably will if there is a misunderstanding. This means that you will get your wish through.11:19
frankstallone joined11:19
quackgyver or she.11:19
canton7 he :P11:19
luto they!11:19
bremner quackgyver: please just ignore people rather than telling them not to talk to you11:20
canton7 we!11:20
quackgyver it.....11:20
luto or it?11:20
quackgyver bremner: Just ignore me if it bothers you!11:20
Just kidding. ;-)11:20
canton7: Yeah I thought as much11:20
daito left11:21
quackgyver canton7: Okay, so "origin/" actually signified a local set of repos which mirror their remote counterparts?11:21
This answers my next question, which is what remotes/origin/branch means11:21
canton7 (now, as cbreak said, there are exceptions - in some cases, where a git command is expecting a branch (not a remote), 'origin' can be resolved to a local branch of that name (created with e.g. 'git branch origin'), etc)11:21
cbreak-work -> ref11:21
canton7 "origin/" is a common prefix for *branches* which mirror their remote counterparts11:21
cbreak-work that's why I said above it depends on what the program expects11:21
quackgyver canton7: Thanks, that's *exactly* the answer I need.11:22
Really appreciate it.11:22
cbreak-work and only after you know what it expects you can even begin to think about how it is interpreted11:22
canton7 yeah, i'm steering clear of the word 'ref' for now, but yeah11:22
simesy joined11:22
gerard0 left11:23
quackgyver canton7: So I guess remotes/ then refers to branches that are actually located remotely?11:23
canton7 quackgyver, there's an extra detail: remote-tracking branches are stored in refs/remotes, which local "normal" branches are stored in refs/heads/11:23
this keeps the remote-tracking branches nicely separate from your local branches11:23
s/which local/while local11:23
flaguy48 joined11:23
Fritz7 joined11:23
quackgyver canton7: All of my branches are tracked remotely because when I create them I add "origin/master" at the end11:23
raf joined11:23
quackgyver of the command11:23
canton7 what do you mean by that? what command?11:24
quackgyver git checkout -b branchname origin/master11:24
canton7 don't get remote-tracking branches confused with 'tracking', as a concept11:24
quackgyver Oh ok11:24
canton7 so that created a new branch (in refs/heads/branchname), start at the same point as refs/remotes/origin/master11:24
branchname will not get automtically updated by 'git fetch'. it is not a remote-tracking branch11:25
jkremser joined11:25
canton7 however. time for a new, separate concept...11:25
raf left11:25
jkremser left11:25
jkremser joined11:25
cbreak-work as I said twice already, branches are local.11:25
you can't do almost anything with those that aren't11:25
gerard0 joined11:25
quackgyver canton7: Is there a possibilty that I could've done something, say perhaps to HEAD, that makes it seem as if my branches are empty and lack any changes, despite them actually being there?11:26
canton7 there can exist a piece of configuration which creates a relationship between two branches (one is said to be 'tracking' the other, of have the other as its 'upstream')11:26
quackgyver I'm asking because suddenly a lot of branches are empty11:26
canton7 this is used when you run 'git pull' with no other arguments, among others11:26
Someguy123 joined11:26
Someguy123Someguy1211:26
canton7 quackgyver, HEAD is only a pointer to the currently-checked-out branch - doing something to it wouldn't affect all branches11:26
now what actually are the symptoms?11:26
quackgyver canton7: Well it was just a wild guess11:26
canton7: Well, I pushed some branches which a friend a couple of steps down the line in the workflow accidentally rolled back11:27
so in accordance with standard procedures i was going to push them again, except these branches are now empty in my local repo11:28
canton7 'rolled back' meaning he overwrote them (push -f), or he made changes which undid your changes?11:28
again, define 'empty'11:28
quackgyver canton7: I don't actually know because I have no information about the specifics of which commands they use.11:28
empty = no commits when comparing the branch to master11:28
canton7 the symptoms are quite different - do your commits still exist in the remote repo?11:29
aha, so the branches are the same as master11:29
quackgyver canton7: I don't know! That's why I started asking about these concepts, because I have no idea where to look11:29
my cowokrer tells me to leave it be because if i dont have it locally, i dont have it a tall11:29
while i suspect that they may be located on origin11:29
so i was trying to figure out who's right11:29
canton7 what branch did you make the changes on?11:29
quackgyver They were new ones created by me11:30
canton7 ok, so you had a local branch, created by you, with your changes on. what exactly did you do to push those changes?11:30
freeed joined11:30
arand Hmm, when merge conflict markers are already checked in and published, is there any simple way to do an "incremental re-merge" in order to clean things up in a new commit? And make use of git-aware merging?11:30
canton7 (there's still a little bit of ambiguity, which I need to get rid of)11:30
aharris6 joined11:31
Someguy12 left11:31
ledtc joined11:31
quackgyver canton7: I created these branches with git checkout -b branchname origin/master, then added my files or committed my changes to the branches using "git add" and "git commit". When my branches were done, i pushed them to origin with "git push origin" (or "git push origin branchname", i cant remember)11:31
gitinfo set mode: +v11:32
canton7 ok, thus creating a new branch on origin called 'branchname'11:32
quackgyver this was a couple of weeks ago, and between now and then, my local branches for these projects have become empty11:32
canton7: Yes, but my coworker keeps insisting that origin is local11:32
and that if i dont see my changes, they're therefore not there11:32
ledtc Hello, im about to setup my git system. I need some one to talk me through it, any have some spare time ? :11:32
canton7 let's just make completely sure they're 'empty' - pastie the output of 'git log --graph --oneline --decorate master branchname'11:33
flapenguin left11:33
PainBank joined11:33
canton7 put 'origin/master' on the end of that command too, why not11:33
quackgyver okay one sec11:33
ill try11:33
i hard refreshed my HEAD at that point, if that is relevant somehow11:34
luto haha, still the origin thing going on in here?11:34
quackgyver anyway, testing, one ec11:34
canton7 cool11:34
luto, progress is being made!11:34
luto \o/11:34
quackgyver: may I ask where you are from? svn?11:34
quackgyver "are from" and "svn" in the same sentence? :p11:34
fdelNexos11:35
luto yes!11:35
svn-land11:35
quackgyver haha11:35
luto also know as hell11:35
quackgyver I'm not used to version control.11:35
luto ah11:35
quackgyver Did SVN for a bit11:35
liked it more because it was easy and intuitive11:35
enr left11:35
luto think graphs, no folders! lol11:35
quackgyver heh11:35
dvor left11:35
rchavik left11:35
enr joined11:36
wald0 how i can import commits from one git repository to another ?11:36
Droolio joined11:36
Nexosfdel11:36
jokajak wald0: git remote add <name for other repository> <url for other repository>11:36
wald0: git fetch <name for other repository>11:36
quackgyver canton7: okay its showing me a big tree here. looks really cool11:36
luto no tree. it's a graph!11:37
quackgyver however, i feel that i cant paste anything not knowing how sensitive this iss11:37
canton7 learn to love that graph - or the one from gitk11:37
quackgyver since im doing this for a client11:37
KhashayaR left11:37
luto !lol11:37
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all11:37
canton7 quackgyver, I'm interested in the relationships between different branches, on that graph11:37
feel free to censor the one-line commit messages11:37
quackgyver canton7: Sure, I'll do my best to give you the lowdown.11:37
fdel wald0: if you just need a couple of commits, you could do git format-patch on source repos, then git apply11:37
trusktr left11:37
canton7 as long as the depiction of the graph remains the same11:37
quazimodo left11:37
michaelarestad joined11:38
michaelarestad left11:38
wald0 thx11:38
danicampa901 left11:38
michaelarestad joined11:38
enr left11:40
quackgyver canton7: I see my own branch at the very top starting with "(HEAD, branchname". The branch is then split, where on the new branch there is a line starting with "(tag: someone", which is then followed with another such line but with minor alterations to the name on the same branch, and then once more, effectively creating three "(tag: "-lines on the secondary11:41
branch. Following that point, the secondary branch is just continuouosly broken off into new branches with one single entry per branching-off.11:41
canton7 where's master?11:42
quackgyver Master is not mentioned anywhere11:42
canton7 origin/master?11:42
quackgyver Nope, not at all. :/11:42
canton7 and the exact command you ran?11:42
is it somewhere further down?11:43
quackgyver how do you scroll in linux?11:43
im in some kind of cli prompt11:43
canton7 are you still viewing the tree? do the up and down arrows scroll?11:43
michaelarestad left11:43
quackgyver i usually do shift+pgup/pgdwn in putty11:43
oh, down works11:44
lol11:44
canton7 you're in a pager, called 'less'. 'q' quits it11:44
quackgyver Ah11:44
drizzd joined11:44
quackgyver canton7: Honestly, I couldn't paste you all of this. It's huge and full of entries, and I don't really know what I should or shouldn't censor. There are tons of entries and references to actions being made11:44
CodeShark joined11:44
quackgyver so can I just help you look for anything specific instead?11:45
quazimodo joined11:45
canton7 i'm looking for the relationship between branchname and master11:45
which is why I asked for the command 'git log --graph --decorate --oneline branchname master'. Are you sure that's what you used?11:45
quackgyver "git log --graph --online --decorate master banchname"11:46
branchname*11:46
putting origin/master at the end returns the same thing11:46
just a huge tree with lots of people doing stuff11:46
canton7 and you said you compared branchname to master, and got no differences?11:46
how did you do that?11:46
quackgyver git diff --name-only master11:46
or branchname master11:47
or origin/master11:47
canton7: the first line that mentions my branchalso says "merge branch master of " etc11:48
is that what you were looking for?11:48
canton7 oh! so you merged master into branchname?11:49
quackgyver sorry about my poor spelling. my client is really laggy11:49
canton7 (mine's worse, and I've got no excuse)11:49
checkout branchname, then 'git show'11:49
CodeShark left11:49
quackgyver canton7: my coworker told me to merge it with master to ensure that there was no difference whatsoever between branchname and master when doing git diff11:50
so thats why11:50
canton7 that doesn't mean that branchname is empty11:50
it's the same as master, because you merged master into it11:50
quackgyver ive already got branchname checked out, so i did git show and it returned "Merge branch 'master' of <path> into <branch>11:51
canton7 yup11:51
rurufufuss left11:51
canton7 so your local changes haven't gone anywhere - they're still there in branchname11:51
quackgyver so if you point to branchname and do "merge master"11:51
canton7 (I suspect, look at the output of 'git log' or 'git log -p')11:51
quackgyver then you cannot tell them apart?11:51
canton7: both show lots of entries11:52
whats the diff between the commands?11:52
so i know what im looking for11:52
canton7 depends on the merge I guess. Was branchname merged into master at any point in the past?11:52
log -p shows a diff after each commit11:52
Roots47 joined11:53
quackgyver canton7: it doesnt just show changes made by me11:53
it shows changes made by others too11:53
up until this point11:53
all of these commands do11:54
canton7 erm, add --first-parent11:54
quackgyver should i have added --first-parent to the graph too? :p11:54
canton7 nah11:54
you could, but then we're looking at something different11:54
quackgyver Ah finally, my commands.11:54
Cool, it's the ultimate display of my fear-induced GIT OCD.11:54
MERGE MERGE MERGE MERGE PULL MERGE11:55
canton7 not good ;)11:55
quackgyver :)11:55
rchavik joined11:56
canton7 found your commits?11:56
AlexanderS joined11:57
quackgyver Okay so today I have a "merge branch master of <url> into <branchname>", then 3 additional such entries from exactly 10 days ago. However, 3 days before the latter entries there's a "Merge remote-tracking branch origin/master into <branchname>11:57
mino joined11:57
mino left11:57
mino joined11:57
quackgyver Could this mean something?11:57
canton7 just lots of stuff being merged into branchname11:57
'git merge origin/master' vs 'git pulll <url> master' I suspect11:58
quackgyver Prior to that I see a message specified by me, which means its a commit11:58
devoldmx left11:58
quackgyver yeah canton7 exactly11:58
canton7 cool. Out of curiosity, grab the commit hash, and 'git branch --contains <hash>'11:58
quackgyver ok11:58
"qwoifhfhqowfihqw". Good comment.11:58
canton7 yeah ><11:58
yassine joined11:58
cannonball joined11:58
yassine left11:58
yassine joined11:58
cannonball left11:58
cannonball joined11:58
Milossh joined12:00
quackgyver ok canton7, that printed "master" along with 3 additional branches12:00
Roots47 left12:00
quackgyver which are for different projects created by be12:00
canton7 cool, so your commit is already in master12:01
quackgyver and which exist on my local branch12:01
oh i see12:01
canton7 hence the lack of differences12:01
quackgyver heh12:01
frgtn left12:01
quackgyver But that doesn't explain why the files suddenly disappeared?12:01
since they're not on my local repo anymore12:01
canton7 git checkout master; git log -- path/to/deleted/file12:01
quackgyver ok looking for the pathname one sec12:03
marhaban joined12:03
quackgyver canton7: it returned nothing :(12:04
do i need to specify the full path?12:04
or is part ok?12:04
canton7 path relative to where you are12:04
quackgyver ok12:05
will a folder suffice?12:05
canton7 sure12:05
quackgyver if i pick a shorter url, will that increase the amount of hits returned?12:05
canton7 (as long as not too much else affects that folder - we're filtering logs by which ones touches the path your specify)12:05
quackgyver or will it return 0 due to requiring specifics12:05
ko12:05
ok*12:05
Ok, i have one entry12:06
when i point to the folder above the missing one12:06
"Adding files for merge to origin"12:06
by me12:06
canton7 might be worth sticking --name-status in there12:06
quackgyver before or after the path?12:06
canton7 we're looking for the point at which the files were added, then deleted12:06
berfore12:06
*before12:06
quackgyver ok12:06
yep, it spits out the missing files12:06
how could they have disappeared when the only entry regarding them is me adding htem?12:07
them*12:07
this is nuts12:07
rchavik left12:07
quackgyver but im also happy! :-)12:07
canton7 if they've been deleted while someone's sorting out merge conflicts, they can get a bit lost12:07
the term is "evil merges"12:07
marhaban left12:07
wald0 i have "git pull" an extra remote, it shows in the history as origin/foo, but "foo" locally doesn't seems update, how i should update it ?12:08
quackgyver haha, evil merges12:08
canton7: They're a bunch of files in a single folder12:08
pdx joined12:08
raf joined12:08
quackgyver so i dont think someone accidentally removed all of them, including their folder :P12:08
michaelarestad joined12:09
spaceonline joined12:09
michaelarestad left12:09
michaelarestad joined12:09
quackgyver So what do you think happened?12:10
canton7 I'm not sure12:10
are you dead sure that commit actually adds those files?12:10
'git show --name-status <commit>'12:10
hyperair joined12:11
quackgyver There is an "A" before each file entry12:11
Does that mean "Add" or "Annihilate"? :P12:11
canton7 'Added'. cool12:11
Roots47 joined12:12
nicoulaj joined12:12
garbagecollectio joined12:12
quackgyver This is not the first time I've lost branches12:12
canton7 it hasn't been lost12:12
quackgyver and this applies to more than just this one12:12
canton7 the commit *was* in master12:12
well, *is*12:12
the changes have since been undone by someone/something12:12
quackgyver canton7: Well, it has been pushed to origin, and then master has fetched from origin12:13
so maybe thats why?12:13
canton7 going back to what we were saying earlier 'git fetch' updates the remote-trakcing branches, not local branches like 'master'12:13
but anyway, probably not12:14
longbeach joined12:14
quackgyver hmm12:14
canton7 did the 'git branch --contains' include origin/master ?12:14
michaelarestad left12:14
quackgyver canton7: no just the id of the commit12:14
canton7 it should list a number of branches12:15
quackgyver and it lists 4 branches in my local repo12:15
but not all of them12:15
canton7 did that list contain origin/master as well as master?12:15
quackgyver constant: I don't know. Can I tell them apart somehow?12:15
canton7 one's called 'origin/master' and the other's called 'master'12:15
hmsimha left12:15
quackgyver oh, you mean as an actual entry12:15
sorry, no, just master12:15
not origin/master12:15
canton7 'git fetch', try again?12:16
quackgyver Nope, not at all!12:16
Droolio left12:17
quackgyver well12:17
canton7 ok, it's in 'master' but not 'origin/master', that's somethign12:17
quackgyver at least now i can track down the files12:17
let me just try doing this to a different branch12:17
to see if it outputs anything more12:17
canton7 but that commit was definitely in your local master at some point12:17
Droolio joined12:17
ewnd9 joined12:17
wald0 when i tried to "git push" changes that i get from upstream, it complained about that i need to "pull" first, but now the branches looks totally diverged, how i should fix that ?12:19
kcj left12:19
jefflyne joined12:19
wald0 in fact it looks like the commits was duplicated in a diverged branch :/12:20
rchavik joined12:20
TandyUK left12:20
TandyUK joined12:21
wald0 http://paste.debian.net/25444/ it looks like the commits was duplicated in line 1812:21
DoniRS joined12:21
wald0 is this a common problem using git? :/12:21
quackgyver canton7: Okay, so in the specific case we discussed, it actually seems that the files have somehow been relocated to another folder. Looking more closely, the git log actually doesn't point to the exact path endpoint as i thought (and as has been specified everywhere), so i did manage to finally locate the files in that alternate folder (which differs by a12:21
single letter)12:21
however12:21
this case is not true for the other branches that are empty12:22
test____ joined12:22
quackgyver and i have specifically received a comment about the project from other coworkers, referring to the exact path its supposed to be located in12:22
and i cannot find any commits pertaining to that path12:22
normanrichards joined12:22
quackgyver when i use your techniques as described12:22
canton7 quackgyver, pass -M to git log to look for renames12:22
rchavik left12:23
Roots47 left12:23
quackgyver canton7: in regards to the first or second project? because the second one is more important and more likely to point to whatever core issue that caused this, whereas the first one feels like an isolated incident of either me messing up at some point (though i dont see how considering the logs) or someone accidentally altering something12:23
just so we're on the same page as to what we're trying to look for12:23
:P12:24
canton7 right, is this a new scenario? can I have a bit more detail?12:24
cool12:24
what's the problem with this one?12:24
rfoust left12:24
quackgyver canton7: exact same scenario for multiple branches.12:25
so what we're troubleshooting is applicable to all of them in the same way12:25
same behavior, same time of disappearane12:25
disappearance*12:25
all of them confirmed to have worked at some point not too long ago12:25
so, it doesn't really matter which one.12:25
rnsanchez joined12:25
canton7 ok, pick one12:25
that's the new 'branchname'12:25
test____ left12:25
xequence joined12:25
quackgyver yep, im trying to say that you helped me solve one issue, but that im gonna act as if we didnt ;)12:26
yep, branch2 = branchname now12:26
canton7 git checkout branchname; git log --first-parent --no-merges. See your commit?12:26
anonymuse joined12:26
quackgyver indeed i do! and it prints "master" along with 3 more branches12:27
canton7 what does?12:27
quackgyver --contains12:27
in fact12:27
all of these branches are the ones lacking files12:28
haha12:28
canton7 ok, so that commit was merged into master, too12:28
quackgyver yep, i think i did it to all of them while troubleshooting12:28
ledestin joined12:28
quackgyver would you say that merging into master is a bad idea?12:28
i feel like my coworker shouldnt have suggested it12:28
canton7 depends on what you're trying to do12:28
quackgyver ok12:29
canton7 if you're trying to take the changes from that branch and put them in master, yes12:29
wald0 how i can remove a commit that i have pushed ?12:29
xSmurf joined12:29
quackgyver canton7: so are you saying that "git merge foo" would merge the branch you're currently working on into "foo"?12:29
or that "foo" would be merge into your current one12:29
canton7 no, it merges 'foo' into the branch you're currently on12:29
you can only ever merge into the currently-checked-out branch12:29
quackgyver If that's the case, then why does master have my commits?12:30
canton7 since the merge operation needs a working copy to work12:30
quackgyver because I *never* merge into master12:30
wald0 left12:30
quackgyver only into branches, if i ever do it12:30
canton7 output of 'git reflog master'?12:30
Roots47 joined12:31
quackgyver it wants me to do show, expire or delete12:34
mmitchell left12:34
canton7 erm, show12:34
must be a slightly different git version to what i'm running12:34
git reflog show master12:35
quackgyver Aight, now it's showing a couple of entries12:35
sgambino joined12:36
quackgyver master@{0}: pull: Fast-forward12:36
wald0 joined12:36
quackgyver each entry incrementally increases the 0 to 1, 2, 3 etc12:36
canton7 yup12:36
i'm looking for merges into it12:36
just making sure12:36
quackgyver and the first two commands are the same (Fast-forward) while the latter 5 say "pull origin: Fast-forward"12:36
canton7 thought if no. 0 is a pull, then that seems unlikely12:36
wald0 it is common in git that the history becomes broken ? my history diverged in a kind of duplicated commits... how i should solve that now ? :/12:36
mika left12:36
canton7 wald0, that's what happens when you rewrite public history12:37
ledestin after I committed to master and it's not up to date, is there any way to fetch stuff from remote and rebase? I don't like that if I do 'git pull', I get stupid merge commit message.12:37
quackgyver canton7: Okay so no merges have been done into master, yet it contains the commits done on other branches12:37
canton7 not recently anyway12:37
wald0 i have fetched changes from a remote, when tried to push it complained about a pull is required, so i pulled, when finally pushed, my branch looked as diverged with duplicated commits12:37
quackgyver ok12:37
ewnd9 left12:37
quackgyver So this means that my commits must be coming rom elsewhere then?12:38
canton7 quackgyver, there is where we really need that graph12:38
quackgyver i.e. origin?12:38
rchavik joined12:38
quackgyver canton7: I *have* pushed these branches to origin at some point, but not into origin/master12:38
canton7 oops, git branch -a --contains <commit hash>12:39
forgot that damn -a12:39
quackgyver does that explain anything?12:39
wald0 http://paste.debian.net/25444/ it looks like diverged on line 18, with duplicated commits :/12:39
quackgyver what i just said, i mean12:39
wald0 how i should solve that now ?12:39
enr joined12:39
canton7 quackgyver, give me that output :P12:39
michaelarestad joined12:39
quackgyver canton7: "forgot that damn -a" as in "dont use -a" or "i forgot it before"? :)12:40
canton7 I forgot it before12:40
michaelarestad left12:40
canton7 'git branch -a --contains <commit hash>'12:40
michaelarestad joined12:40
gusnan joined12:40
mika joined12:40
quackgyver canton7: It prints a huge list of branches12:40
on remotes/origin/12:41
canton7 including origin/master?12:41
cool12:41
so your commit was merged into origin/master, and it sounds like that was quite a long time ago12:41
quackgyver so at some point after i pushed it to origin, it was merged by other projects?12:41
yeah12:41
anonymuse left12:41
canton7 I'm not sure who merged it12:41
wald0 i should trash my git and start a new project on these cases ?12:41
quackgyver my log doesnt go back far enough12:42
:(12:42
canton7 it does - you just need to scroll12:42
quackgyver nah, it stops12:42
as if there was a limit12:42
is that the server or client12:42
let me check my putty settings12:42
canton7 how are you scrolling?12:42
crazydiamond left12:42
quackgyver shift+pgup12:42
canton7 that's putty's scroll buffer, I think12:42
quackgyver aye probably12:42
canton7 when you get the log output, is there's a colon on the very last line, at the bottom?12:43
quackgyver nah, it puts me back in shell12:43
canton7 weird config then12:43
quackgyver haha12:43
canton7 'git log .... | less'12:43
quackgyver maybe!12:43
looper left12:43
quackgyver Don't worry, I changed PuTTy's scrollback from 200 to 20000 :p12:44
canton7 just use a pager12:44
wald0 there's really no solution for that?12:44
enr left12:44
canton7 wald0, you can rewrite public history to fix that, but then what's to stop it happening agian?12:44
michaelarestad left12:45
canton7 you need to learn how to deal with you, or other people, force-pushing rewritten history12:45
read 'recovering from upstream rebase' in man git rebase12:45
gitinfo the git-rebase manpage is available at http://jk.gs/git-rebase.html12:45
kewah left12:45
simesy left12:45
looper joined12:45
wald0 thx12:46
rudak left12:46
quackgyver canton7: When I run your command to check the details of the commit id, it lists master first12:46
and then my project branch12:46
following that, a remote branch12:46
mechanicalduck_ joined12:47
canton7 which command?12:47
quackgyver the one without the less parameter12:47
TheBrainWork joined12:47
tanema left12:47
quackgyver i added more scrollback to putty and went back to the beginning of the output12:48
canton7 which one? log?12:48
quackgyver git branch -a --contains id12:48
the id from my work on the branch with the missing files12:48
work = commit12:48
sorry12:48
canton7 that's listing all of the branches which contain that commit12:48
shruggar joined12:48
pr0ggie joined12:48
quackgyver not in chronological order?12:48
canton7 I have several meetings in a few mins btw12:49
quackgyver damn12:49
canton7 no. the commit has the same timestamp, whatever branch it's in12:49
quackgyver sorry for taking up your time12:49
okay12:49
one of the lines read12:49
"remotes/origin/HEAD -> origin/master12:49
"12:49
does this explain anything?12:49
canton7 no12:49
mechanicalduck left12:49
quackgyver ok12:49
rchavik left12:49
quackgyver any quick input on how i could possibly locate the files associated with the branch?12:49
babilen joined12:49
canton7 that means origin/HEAD is the same as origin/master. origin/HEAD only says what commit should be checked out when that repo is cloned12:49
quackgyver ah i see12:49
enr joined12:50
Carraway joined12:50
canton7 erm, you might be able to bisect master, see when the changes were removed12:50
man git bisect12:50
gitinfo the git-bisect manpage is available at http://jk.gs/git-bisect.html12:50
canton7 that's assuming they were removed in an evil merge12:50
quackgyver I don't think they were12:50
fdel left12:50
quackgyver because the folders are too different12:50
:/12:50
canton7 since they *should* be displayed - both being added and removed - by 'git log -- path/to/file'12:50
fiddle with -M and -C12:51
kesha_ left12:51
quackgyver -M and -C regarding which command?12:51
canton7 even if they were renamed, that counts as a removal from their original pth12:51
*path12:51
quackgyver ah ok12:51
canton7 regarding man git log12:51
gitinfo the git-log manpage is available at http://jk.gs/git-log.html12:51
quackgyver thanks for the help. hit me up later if i can repay you somehow12:51
really appreciate it :)12:51
shruggar sometimes I have exported directories, ie: directories which are *not* under version-control, but which are based on directories which *are*. Usually to verify that nothing has changed since they were exported, I sometimes have the need to compare the "exported" directory with a tree-ish from a bare repository. I have created this script to aid in this task: https://github.com/wpalmer/git-scripts/blob/master/git-bare and I would appreciate comment on whethe12:51
canton7 that's alright12:51
good luck!12:52
quackgyver thanks!12:52
whaley joined12:52
Marquisk2 joined12:52
xSmurf left12:53
netsroht left12:53
ianliu joined12:54
luxgeek joined12:54
HenryG joined12:55
scampbell joined12:56
netsroht joined12:57
St_Marx left12:57
lifelike left12:58
babilen left12:58
St_Marx joined12:58
mechanicalduck_ left12:59
adamwathan joined12:59
enjoi joined12:59
rfoust joined12:59
quackgyver canton7: There should be more people like you. I also like to help as much as possible within my own field of expertise, and as I've experienced now it really can affect your perception of a channel. Keep it up. You helped me out of a pickle there. Cheers. :-)13:00
mklappstuhl joined13:00
jim0thy_ left13:00
mattcen joined13:02
crazydiamond joined13:02
whaley left13:03
Raging_Hog left13:04
kill-9_ joined13:04
polymar left13:05
rchavik joined13:05
tg left13:05
enjoi left13:05
normanrichards left13:06
oliveiraev joined13:06
mikecmpbll left13:06
mikecmpbll joined13:06
tg` joined13:06
quackgyver If you do a git diff and it doesn't output "Already up-to-date", what does that mean?13:07
ewnd9 joined13:07
lamarus joined13:07
tg`tg13:08
nucatus joined13:08
decotii joined13:08
jerius joined13:10
rchavik left13:10
michaelarestad joined13:10
michaelarestad left13:11
michaelarestad joined13:11
h0bbit left13:11
flaguy48 left13:11
nucatus left13:12
tplaner joined13:13
devoldmx joined13:14
AaronMT joined13:14
TandyUK left13:14
TandyUK joined13:15
matanya left13:15
emergion left13:15
tanema joined13:15
michaelarestad left13:15
enr left13:16
enr joined13:17
enr left13:17
enr_ joined13:17
wald0 how i can generate a massive list of 30 patches to export and reapply in a new git history ? this rebase problem is too much complex, what a mess13:18
mdhopkins joined13:18
jokajak wald0: git format-patch --help13:19
r0dn3y joined13:19
mklappstuhl left13:20
jefflyne left13:20
Carraway left13:21
DeanH joined13:23
Carraway joined13:23
mklappstuhl joined13:24
verysoftoiletppr joined13:25
x3ro joined13:25
crane_work left13:25
trungqtran joined13:26
hellopat joined13:27
jonez left13:27
enr_ left13:27
sami_sami13:27
aharris6 left13:27
gitinfo set mode: +v13:27
PeterBooker joined13:28
TeckniX joined13:29
ntus1017 left13:30
lb1a and i thought i know every silly photo of EugeneKay .... i was wrong : http://2.bp.blogspot.com/-ncJzdrGVZ9g/UQl2J7gXepI/AAAAAAAABZ8/HeMzHSvtFH8/s1600/Google-Chrome-Hair.jpg13:30
natechan joined13:30
Gwyxx left13:30
nucatus joined13:30
x3ro Hi. I'm currently looking for a way to integrate a submodule into its parent repository, while preserving history. I've tried several possibilities, including simply adding it as a remote and merging and "git subtree add", but the resulting paths are wrong. Say I've commited the file "foo.c" in the submodule, and the submodule lives in "src/bar/" in the parent repo. The commit merged into the parent repository should then have the path "src/bar/foo.c", and not "foo.13:31
because then "git log src/bar/foo.c" won't work. I understand that this requires rewriting all commits previously made, but I'm still wondering if this is possible. Thanks for reading :)13:31
tanema left13:31
polymar joined13:31
LekeFly left13:31
mklappstuhl left13:32
PerlJam x3ro: of course it's possible! (but I don't know the correct incantation right off, sorry :)13:33
Destos joined13:33
x3ro PerlJam: Where might I find any more information? Googling mostly led me to the opposite operation, creating a submodule from a directory :(13:34
hashpuppy left13:34
quackgyver canton7: FOUND IT.13:34
mehdiNej joined13:34
quackgyver A coworker I don't know deleted my files13:34
trungqtran left13:34
canton7 quackgyver, nice! what was it?13:34
aha13:34
how did you get that?13:34
quackgyver and must've merged it back into origin by mistake13:34
which i then fetched back into my repo :(13:34
PerlJam x3ro: http://stackoverflow.com/questions/1759587/un-submodule-a-git-submodule might help13:34
devoldmx left13:34
quackgyver canton7: Did some more generic log fetches13:34
devoldmx joined13:35
canton7 nice13:35
quackgyver and found a commit specifically addressing my files13:35
can i rollback?13:35
or something13:35
x3ro PerlJam: I found that, but the answer unfortunately results in paths not being updated in the submodule's history.13:35
jrobichaud joined13:35
canton7 quackgyver, you can make a commit which completely undoes his commit with 'git revert', or you can checkout a specific dir as it was just before that commit with e.g. 'git checkout <commit before one which deleted files> -- path/to/files'13:36
(then commit)13:36
quackgyver canton7: I'd rather do a checkout, so that i dont revert anything on any other repo than mine13:36
ledestin left13:36
keller left13:36
mmitchell joined13:36
rchavik joined13:36
canton7 quackgyver, 'any other repo'?13:36
quackgyver canton7: can i supply a generic parent folder or do i have to revert all the files individually13:37
canton7: yeah like remotely13:37
relipse left13:37
canton7 quackgyver, hmm? there's no much difference between 'git revert <commit>' and 'git checkout <commit>^ -- .; git commit'13:37
quackgyver canton7: Can I do a complete checkout of a specific commit into a branch of mine?13:37
canton7 actually, ignore my last sentence13:38
quackgyver canton7: Well, wouldn't revert change the files in the location where he deleted them?13:38
before merging htem back in13:38
canton7 not entirely sure what you want I'm afraid13:38
quackgyver canton7: This person who deleted my files did so in his own dev repo, then pushed it back into origin which i then fetched and applied all over my projects13:38
twoface88 joined13:38
quackgyver therefor, i wouldnt want to revert the changes on his side13:39
lov quackgyver: track this dev down then punch him right in his stupid rm-happy face.13:39
quackgyver id merely want to fetch them into a branch in my own local repo13:39
lov this is dev law.13:39
devoldmx left13:39
chrisgeorge joined13:39
quackgyver lov: Unfortuantely he's also my most important point of contact for immediate and urgent assistance13:39
trungqtran joined13:39
quackgyver otherwise i'd put on that cowboy hat and follow your advice..13:39
outcoldman joined13:39
quackgyver but not with this guy.. even a hero makes mistakes13:40
ledestin joined13:40
pandeiro joined13:40
huoxito joined13:41
vince_prignano joined13:41
outcoldman left13:41
r0dn3y left13:41
michaelarestad joined13:41
keller joined13:42
babilen joined13:42
michaelarestad left13:42
babilen left13:42
michaelarestad joined13:42
dougsland joined13:42
outcoldman joined13:43
outcoldman left13:43
grampajoe joined13:43
rhombus left13:43
breakingthings joined13:43
babilen joined13:45
michaelarestad left13:47
canton7 quackgyver, you can't revert them 'on his side'. you can only make the change locally, then maybe push it to origin13:47
whatever you do13:47
quackgyver canton7: ahh, great to know13:47
thanks mat13:47
e13:47
harish joined13:48
canton7 you can't directly affect what's on someone else's computer. that would be a massive security risk :P13:48
rchavik left13:48
agile left13:48
lautreamont joined13:49
kermit left13:50
rudak joined13:50
beautifulmind left13:50
fragje left13:50
illsci joined13:51
illsci hey wahts up13:51
lautreamont can someone help me with git13:51
illsci im trying to move a bunch of github enterprise repos from one instance to another and I want to pull down all the branches just as they are and move them to this new github enterprise instance13:51
I scripted it... but its not keeping the feature/blah feature part13:52
lov lautreamont: this is the wrong channel, sorry. We just judge people, we don't help them.13:52
lov silently judges lautreamont13:52
illsci is there a simpler way to just pull it all down and then push it all back up just as it is in one13:52
dfanjul illsci: git fetch one refs/*:refs/move/* && git push two refs/move/*:refs/*, maybe?13:53
zivester left13:53
Swayz joined13:53
harish left13:53
guampa joined13:53
grampajoe left13:53
lautreamont mine is simpler, i cloned someones repo from github, change it, and now I want updates from original, but git tells me that all is up-to-date but I see on web that changes are made13:54
agile joined13:55
rodyhaddad left13:55
simesy joined13:56
quackgyver canton7: Good to know. :-) Cheers13:56
rbento joined13:56
enr joined13:56
illsci dfanjul: that doesn't seem do it...13:56
or im messing it up13:57
I cloned the repo and I cd'd into it13:57
yassine left13:57
illsci how do I pull down everything all at once and retain the branch name structure.... like feature/blah13:57
I can just git push upstream --all13:57
thats easy13:58
im not sure how to pull them down and keep them as they're named13:58
PainBank left13:58
PainBank1 joined13:58
trungqtran left13:58
rodyhaddad joined13:59
devoldmx joined13:59
cbreak-work left13:59
donmichelangelo left14:00
TandyUK left14:00
zhost joined14:00
simesy left14:00
TandyUK joined14:00
lautreamont left14:00
konadr left14:00
donmichelangelo joined14:00
cbreak-work joined14:00
enr left14:01
dfanjul illsci: if you have cloned, if you already have your branches and tags, no need to pull14:03
goran joined14:03
jim0thy_ joined14:03
illsci so this was the command: git fetch one refs/*:refs/move/* && git push two refs/move/*:refs/*,14:03
how does that work if I've cloned it and im in the git repo?14:03
rchavik joined14:04
dfanjul replace <one> and <two> by the url's14:04
sidus left14:04
illsci I tried that and got an error, let me try again14:04
dfanjul and the trailing comman should be removed14:04
illsci sure :)14:04
I was just doing the first part to see if I could pull them down14:04
if you're in the repo do you need to have the url for the name of the repo?14:04
e66 left14:05
dfanjul well, then <one> could be 'origin'14:05
illsci sure14:05
acharlieh joined14:05
garbagecollectio left14:06
illsci hmmm it shows a ton of * [new ref] refs/pull/99/merge -> refs/move/pull/99/merge14:06
but then I do git branch and I have just master14:06
goran left14:07
nDuff illsci: "git branch" shows your local branches. "git branch -r" shows your remote ones.14:07
illsci: it sounds like you want the latter, if you expect to see remote branches.14:07
michaelarestad joined14:07
illsci yeah I want to pull down all my remote branches and maintain the name14:08
nDuff takes a closer read, and... ahh.14:08
illsci and then I want to git push --all14:08
to this new github instance14:08
HenryG_ joined14:09
konadr joined14:09
dfanjul now you have the original in refs/move/*14:09
it is not the normal namespace, git does not consider them branches or remote branches or anything, just other refs14:09
acharlieh left14:09
dfanjul so now you can do the second push14:10
rchavik left14:10
zivester joined14:10
illsci lets see...14:11
quackgyver canton7: If I check out this commit, it's gonna revert a bunch of other files too14:11
what command do i need to use in order to check it out into a single branch?14:11
maroloccio joined14:11
HenryG left14:12
ayaz left14:12
pr0ggie left14:12
hyperair left14:12
bitkiller joined14:13
rabellamy joined14:13
illsci hmm it looks like thats working but it still hasn't given me my prompt back yet14:13
weird14:13
there we go14:13
danicampa901 joined14:14
tang^ joined14:14
lb1a left14:14
lamarus left14:15
zivester left14:15
zivester joined14:16
grampajoe joined14:16
subhojit777 left14:17
e66 joined14:17
bamj0rb joined14:18
anonymuse joined14:19
maasdesigner left14:19
ledtc left14:21
raf left14:21
bonnie joined14:21
x3ro left14:21
babilen_ joined14:22
ntus1017 joined14:22
dfanjul if you cloned, the fetch didn't transfer anything, the push needs to transfer every object14:23
amcsi_work how do I set 1 file to be CRLF in .gitattributes?14:23
babilen left14:23
SergeyPenkin joined14:24
scampbell left14:25
crane_work joined14:25
cbreak-work amcsi_work: man gitattributes, look for eol14:25
gitinfo amcsi_work: the gitattributes manpage is available at http://jk.gs/gitattributes.html14:25
shruggar left14:25
lamarus joined14:26
papegaaij left14:26
cbreak-work quackgyver: git checkout -b branch checks out what ever commit you want into a new branch14:26
rchavik joined14:26
quackgyver cbreak-work: isnt that the command for checking out the branch itself?14:27
or do you mean that I should first point to the commit i want to revert to in a headless state?14:27
ledestin left14:28
ballmenace joined14:28
cbreak-work quackgyver: -b blah means "create branch blah"14:28
so it will check out the commit you tell it to into that new branch14:28
Sonderblade left14:29
Gamecubic joined14:29
cbreak-work quackgyver: you don't need to point it to a commit you want to revert14:29
quackgyver cbreak-work: yeah so how would your example know which commit to check out into the branch?14:29
cbreak-work if you want to revert, git revert can do that.14:29
sqlnoob left14:29
bonnie left14:29
cbreak-work quackgyver: you tell it14:29
quackgyver cbreak-work: where? :p14:29
cbreak-work with an additional parameter...14:29
git checkout takes the thing you want to check out as parameter14:29
quackgyver alright great14:29
cbreak-work -b name just tells it to create a new branch from that14:30
mustmodify joined14:30
ballmenace left14:30
quackgyver cbreak-work: so wait, I'd do git checkout -b <target commit id>?14:31
scampbell joined14:31
sershe left14:31
cbreak-work no.14:31
quackgyver cbreak-work: I thought that "blah" = branch name14:31
cbreak-work yes14:31
KhashayaR joined14:31
KhashayaR left14:31
KhashayaR joined14:31
quackgyver cbreak-work: I'm checking the help page and it doesnt say anything about a source14:31
in the symopsis14:31
eynopsis*14:31
sriracha joined14:32
cbreak-work it's called <commit>14:32
mustmodify ok git nerds... give me a push. If I want to add some files to (not-pushed) HEAD^2, is there a better way than `git reset HEAD^1; git add xyz; git commit -m "message from HEAD^2" --amend; git add sometimes; git commit -m "message from HEAD^1"`? like a ... `git commit --amend=HEAD^2` or something?14:32
cbreak-work or, in the -b mode <start_point>14:32
mustmodify: man git-rebase14:32
gitinfo mustmodify: the git-rebase manpage is available at http://jk.gs/git-rebase.html14:32
cbreak-work mustmodify: look at git rebase -i HEAD~314:32
kesha_ joined14:32
cbreak-work mustmodify: also, do you really mean HEAD^2?14:33
and not HEAD~2?14:33
because that'd be a whole lot harder14:33
keller left14:33
polymar_ joined14:34
quackgyver cbreak-work: Okay so just to be perfectly clear, you're telling me that "origin" is actually a parameter to be used when checking out one's entire repo, but not when admitting a SHA file into the git config, or whichever is broken when you do "HEADless mode"? Because that's what you've been telling me all along. :-/14:34
Haha just kidding. Bet you had a heart attack. ;-)14:34
Thanks for the help mate.14:34
cbreak-work quackgyver: no.14:34
quackgyver: it's totally context dependent14:34
quackgyver: you could do git checkout -b origin origin14:35
quackgyver cbreak-work: I was just kidding, no worries. I understand now. I was just a little confused by the parameters.14:35
kpreid left14:35
cbreak-work and both origin's would mean something totally different14:35
quackgyver Speaking of which14:35
is there like, a "git ref for beginners"?14:35
kpreid joined14:35
cbreak-work man gitrevisions :)14:35
gitinfo the gitrevisions manpage is available at http://jk.gs/gitrevisions.html14:35
jefflyne joined14:35
jefflyne left14:35
thiago joined14:35
jefflyne joined14:36
quackgyver cbreak-work: Does that really cover everything?14:36
johnnyfuchs joined14:36
quackgyver in the way you'd expect a true ref to do?14:36
cbreak-work it covers it if you know how to read it :/14:36
quackgyver haha14:36
mizu_no_oto joined14:36
quackgyver cbreak-work: I'm asking because the reason why I'm here in the first place is because being new to GIT means you probably won't be able to decipher all the seemingly interchangeable/vague words which will only make perfect sense if you are actually familiar with GIT14:37
cbreak-work quackgyver: man gitglossary has some word descriptions14:37
gitinfo quackgyver: the gitglossary manpage is available at http://jk.gs/gitglossary.html14:37
cbreak-work otherwise, there are books14:37
polymar left14:38
quackgyver cbreak-work: No i mean more like, non-specific descriptions which allude to some specific git concept yet doesn't contain specific words you can research14:38
like when talking about git constructs14:38
you did it earlier in the chat too14:38
when i couldnt understand you14:38
I don't know how I'm supposed to research those kind of explanations :/14:38
Am I being vague or do you sort of understand what i'm looking for?14:39
cbreak-work I found the man pages to be very self-explaining14:39
quackgyver hm14:39
Okay well, I guess I'll just show you a clear example when I come across one, and you can tell me whatever difference there is in our thought processes that makes it seem self-evident to you14:40
while I think the opposite14:40
thanks for the help14:40
frgtn joined14:40
cbreak-work most likely education. I've worked with computers, software and the language used with those two for all my life, almost.14:41
so it's very familliar.14:41
mklappstuhl joined14:41
Dougie187 joined14:43
irqq joined14:44
john2496 joined14:44
rednaks left14:44
polymar joined14:45
rednaks joined14:45
chris______ joined14:45
Carraway left14:46
michaelarestad left14:46
michaelarestad joined14:47
michaelarestad left14:47
robbyoconnor left14:47
michaelarestad joined14:47
polymar_ left14:47
Carraway joined14:48
alezost joined14:50
kukks joined14:50
kukks left14:50
kukks joined14:50
dougsland left14:50
robbyoconnor joined14:50
michaelarestad left14:52
arietis joined14:52
Swayz left14:53
ErKa joined14:53
nkambo left14:53
Swayz joined14:53
yacks left14:53
dougsland joined14:54
|Freeman| left14:54
kesha_ left14:55
rednaks_ joined14:56
TheBrainWork left14:56
onethfour joined14:58
rednaks left14:58
cotton left14:59
kesha_ joined15:00
polymar left15:00
polymar joined15:00
pitzips joined15:00
HenryG_ left15:00
lavaman left15:01
sferry joined15:02
sferry left15:02
sferry joined15:02
sferry left15:02
wald0 if i have created a branch from master (nothing commited yet) but i want that it references to the "stable" branch instead of master (starting from that point), it is possible to change its pointing reference ?15:02
adhawkins-awayadhawkins15:02
chrisshattuck joined15:03
lov sure, use git reset --hard15:03
PeterBooker left15:04
PeterBooker joined15:04
Underbyte hey, is there a way one can set 'never ever allow a merge from branch A into branch B" in the git config?15:05
zhost left15:05
PerlJam Underbyte: you can make a hook for that15:06
Underbyte got any examples?15:06
PerlJam not handy15:06
mikecmpbll left15:06
tinti left15:06
nDuff Underbyte: ...well, do you know how to write a script that asserts that "<this ref> must not contain <this other ref> in its history"?15:06
mikecmpbll joined15:06
Underbyte no idea :D15:07
nDuff Underbyte: if so, you plug that into an update hook, and there you are.15:07
Ahh. Well, now you have a pointer as to where to start. :)15:07
fission6 joined15:08
chuckharmston joined15:08
Underbyte can "this ref" and "this other ref" be branch heads?15:08
tinti joined15:08
crazydiamond left15:09
Droolio left15:09
mechanicalduck joined15:10
frankstallone left15:10
babilen_ left15:12
nucatus left15:12
cbreak-work left15:12
Carraway left15:13
SirCmpwn left15:13
pduin left15:15
rchavik left15:16
dfanjul left15:16
bookmage joined15:17
michaelarestad joined15:17
nucatus joined15:17
danicampa901 left15:20
boblu left15:20
Carraway joined15:20
babilen joined15:21
acharlieh joined15:21
AWinterm_ joined15:22
vansonhk_ joined15:24
thiago left15:25
hike joined15:25
LimeBlast left15:26
devoldmx left15:26
juanmabc joined15:26
SirCmpwn joined15:26
devoldmx joined15:26
umib0zu joined15:26
crane_work left15:26
canton7 quackgyver, sorry, 'nother meeting. still wondering?15:27
PaulCapestany joined15:27
r0dn3y joined15:28
r0dn3yGuest4621015:29
Underbyte anyone feeling up to helping out a guy who needs a pre-recieve hook?15:29
devoldmx3 joined15:30
devoldmx left15:31
lov sorry bro, no gay stuff for me.15:31
Underbyte :(15:31
bobbyz_ left15:32
Underbyte i'm trying to make a hook that says "Branch B must never be merged into branch A"15:32
bvi left15:32
Guest46210 left15:32
TandyUK left15:32
TandyUK joined15:33
skiernose joined15:33
clintwn joined15:33
rodyhaddad left15:33
r0dn3y joined15:34
Balliad left15:35
EugeneKay You'll want to do a post-receive15:36
tbmiller joined15:36
ology joined15:36
ntus1017 left15:36
vansonhk_ left15:37
mike_af left15:37
enr joined15:38
jhulten joined15:38
bobbyz joined15:38
Underbyte i didn't know post recieve can deny a push15:38
EugeneKay Oh, right. Durp15:38
Update hook!15:38
ntus1017 joined15:39
babilen left15:39
EugeneKay My brain is not on; I'm teaching class and thus sober :-(15:39
Underbyte yeah -- basically i want to block bad merges (merges not in-line with git-flow) from being accepted by the blessed repository (our origin)15:39
claudiuvlad joined15:39
EugeneKay Yup. Bash script.15:39
claudiuvlad hello15:40
gitinfo claudiuvlad: 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.15:40
claudiuvlad git shows untracked files like HEAD, config, description15:40
trungqtran joined15:40
AWinterm_ left15:40
primitive joined15:40
EugeneKay First check the ref name; if it's Foo then examine the new history being pushed.15:40
ology irssi regexp /ignore to the rescue!15:40
AWinterm_ joined15:41
adhawkinsadhawkins-away15:41
claudiuvlad anyone15:41
i have a problem15:42
git shows untracked files present15:42
ThomasLocke left15:42
EugeneKay I think you're after man git-rev-list15:42
gitinfo the git-rev-list manpage is available at http://jk.gs/git-rev-list.html15:42
claudiuvlad like HEAD , config , etc.15:42
EugeneKay claudiuvlad - !repro15:42
gitinfo claudiuvlad: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting.15:42
TheBrainWork joined15:42
polymar left15:42
claudiuvlad EugeneKay, https://gist.github.com/anonymous/624190815:43
babilen joined15:43
EugeneKay It sounds like you have a bare repo that isn't bare, or something15:43
claudiuvlad any solution?15:44
JohnBat26 left15:44
EugeneKay Or managed to copy the contents of .git/ into your repo15:44
Do you see .git when you do `ls -a` ?15:44
kill-9_ left15:44
claudiuvlad yes there is .git15:44
enr left15:44
claudiuvlad EugeneKay, yes there is .git15:45
enr joined15:45
rchavik joined15:45
EugeneKay And does `git fsck` give any major errors?15:45
claudiuvlad EugeneKay, two dangling blobs (?!?)15:46
enr_ joined15:46
EugeneKay That's normal - means you have some objects that aren't being used.15:47
bvi joined15:47
EugeneKay You should be OK to just delete these untracked files.15:47
enr left15:47
EugeneKay It's just a copy of stuff that belongs in .git/ which you managed to cp into your worktree15:47
claudiuvlad EugeneKay, I have read we should use only bare repos15:47
nicedice_ joined15:47
EugeneKay Read !bare15:48
gitinfo an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/15:48
lpaul7 joined15:48
Devastator left15:49
mklappstuhl left15:49
enr_ left15:49
enr joined15:50
sainaen joined15:50
Devastator joined15:50
towski joined15:50
claudiuvlad EugeneKay, are bare repos safer ?15:50
EugeneKay !read the link in the factoid given.15:51
gitinfo Don't expect everything to be spoon fed to you - the man pages and other documents do not bite, you need to spend some time and effort reading them.15:51
claudiuvlad EugeneKay, thanks15:51
jfoy joined15:51
TandyUK left15:52
TandyUK joined15:52
KhashayaR left15:52
Gamecubic_ joined15:53
crazydiamond joined15:53
jcromartie left15:54
enr left15:54
mechanicalduck left15:55
Gamecubic left15:56
maxmanders left15:58
maroloccio left15:58
jfoy left15:59
lindenle joined15:59
quackgyver canton7: sort of, yeah :-)15:59
mike_af joined15:59
dabar joined16:00
dabar Hello. If I want to find when a line in a file was added, how can I do that?16:00
lov git blame16:00
EugeneKay spins the bottle, blames lov16:00
lov it's a fair cop.16:01
quackgyver canton7: I mean, I'm still just sort of experimenting right now16:01
lpapp joined16:01
maxmanders joined16:01
lpapp hi, is there a way to set the committer similarly to --author when committing?16:01
jfoy joined16:01
dabar I don't seem to have git blame16:01
Oh, I do.16:02
Just isn't in the list when I just run "git"16:02
CodeShark joined16:02
dabar I actually found "git log -p $path" to be more useful.16:03
Thanks!16:03
acharlieh left16:03
claudiuvlad left16:03
ojacobson joined16:03
arand lpapp: I think you need to make use of GIT_COMMITER_NAME and GIT_COMMITER_EMAIL16:04
yacks joined16:04
PeterBooker left16:04
PeterBooker joined16:04
lpapp arand: is this basic feature intentionally left out?16:05
dabar left16:05
rchavik left16:05
grawity yes, because when you commit something, then *you* are the committer16:05
it just doesn't make much sense to change it frequently.16:05
lpapp exactly why I would like to set it to myself.16:05
and not leave it as the default on a shared network.16:05
devoldmx3 left16:06
grawity shared network?16:06
I don't see how this has anything to do with networks16:06
(and it's not /left out/ – arand just gave you a way to do it)16:06
angry_baby joined16:06
lpapp arand: xport GIT_COMMITER_NAME/EMAIL did not help.16:06
grawity ah, it's COMMITTER16:06
lpapp grawity: no no, I would like to have --committer16:06
I would like to have consistency.16:07
arand oh, sorry, my typo16:07
grawity patches welcome16:07
thiago joined16:07
lpapp grawity: it is kinda weird it has never been added.16:07
mustmodify cbreak-work: Sorry for the delay. Maybe I'm confused. How are HEAD^2 and HEAD~2 different?16:07
Guest___ joined16:07
rath left16:08
grawity lpapp: because it is not something that *should* be used frequently; committer means committer, and if the committers start changing the 'committer' info, the "consistency" goes away16:08
verysoftoiletppr left16:08
grawity mustmodify: `man gitrevisions` – ^2 means the second parent, ~2 means the parent of the parent16:08
gitinfo mustmodify: the gitrevisions manpage is available at http://jk.gs/gitrevisions.html16:08
angry_baby left16:08
lpapp grawity: ?16:09
grawity: as I said, we use a shared computer.16:09
dfanjul joined16:09
dfanjul left16:09
mustmodify grawity: I've read it. Still confused. :P16:09
lpapp there is no such a thing as "you are you" without an explicit option.16:09
grawity lpapp: and a shared user account?16:09
acharlieh joined16:09
lpapp grawity: correct16:09
mustmodify But let me read your message a few more times.16:09
grawity .digraph d->c->b->a; f->e->a16:09
gitinfo .digraph: http://g.jk.gs/dV.png16:09
lpapp grawity: one account to the server.16:09
grawity: and some issues are better fixed right there.16:10
grawity ah, wait, wrong direction.16:10
lpapp grawity: which are specific to that machine.16:10
grawity .digraph a->b->c->d->e; a->f->g->d16:10
gitinfo .digraph: http://g.jk.gs/dW.png16:10
lpapp grawity: ok, I will try to submit a patch.16:10
grawity: this has bugged me enough times now to care. ^^16:10
devoldmx joined16:10
grampajoe left16:10
grawity mustmodify: see above graph – if HEAD is a, then HEAD^ (or HEAD^1) is b, HEAD^2 is f, HEAD~2 is c16:11
rodyhaddad joined16:11
lpapp grawity: I am actually looking into an option where I would not need to duplicate the set up for committer, and author.16:11
so I can set both one-shot.16:11
chuckharmston left16:11
lpapp anyway, thanks for noe.16:12
now*16:12
dreiss joined16:12
chuckharmston joined16:12
mustmodify grawity: ok, that kind of makes sense.16:12
verysoftoiletppr joined16:12
mustmodify grawity: I get that. thanks.16:12
cedeon joined16:13
grawity I think those can be stacked; HEAD^2^ would be g, for example...16:13
noname001 left16:13
grawity and of course, only merges have more than one parent – for regular commits, x^2 wouldn't give you anything16:14
lpapp I have a git hook for pulling for a push ... how can I make it nicer to actually not pull when changes are done in the pulling repository?16:14
maxmanders left16:14
lpapp should I always execute git reset --hard HEAD before the pull?16:15
grawity lpapp: !deploy is relevant16:15
gitinfo lpapp: 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/the-list-and-irc/deploy.html16:15
lpapp or there is a better way.16:15
AWinterm_ left16:15
blinkdesign left16:15
trungqtran left16:15
jaequery joined16:16
mechanicalduck joined16:16
lunaphyte_ joined16:16
gitinfo set mode: +v16:17
fRAiLtY- left16:17
lunaphyte_ left16:17
lunaphyte_ joined16:17
tbmiller left16:17
joshsmith joined16:18
chuckharmston left16:18
maxmanders joined16:19
xSmurf joined16:19
boombatower joined16:20
enr joined16:20
gittish left16:20
freestyl3r left16:20
rchavik joined16:21
lavaman joined16:21
arand left16:21
r04r|awayr04r16:21
lavaman left16:22
texasmynsted lpapp, I am curious what you are doing. Why do you need this hook?16:22
mechanicalduck left16:22
lamarus left16:23
ken01 joined16:23
ErKa left16:23
mustmodify left16:23
lpapp texasmynsted: webservice?16:24
right from a stable repository?16:24
AFAICT, it is quite common practice.16:24
how else would you solve it?16:24
mechanicalduck joined16:24
texasmynsted so you have code someplace that is updated by a webservice?16:24
n8chur_ joined16:24
lpapp texasmynsted: no, the code itself is the web service.16:25
texasmynsted (sorry I only saw your last couple of posts)16:25
Milossh left16:25
CheckDavid left16:25
babilen left16:26
freestyl3r joined16:26
macrobat joined16:26
texasmynsted I guess I did/do not understand your "I have a git hook for pulling for a push ... how can I make it nicer to actually not pull when changes are done in the pulling repository?"16:26
lpapp texasmynsted: ok ...16:26
texasmynsted I think I see what is happening . . .16:27
lpapp texasmynsted: you need to have an up to date git repository of the webservice apache, nginx, or something else is serving to the clients, right?16:27
dreiss left16:27
chuckharmston joined16:27
texasmynsted ok16:28
HenryG joined16:28
john2496 left16:28
ianliu given the argument "foo" to git checkout "foo", how can I verify if HEAD points to the same commit as "foo"? Note that "foo" can be a commit hash, a tag, a branch or anything that can be passed to git checkout "foo".16:28
xequence left16:28
lpapp texasmynsted: so the repository has to be updated once a developer pushes which is usually the development host, but there are server specific bugs.16:28
aaronmt_ joined16:28
lpapp texasmynsted: which are tested on the server, and fixed right in there, and hence sometimes there are stray mods around in that repository for which the automated pull in the hook will fail ...16:28
enr left16:28
lpapp clearer?16:28
texasmynsted yes, I think so16:29
AaronMT left16:29
nadirvar_ joined16:30
aaronmt_ left16:30
donmichelangelo left16:30
Mode-M left16:30
mikecmpbll left16:30
donmichelangelo joined16:30
texasmynsted I may not be totally clear but it seems perhaps like you are trying to automate a kind of clean-up, made necessary by the way your team is using git.16:30
Milossh joined16:30
john2496 joined16:31
r0dn3y left16:31
lpapp texasmynsted: you are welcome to suggest improvements... I think we are doing things right, but perhaps not ...16:31
texasmynsted You might consider only pushing changes that have been tested to work on a fully integrated set of code.16:31
lpapp texasmynsted: ?16:32
Skrypter joined16:32
goshawk joined16:33
lpapp every change is of course tested, but how is that related?16:33
TandyUK left16:33
TandyUK joined16:33
texasmynsted lpapp, I do not see why you should be experiencing the problem in the first place. It is like you have more than one person moving code to a server where the first time a specific set of code change have been integrated is on the development server its self.16:33
hwrd|work joined16:33
hwrd|work left16:33
hwrd|work joined16:33
lpapp texasmynsted: as I said, if you fix a server specific issue, it is handier to push in place.16:34
texasmynsted I am sorry but I think it is clear I do not understand the nature of the problem. If it is an integration issue you might check something like this http://nvie.com/posts/a-successful-git-branching-model/16:34
lpapp rather than backporting to a setup where it might get broken, and then push there, go back to fix, etc etc etc.16:34
devoldmx3 joined16:35
lpapp perhaps you just lack experience working with servers. ;)16:35
texasmynsted LOL16:35
lpapp server is different to a development host ...16:35
texasmynsted no, I have been working with servers and code for decades16:35
lpapp and a server service has to work there ...16:35
jim0thy_ left16:35
lpapp it is inevitable for pretty much any server development to test and fix bugs on the real server.16:36
ssh, and co.16:36
dmarkham joined16:36
mizu_no_oto left16:36
texasmynsted I just think you need to have the code that is executing on the server match exactly to some place in git.16:36
mehdiNej left16:36
lamarus joined16:37
arvind_khadri joined16:37
texasmynsted So you know that when you test, you are testing XYZ, and you are clear about every piece of code that is contributing to the success or failure of the test you are performing.16:37
rabellamy left16:37
devoldmx left16:37
lpapp texasmynsted: no, imho it does not make sense to use several checkouts when you can guarantee the cleanness with the hook script, too.16:38
leeN joined16:38
lpapp after it is just one additional statement.16:38
after all*16:38
wongon joined16:38
texasmynsted Best of luck then. I would not be inclined to perform development on an active server.16:38
konadr left16:39
twoface88 left16:39
texasmynsted maybe make a VM of the server, and test your code on the vm. That way you control as many variables of your testing as you can.16:39
sriracha left16:40
sjuxax left16:40
texasmynsted In any case good luck.16:40
mechanicalduck left16:40
texasmynsted There is a two part article on using VMs for development here—> http://www.bytesizedworkbench.com/16:41
Swayz left16:41
crazydiamond left16:41
Swayz joined16:42
mmlac-bv joined16:42
chuckhar_ joined16:42
arand joined16:42
lpapp texasmynsted: are you seriously claming a whole bunch of vm setup is simpler than "git reset --hard HEAD"?16:42
bitkiller left16:43
texasmynsted Maybe not "simpler" but better16:43
What you want to do may work fine for some simple cases, but if you get into more complex code or a larger team you may need to have better control, or you could spend ages trying to unwind a problem.16:44
rudak left16:46
rednaks_ left16:46
texasmynsted In any case, I am not here to convince you to change your practices. I wish you the best of luck.16:46
mizu_no_oto joined16:46
rednaks_ joined16:47
rabellamy joined16:47
PaulCapestany left16:47
bitkiller joined16:48
crazydiamond joined16:48
ngladitz joined16:48
ngladitz left16:48
ngladitz joined16:48
bitkiller left16:49
joshuairl joined16:49
bitkiller joined16:49
TandyUK left16:51
mechanicalduck joined16:51
TandyUK joined16:51
ken01 left16:51
EugeneKay Are you smoking crack16:52
iliketur_ joined16:52
jkremser left16:53
Blaster joined16:54
DrShoggoth joined16:54
lpapp texasmynsted: ?16:55
texasmynsted: not sure what you mean.16:55
EugeneKay: yes, we all do.16:55
ianliu I'm trying to check if HEAD points to the same commit as a branch or tag. How can I do this?16:56
EugeneKay Ah, good. Carry on!16:56
grawity ianliu: a specific branch or tag, or just any?16:56
trungqtran joined16:57
sriracha joined16:57
khushildep left16:57
Plummer left16:58
fridim_ left16:58
johndo ianliu: you can use git rev-parse and compare the results16:58
ianliu grawity: a specific branch or tag16:58
sjuxax joined16:59
Taggg joined16:59
lpapp EugeneKay: lol16:59
infynyxx joined16:59
ianliu johndo: I'm using rev-parse, but when the name is a tag, it has its own hash, which is different from the commit it points to16:59
ntus1017 left16:59
grawity ianliu: use $name^{commit} to dereference it16:59
Taggg hello, can anyone tell me how to checkout the files from a tag but keep the HEAD where it is?16:59
freestyl3r left17:00
grawity ianliu: actually, ^{} works as well17:00
rchavik left17:00
grawity Taggg: `git checkout $tag -- .`17:00
chuckhar_ left17:00
Taggg grawity: thanks!17:00
ErKa joined17:00
grawity you can specify any files, . just stands for "this directory"17:00
lpapp grawity: thanks for git deploy.17:01
lpapp left17:01
grawity but as long as you specify files, it won't switch HEAD17:01
Taggg grawity: what's the double dash for?17:01
Sonderblade joined17:02
ianliu grawity: $name^{commit} works perfectly! Thanks17:02
Sonderblade left17:02
grawity ianliu: look up `man gitrevisions` for other similar things17:02
gitinfo ianliu: the gitrevisions manpage is available at http://jk.gs/gitrevisions.html17:02
Sonderblade joined17:02
freestyl3r joined17:03
hyperair joined17:03
hyperair left17:03
hyperair joined17:03
HariboPenguin|OfHariboPenguin17:04
PeterBooker left17:04
grawity Taggg: in this case it separates the tree (tag, branch, ...) name from file names, to stop git from trying to guess17:04
PeterBooker joined17:04
rednaks_ left17:05
rednaks_ joined17:06
leeN left17:06
babilen joined17:06
leeN joined17:06
texasmynsted EugeneKay, was that smoking crack comment directed toward me?17:06
PainBank joined17:06
tplaner left17:07
ErKa left17:07
grampajoe joined17:07
rbento left17:07
PainBank1 left17:07
ErKa joined17:07
tufflax joined17:08
crazydiamond left17:08
tbmiller joined17:08
EugeneKay Both of you, really. It was an.... interesting conversation :-p17:08
dreiss joined17:08
grawity I would guess lpapp because it's not the first "interesting" conversation with that guy I've seen lately17:09
xequence joined17:09
leeN left17:09
leeN joined17:09
tatsuya_o left17:10
ojacobson left17:10
mechanicalduck left17:10
texasmynsted heh17:10
mechanicalduck joined17:11
leeN left17:11
towski left17:12
juanmabc left17:12
ErKa left17:12
sershe joined17:13
rbento joined17:13
leeN joined17:13
_jmg joined17:14
hahuang61 left17:16
arietis left17:16
sershe left17:17
ErKa joined17:17
p1ng joined17:18
_goTAN left17:18
zerorez joined17:19
ErKa left17:19
boblu joined17:19
ErKa joined17:20
nicedice_ left17:21
pdrinhobarbosa joined17:23
worstadmin left17:24
enr joined17:25
quazimodo left17:25
Taggg i would like to rewind the HEAD on master, how do i do that?17:26
chuckhar_ joined17:27
Taggg (without changing the working directory17:27
)17:27
nicedice_ joined17:27
HenryG left17:27
ErKa left17:27
worstadmin joined17:27
Taggg i.e. i want to discard commits after a certain tag (they are in a branch)17:28
rednaks_ left17:28
danman joined17:28
cbreak Taggg: git reset --soft master17:28
Taggg: that will nuke all commits out of the current branch that are not in master17:28
rednaks_ joined17:28
devoldmx3 left17:28
devoldmx3 joined17:29
enr left17:29
Taggg cbreak: hmm, i'm confused, i don't want to change anything about my other branch, i only want to change master17:30
koki left17:30
achadwick left17:30
Taggg cbreak: and in master i want to discard all commits after a certain tag17:30
koki joined17:30
Taggg (but keep the working directory17:30
acharlieh left17:30
macrobat I want to keep uptodate on a project, not contribute or even edit. I use git clone --depth 1 . if I do a git fetch --depth 1 and then merge, I get merge conflicts. I don't ever want the local stuff.17:30
Is it possible to get the project in a current, useable condition without getting the whole big old repo?17:30
cbreak Taggg: you said you wanted to rewind HEAD to master17:31
Taggg: HEAD is your current branch17:31
gittish joined17:32
Taggg cbreak: no i want to rewind HEAD _on_ master17:32
macrobat I do "git merge -s ours" and get "error: 'merge' is not possible because you have unmerged files". I don't want to merge things by hand17:32
cbreak onto master?17:32
Taggg: what do you mean with on?17:32
nucatus_ joined17:32
Taggg cbreak: i have done what i want with git reset - the only issue is it shows i am no longer on master, it says i am on "(no branch)"17:32
cbreak Taggg: then you just git checkout master17:33
after that you're on master17:33
Taggg cbreak: won't that bring me back to master's HEAD?17:33
nucatus left17:33
cbreak note that everything you did while you were not on a branch will be lost17:33
Taggg: no17:33
there is no master's HEAD17:33
there's just HEAD17:33
HEAD is the current branch17:33
HEAD will point to master when you switch to master17:33
at the moment it points to a commit directly, that's why it says you are not on a branch17:34
lpaul7 left17:34
Taggg cbreak: ah ok, so i don't want all of master's commits17:34
iliketur_ left17:34
worstadmin left17:34
cbreak then, check out master17:34
after that, HEAD points to master, and it can easily be changed17:34
you can use git reset as I said above17:34
git reset always changes the current branch, HEAD17:34
Taggg but i want master to point to an old commit17:34
quazimodo joined17:34
cbreak then check it out...17:35
and use git reset ...17:35
nicedice_ left17:35
Taggg i think that's the answer :)17:35
cbreak git reset --soft whereveryouwantyourHEADbranchtobe17:35
of course... as I said above :)17:35
Taggg yeah will try that thanks17:35
cbreak note that --soft means not to touch the index either17:35
so all your current state will remain as staged changes17:36
mechanicalduck left17:36
iveqy macrobat: use the tarball supplied by the project17:37
macrobat: otherwise, it's: git clone, git pull17:37
acharlieh joined17:37
Taggg cbreak: $ git co master17:37
fatal: Untracked working tree file '.gitignore' would be overwritten by merge.17:37
is there a checkout --mixed?17:38
macrobat git clone gives me 1.5 gig and I want about 100Mb17:38
cbreak Taggg: there is.17:38
Taggg: that would not help you17:38
Taggg: you seem to have changes that would collide between master and your current commit17:39
Taggg: nuke them away, or commit them17:39
grawity macrobat: I'm wondering why do you get merge conflicts at all, if you said you don't even edit anything...17:39
abstrusenick joined17:39
cbreak (note: you are NOT on a branch, committing stuff while not on a branch abandons that stuff in nowhere, it will get garbage collected eventually)17:39
Taggg: this is important :)17:39
nicedice joined17:40
gmc joined17:40
iveqy macrobat: then I strongly suggest you use the tarball, or simply do a git clone --depth=1 and next time a rm -rf && git clone --depth=117:40
endiruna joined17:40
Taggg cbreak: right so can i skip the merge and go straight to moving master to where i am right now?17:40
cbreak Taggg: sure.17:40
iveqy grawity: the remote could be rebased17:40
macrobat there is no way to merge to force favour the origin?17:40
cbreak you can use git branch -f master HEAD17:41
Taggg: but that'd likely be risky17:41
grawity yeah, but still, why are you merging at all17:41
whaley joined17:41
Taggg cbreak: _that_ is what i want!17:41
iveqy macrobat: that wouldn't be a merge but a reset.17:41
refried_ joined17:41
Taggg :)17:41
cbreak Taggg: you'd still be on no branch17:41
OOPMan left17:41
iveqy macrobat: !revert you're looking for something like e)17:41
gitinfo macrobat: 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]?17:41
macrobat I compile, I guess that leaves a few files around the place. I use git clean -dfx to remove stuff17:41
cbreak and you'd still lose all your commits and so on if you switch away17:41
leeN left17:42
Taggg cbreak: all of those commits are also in another branch17:42
nkambo joined17:42
leeN joined17:42
iveqy macrobat: do a git reset --hard HEAD17:42
instead of a git clean17:42
before you do a pull17:42
cbreak (or in addition to)17:42
OOPMan joined17:42
iveqy but that will fail if the remote did a rebase17:42
macrobat ok17:42
refried_ left17:43
macrobat I can clone if things get too hairy, I just want something moderately convenient17:43
jceb joined17:43
chuckhar_ left17:43
cbreak macrobat: you only need to clone once17:44
after that you can fetch to get new history17:44
ErKa joined17:44
wongon left17:44
ecube left17:44
whaley left17:44
worstadmin joined17:44
macrobat in theory :D17:44
cbreak no17:45
always.17:45
refried_ joined17:46
Taggg cbreak: ah there's no git branch --fource in git 1.5.2 :(17:46
maxmanders left17:47
Taggg cbreak: nvm `-f` works :)17:47
babilen left17:47
cbreak Taggg: as I said, -f.17:47
Taggg: 1.5 is ancient17:48
get yourself 1.817:48
macrobat git pull --depth 1 gave 38 conflicts17:48
leeN left17:48
scampbell left17:48
ncd|leeN joined17:48
Taggg cbreak: haha, yeah i'm doing some research on an older system, thanks!17:48
babilen joined17:49
cbreak macrobat: if you want to merge, then resolve the merge conflicts17:49
hahuang61 joined17:49
Taggg cbreak: how would i push that change to a remote repo?17:50
towski joined17:51
Taggg error: remote 'refs/heads/master' is not a strict subset of local ref 'refs/heads/master'. maybe you are not up-to-date and need to pull first?17:51
cedeon left17:51
cbreak Taggg: did they change the wording?17:51
Taggg: you can force push to rewrite remote history and nuke everything others pushed17:51
or you can pull and merge the stuff17:51
Taggg ah nice17:52
OOPMan left17:52
macrobat is there a way to resolve merge conflicts without having to visit all the files and do it by hand? I always want what's on origin master17:52
DoniRS left17:52
leeN joined17:53
cbreak macrobat: do you want to keep your history?17:53
tvw left17:53
scorphus joined17:53
macrobat dont want history17:53
whaley joined17:53
cbreak then why do you want to merge?17:53
macrobat I just want to be up to date17:53
cbreak then why merge?17:53
just fetch as I said above17:53
then you can git reset --hard @{u} or so17:53
OOPMan joined17:55
ncd|leeN left17:55
nicedice left17:56
Nicholas_Rishel joined17:57
_goTAN joined17:58
nicedice joined17:59
abstrusenick left17:59
anonymuse left18:00
kesha_ left18:00
skiernose left18:01
kesha_ joined18:01
devoldmx3 left18:01
Swayz left18:01
devoldmx3 joined18:02
Skrypter left18:02
HariboPenguinHariboPenguin|Of18:02
eslwork joined18:03
Skrypter joined18:04
gittish left18:04
ukd1 joined18:05
ukd1 Is there a simple way to tell if a particular commit is 'in' a particular tag?18:05
cbreak ukd1: --contains18:06
arietis joined18:06
ukd1 cbreak, thanks18:07
johnnyfuchs left18:08
insejn left18:09
arand left18:09
PaulCapestany joined18:09
OOPMan left18:12
Roots47 left18:12
tatsuya_o joined18:12
OOPMan joined18:13
joshuairl left18:13
ziddey joined18:14
_goTAN left18:14
Nicholas_Rishel left18:14
boblu left18:15
GODDOG left18:17
crazydiamond joined18:18
Mode-M joined18:18
alvaro_o joined18:18
trungqtran left18:19
iliketur_ joined18:19
rabellamy left18:19
trungqtran joined18:20
HenryG joined18:20
kenperkins left18:20
btree joined18:21
grampajoe left18:22
m0ltar left18:22
btree left18:23
nkambo left18:23
leeN left18:25
ncd|leeN joined18:25
wongon joined18:25
enr joined18:25
pantsman joined18:25
Gitzilla left18:26
natechan left18:26
johnnyfuchs joined18:26
natechan joined18:27
jefflyne left18:27
trungqtran left18:27
freestyl3r left18:27
acharlieh left18:28
enr left18:30
sq-one joined18:30
OOPMan left18:30
trungqtran joined18:30
angelsl left18:31
OOPMan joined18:31
xequence left18:32
jefflyne joined18:32
infynyxx left18:32
maxmanders joined18:33
PeterBooker left18:34
infynyxx joined18:34
pdrinhobarbosa left18:35
Devastator left18:36
Devastator joined18:36
nkambo joined18:38
rabellamy joined18:38
Ksg89 joined18:38
arvind_khadri left18:38
Milossh left18:39
longbeach left18:39
Balliad joined18:39
Gitzilla joined18:39
tjbiddle joined18:39
HariboPenguin|OfHariboPenguin18:40
HariboPenguinHariboPenguin|Of18:40
PainBank left18:42
devoldmx3 left18:42
hahuang61 left18:43
sainaen left18:44
hahuang65 joined18:44
hoschi left18:44
acharlieh joined18:45
vlad003 joined18:45
r04rr04r|away18:45
girishr joined18:46
jceb left18:46
mizu_no_oto left18:46
devoldmx3 joined18:46
cogitokat joined18:46
chrob joined18:47
girishr left18:47
bitkiller left18:47
zhost joined18:47
girishr joined18:47
robbyoconnor left18:50
rvsjoen_ joined18:50
rvsjoen left18:50
chrob left18:50
ncd|leeN left18:50
robbyoconnor joined18:50
ncd|leeN joined18:50
girishr left18:51
girishr joined18:52
devoldmx3 left18:52
Roots47 joined18:52
devoldmx3 joined18:53
iliketur_ left18:54
anonymuse joined18:55
mizu_no_oto joined18:56
iliketur_ joined18:56
OOPMan left18:58
infynyxx_ joined18:58
infynyxx_ left18:58
maxmanders left18:58
joshuairl joined18:59
geekbri joined18:59
btree joined18:59
nfroidure joined19:00
infynyxx left19:01
osmosis joined19:01
girishr left19:01
girishr joined19:01
tatsuya_o left19:02
OOPMan joined19:02
jakob joined19:03
marthinal left19:03
nickpresta joined19:05
Mode-M left19:05
devoldmx27 joined19:05
geekbri left19:06
devoldmx3 left19:08
Sigma left19:09
towski left19:09
shinnya joined19:10
bitkiller joined19:11
r04r|awayr04r19:12
ewnd9 left19:12
nickpresta left19:12
SpecialEmily[w] joined19:13
rabellamy left19:14
ewnd9 joined19:14
fostertheweb joined19:14
Vinnie_win how do I push a single tag?19:15
towski joined19:15
cbreak git push remotename tagname19:15
Vinnie_win thanks19:15
cbreak is everywhere19:15
cads joined19:17
devoldmx3 joined19:18
EugeneKay You git19:18
mmlac-bv left19:20
devoldmx27 left19:21
ewnd9 left19:22
ianliu left19:22
iliketur_ left19:22
ziddey left19:23
infynyxx joined19:23
enr joined19:26
lunaphyte_ hi, i've been familiarizing myself a bit with git, and would like to use it to better manage a collection of small common utilties and programs that end up on most/all servers in our environment, via puppet. i'm having a little trouble though visualizing a suitable approach/workflow for doing this though.19:26
EugeneKay lunaphyte_ - !deploy them as a package19:26
gitinfo lunaphyte_: 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/the-list-and-irc/deploy.html19:26
btree left19:26
pantsman left19:26
EugeneKay Then use Puppet(or whatever) to install them someplace, via script19:27
lunaphyte_ great, thank you.19:28
cbreak git's not really a management tool19:30
it's for source code19:30
tplaner joined19:30
cbreak if you regularly commit binaries or other big and hard to deltafy things, your repository will bloat19:30
enr left19:30
osmosis left19:30
ukd1 left19:31
johnnyfuchs left19:31
illsci left19:32
lunaphyte_ that was vague, i guess. the various utilties/programs are scripts, for the most part, along with [to some degree] plain text config files.19:32
SergeyPenkin left19:33
ziddey joined19:33
cbreak it is almost always a mistake to commit configuration19:33
PerlJam "almost always"?19:33
cbreak configuration often varies, it is often changed, and it it is usually not portable19:33
so it has no place in a repository19:33
iliketur_ joined19:33
cbreak PerlJam: there are always weirdos that do strange things like abuse git as backup system for settings, which is a mistake in the first place19:34
PerlJam okay, I guess I can accept "almost" after thinking about it a little.19:34
nucatus_ left19:34
lunaphyte_ my thought was the possibility of using it for objects which are identical across all servers. for example [in my case], an ntp config.19:34
but i'm mostly trying to learn about intelligent conventions at this point.19:35
Gamecubic_Gamecubic19:35
lunaphyte_ i'm not educated enough to know if what comes to mind would actually make sense :)19:35
PerlJam I could see that there might be some sort of "one time application config" that you'd want to put in a repo that is separate from the "configure the thing for my particular system" config.19:35
maasdesigner1 joined19:35
cbreak PerlJam: usually you'd commit those as config templates though19:35
rodyhaddad left19:36
maasdesigner1maasdesigner19:36
eslwork left19:36
maxmanders joined19:37
johndo cbreak: but you can abuse it quite well :P19:37
fission6 left19:37
johndo look at etckeeper ... configure it to automatically push and you have both history and backup :)19:37
lunaphyte_ i was reading about etckeeper just yesterday :)19:38
Balliad left19:39
johndo lunaphyte_: but it's not made for centralized management19:39
lunaphyte_ right, of course.19:39
it took me a while to figure that part out, but eventually it sank in.19:39
for non config stuff, for example various shell scripts that are part of a recipe for a "typical" server, i thought it might be useful to manage the evolution of them with git, and then as new versions are produced, make them somehow available to puppet, to be distributed.19:39
chuckhar_ joined19:40
gittish joined19:40
lunaphyte_ i wondered in what manner the "make them somehow available to puppet" might work.19:40
but i'll go back to reading the suggest url for the moment.19:41
*suggested19:41
nDuff lunaphyte_: Probably about like a harder-to-use version of the chef deploy provider. :P19:41
anonymuse left19:41
nDuff ...a little more seriously, IIRC, that provider is based on Capistrano19:41
johnnyfuchs joined19:41
PerlJam long ago we used to have our "system config" in a svn repo. Each time we installed a new machine it was base install, check out the repo, run a script19:41
rodyhaddad_ joined19:41
nDuff ...there are certainly public examples of using those tools together.19:42
anonymuse joined19:42
lunaphyte_ yeah, quite a few.19:43
arand joined19:43
lunaphyte_ my eyes are red from two days of reading :)19:43
OOPMan left19:43
chuckhar_ left19:44
OOPMan joined19:45
kesha_ left19:46
gittish left19:47
EugeneKay lunaphyte_ - this is really a server management (Puppet or Salt) question. Ultimately, git is just a datastore.19:47
Salt makes it easy with gitfs; you may/may not be able to do the same thing with Puppet19:48
My advice for a lot of stuff you want to make availalbe on all your machines is to build a rpm/deb and make it available via a custom repo(which you set up via Puppet/Salt) and them install the package.19:48
Again, via your config mgmt stuff.19:48
ziddey left19:50
ngladitz left19:52
johnnyfuchs left19:53
tatsuya_o joined19:54
johnnyfuchs joined19:54
Remram how can't figure out how to use edit (e) in --patch mode with checkout or revert19:55
in add --patch I can replace '-' lines with ' ' lines, and delete '+' lines19:55
nickpresta joined19:56
nickpresta left19:56
Remram this is so weird19:56
gittish joined19:57
mmlac-bv joined19:57
maxmanders left19:58
cbreak Remram: a patch tells you what will be added and what removed19:59
lines starting with + are added things20:00
if you don't want them added, removing seems natural20:00
rbento left20:00
cbreak lines with - are removed things. replacing the - with a " " (making it a context line) seems natural20:00
joshuairl left20:01
fostertheweb left20:01
DrShoggoth left20:03
Dreamer3 joined20:03
devoldmx27 joined20:04
rednaks__ joined20:05
nicholasruunu left20:05
devoldmx3 left20:06
rfoust left20:06
rednaks_ left20:08
gittish left20:08
lb1a joined20:10
refried_ left20:11
aharris6 joined20:12
ojacobson joined20:12
towski left20:13
mechanicalduck joined20:14
vince_prignano left20:14
asharp joined20:14
Remram cbreak: that's when using add -p, in checkout or revert it works differently20:14
because you're unstaging adds20:14
the diff gets applied backwards20:15
I figured it out now, but still not fun20:15
asharp my branch is 1 commit ahead of master. this commit is pushed. i have uncommitted changes. as a final product, i want to have one commit pushed that includes my first commit as well as my current changes. what should i do?20:16
lb1a asharp: that would require to rewrite public history !rewrite20:17
gitinfo asharp: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to). If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum20:17
lb1a is that what you want?20:17
asharp sounds like that's the only option20:17
e66 left20:17
asharp thanks20:17
byprdct joined20:18
byprdct left20:18
ezrafree joined20:18
lb1a asharp: so go ahead, stage all your stuff, you want wo add. make a "git commit --amend" followed by a "git push -f <remote>"20:18
goshawk left20:18
asharp lb1a: gotcha. thanks20:19
OOPMan left20:19
lb1a the "git commit --amend" part will combine your current staged stuff and the last commit to a new commit.20:19
CleverMeda_ joined20:19
lb1a details are on the man git commit page ;)20:20
gitinfo the git-commit manpage is available at http://jk.gs/git-commit.html20:20
catcher joined20:21
OOPMan joined20:21
catcher I have a Q about the 3 files involved in a git merge. Is this explanation close? "Local" is the current local version of the file, "Remote" is the incoming merge, and "Base" is git's initial attempt at merging them together?20:22
lb1a catcher: BASE is the merge base. it the point in history where the two version have divereged20:22
shpoont joined20:23
catcher lb1a, ahh - so base will always differ from both files then, right?20:23
lb1a yep20:23
man git merge-base20:23
gitinfo the git-merge-base manpage is available at http://jk.gs/git-merge-base.html20:23
catcher ty20:23
asharp left20:25
enr joined20:26
babilen left20:26
CheckDavid joined20:27
enr left20:28
lb1a yw20:28
lb1a left20:28
goshawk joined20:29
maxmanders joined20:29
oliveiraev left20:30
shpoont left20:31
shpoont joined20:31
shpoont what can git notes be used for?20:33
aChatir left20:33
Swayz joined20:34
rfoust joined20:34
nDuff shpoont: ...well, to give you an example, subgit uses them to provide metadata about which SVN revision each git rev is mapped to.20:34
nucatus joined20:35
rbento joined20:35
akurilin joined20:35
xequence joined20:35
shpoont nDuff: I dont think that notes where designed to store metadata, it looks like a dirty hack20:35
the question is how can they be helpfull for developers communication20:36
cbreak shpoont: too slow for communication. use email20:37
menace joined20:37
shpoont looks like nobody knows what to do with them :)20:38
nucatus left20:39
maxmanders left20:40
CleverMeda_ shpoont addendum to the commit message?20:40
pantsman joined20:43
menace do you mean --amend?20:43
zipper__ joined20:44
nDuff menace: --amend changes the hash. notes don't.20:44
lunaphyte_ left20:44
nDuff menace: so, once something is published to the world and other people have made changes based on it, it's too late to amend.20:45
zipper__ left20:45
gittish joined20:45
coldboot|laptop joined20:45
coldboot|laptop How do you make a regular patch (with no git information in it)?20:46
EugeneKay That really depends on whether you care about other people20:46
dean|awaydean20:46
TheBrainWork left20:46
EugeneKay coldboot|laptop - just use `patch`, then `git add` the file20:46
nerdfiles joined20:47
edburns joined20:47
coldboot|laptop EugeneKay: I don't understand. The source directory I want to generate the patch from is a git repository, the destination is not.20:48
iveqy coldboot|laptop: use git format-patch or just simply diff20:48
girishr left20:49
coldboot|laptop Ah I got it, use `patch -p2` to strip the "a/" and "b/" prefixes.20:49
EugeneKay coldboot|laptop - oh, that way. Yeah, diff it and redirect to a file, or just take a git patch and vim the metadata out20:49
edburns normally I do "git pull --rebase upstream master" to update my workarea, which is a fork from another repository. I'd like to have a hudson job that does the same thing with that workarea, but I don't see where in hudson to put in the --rebase upstream master.20:49
EugeneKay Yup.20:49
coldboot|laptop I thought `-p1` was deep enough.20:49
iveqy edburns: what's hudson?20:49
edburns ha ha.20:49
Jenkins will do fine too.20:50
iveqy ask Jenkins?'20:50
edburns: however, you shouldn't to a pull in a script, there can be conflicts, see !deploy20:51
edburns iveqy: Ah, so it was a sincere question? I thought you were referring to the fact that ever since the fork, most of the people went to Jenkins, leaving the original product without its user base.20:51
gitinfo edburns: 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/the-list-and-irc/deploy.html20:51
OOPMan left20:52
edburns iveqy: Ah, so it was a sincere question?20:52
iveqy: I thought you were referring to the fact that ever since the fork, most of the people went to Jenkins, leaving the original product without its user base.20:52
iveqy edburns: it was, never heard about hudson before,20:52
verysoftoiletppr left20:52
edburns it's a continuous intgration server.20:53
rurufufuss joined20:53
baudtack joined20:53
edburns I guess what I'm looking for is, what is the refspec equivalent for "pull --rebase upstream master"?20:53
iveqy edburns: well, you still shouldn't pull into it =)20:53
baudtack does git bisect have trouble with nonlinear history? i always thought it did but can't find that documented anywhere20:54
daemonkeeper left20:54
OOPMan joined20:54
lamarus left20:54
p1ng_ joined20:54
EugeneKay Nope, works fine.20:55
baudtack hrm no idea where i got that from then.20:56
thanks20:56
mizu_no_oto left20:56
mechanicalduck left20:57
p1ng_ left20:58
spaceonline left20:58
OOPMan left20:58
sq-one left20:59
clintwn left21:00
freeed left21:01
OOPMan joined21:01
alezost left21:02
tjbiddle left21:03
DeanH left21:03
zipper_ joined21:04
tjbiddle joined21:05
adamwathan left21:06
KhashayaR joined21:06
KhashayaR left21:06
KhashayaR joined21:07
bewest left21:08
mizu_no_oto joined21:09
Guest___ left21:09
cannonball left21:10
Carraway left21:10
tpollard joined21:11
KhashayaR left21:11
ameagher left21:12
zipper_ left21:12
ojacobson left21:12
mizu_no_oto left21:13
babilen joined21:16
jefflyne left21:18
ethanolwu left21:18
rednaks__rednaks21:19
w0ng left21:20
Someguy123 joined21:20
mechanicalduck joined21:21
Cassiel joined21:21
drizzd left21:24
hellopat left21:25
chuckharmston left21:25
gee_ joined21:26
starsinmypockets joined21:26
OOPMan left21:26
gee_ hi21:26
starsinmypockets Hey gities21:26
gitinfo gee_: 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.21:26
gee_ question: can you see this plz?21:26
http://www.youtube.com/watch?feature=player_detailpage&v=IomxvOTf-So21:26
its very good21:26
enr joined21:27
enr left21:27
rabellamy joined21:27
OOPMan joined21:28
gee_ thanks for i686 kernels21:29
bekks gee_: Stop the spam.21:29
gee_ my pc is thankfull too21:29
texasmynsted huh? Does that video have a git related question?21:29
ledestin joined21:29
bekks You just avoided an ignore in #ubuntu.21:29
gee_ no kiddening21:29
well bb21:29
bekks I am not kidding. Stop that shit.21:29
gee_ your really mad21:30
donmichelangelo left21:30
jrobichaud left21:30
gee_ bb little man21:30
gee_ left21:30
Dougie187 I don't think he's mad. He probably knows your a troll.21:30
you're*.....21:30
I hate typos when talking to trolls.21:30
jaimef left21:30
y_morin joined21:31
donmichelangelo joined21:31
bewest joined21:31
jaimef joined21:31
y_morin Hello! How can I get all changeset that are not referenced by a head (ie all changesets that would be trahed by gc) ?21:31
arand git fsck, with some option.21:32
jerius left21:32
OOPMan left21:32
arand man git fsck21:32
gitinfo the git-fsck manpage is available at http://jk.gs/git-fsck.html21:32
starsinmypockets Can I graft repoB branch foo onto repoA (currently only has branch Master which I want to hold on to), including the commit history?21:32
TeckniX left21:33
Swayz left21:33
y_morin arand: Thank you! :-)21:33
Arcsech joined21:33
OOPMan joined21:34
ncd|leeN left21:34
joepie91 joined21:37
joepie91 is there a way to reset the master branch to a particular commit and push this change to a remote git repository (mirrored to github), and leaving the current commit as the develop branch? this is for a project that I started working on when I wasn't very familiar with git yet, and every commit was made to the master branch, and I'd like to 'move' that to the develop branch and leave the master branch for releases only21:38
trungqtran left21:38
Dougie187 left21:39
cbreak joepie91: yes.21:40
AWinterman left21:40
cbreak just git branch develop, then git reset --hard somepastcommit, then git push -fu --all21:40
joepie91: note that this is history rewriting21:40
and it will nuke remote history too21:40
Arcsech left21:40
joepie91 cbreak: I'm assuming that as long as my develop branch still points to the latest commit, the actual commits will not be lost?21:41
just the history of them being in masetr?21:41
master *21:41
cbreak nope21:41
just the history that is no longer refered to by anything21:41
joepie91 okay21:42
thanks21:42
:)21:42
HenryG left21:42
vince_prignano joined21:44
ArokhArokh[Off]21:44
Milossh joined21:44
arietis left21:46
menace left21:47
nicedice left21:47
danman left21:48
mloskot joined21:48
nicedice joined21:48
danman joined21:48
dougsland left21:48
danman left21:49
bvi left21:49
bvi joined21:49
mmitchel_ joined21:49
verysoftoiletppr joined21:50
aharris6 left21:50
chrisshattuck left21:51
Arcsech joined21:52
Arcsech left21:53
mmitchel_ left21:53
joki left21:53
mmitchell left21:53
nicoulaj left21:53
rendar left21:54
Milossh left21:54
tatsuya_o left21:54
zorzar joined21:57
mmlac-bv left21:57
DeanH joined21:57
Milossh joined21:57
joki joined21:58
Sonderblade left21:58
mmlac-bv joined21:59
Nicholas_Rishel joined22:00
breakingthings left22:00
Destos left22:01
OOPMan left22:01
mdiers joined22:02
aharris6 joined22:04
Marquisk2 left22:04
OOPMan joined22:04
nicedice left22:04
zhost left22:06
cofeineSunshine joined22:08
juanmabc joined22:08
worstadmin left22:09
Caecus joined22:09
cofeineSunshine left22:10
y_morin left22:10
unomystEz left22:11
chrisshattuck joined22:11
aharris6 left22:12
juanmabc left22:12
Arcsech joined22:12
juanmabc joined22:12
yassine joined22:13
pantsman left22:13
john2496 left22:14
cofeineSunshine joined22:14
tbmiller left22:15
mechanicalduck left22:16
kermit joined22:16
tufflax left22:17
worstadmin joined22:17
tufflax joined22:18
Nicholas_Rishel left22:18
cofeineSunshine left22:19
umib0zu left22:19
mattalexx joined22:23
danman joined22:23
mattalexx What is the `git stash` equivalent of `git commit --amend`? In other words, how can I include the current changes in the last stash?22:23
w0ng joined22:24
ewnd9 joined22:24
o] left22:24
maasdesigner left22:25
tatsuya_o joined22:25
onethfour what is the best git book explaining advanced concepts such as patching and stuff22:25
nicedice joined22:26
o] joined22:26
sgambino_ joined22:26
johndo mattalexx: better use a (temprorary) branch when you want to do that22:26
mattalexx ok thx22:26
sgambino_ left22:26
cofeineSunshine joined22:26
johndo mattalexx: you can try to apply the stash and then save it again though22:26
enr joined22:27
catcher when I'm resolving a conflict with mergetool, do I want to save the changes to BASE? is that what's ultimately used?22:27
gerard0 left22:28
edburns left22:28
s4muel mattalexx: use git stash branch, fixup your changes there22:28
sgambino left22:29
johndo onethfour: I don't know what's the best book for that specific topic, but there are some !book s you can look at22:29
gitinfo onethfour: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable22:29
pdx left22:29
gerard0 joined22:29
mattalexx I did something like git stash pop; git commit -am tmp; git stash pop; git reset ~HEAD22:30
Arcsech left22:30
mattalexx Something like that22:30
Milossh left22:30
mattalexx johndo, s4muel Thanks22:30
OOPMan left22:30
rabellamy left22:30
shpoont left22:31
enr left22:32
OOPMan joined22:32
devoldmx joined22:33
tatsuya_o left22:34
rnsanchez left22:35
chuckharmston joined22:36
infynyxx left22:36
yassine left22:36
jrgcombr left22:37
devoldmx27 left22:37
nicedice left22:38
jrgcombr joined22:38
hwrd|work left22:39
michaelarestad left22:40
bipolar joined22:41
chuckharmston left22:41
maasdesigner1 joined22:41
Caecus left22:42
maasdesigner1maasdesigner22:42
Roots47 left22:42
Destos joined22:42
xequence left22:42
mike_af left22:42
AardvarkSagus joined22:42
mattalexx left22:42
Roots47 joined22:43
Taggg left22:43
Caecus joined22:44
gittish left22:44
pr0ton joined22:45
Caecus left22:45
nicedice joined22:46
bobbyz Is zaptel/dahdi needed for a sip-only asterisk box? It doesn't make sense to me that it would be needed, but several sip-only tutorials I've seen explicitly install this22:46
AardvarkSagus left22:47
bobbyz err22:47
wrong channel22:47
Nicholas_Rishel joined22:49
ecube joined22:49
ecube left22:49
ecube joined22:49
devoldmx left22:51
devoldmx joined22:52
decotii left22:52
milki /win 2322:54
er...22:54
OOPMan left22:54
huoxito left22:55
_iron left22:55
OOPMan joined22:56
p3lim left22:57
zivester left22:58
flaguy48 joined22:59
ziddey joined22:59
bamj0rb left22:59
simesy joined23:02
danman left23:02
danman joined23:02
simesy left23:03
relipse joined23:03
simesy joined23:03
ewnd9 left23:04
maasdesigner left23:05
rednaks left23:05
Destos left23:06
infynyxx joined23:06
catcher left23:07
danman left23:07
danman joined23:07
tbmiller joined23:07
tang^ left23:08
_jmg left23:08
michaelarestad joined23:09
r04rr04r|away23:09
cads left23:12
towski joined23:13
barq joined23:13
g0bl1n joined23:14
mklappstuhl joined23:16
infynyxx left23:16
zivester joined23:18
bmac joined23:19
Nicholas_Rishel left23:19
jaequery left23:20
jefflyne joined23:20
primitive left23:21
jaseg joined23:22
threesome left23:22
OOPMan left23:23
nova_ left23:23
rednaks joined23:23
boombatower left23:24
zerorez left23:25
kenperkins joined23:25
OOPMan joined23:25
jhulten left23:26
johnnyfuchs left23:26
kenperkins left23:27
enr joined23:28
sriracha left23:29
enr left23:32
devoldmx left23:35
Roots47 Hey guys, how do I get a one-line log that also displays the committer23:35
Milossh joined23:35
EugeneKay man git-log. see --format23:36
gitinfo the git-log manpage is available at http://jk.gs/git-log.html23:36
devoldmx joined23:36
nucatus joined23:36
coldboot|laptop left23:37
bmac left23:37
vansonhk_ joined23:39
glosoli left23:40
nucatus left23:41
chuckharmston joined23:41
g0bl1n left23:41
eribeiro joined23:41
voe joined23:42
chris2 left23:42
Roots47 EugeneKay: Hey, I'm not seeing the --format option in the man pages23:42
EugeneKay It's there, I assure you23:43
mstksg is there a way i'm "supposed" to handle small tweaks like changing a margin on a css file or deleting one trailing whitespace character23:43
do i just save it up and then commit it with the next major revision?23:43
EugeneKay Depends upon your project guidelines, really.23:43
dreiss left23:43
Roots47 EugeneKay: found it, but i dont see how that would show the author in the log message… this looks like it's just for filtering23:43
EugeneKay There's no reason to "save" unrelated small things for a larger commit; just `git add foo.css; git commit -m 'Typofix in foo.css'` and call it a day23:43
Roots47 - you specify an output format......23:44
sriracha joined23:44
devoldmx3 joined23:44
mstksg EugeneKay: I guess I feel weird cluttering up my log. is this a normal thing to do?23:44
chris2 joined23:44
EugeneKay mstksg - yup, small commits are valid cocmmits. It's not clutter, just a small change.23:44
p1ng left23:44
mstksg ah, thanks23:45
mdiers left23:45
anonymuse left23:45
jefflyne left23:45
devoldmx left23:45
baudtack left23:45
chuckharmston left23:46
aquaman left23:46
johnnyfuchs joined23:46
EugeneKay Roots47 - if you want something special you have to build it. --oneline is roughly --pretty="%h %s"; you'll want to append %an or such23:47
jefflyne joined23:47
aquaman joined23:47
Roots47 EugeneKay: this is confusing :P:23:47
jefflyne left23:47
EugeneKay Roots47 - good, that means you're learning.23:47
deandean|away23:47
mdiers joined23:47
EugeneKay !tryit ;-)23:48
gitinfo [!tias] Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://gitolite.com/1-basic-usage/tias.html may help with git-specific TIAS.23:48
jefflyne joined23:48
skiernose joined23:48
barq left23:48
devoldmx3 left23:49
pilif left23:51
vince_prignano left23:51
Roots47 EugeneKay: Thanks :)23:52
EugeneKay: makes more sense after seeing your example23:52
EugeneKay: I'm all for reading the man pages, but knowing exactly what to read helps via example :D23:53
PigeonFriend left23:53
Marquisk2 joined23:54
skiernose left23:55
EugeneKay Indeed.23:57
trusktr joined23:57
EugeneKay Hence, I give you a lil shove23:57
But not a spoonfeeding23:57
pilif joined23:58

Logs Search ←Prev date Next date→ Channels Documentation