IRCloggy #git 2013-10-02

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-10-02

breck7 left00:00
Dodde just add -i somewhere in that line?00:00
dsdeiz joined00:00
ojacobson_ojacobson00:00
aldodelgado left00:00
minim joined00:00
samd @Dodde what are you asking? are you asking how to set config options?00:01
King_Hual left00:01
Dodde git grep --all-match -i '^.*?inserted\s+more.*?$'00:01
petey joined00:02
jkremser left00:02
threesome joined00:02
Dodde sorry I just know perl, not git :/00:02
Zwei_ left00:02
samd git has a grep.patternType config00:02
which can be set to perl00:02
to use perl regex00:03
Dodde yes, but you have to tell it that it should ignore case, with -i flag00:03
samd yes00:03
that is the problem00:03
It doesn't work00:03
or at leat it seems that way00:03
natechan joined00:03
Dodde but in your example example: git log --all-match --grep='^.*?inserted\s+more.*?$' --grep='^.*?Review\s+URL.*?$' I can't see an -i anywhere00:03
but in your example example: git log --all-match --grep='^.*?inserted\s+more.*?$' --grep='^.*?Review\s+URL.*?$' I can't see an -i anywhere00:04
oh00:04
samd no so that is the first case which works and gives me the match00:04
but then if I use -i and cuange the URL -> uRL00:04
it gives nothing00:04
petey_ left00:05
hwrd|work left00:05
Dodde if you added -i at the right place, it should..00:05
Squarism joined00:06
Dodde I can't verify the git syntax though00:06
samd yeah I tried before and after, tried the --regexp-ignore-case00:06
well the search does work00:06
where it is case sensitive00:06
Pullphinger joined00:07
samd I found the single entry I expected00:07
msheiny left00:07
samd but as a test I did as I mentioned and flipped the U -> u00:07
Dodde yeah it's strange00:07
samd and found nothing00:07
Dodde hope someone else can answer00:07
cmpera left00:08
samd Linux version 1.8.400:08
kukks left00:09
fluxdude left00:09
samd using Ubuntu PPA: deb http://ppa.launchpad.net/git-core/ppa/ubuntu raring main00:09
gitpicker joined00:10
Swayz joined00:11
LuxuryMode joined00:12
mfulz left00:14
salamanderrake left00:14
erichynds left00:14
LuxuryMode left00:16
LuxuryMode joined00:16
maestrojed left00:16
Davey_ left00:17
Davey joined00:18
msheiny joined00:18
carbohydrate left00:18
maroloccio left00:19
Davey_ joined00:20
Hello71 left00:21
ErKa left00:21
bbloom joined00:23
Hello71 joined00:23
marhaban joined00:24
samd left00:24
salamanderrake joined00:25
CheckDavid left00:25
msheiny left00:26
dsdeiz left00:26
vigs joined00:28
emergion joined00:29
rchavik joined00:29
Dodde left00:30
dyng joined00:30
Ivo left00:32
jefflyne joined00:32
boombatower left00:33
stamina left00:33
Roots47 left00:34
malinus left00:34
salamanderrake left00:36
BlueProtoman joined00:36
BlueProtoman test00:36
Roots47 joined00:37
spaceone joined00:38
jason237 left00:38
spaceone hi00:38
john_doe_jr1 joined00:38
spaceone how can i combine 2 commits to one (so when i push that only 1 commit is displayed)00:38
BlueProtoman My friend and I are having some merge conflict issues with Git. My friend has some code she wants to commit to our GitHub repo, but it says the commit is not possible due to unmerged files. We're not quite sure how to fix merge conflicts, we're new to Git.00:39
cmpera joined00:39
BlueProtoman Any tips?00:39
mitsuhiko left00:39
ojacobson !conflicts00:41
ojacobson squints at gitinfo.00:41
btanaka left00:41
goshawk left00:41
ojacobson BlueProtoman: broadly, go through the files listed as conflicted in 'git status' one at a time. For the ones that have been edited on both sides of the merge, open them in an editor, find the conflict markers (<<< === >>> lines, by default; sometimes also ||| lines)00:41
figure out the appropriate resolution for each conflict00:41
git-add the file00:42
repeat until done, then git-commit00:42
if you have other kinds of conflict (edit-move, move-move, edit-delete), use 'git add' or 'git rm' as appropriate00:42
bremner see also man git-mergetool00:42
gitinfo the git-mergetool manpage is available at http://jk.gs/git-mergetool.html00:42
ojacobson there are more detailed writeups out there; it wouldn't surprise me if pro-git has some00:42
john_doe_jr1 left00:42
ojacobson if you're wondering how you got there in the first place, I bet one of you ran 'git pull'00:42
which is, pretty explicitly, a merge.00:42
john_doe_jr joined00:42
jaequery joined00:43
BlueProtoman ojacobson: Yes, it looks like us working on the same file turned out to be a bad idea.00:43
ojacobson well, SCM tools are not a replacement for communication and planning :)00:44
dreiss left00:44
shinnya left00:44
ojacobson you can edit the same file at the same time all you want, if you work out how your respective changes will affect one another00:44
BlueProtoman ojacobson: OK, so we fix the line conflicts. What then?00:44
ojacobson If the result looks sane, stage it00:44
ewnd9 joined00:44
ojacobson if you've staged all the conflicts, and the overall result looks sane, commit00:45
hwrd|work joined00:45
hwrd|work left00:49
GODDOG joined00:49
BlueProtoman OK, now there's a vim window with an automatically-generated commit message. How do I pull out of it?00:50
carbohydrate joined00:50
BlueProtoman (On a Mac)00:51
ojacobson It's a commit message.00:51
You fill it out, just like any other commit.00:51
Then you save and exit the editor.00:51
ErKa joined00:51
ojacobson (If you don't like vim, configure git to use a different editor. :)00:51
osmosis left00:51
BlueProtoman OK, but I don't see which key combo it is. On my own computer it's Control-X, but that doesn't seem to be working on my friend's computer.00:51
ojacobson Same as usual in vim: escape to get back to command mode, then :wq00:52
(I find vim obnoxiously modal, but knowing how to exit it is useful :)00:52
mmitchell joined00:52
mmitchell left00:52
warthog9 joined00:52
ivan__ left00:52
ivan joined00:53
m0ltar joined00:54
ivan`_ivan`00:54
breck7 joined00:55
g0bl1n joined00:55
tobscore joined00:57
BlueProtoman ojacobson: That returns an error requiring me to commit with -m or -F. When I try that, I can't push to the repo00:57
GODDOG left00:57
amoe joined00:57
ojacobson !books00:57
gitinfo [!book] 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 !parable00:57
ojacobson pro-git has a section on merging.00:57
When you are collaborating with others, there will be points where you have to integrate the other guy's changes. Git has a few tools for that; merge (and pull, which calls it) is one such tool.00:58
Take some time and work through a few contrived examples, then come back to this.00:58
BlueProtoman Our homework is due in three hours.00:58
bremner speaking as a teacher, I'm pretty sure you had more time to work on it ;)00:58
BlueProtoman We're almost done.00:59
mizu_no_oto left00:59
BlueProtoman It's just this one merge issue. I finished my part of the homework, my friend is just about done with hers, and I'm helping her finish her part of it.00:59
harish left01:02
normanrichards left01:04
hahuang61 left01:04
donmichelangelo left01:04
revyd left01:04
donmichelangelo joined01:05
causasui joined01:06
bremner BlueProtoman: so, you don't know how to commit, is that the problem?01:06
m0ltar left01:06
BlueProtoman bremner: No, it was some merge issues, but it looks like we may have fixed it.01:07
chrisshattuck joined01:07
bonhoeffer joined01:07
TeckniX left01:07
bonhoeffer i have a repo locally and one on github, I _think_ they might be the same -- how can i compare them to find out01:07
?01:08
SHyx0rmZ left01:08
hyperair joined01:08
mam[idl] left01:08
bremner you could use git ls-remote01:08
GODDOG joined01:08
salamanderrake joined01:08
bonhoeffer bremner, thanks!01:09
m0ltar joined01:09
carbohydrate left01:09
bonhoeffer bremner, i should read up on this, but I get a MD5 and HEAD, and the same MD5 refs/heads/master -- does this mean they are equal?01:10
ojacobson SHA1, actually01:10
bremner also, up to possibly having other branches01:10
bonhoeffer ha! good point, sorry01:10
ojacobson and, yes, it means both names refer to the same git object (generally, commit)01:10
you'll want to check if those objects are present in your local repo; try 'git show (that sha1)'01:11
bonhoeffer fatal: bad object . . . .01:11
mam[idl] joined01:11
ojacobson that's indicative that they're not the _same_ repo, but they could still be related01:12
how much do you care? :)01:12
bonhoeffer well, i would love to compare their code -- i could just clone the old one01:12
BlueProtoman Ah, I think we've got everything sorted out.01:12
tobscore_ joined01:12
ojacobson or add it as a remote to your existing repo01:12
git's perfectly happy to have multiple unrelated histories in the same repo01:12
(it's a bit dumb in most cases, but answering "do these histories overlap" is one of the better uses for it)01:13
rudak1 joined01:13
tinti joined01:13
jaequery left01:14
petey left01:14
diegoviola left01:14
quazimodo joined01:14
g0bl1n left01:15
marhaban left01:15
tobscore left01:15
warthog9 left01:16
petey joined01:16
bonhoeffer i hope i didn't mess it up: https://github.com/tbbooher/ptp_nova_theme/01:17
tobscore__ joined01:18
jhulten left01:18
bonhoeffer in my last commit -- all the files look new01:19
fridim_ joined01:19
dslr joined01:19
tobscore_ left01:19
tobscore_ joined01:20
valgrind left01:20
tobscore__ left01:21
tmcmahon joined01:21
dslr left01:21
ErKa left01:21
vishal joined01:23
tobscore__ joined01:24
quazimodo left01:25
fridim_ left01:26
tobscore_ left01:27
tobscore_ joined01:28
nadirvardar left01:30
revyd joined01:30
tobscore__ left01:31
tmcmahon left01:31
Octalot left01:32
FatDarrel_ joined01:32
FatDarrel left01:32
FatDarrel_FatDarrel01:32
Vampire0_ joined01:33
quazimodo joined01:33
rchavik left01:34
Remram_ left01:34
chrisshattuck left01:35
rchavik joined01:35
Remram joined01:35
mam[idl] left01:35
mam[idl] joined01:35
whunt left01:36
Vampire0 left01:36
bitkiller joined01:38
tobscore__ joined01:38
intripoon joined01:38
jon_r joined01:39
bwreilly joined01:39
tobscore_ left01:39
tobscore_ joined01:40
LucasTizma left01:40
normanrichards joined01:41
breck7 left01:41
mizu_no_oto joined01:41
intripoon_ left01:42
LucasTizma joined01:42
ewnd9 left01:43
breck7 joined01:43
bwreilly left01:43
rasto left01:43
tobscore__ left01:43
TN_Jonesboro joined01:45
revyd left01:45
maqr left01:45
TN_Jonesboro left01:46
TN_Jonesboro joined01:46
ColKurtz left01:46
v0n left01:49
quazimodo left01:49
salamanderrake left01:51
Squarism left01:52
echo-area joined01:52
chrisshattuck joined01:53
tjbiddle_ joined01:53
tjbiddle left01:54
tjbiddle_tjbiddle01:54
harish joined01:54
boombatower joined01:55
daito joined01:56
ojacobson left01:56
Mars`_ left01:56
FatDarrel left01:56
cozby joined01:57
warthog9 joined01:57
Milossh joined01:58
cozby I'm running into some frustrating issues. When I try and checkout -f a branch I get error:unable to unlink old '.gitignore' (permission denied). This file has all the right perms... its doing this for a few files now. What gives?01:58
its also throwing errors thats its unable to rmdir because directories are not empty?02:00
I just want to blow away anything local and replace it with the remote branch02:00
w0ng joined02:01
warthog9 left02:02
thiago left02:03
salamanderrake joined02:04
tobscore__ joined02:06
cred joined02:07
luxgeek joined02:07
tobscore_ left02:07
tobscore_ joined02:08
mam[idl] left02:08
ewnd9 joined02:08
rainbyte joined02:08
sriracha left02:09
nardev joined02:10
iamjarvo joined02:11
tobscore__ left02:12
goshawk joined02:15
breck7 left02:15
pbujok left02:17
BlueProtoman left02:18
cred left02:19
dyng left02:20
thomas_b left02:21
iamjarvo left02:22
dyng joined02:23
iamjarvo joined02:23
thomas_b joined02:24
chrisshattuck left02:24
iamjarvo_ joined02:26
m0ltar left02:26
rudak1 left02:27
thomas_b left02:28
LuxuryMode left02:28
thomas_b joined02:28
mikepack joined02:28
iamjarvo left02:29
mikepack left02:30
maqr joined02:30
jxpx777 left02:31
LuxuryMode joined02:31
jxpx777 joined02:31
tobscore__ joined02:32
mizu_no_oto left02:33
thomas_b left02:33
tobscore_ left02:33
tobscore_ joined02:34
Targen left02:34
eli joined02:34
tobscore__ left02:35
joelteon left02:35
rurufufuss joined02:36
tinti left02:36
jaequery joined02:36
GODDOG left02:38
thomas_b joined02:39
LucasTizma left02:41
hwrd|work joined02:42
hwrd|work left02:42
cmpera left02:43
AWinterman joined02:45
kemist joined02:46
aldodelgado joined02:47
maqr left02:47
Devastator_ left02:47
Devastator_ joined02:47
Devastator_Devastator02:47
dustyfields joined02:48
logix812 left02:48
ewnd9 left02:48
GODDOG joined02:50
quazimodo joined02:50
tobscore__ joined02:50
thiago joined02:50
mouse__ joined02:51
chrisshattuck joined02:51
mouse__ left02:52
joki left02:52
D-Chymera1 joined02:52
gitinfo set mode: +v02:53
D-Chymera1 hi guys - how is it possible to pull/merge a single file from one project into another (the projects are quite different but I would like to use a file from one in another - and record that provenience of the file)02:53
tobscore_ left02:53
mouse_ left02:54
milki D-Chymera1: you cant. however, you can certainly copy the file and ignore history02:55
D-Chymera1: alternatively, you can mangle with man git filter-branch and extract the history of the single file02:55
gitinfo D-Chymera1: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html02:55
bwreilly joined02:55
milki D-Chymera1: it is most likely not worth it02:55
iamjarvo_ left02:55
jefflyne left02:55
milki D-Chymera1: i suppose you can merge and then delete everything not the file too02:56
iamjarvo joined02:56
tobscore_ joined02:56
chairabanta joined02:57
joki joined02:57
dharrigan left02:57
D-Chymera1 milki: so no specific functionality for this? :(02:57
milki right02:58
git doesnt deal with files like that02:59
tobscore__ left02:59
Earnestly left03:00
iamjarvo left03:00
quazimodo left03:01
dustyfields left03:01
bunbury left03:01
bunbury joined03:02
Targen joined03:02
donmichelangelo left03:04
aldodelgado left03:04
tobscore__ joined03:04
preflex_ joined03:05
donmichelangelo joined03:05
salamanderrake left03:05
thiago left03:05
preflex left03:06
dharrigan joined03:06
preflex_preflex03:06
Mars` joined03:07
chairabanta left03:07
tobscore_ left03:07
dreiss joined03:07
tobscore_ joined03:08
salamanderrake joined03:09
ingof joined03:09
dsdeiz joined03:10
petey left03:10
tobscore__ left03:11
yhager left03:11
gitpicker left03:12
Mars` left03:13
koda joined03:13
salamanderrake left03:14
salamanderrake joined03:14
gsvolt joined03:14
devoldmx joined03:14
GODDOG left03:15
Risto- left03:15
thiago joined03:16
Risto- joined03:16
mizu_no_oto joined03:16
AWinterman left03:17
Guest27333 joined03:18
Swayz left03:18
Guest27333diegoviola03:19
Dougie187 left03:19
CKyle left03:19
AWinterman joined03:20
dyng left03:22
warthog9 joined03:22
warthog9 left03:22
tobscore__ joined03:24
hahuang61 joined03:24
Swayz joined03:25
gitpicker joined03:25
cads joined03:25
DrNick left03:25
tobscore_ left03:25
breck7 joined03:26
DrNick joined03:26
tobscore_ joined03:26
tobscore__ left03:27
pen left03:28
pen joined03:29
goshawk left03:29
pencilcheck joined03:29
salamanderrake left03:30
breck7 left03:30
jaimef left03:31
natechan left03:32
jaimef joined03:32
tobscore__ joined03:32
yhager joined03:32
tobscore_ left03:33
pen left03:33
mikepack joined03:33
tobscore_ joined03:34
alvaro_o left03:34
dreiss left03:35
cmpera joined03:35
AWinterman left03:35
the_cybersphinx left03:36
nardev left03:36
tobscore__ left03:37
tobscore__ joined03:38
tobscore__ left03:38
tobscore__ joined03:39
tobscore_ left03:39
relipse joined03:39
tobscore_ joined03:40
ISF left03:40
relipse is there anything wrong with storing the mysql structure AND the data as a dump file in a git repository? it seems smart because if something goes wrong, we can just look at the data diff to see what happened03:40
tobscore__ left03:41
LuxuryMode left03:42
trq left03:44
R1KRDO joined03:46
tureba left03:48
cmpera left03:48
mizu_no_oto left03:48
tureba joined03:48
dreiss joined03:48
arvind_khadri left03:50
tmcmahon joined03:52
arvind_khadri joined03:52
dyng joined03:52
tureba left03:53
tureba joined03:53
tmcmahon left03:54
danmackay left03:55
rohieb relipse: nothing wrong with that. but your repo will blow up in size very soon03:56
tobscore__ joined03:56
tobscore_ left03:57
tobscore_ joined03:58
tobscore__ left03:59
Gamecubic left04:00
donmichelangelo left04:00
dyng left04:00
tobscore__ joined04:00
donmichelangelo joined04:00
pbujok joined04:01
bitkiller left04:01
tobscore_ left04:02
tobscore_ joined04:02
surfdue left04:02
Malukenho left04:04
tobscore__ left04:06
relipse rohieb, hmm04:06
Tommy[D] joined04:06
beautifulmind joined04:07
beautifulmind left04:07
CKyle joined04:07
Mars` joined04:08
Tommy[D]_ left04:09
huoxito left04:10
pbujok left04:12
infogulch left04:12
tobscore__ joined04:12
russt joined04:12
tobscore_ left04:13
tobscore_ joined04:14
surfdue joined04:14
diegoviola left04:16
daito left04:16
fuzzybunny69y left04:16
pencilcheck left04:16
fuzzybunny69y joined04:17
tobscore__ left04:17
lavaman left04:19
Ivo joined04:19
relipse How can i find big files in my repo?04:19
yhager left04:19
petey joined04:20
milki uh04:20
ingof left04:20
milki ls -l?04:20
ingof joined04:21
Katafalkas joined04:23
ingof left04:25
Ivo left04:26
beautifulmind joined04:27
bunbury left04:29
Risto- left04:30
girishr_ joined04:33
m0viefreak left04:34
m0viefreak joined04:34
salamanderrake joined04:34
dyng joined04:34
m0viefreak left04:34
Pullphinger left04:35
CKyle left04:35
akurilin left04:36
akurilin joined04:36
tjbiddle left04:42
wanders joined04:42
karstensrage joined04:42
karstensrage :( where might my gitolite remote be on freebsd?04:43
im trying to find a repo and its not where im sure it should be04:43
so i want to check the remote but i cant find it04:44
CKyle joined04:44
russt left04:44
subhojit777 joined04:44
subhojit777 left04:45
malloc left04:45
karstensrage found it04:45
and the repo is not there04:45
AWinterman joined04:45
karstensrage i cant be imagining this04:45
malloc joined04:47
jehaby joined04:49
nadirvardar joined04:50
AWinterman left04:50
normanrichards left04:50
mFacenet left04:52
pen joined04:53
malloc left04:53
malloc joined04:53
ryxai joined04:54
rasto joined04:54
leeN joined04:56
fairuz joined04:56
jefflyne joined04:57
CKyle left04:58
R1KRDO left04:59
mdiers joined05:00
chrisshattuck left05:01
subhojit777 joined05:02
mdiers left05:02
subhojit777 left05:02
subhojit777 joined05:03
geomyidae left05:03
cozby left05:04
jas|work joined05:06
matanya left05:06
raijin left05:06
wanders left05:08
jon_r left05:09
Swayz left05:11
jas|work left05:11
Ivo joined05:13
irqq joined05:13
jas|work joined05:13
madewokherd left05:14
Xiti joined05:14
jceb joined05:14
emergion left05:15
ewnd9 joined05:16
threesome left05:18
freestyl3r joined05:18
raijin joined05:19
fuzzybunny69y left05:19
dyng left05:20
Davey left05:21
dyng joined05:21
daito joined05:21
geomyidae joined05:23
milki o.O05:24
simesy joined05:24
milki phantom repo05:24
simesy left05:25
geomyidae left05:25
arjun_ joined05:25
fuzzybunny69y joined05:26
whunt joined05:26
arjun_ left05:27
arjun_ joined05:28
arjun_ left05:28
Swayz joined05:28
Roy_SP joined05:29
arjun_ joined05:30
arjun_ left05:31
arjun_ joined05:33
_iron joined05:33
jperry left05:33
Caritade joined05:34
arjun_ left05:34
jperry joined05:35
arjun_ joined05:35
Roy_SP left05:36
jxpx777 left05:36
arjun_ left05:36
samd joined05:38
pantsman joined05:38
pantsman left05:38
pantsman joined05:38
jxpx777 joined05:38
samd left05:38
girishr_ left05:40
ThomasLocke joined05:40
relipse left05:40
arjun_ joined05:41
tobscore__ joined05:42
hoschi joined05:42
tobscore_ left05:42
tobscore_ joined05:44
wanders joined05:44
simesy joined05:44
ciampix joined05:44
tobscore__ left05:48
arvind_khadri left05:48
TomyLobo joined05:49
cff joined05:49
jargon joined05:51
ianmcorvidae|alt joined05:51
ianmcorvidae|alt left05:51
ianmcorvidae joined05:52
geomyidae joined05:54
mj12albe_ left05:56
tobscore__ joined05:56
jefflyne left05:57
tobscore_ left05:57
pantsman left05:58
ncd|leeN joined05:58
tobscore joined05:58
mj12albert joined05:58
zacts joined05:59
ics left05:59
dhruvasagar left05:59
tobscore__ left05:59
tobscore_ joined06:00
FrodoTheHobbit left06:00
FrodoTheHobbit joined06:00
leeN left06:01
dhruvasagar joined06:01
nadirvardar left06:01
Xethron joined06:02
tobscore left06:03
vigs left06:03
tobscore__ joined06:04
papegaaij joined06:06
vigs joined06:07
tobscore_ left06:07
arvind_khadri joined06:08
fragje joined06:12
petey left06:13
fragje left06:14
fragje joined06:14
zarubin joined06:15
PaulCapestany left06:15
dreiss left06:15
soee joined06:15
petey joined06:16
cbreak-work joined06:16
_nova joined06:17
tobscore_ joined06:18
hahuang61 left06:19
cmpera joined06:19
akurilin left06:19
falconfox left06:19
dyng left06:19
tobscore__ left06:20
koda left06:20
dyng joined06:20
tobscore joined06:21
ncd|leeN left06:21
D9_ joined06:21
falconfox joined06:21
ryez left06:23
tobscore_ left06:24
russt joined06:25
hahuang61 joined06:27
jaequery left06:27
KillYourTV joined06:28
bwreilly left06:28
tpollard left06:29
sitaram .away06:30
oops06:30
karstensrage: gitolite puts repos inside ~/repositories, but the path component "repositories" does not appear in remote URLS06:30
URLs06:30
Ziber_ left06:32
clone1018_ joined06:32
ayaz joined06:32
jcp joined06:33
georgl left06:33
georgl_ joined06:33
javawizard left06:33
D-Chymera1 left06:33
Ziber joined06:34
pen left06:34
TomyLobo left06:34
Swayz left06:35
Ozch joined06:35
pepper_chico left06:35
FatDarrel joined06:38
druonysuse joined06:39
druonysuse left06:39
druonysuse joined06:39
georgl_ left06:41
netiul joined06:43
mishok13 left06:44
jas|work left06:44
minim left06:45
rudak joined06:45
Caritade left06:45
georgl joined06:45
jas|work joined06:45
ingof joined06:46
matanya joined06:48
tobscore_ joined06:50
Misan joined06:50
D-Chymera1 joined06:50
marthinal joined06:51
bket left06:51
matanya left06:51
tobscore left06:52
tobscore__ joined06:52
matanya joined06:53
echo-area left06:55
terravires joined06:55
tobscore_ left06:55
yacks left06:55
dsdeiz_ joined06:56
dsdeiz left06:56
docwhat joined06:56
gitinfo set mode: +v06:57
terravires hi all, I'm using git 1.8.1 on windows, with git-gtk. I had a file that I renamed foo.cs -> bar.cs and git showed the file was deleted. But now it's ignoring anything to do with bar.cs as if it didn't exist? Any advice?06:57
_ikke_ terravires: Is bar.cs ignored?06:57
terravires _ikke_ no06:57
zendeavr joined06:57
_ikke_ what does git status show?06:57
harobed joined06:58
terravires noting to commit, working directory clean06:58
tatsuya_o joined06:59
_ikke_ And if you edit bar.cs?06:59
raijin left06:59
terravires same06:59
it totally ignores the file and any chances06:59
It used to be called foo.cs, and was fine, I renamed it outside of git and when I went to commit it said the file was deleted06:59
boombatower left07:00
terravires I expected it to either catch the rename or at the least add a new bar.cs07:00
RaceCondition joined07:00
ciaranm joined07:00
_ikke_ git ls-files | grep bar.cs07:00
terravires no output07:00
_ikke_ Then it's not tracked07:01
terravires I know, like I said git appears to be ignoring this file for some reason07:01
it's tracking other files in the same directory07:01
_ikke_ git ls-files -i --exclude-standard | grep bar.cs07:02
kbart joined07:02
osse does git add -f bar.cs work ?07:02
jast did you do 'git add bar.cs' at some point?07:02
tobscore_ joined07:02
terravires not listed ikke07:02
I was using git-gtk, so most of that was done for me. :-/07:03
cmpera left07:03
tobscore__ left07:03
canton7 joined07:03
echo-area joined07:03
shuaib joined07:04
Goplat left07:04
tobscore__ joined07:04
_ikke_ git ls-files -io --exclude-standard | grep bar.cs07:04
RaceCondition left07:04
jehaby left07:04
s0undt3ch left07:04
terravires ok, so git bash + git add tells me the file is in fact being ignored07:04
ianclarksmith joined07:04
emergion joined07:04
_ikke_ :-)07:04
terravires but I'm kind of shocked as why... it used to work.07:05
s0undt3ch joined07:05
kfunk_ left07:05
_ikke_ What used to work?07:05
terravires is it possible to debug .gitignore?07:05
jon_r joined07:05
ianclarksmithics07:06
terravires well the file was added and being tracked, and then I renamed the file (foo.cs to bar.cs) and then git now ignores it07:06
osse Actually, Git 1.8.4 as a check-ignore command07:06
simesy_ joined07:06
_ikke_ terravires: git ignores files based on name07:07
tobscore_ left07:07
terravires http://pastebin.com/hxsAc0Vk07:07
_ikke_ so if a file gets a name that is being ignored, git just happely ignoes it07:07
jast what's the path of bar.cs, relative to repo root?07:08
terravires I'm trying to ignore everything but Assets/_* (and any sub dirs/files)07:08
Assets/_Scripts/UI/HUD07:08
jast then try this:07:08
mishok13 joined07:09
jast http://pastebin.com/GJAGzVN607:09
lb1a joined07:09
jehaby joined07:09
simesy left07:09
jast oh, hang on, they changed the rules, didn't they07:09
should work anyway07:10
zarubin left07:10
robbyoconnor joined07:11
terravires do I need to commit the .gitignore before it works?07:11
moritz no07:12
rath joined07:12
h_kon joined07:12
dreiss joined07:12
terravires still says it is ignored07:13
RaceCondition joined07:13
terravires I just need to get all files/directory that start with _ in Assets/, but ignore everything else.07:14
iveqy terravires: do you've anything in .git/info/excludes?07:14
_Norm_ left07:14
terravires I didn't change any of my ignores so I don't know why this stopped working... it was tracked07:14
jast oh, you want files in Assets, too07:15
iveqy terravires: how did you rename the file? And if you track foo.cs and then move it to bar.cs (not with git mv) bar.cs isn't tracked07:15
terravires iveqy, nope, all empty07:15
jast in that case it has to be !/Assets/_* instead of !/Assets/_*/07:15
dsdeiz joined07:15
terravires I did rename it outside of git, but had to because of my other tools. I figured git would best case pick up the new filename, worst case just add the new file07:16
tobscore_ joined07:16
osse renaming outside of git is no problem. git will detect the delition and if you git add the new name it'll be fine07:17
_ikke_ terravires: Yes, that's normally not a problem, but git has been told to ignore that file, and it does07:17
osse well, that's how it's supposed to be at least07:17
dsdeiz_ left07:17
pen joined07:18
osse but if git ls-files -i --exclude-standard | grep bar.cs is empty...07:18
_ikke_ osse: it might be that -io is needed07:18
irqq left07:19
_ikke_ if -i doesn't cancel -c (cached) it'll only list files that would be ignored but are tracked07:19
tobscore__ left07:19
simesy_ left07:19
kewah joined07:19
tobscore__ joined07:20
tagava joined07:20
simesy joined07:20
yezariaely joined07:20
mitsuhiko joined07:20
tobscore_ left07:20
alorence joined07:21
matanya left07:21
osse you're right07:21
yacks joined07:22
terravires the problem seems to be recursive directories. So I have to do an inverse ignore... ignore *, then !_*/ and !_*/* but then it doesn't got deeper07:22
koda joined07:22
terravires how should I tell it !_* (AND all subdirectories/files) ?07:23
ingof left07:23
ingof joined07:23
Mars` left07:23
_ikke_ perhaps !ignore_whitedir helps07:23
gitinfo [!gitignore_whitedir] A global/directory .gitignore blacklist with a (potentially) subdirectory whitelist is not easy to specify in git. However, something like `echo -e '/*\n!/a/\n/a/*\n!/a/b/\n/a/b/*\n!/a/b/c/' > .gitignore` (ignore everything but a/b/c directory) or `echo -e '*\n!*/\n!*.c' > .gitignore` (ignore everything but *.txt files) may do what you want.07:24
terravires so I can't just whitelist _* files/directories?07:26
Cerise joined07:26
terravires does git support regexp in .gitignore?07:27
_ikke_ no07:27
iveqy terravires: man !gitignore , it support shell07:27
gitinfo terravires: [!gitignore_whitedir] A global/directory .gitignore blacklist with a (potentially) subdirectory whitelist is not easy to specify in git. However, something like `echo -e '/*\n!/a/\n/a/*\n!/a/b/\n/a/b/*\n!/a/b/c/' > .gitignore` (ignore everything but a/b/c directory) or `echo -e '*\n!*/\n!*.c' > .gitignore` (ignore everything but *.txt files) may do what you want.07:27
thiago left07:27
_ikke_ It uses fnmatch07:27
fuzzybunny69y left07:28
jas|work left07:28
iveqy bad gitinfo =(07:28
or bad me maybe...07:28
ingof left07:28
_ikke_ yeah, you prefixed a !07:28
ngladitz joined07:29
terravires sorry guys, but I'm just not seeing how I can do this without whitlisting all my _* directories and files individually07:30
gua_ould joined07:30
terravires I've tried adding all of these: !_*, !_*/, !_*/*, !_*/*/, but it always seems to stop at the last depth I manually add07:31
osse !_*/**07:32
As of Git 1.8 I think07:32
tatsuya_o left07:32
akiva left07:33
psoo joined07:33
zarubin joined07:33
terravires osse, didn't work, stopped at one deep07:33
fuzzybunny69y joined07:33
osse terravires: with two asterisk, right ?07:35
terravires osse, yes07:35
dyng left07:35
terravires *\n!_*\n!_*/**07:35
beautifulmind left07:35
russt left07:36
tobscore_ joined07:36
dyng joined07:36
rchavik left07:37
tobscore__ left07:37
woollyams left07:37
tobscore__ joined07:38
GeertV joined07:38
Asenar joined07:39
jon_r left07:40
Squarism joined07:41
nova_ joined07:41
_nova left07:41
OOPMan joined07:41
tobscore_ left07:41
rchavik joined07:42
rchavik left07:42
rchavik joined07:42
maleknet joined07:42
GeertV_ joined07:42
GeertV left07:42
Anticom joined07:42
tvw joined07:43
cads left07:44
tobscore_ joined07:44
terravires oh well, I'll keep trying, thanks for the suggestions guys.07:45
quazimodo joined07:45
terravires left07:45
Martz joined07:45
Martz left07:45
Martz joined07:45
Ozch left07:45
threesome joined07:46
rue left07:47
tobscore__ left07:47
jnavila joined07:48
nfroidure left07:48
fuzzybunny69y left07:48
SonicX joined07:49
nfroidure joined07:49
nfroidure left07:49
nfroidure joined07:49
tobscore__ joined07:50
buibex joined07:50
tobscore_ left07:51
g41n joined07:51
Kabaka joined07:51
rue joined07:51
konadr joined07:51
Amandil joined07:52
tobscore_ joined07:52
matanya joined07:52
zendeavr left07:53
zendeavor joined07:53
tobscore__ left07:53
tobscore__ joined07:54
PaulePanter In coreboot we need to store patch/diff files, which have whitespace error by design.07:54
Is there a way to exclude files from `git diff --check`?07:54
http://review.coreboot.org/#/c/3340/1/util/lint/lint-stable-003-whitespace07:54
jefflyne joined07:55
tobscore_ left07:55
nikolai_ joined07:55
tobscore_ joined07:56
druonysuse left07:56
druonysuse joined07:57
Martz left07:57
druonysuse left07:57
druonysuse joined07:57
nikolai_ hi there! When using gitk, creating a new view, and setting the Author field to my name, I see also other commits that do not even mention my name...it seems to be different to "git log --author=Foo" ...how come?07:57
atomC0de joined07:57
dfanjul joined07:58
vigs left07:58
tobscore__ left07:59
dkpi joined08:00
hachque_ joined08:01
mikecmpbll joined08:01
tobscore__ joined08:02
fuzzybunny69y joined08:04
dsdeiz_ joined08:05
tobscore_ left08:05
dsdeiz left08:05
renumi joined08:06
dreiss left08:08
ncopa left08:08
frobware joined08:10
Octalot joined08:10
whunt left08:12
tobscore_ joined08:12
FatDarrel left08:12
yuppie joined08:14
whunt joined08:14
tobscore__ left08:15
tobscore_ left08:17
tobscore_ joined08:17
intellix joined08:19
sq-one joined08:20
kwmiebach joined08:22
Amandil left08:22
Shiva joined08:23
jon_r joined08:23
rafeca joined08:24
dsdeiz joined08:24
tobscore__ joined08:24
marhaban joined08:24
aChatir joined08:24
dsdeiz_ left08:25
whunt left08:25
staafl left08:26
maleknet left08:26
whunt joined08:26
tobscore_ left08:27
jon_r left08:28
tobscore_ joined08:28
Amandil joined08:28
metze_metze08:29
menace joined08:29
maleknet joined08:29
jon_r joined08:29
tobscore__ left08:30
tobscore__ joined08:30
the_codebot joined08:30
simesy left08:31
tobscore_ left08:31
aChatir left08:31
tobscore_ joined08:32
theForce lets say there are multiple commits which have all a same token in the commit message (e.g. a ticketnumber). what is the best way to review those commits all at once?08:33
_ikke_ theForce: git log --all --grep "token"08:33
iveqy theForce: man git log see --grep08:34
gitinfo theForce: the git-log manpage is available at http://jk.gs/git-log.html08:34
Mars` joined08:34
simesy joined08:35
tobscore__ left08:35
theForce _ikke_: yeah i found that too but that way i only see the commit message, author etc. i actually would like to see all the code changes in those commits merged together, for instance as a patch08:35
CodeShark left08:35
the_codebot left08:36
zbcm joined08:37
matteo joined08:37
_ikke_ Hmmm, if only git log had something like --patch08:37
;-)08:37
noname001__ joined08:37
simesy left08:37
Mars` left08:38
zbcm left08:39
iveqy theForce: git log --all --grep "token" | grep "^commit " | cut -c7-4708:39
jan1337z joined08:39
iveqy you could even to:08:39
theForce: git log --all --grep "token" | grep "^commit " | cut -c7-47 | git show08:39
_ikke_ iveqy: Or just git log --all --grep "token" -p08:40
iveqy nah =(, it just takes the first... you need to loop it08:40
_ikke_: haha well, that would be too easy ;)08:40
howlymowly joined08:40
kcj left08:42
iveqy so, that's a list of patches, they're still not merged together08:42
_ikke_ If you want something more complex: git rev-list --all --grep "token" | xargs -n1 git show08:42
iveqy I would solve this by just applying them to a branch08:42
_ikke_ yes08:42
tobscore__ joined08:42
tobscore_ left08:43
jas|work joined08:43
tobscore_ joined08:44
petey left08:44
GodEater joined08:44
GodEater left08:44
GodEater joined08:44
tatsuya_o joined08:44
jas|work left08:45
fragje left08:45
jas|work joined08:46
Amandil left08:46
osse iveqy: what do you mean by "just takes the first" ?08:47
tobscore__ left08:47
iveqy osse: I just get the the first sha1 showed08:47
Streward joined08:48
tobscore__ joined08:48
theForce thx guys08:49
Norm_ joined08:49
menace left08:49
iveqy theForce: however IMHO it seems like you're doing something wrong. Shouldn't all commits that have something incommon be on a branch?08:49
tobscore_ left08:51
theForce iveqy: well this branching workflow is not really established here currently. hopefully in the future08:52
deryni left08:52
tobscore_ joined08:54
OOPMan left08:54
achadwick joined08:54
valgrind joined08:56
juril joined08:57
tobscore__ left08:57
yuppierealeyes08:58
tobscore__ joined08:58
GODDOG joined08:58
Rh0nda left08:58
jefflyne left08:59
netiul left08:59
tobscore_ left09:00
aChatir joined09:00
tobscore_ joined09:00
pfFredd joined09:00
Martz joined09:01
netiul joined09:01
quazimodo left09:01
buibex left09:02
maleknet left09:02
tobscore__ left09:03
buibex joined09:04
ph88 left09:04
ketas left09:05
Martz left09:05
vince_prignano joined09:07
Martz joined09:07
ketas joined09:07
tobscore__ joined09:08
the_codebot joined09:08
hoschi left09:10
tobscore_ left09:11
tobscore_ joined09:12
OOPMan joined09:12
sharpshooter joined09:12
ewnd9 left09:13
tobscore__ left09:15
jophish left09:16
hoschi joined09:16
dbuch joined09:16
tobscore__ joined09:16
ewnd9 joined09:16
tobscore_ left09:17
Martz left09:18
ayaz left09:21
marhaban left09:21
tobscore_ joined09:22
deryni joined09:22
Martz joined09:23
Martz left09:23
EvilDMP joined09:23
Martz joined09:23
EvilDMP if I rewrite history of a branch when pushing to a repository, what happens to other branches on the repository that may have shared some of that history?09:24
iveqy EvilDMP: nothig09:25
EvilDMP iveqy: thanks09:25
tobscore__ left09:25
mindriot101 joined09:26
kcj joined09:26
darnir joined09:27
Streward left09:27
cads joined09:28
dkpi left09:29
tobscore__ joined09:30
jds "assume-unchanged" sets things up to completely ignore the referenced file, even if it's later changed. Is there a way of setting things up so that the file in its current state is ignored, but any future changes to it get shown?09:30
Martz left09:31
the_codebot left09:31
_ikke_ nope09:31
except for something like inotify that does that09:32
marhaban joined09:32
Streward joined09:33
tobscore_ left09:33
tobscore_ joined09:34
asQuirreL joined09:35
darnir left09:35
darnir joined09:35
ayaz joined09:35
Georg3 left09:36
VictorCL joined09:36
tobscore__ left09:37
tobscore__ joined09:38
tobscore_ left09:39
jast jds: how would git be able to tell that it was changed except by checking whether it was changed? :}09:39
tobscore_ joined09:40
harish left09:40
_ikke_ It could check if it was changed but not report on it09:40
Juri_Agarin left09:40
Juri_Agarin joined09:40
jds jast: I wasn't sure how assume-unchanged was implemented. Thought it maybe had a private staging area akin to the regular staging area where the file changes were recorded09:41
iveqy the solution here is to have some sort of api for other programs to tell git that a file is changed (like an inotify server or an IDE)09:41
introom joined09:42
LimeBlast joined09:42
subhojit777 left09:42
asQuirreL left09:43
hyperair left09:43
jast jds: it does not. it simply makes a note not to check whether the file was changed, and to pretend that it wasn't09:43
(by the way, there are several operations that silently unset the assume-unchanged flag)09:44
tobscore__ left09:44
stamina joined09:45
tobscore__ joined09:46
rndbit` left09:48
rndbit joined09:48
Juri_Agarin left09:48
Stygia joined09:49
saimaz joined09:49
tobscore_ left09:49
tobscore_ joined09:50
bonhoeffer sorry, just learning git -- i made a bunch of changes that I hate -- i want to go back to a specific commit -- but might want to go back to "some" of my changes --09:50
should i revert to the commit where things were good (if so, what happens to the old changes?)09:51
pen left09:52
zero7 left09:52
akitada left09:52
iveqy bonhoeffer: !reset you want e), your changes will be lost, but if you save the sha1 of the commits you need you can cherry-pick them for another 2 weeks09:52
gitinfo bonhoeffer: A good resource explaining git-reset is http://git-scm.com/2011/07/11/reset.html09:52
DoniRS joined09:52
xerxas left09:52
ELLIOTTCABLE left09:53
jmcantrell left09:53
tobscore__ left09:53
robstanley left09:53
heidar left09:54
jab416171 left09:54
dsdeiz_ joined09:57
dsdeiz left09:57
tobscore__ joined09:58
Cymew joined09:59
alexw left09:59
PeterBooker joined09:59
tobscore_ left09:59
tobscore_ joined10:00
Shiva left10:00
subhojit777 joined10:01
mikecmpbll left10:01
Cymew Hi. I'm trying to clone over http, and get the famous "/info/refs not found: did you run git update-server-info on the server?" I have indeed done that, and ls -l proves that the info/refs file has been accessed. My http log say "/var/lib/git/nagios-se-plugins.git/info/refs?service=git-upload-pack HTTP/1.1" 404 332 "-" "git/1.7.1"" which does indicate that it failed. Any suggestions?10:01
mikecmpbll joined10:01
cbreak-work Cymew: sounds likeyou use dumb http10:02
Cymew: run update-server-info10:02
on the server10:03
tobscore__ left10:03
hseg joined10:03
Cymew Again? Did it and still no cookie. :(10:03
cbreak-work hmm...10:04
wonder if they finally removed dumb http support from git10:04
Cymew Really?10:05
hseg Is there a way to move an edit to an old commit where it belongs? i.e. I divided a patch into several commits and I didn't notice that I forgot about one line until a couple of commits later.10:05
cbreak-work hseg: not without history rewriting10:05
_ikke_ cbreak-work: version 1.7.1, I don't think it's removed from that version10:05
hseg History is unpublished.10:05
cbreak-work hseg: which is problematic if you already pushed10:05
hseg Unpushed.10:05
cbreak-work hseg: then just git rebase -i someparent and edit the first commit10:06
hseg BTW, I guess this implies that anything pushed is set in stone, right?10:06
Cymew It would totally ruin all our setup if they did remove it10:06
cbreak-work no. It implies that it's a pain to change published history10:06
it's possible though10:06
Cymew Sure would be nice to at least have the option...10:06
cbreak-work Cymew: dumb http is really worthless10:06
there are lots of alternatives10:06
valgrind left10:06
hseg So git rebase -i commit_foo^ and edit the diff?10:07
cbreak-work like ssh://, git:// or even smart http10:07
hseg: not edit the diff10:07
just git commit --amend10:07
then rebase --continue10:07
hseg OK.10:07
cbreak-work you know commit --amend?10:07
johnlcox left10:07
hseg I think so. Doesn't it reopen the commit for changes?10:07
Cymew cbreak-work: ssh doesn work for me. I need unauthenticated checkout. Any good pointer for what smart http means?10:08
cbreak-work Cymew: you need to install some scripts on the server.10:08
It's much more efficient (and faster) than dumb http.10:08
I don't know any details10:08
hseg: it just commits a changed version of the current commit in its place10:08
Cymew I have no speed problems, but it sounds like I need to look it up. Thanks for the suggestions.10:09
cbreak-work hseg: basically, change something, git add it, then commit --amend, and that change will be part of the new version of the current commit10:09
wrouesnel1 joined10:09
jast man git-http-backend10:09
gitinfo the git-http-backend manpage is available at http://jk.gs/git-http-backend.html10:09
Cymew thx10:09
hseg OK. So commit --amend merges staging and the previous commit?10:09
jast sort of10:10
tobscore__ joined10:10
aandy joined10:10
jast it recreates the commit but uses the current index instead of what was in the original commit10:10
SirCmpwn left10:10
mtk0 joined10:11
SirCmpwn joined10:11
tobscore_ left10:12
hseg So it replaces the current commit by the current code in staging with the old commit message.10:12
jast yeah (and you can change the commit message)10:12
hseg Nice.10:13
jast so, some people use --amend just for changing the commit message10:13
tobscore joined10:13
hseg One thing is annoying - once pushed, your history, along with your stupid commits, is a pain to fix.10:14
tobscore__ left10:15
tobscore_ joined10:16
dsdeiz joined10:16
tobscore left10:17
beautifulmind joined10:18
hseg How can I see at which commit origin/master is?10:18
gua_ould left10:18
tobscore__ joined10:18
Asenar git log --all10:18
zarubin left10:18
tobscore_ left10:19
dsdeiz_ left10:19
hseg nm, git log repo/branch works perfectly10:19
madduck_madduck10:19
ghoti left10:20
ghoti joined10:20
cbreak-work hseg: !lol10:20
gitinfo hseg: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all10:20
emergion left10:21
jeffreyio2 joined10:22
tobscore_ joined10:22
jkremser joined10:23
jkremser left10:23
jkremser joined10:23
jfoy joined10:23
hseg Wow. That one's going into my .bashrc10:23
VictorCL left10:24
khushildep joined10:24
VictorCL joined10:24
Cymew Hmm. This smart http thing sure became complicated. Now I need to find an apache channel to ask questions on as well. Oh well.10:25
harish joined10:26
tobscore__ left10:26
cbreak-work hseg: how about a git alias? :)10:26
hseg What are those?10:27
tobscore joined10:27
tobscore left10:27
tobscore joined10:27
jfoy left10:27
jeffreyio2 left10:28
Ozch joined10:29
tobscore_ left10:29
_ikke_ git config alias.lol 'log --oneline --graph --decorate --all'10:30
marhaban left10:30
gua_ould joined10:30
_ikke_ then git lol would get you that10:30
the_cybersphinx joined10:30
jeffreyio2 joined10:31
hseg OK. Why the name lol?10:31
_ikke_ I guess Log OneLine, but I'm not sure10:32
hseg I'd call it bird or bev10:33
_ikke_ You can give it the name you want, but it can't be the name of built-in command10:33
malukenho joined10:33
gratz joined10:34
gratz hi10:34
gitinfo gratz: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.10:34
simesy joined10:34
frgtn left10:35
vince_prignano left10:35
jason237 joined10:36
Stalkr^ joined10:36
gratz i have this branch history: http://postimg.org/image/dh6cev3gj/ but where dev stops it should have been merged in (master continued from the dev branch at that point in time), how would i do this? I'd like to then get dev to the same point as master to continue working on it..10:36
Norm_ left10:37
_ikke_ gratz: is this public history (ie, has it been pushed)?10:37
xerxas joined10:37
_ikke_ There are tags on master, so I assume it is10:37
gratz it's been pushed but the repo isn't public, only i am working on it at the moment10:38
Norm_ joined10:38
dpwrussell left10:38
dpwrussell joined10:38
suy_ left10:39
suy joined10:39
fuzzybunny69y left10:40
jason237 left10:41
_ikke_ You have to rewrite history if you want it to be merged at the point where the branch stops10:41
ChrisAnn joined10:41
_ikke_ It also means you have to recreate the tags10:41
Milossh left10:43
cads left10:43
shoshin joined10:43
emergion joined10:45
hseg How do I use a tag instead of the hash corresponding to that tag? Specifically, how do I git log since a specific tag?10:45
_ikke_ hseg: You can just use the tag10:46
tobscore_ joined10:46
Spyro left10:47
Misan left10:47
Spyro joined10:48
arjun_ left10:48
Milossh joined10:48
hseg Resolved. Didn't know revision range syntax, which caused problems.10:48
gratz _ikke_, if at the point where dev stops, the commit on master immediately after it is exactly the same as dev at that point do the tags still have to be recreated?10:48
also, when you say rewrite history, would this be a merge rebase?10:49
simesy_ joined10:49
aChatir left10:49
tobscore left10:49
tobscore__ joined10:50
fridim_ joined10:50
_ikke_ a merge rebase is not really a term in git10:50
gua_ould left10:51
dbuch left10:51
_ikke_ But yes, because every commit that is following it still has to change10:51
simesy left10:51
dbuch joined10:52
netsroht left10:52
gratz sounds painful10:52
if i didn't do that, can i just ff dev to the same state as the head of master somehow?10:53
tobscore_ left10:53
PeterBooker left10:54
_ikke_ You need to merge both branches10:54
PeterBooker joined10:54
tobscore_ joined10:54
hseg Can someone please explain the warning I got when I tried to git add a file I was previously tracking which I'd just deleted?10:55
i.e. http://pastie.org/837184210:55
Martz joined10:55
saimaz left10:56
j416 hseg: 'git add' will add the deletion by default starting in Git 2.0, but currently the default is to not do so10:56
hseg Why the change and why the old behaviour?10:57
j416 mailing list should give you the exact reasons10:57
I speculate that it is more intuitive10:57
netsroht joined10:57
tobscore__ left10:57
j416 old behaviour is not so intuitive, perhaps10:57
Chiko joined10:58
tobscore__ joined10:58
hseg Clash of intuitions. Does git add mean "add this change" or "track this new file".10:58
jason237 joined10:58
Hello71 both.10:58
tobscore_ left10:59
bonhoeffer left10:59
paulweb515 left11:00
fairuz left11:00
ciampix left11:00
jefflyne joined11:01
cmpera joined11:01
maleknet joined11:02
lb1ahelloworld_11:02
kcj left11:02
helloworld_lb1a11:02
Misan joined11:02
Xethron left11:03
Squarism what dist of git should you run on windows?11:04
gua_ould joined11:05
Squarism ...for git beginners11:05
j416 Squarism: I used to run the version available from http://git-scm.com/ called git-bash, it worked well under the circumstances11:05
Hello71 msysgit11:05
j416 (not sure if that is actuall the name)11:05
Hello71: yes, maybe that is the correct name. But it comes bundled with bash.11:05
Hello71 that's like calling coreutils "sed"11:06
j416 heh11:06
Balliad joined11:07
j416 it comes with core utils and it has something called "git bash", which opens a bash prompt11:07
bremner well, sed _is_ really all you need11:07
j416 anyway, that's the version I've been most successful running, Squarism11:07
Squarism j416, thanks.. looks most OFFICIAL to me11:08
ill try that11:08
fridim_ left11:08
ryez joined11:08
koptein joined11:08
Sonderblade joined11:09
Sonderblade left11:09
Sonderblade joined11:10
Xethron joined11:10
gitinfo set mode: +v11:11
_nova joined11:14
darnir left11:15
conan left11:15
nova_ left11:17
OOPMan1 joined11:17
OOPMan left11:19
Squarism left11:20
ciampix joined11:20
arjun_ joined11:21
OnO joined11:21
alexandrerussel joined11:22
simesy_ left11:24
Earnestly joined11:27
jon_r left11:28
Caritade joined11:28
Guest17847 joined11:28
kcj joined11:28
frgtn joined11:29
GeertV_ left11:29
frgtn left11:30
frgtn joined11:30
GeertV joined11:30
SonicX left11:30
thierryp left11:32
introom left11:33
normanrichards joined11:35
starfox21 joined11:35
daito left11:36
cmpera left11:37
OnO left11:37
ghoti_ joined11:39
leandrosansilva joined11:45
erichynds joined11:45
jazz264 joined11:46
Misan left11:46
vurma joined11:48
jas|work left11:48
SonicX joined11:49
cmpera joined11:49
stamina left11:51
PeterBooker left11:54
PeterBooker joined11:54
boblee left11:55
SonicX left12:00
pbujok joined12:00
jefflyne left12:01
mikecmpbll left12:01
Squarism joined12:02
RaceCondition left12:02
buibex left12:02
angelsl joined12:02
Boohbah left12:04
buibex joined12:04
cannonball joined12:04
mribeirodantas joined12:05
pbujok left12:05
Boohbah joined12:07
johnlcox joined12:08
lb1ais12:09
isrt12:09
rtfo12:09
folb1a12:09
geekbri joined12:10
PeterBooker left12:12
mattp_ joined12:13
heidar joined12:13
emergion left12:13
jab416171 joined12:14
zero7 joined12:14
ELLIOTTCABLE joined12:14
akitada joined12:15
erichynds left12:15
tdm00 joined12:16
PeterBooker joined12:17
EvilDMP left12:17
robstanley joined12:18
jmcantrell joined12:19
tdm00 left12:19
CheckDavid joined12:20
sriracha joined12:21
normanrichards left12:21
Novacha_ left12:23
Novacha joined12:24
wakd joined12:24
RaceCondition joined12:24
RaceCondition left12:25
Juri_Agarin joined12:26
paulweb515 joined12:27
Chiko left12:28
mw44118 joined12:28
Misan joined12:28
tureba left12:30
cmpera left12:30
tureba joined12:30
cmpera joined12:31
paulweb515 left12:33
decotii joined12:35
Droolio joined12:35
salamanderrake left12:38
TheBrainWork joined12:38
Nickeeh_ left12:39
Nickeeh joined12:40
nfroidure left12:40
simesy joined12:40
spaceonline joined12:40
tureba left12:41
nfroidure joined12:41
tureba joined12:41
devoldmx left12:42
j416 is there an opposite of 'git add -p' that allows me to patch by patch unstage changes?12:42
I wish to add everything but a small change12:42
_ikke_ git reset -p12:43
j416 cool, thanks12:43
quite obvious. heh.12:43
hoschi left12:43
devoldmx joined12:44
j416 bah I can't edit the hunks12:44
oh well12:44
Roots47 left12:44
_ikke_ cna't12:45
can't?12:45
mikecmpbll joined12:45
dyng left12:45
m8 joined12:46
j416 only for files that are already tracked12:46
but not for new files (which is why I couldn't git add -p them in the first place)12:46
sq-one left12:46
Guest33959 joined12:46
j416 solved it by temporarily removing the parts that I didn't want to add12:46
stamina joined12:46
j416 physically from the files12:46
dsdeiz_ joined12:47
mizu_no_oto joined12:47
dsdeiz left12:47
breakingthings joined12:48
chronossc left12:48
paulweb515 joined12:48
devoldmx left12:48
_ikke_ befor add -p, you can do git add -N <file>12:48
For untracked files12:48
devoldmx joined12:49
alexandrerussel left12:51
j416 oh, handy12:52
thanks.12:52
already solved it now12:52
:)12:52
j0ran1 left12:52
schemanic joined12:52
tmcmahon joined12:53
normanrichards joined12:53
arussel joined12:53
arussel I'm trying to clone a repo without user intervention, I've tried 'yes | git clone xxx' but I still get a question about host and I don't find a -y option12:54
tureba left12:54
arussel how can I do it ?12:54
tureba joined12:54
rchavik left12:55
jast sounds like a prompt from ssh12:56
iveqy arussel: what's a -y option? And what question about the host are you getting?12:56
hoschi joined12:57
levine joined12:57
iveqy arussel: and which protocoll are you using for cloning? http, git, ssh?12:57
arussel traditionally on unix system, when a prog ask question, you can pass a -y option to answer yes to all12:57
ewnd9 left12:57
str joined12:57
iveqy arussel: oh, well you always learn something new =). So what question is it you're getting?12:58
arussel The authenticity of host 'bitbucket.org ()' can't be established.12:58
RSA key fingerprint is12:58
Are you sure you want to continue connecting (yes/no)?12:58
this is a ssh question12:58
iveqy arussel: yeah it is, con't you fix that in your ssh-config?12:58
jast ssh doesn't allow bypassing that question except if you change your configuration12:58
tmcmahon left12:58
iveqy that seems like a dangerous thing to bypass btw.12:59
serapath_ joined12:59
jast either by adding a known_hosts entry, or by having an ssh pubkey configured as a CA that the hostkey has been signed with12:59
levine left12:59
lov_lov12:59
gua_ould left12:59
jast I don't think ssh has an option for skipping the prompt if it doesn't know the host12:59
salamanderrake joined12:59
jast oh, you can set StrictHostKeyChecking to 'no'13:00
no terribly advisable, of course13:00
arussel if I answer yes, everything goes well, I don't want to bypass, I just want to answer yes13:00
jast you can't, ssh doesn't let you13:00
hyperair joined13:00
iveqy arussel: to answer yes automatic is the same thing as bypass that question13:00
jast setting that option has the same effect as answering 'yes', though: it automatically adds the host key13:00
buibex left13:01
arussel jast: ssh let me do it, otherwise it wouldn't ask the question.13:01
if I answer yes, it let me do it13:01
StrictHostKeyChecking seems the answer, thans13:02
chronos joined13:03
OOPMan1 left13:04
gua_ould joined13:04
serapath_ left13:05
serapath_ joined13:05
m0ltar joined13:05
serapath_ left13:06
kcj left13:06
devoldmx3 joined13:06
serapath joined13:07
serapath hi, if it happens that i "git checkout label", where label can be a tag or a commit id or head or a selector (e.g. HEAD~) so that my HEAD ends up on a commit object that is not the front of a branch. If i now do a "git commit", could i say that i am still on a branch? (probably "git branch") will say so... but what technical effect has that for any move i might do now?13:07
dsdeiz joined13:07
Internet13 joined13:07
dsdeiz_ left13:08
_ikke_ serapath: If you checkout everything except for a branch, your HEAD gets !detached, and any commit you then do will not be referenced and can get lost13:08
gitinfo serapath: A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach13:08
pdurbin left13:09
devoldmx left13:09
serapath _ikke_: i know, but that wasnt the question. in that state, what will "git branch" tell me?13:09
_ikke_ * (detached)13:10
or something13:10
like that13:10
serapath ah ok, so i left any branch13:10
_ikke_ yes13:10
serapath i am not on any branch13:10
_ikke_ nope13:10
serapath ok13:10
awesome... because the tutorial i'm doing says otherwise. it says: "note that the current branch is not changed" ...it might have meant something else, but i was assuming that i cannot leave a branch, thus "git branch" will always tell me that i am on a branch, even if that might not make any sense at all13:11
abstrusenick joined13:11
iveqy serapath: a branch is just a pointer to a commit, when you add a new commit that branch tag will move to point to the new commit, but only if you add that new commit to the commit pointed to by the old branch (well you can always manually move git branch pointers with man git reset)13:11
gitinfo serapath: the git-reset manpage is available at http://jk.gs/git-reset.html13:11
Chiko joined13:12
serapath yes, i know13:12
i just thought, that maybe, some actions will have an effect based on the last branch i was on13:12
if that would be true, one could probably say i am still on a branch in some sense13:13
but i guess thats not the case13:13
darnir joined13:13
huoxito joined13:13
shoshin left13:13
v0n joined13:13
mklappstuhl joined13:14
clone1018_clone101813:14
CKyle joined13:15
CKyle left13:15
serapath the "git checkout" command is strange. it is a tool to get files from the staging area ... or get files from a commit id or some other kind of label and copy it to the staging area AND the working copy13:16
how is that technically related so that its one command?13:16
PeterBooker left13:17
_ikke_ git checkout has two main modes13:17
brisbin joined13:17
mizu_no_oto left13:17
PeterBooker joined13:17
Nevik serapath: the git CLI ui is not very well-thought-out in some parts; it just grew over time13:17
AaronMT joined13:18
Nevik there's always certain justifications for why things are the way they are; but you're right, checkout has some very distinct tasks13:18
scampbell joined13:19
normanrichards left13:19
jast serapath: that part isn't so complicated, really... it fetches stuff from the index into the working tree, and can optionally fetch a different version into the index first. the fun part is that it has a completely different mode that is used for switching branches. :)13:19
Xethron left13:19
Nevik ^13:19
buibex joined13:20
Nevik where the latter mode will not lose uncommitted changes (unless --force), while the former one may do that13:20
albel727 joined13:21
jazz264 left13:23
devoldmx3 left13:24
sriracha left13:24
devoldmx joined13:24
OOPMan joined13:24
stamina left13:24
ewnd9 joined13:25
jfoy joined13:25
papegaaij left13:25
Pullphinger joined13:26
Pullphinger left13:26
OnO joined13:26
jerius joined13:26
devoldmx left13:27
Risto- joined13:27
devoldmx joined13:27
pbujok joined13:27
fission6 joined13:27
Pullphinger joined13:27
echo-are` joined13:28
echo-area left13:28
jfoy left13:29
devoldmx3 joined13:30
RaceCondition joined13:30
raonyguimaraes joined13:31
devoldmx left13:32
TeckniX joined13:33
LuxuryMode joined13:35
GODDOG left13:35
worstadmin joined13:36
Chiko left13:37
petey joined13:37
Dougie187 joined13:38
sriracha joined13:38
rfoust joined13:39
phile joined13:39
frankstallone joined13:39
cmpera left13:40
abstrusenick left13:41
echo-are` left13:41
Katafalkas left13:41
thierryp joined13:42
jnavila left13:42
echo-area joined13:43
Destos joined13:43
thierryp left13:43
thierryp joined13:43
fission6 left13:44
OnO left13:45
anli joined13:45
anli Can I stash push being in branch B, then switch to branch A and stack pop the changes?13:45
So I dont have to commit changes to branch B13:45
masak yes.13:46
!tias13:46
gitinfo 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.13:46
serapath can i tag 2 commit objects with the same tag?13:46
masak no.13:46
_ikke_ no13:46
serapath why is it called tags then?13:46
_ikke_ serapath: Because it's an established term in vcs13:47
serapath confusing13:47
moritz and older than the terminology used on blogs, I believe13:47
PaulCapestany joined13:47
dr_lepper anli: if the difference between branches allows it, you can just switch to branch A13:47
moritz which should really say "labels" instead of "tags"13:47
sharpshooter left13:47
serapath so a tag is a label instead13:47
dr_lepper anli: e.g. if you've changed files that are the same in both branches13:47
anli thanks :)13:48
Stalkr^ left13:48
serapath s/instead/then13:48
dr_lepper serapath: no, tag is a tag; there's a 1-1 relationship between tags and commits13:48
cmpera joined13:48
serapath semantically, thats a label13:49
tqrst left13:50
CKyle joined13:50
h_kon left13:50
hwrd|work joined13:51
Remram is there an easy way to remove untracker branches?13:52
RaceCondition left13:52
kesha joined13:52
Remram untracked*13:52
anli the stash trick worked fine13:53
_ikke_ What do you mean exactly with untracked branches13:53
?13:53
matanya left13:53
shinnya joined13:54
jefflyne joined13:54
dbuch left13:54
Remram _ikke_: remote-tracking branches in refs/remotes/*/13:55
which do not have a fetchspec13:55
EvilDMP joined13:55
conan_ joined13:55
simesy left13:56
Remram remote prune doesn't do it13:57
branch -d doesn't even accept it13:57
oh, branch -rd does... but still, something automatic would be better13:57
_ikke_ afaik there is not something automatic13:58
vince_prignano joined13:58
bitkiller joined13:58
kesha left13:59
kermit left14:00
soee left14:00
donmichelangelo left14:00
yezariaely left14:00
sivler joined14:00
Squarism left14:00
donmichelangelo joined14:01
mw44118 left14:01
dyng joined14:01
EdPoole joined14:01
EdPoole left14:02
Guest60019 joined14:02
petey left14:02
iamjarvo joined14:03
dwmw2_gone joined14:03
petey joined14:03
tang^ joined14:03
serapath git checkout master14:03
git checkout HEAD~114:04
am i still on master or am i detached?14:04
moritz detached14:04
serapath thx14:04
Guest60019 left14:04
Seb joined14:04
Seb hi fellows14:04
ox_ joined14:04
_ikke_ serapath: both git status and git branch will tell you that14:05
tvw left14:05
Seb i'm simulating a merge of branch bar over branch foo, and finding some conflict; what is the cleanest way of changing foo (adding a commit to it, ideally), to ensure that next time the merge will have no conflicts ?14:05
jast serapath: have you ever tried using the same dog tag for two dogs at the same time? they don't like that ;)14:06
shoshin joined14:06
serapath _ikke_: im asking, because "git log --graph" visuals make me believe that a branch is something like a path14:06
devoldmx joined14:06
kesha joined14:06
Seb hrm, of changing *bar* I mean14:06
arjun_ left14:06
moritz Seb: you could merge foo into bar14:06
dbuch joined14:07
moritz Seb: then the next time you merge bar into foo, all the conflicts will already be resolved14:07
Fandekasp left14:07
devoldmx3 left14:07
serapath jast: actually i only know snoopy and rantanplan and i tag them both with dog14:07
subhojit777 left14:07
jast serapath: I mean these things: http://en.wikipedia.org/wiki/Pet_tag14:07
Seb moritz: unfortunately I can't do that yet, that's too many changes14:08
jast try using one collar for two dogs14:08
mmitchell joined14:08
jast I guarantee you it'll be rather difficult14:08
Seb moritz: i'd just like to "incorporate" the conflict resolution at this point into bar14:08
moritz Seb: merging foo into bar is not more difficult than merging bar into foo14:08
tvw joined14:08
jast this is the meaning of "tag" that presumably coined the usage in revision control14:09
mw44118 joined14:09
kcj joined14:09
moritz anyway, I have no other idea; maybe somebody else here does.14:09
sivler left14:09
serapath jast: i see, so if a tag is some kind of unique identifier, then how should those thinge be called which are "tagged", as in web stuff14:09
kbart left14:10
serapath i still have a question regarding branches.... what do those paths shown by "git log --graph" tell me if its not branches?14:10
jast if you want to distinguish them, I guess you could call those "keyword tags"14:10
D9_ left14:10
mizu_no_oto joined14:11
sriracha1 joined14:11
malukenho left14:11
Dougie187 left14:11
serapath jast i will just call them "cats" instead :P14:11
sriracha left14:11
GT4066 joined14:11
jast feel free to :)14:11
sivler joined14:11
sivler left14:11
jast to answer your question of branches, let's distinguish two concepts14:12
sivler joined14:12
Seb moritz: i can't; foo is just not meant to be merge into bar (think "master" branch vs. "bugfix" branch)14:12
jast one is the "branch name", implemented as a ref14:12
Seb merged*14:12
Cromulent joined14:12
tvw left14:12
sivler left14:12
jast the other is a property of history: two lines of history that have the same parent in the history DAG, possibly merging back together at some point14:12
serapath jast: not only that, but as a moving ref, if u commit something new14:12
jast you can make the latter happen without ever defining any branch name14:12
gua_ould left14:12
vince_prignano left14:13
jast yeah... that, in turn, is implemented for symrefs (symbolic refs), most notably HEAD14:13
when you commit to HEAD and it's symbolic (i.e. points to a ref rather than a commit ID), the ref is updated14:13
serapath but how can one distinguish which is the "real path" of a given branch if there has been a merge in the past14:13
moritz Seb: so maybe you want to rebase the bar branch on top of foo14:13
jast you can't fully distinguish that after the fact14:14
nemesit|znc left14:14
moritz serapath: all of them are real14:14
cff left14:14
jast what you *can* tell is which line of history was the target of the merge, because the list of parents of a merge commit is ordered14:14
serapath moritz: but "git log --graph" visualization does not let one assume that14:14
jast if you're on branch foo and do 'git merge bar', the merge commit will have the commit at foo as its first parent, and the commit at bar as its second parent14:14
ezakimak_work i popped a stash, and it had merge conflicts. I resolved them and added the changes to the index, what do I do next to clear that stash? git stash clear? git stash drop?14:15
jast --graph represents that by drawing the first parent line to the left and the second to the right14:15
ezakimak_work i don't see a --continue like with cherry-pick14:15
jast ezakimak_work: drop14:15
acharlieh joined14:15
serapath jast but that is kind of random and artificial... i mean like people who marry and then u flip a coin which name continues14:16
thierryp left14:16
shoshin left14:16
axl_ joined14:16
devoldmx left14:16
jast the names are pure convenience14:16
ezakimak_work can a merge commit have any number of parents?14:17
jast all that matters to git, in the end, is history14:17
j416 ezakimak_work: no, only 2 or more14:17
Dougie187 joined14:17
hwrd|work left14:17
jast ezakimak_work: two or more, but merges with more than two parents are rare and not particularly useful14:17
ezakimak_work that's what i meant, no upper bound14:17
PeterBooker left14:17
devoldmx joined14:17
PeterBooker joined14:17
robbyoconnor left14:17
jast by specifying more than one ref when calling 'git merge', you can create an arbitrarily octopus-y merge14:18
hwrd|work joined14:18
jast don't do that, though :}14:18
ezakimak_work wasn't planning on it14:18
just curious14:18
jast sure14:18
Cromulent left14:18
jast it's a property of the data structures that turned out to be interesting but not useful14:18
and it never got removed14:18
serapath so HISTORY is a tree than, but "git log --graph" shows me a STORY LINE, right?14:18
crankharder joined14:18
dsdeiz left14:19
serapath s/than/then14:19
jast history isn't a tree, it's a DAG (directed acyclic graph)14:19
Swayz joined14:19
jast with the addition of an ordering on the outgoing edges14:19
and --graph shows you a visual representation of that14:19
serapath jast i think i was refering to something different. ...i tried to refer to the history of a commit object or a branch if u want14:19
jast u probably were refering to the whole repository i guess14:20
kermit joined14:20
jast all right, maybe I don't understand what it is that you're looking for. let's say you have a commit X. what seems to be missing?14:20
Davey_ left14:20
beautifulmind left14:20
serapath jast: following all possible pointers from that commit X creates a tree14:21
Davey joined14:21
paulweb515 left14:21
jast it doesn't14:21
serapath jast: commit X doesnt know its children14:21
jasonp joined14:21
jast it creates a DAG14:21
serapath ah14:21
ok i understand14:21
jast look at a merge commit14:21
serapath yes, u are correct14:21
jast the history splits in two, and joins back together eventually, as you travel through the past14:21
serapath there might be fork and merge14:21
jast (in most cases, anyway)14:21
exactly14:22
devoldmx left14:22
serapath would u call it a fork? because one might assume that i clone a repo of someone14:22
jast 'fork' is a term used for many different things14:22
serapath i would like to choose those terms that do not conflict with each other were possible14:22
jast its most general meaning is just what you said: a new line of development branching off of an existing one14:23
serapath so is there another word for when i create a new branch from an existing one and commit on that too?14:23
jast most people specifically mean "make a new clone and do stuff in it" when they say "fork"14:23
devoldmx joined14:23
jast github and some other hosting platforms encourage that terminology14:23
serapath jast: so its "branching" and "merging" instead?14:23
jast well, I'd call it "branching" :)14:23
serapath ok awesome14:23
andrewSC joined14:23
andrewSC hi all14:23
so I'm writing a bash alias where I want git fetch && git rebase current-branch master14:24
macabre joined14:25
jast andrewSC: why? git has 'git pull' for that14:25
just configure it to do that and you're done14:25
gratz left14:25
andrewSC jast: i don't want to merge my changes on my current/feature branch?14:25
jast not to mention that in your example' git fetch' does nothing14:25
'git pull' uses merge by default, but can be configured to use rebase instead14:25
andrewSC tl;dr i have commits on my current/feature branch that i want on top of the latest master14:25
hmmm14:26
jast well, that's not too hard14:26
andrewSC jast: that makes sense right?14:26
jast but the command you had in mind won't do that :)14:26
andrewSC oh haha14:26
jast you need at least one more command to make that happen... but OTOH you don't need to fetch, so that still makes two :}14:27
andrewSC hmmmm14:27
thierryp joined14:27
serapath can i delete a branch name? or rename it from "master" to "(detached)"?14:27
jast well, thinking about it, your command *will* work, but only if current-branch is based on the current version of master already14:27
serapath: git branch -d14:28
or -m to rename, but '(detached)' is a weird name :)14:28
serapath if i do that while i am on master, my head still points to the current active commit, right?14:28
andrewSC jast: right, I only branch from master when I work on features14:28
jast you can't delete the branch you're on14:28
but you could detach HEAD first14:28
serapath ah ok14:29
thx14:29
jast andrewSC: okay. so long as master hasn't changed in the meantime, your rebase command should do it... the fetch is unnecessary14:29
Malukenh_ joined14:29
fission6 joined14:30
Cymew left14:30
johnkpaul_ left14:31
andrewSC jast: what do you classify as change? Just to clarify, all I'm trying to do is get the latest commits from master and rebase them into my feature branch so that any commits i have in the feature branch stay on top14:31
fission6 left14:31
jast andrewSC: okay. so you want to change the feature branch, rather than master?14:32
lavaman joined14:32
dsdeiz joined14:32
pauli1 joined14:32
jast (and maybe update master from a remote repository before that)14:32
ErKa joined14:33
jeffreyio2 left14:33
OOPMan left14:34
danicampa901 joined14:34
fission6 joined14:35
petey left14:35
Burer joined14:35
Burer left14:35
Burer joined14:35
nemesit|znc joined14:36
andrewSC jast: right, I want to update the feature branch14:36
and you can assume my master branch locally has had git pull run on it14:36
so it is latest14:36
hholtmann joined14:38
arvind_khadri left14:38
nemesit|znc left14:38
nemesit|znc joined14:38
ErKa left14:38
harobed left14:38
petey joined14:39
iamjarvo left14:41
iamjarvo joined14:42
harobed_ joined14:42
alorence left14:42
kcj left14:43
onethfour you can check out a commit?14:43
i thought you could only check out branches14:43
maroloccio joined14:43
quizzi joined14:43
onethfour what is HEAD?14:43
gitinfo set mode: +v14:44
j416 onethfour: HEAD is the commit you are currently on14:44
onethfour oh14:44
j416 onethfour: if you are on a branch, HEAD points to the branch head14:44
onethfour so what is the point of doing git checkout HEAD^214:44
j416 onethfour: if you are not on a branch (detached HEAD), your HEAD points to a commit directly14:44
mikecmpbll left14:45
cbreak-work "Rip HEAD off and put it onto the second parent of the current merge commit"14:45
mikecmpbll joined14:45
j416 onethfour: maybe you want to look at the state of your project at a certain commit without having to create a brnach for it?14:45
pauli1 Hi everybody. In the git book on the git web site, at chapter 2.2, the Figure 2.1 show that adding a "untracked" file make it become "unmodified", but if I add a untracked file in my working dir it becomes "Staged". Is that figure wrong?14:45
onethfour i've been using git for probably 9 or 10 months now and i've never had to checkout a specific commit14:45
only branches14:46
j416 onethfour: so don't14:46
chrisshattuck joined14:46
onethfour why would you want to? what power does it give you?14:46
maleknet left14:47
j416 onethfour: there are a lot of use cases14:47
fss7546 joined14:47
onethfour to modify that specific commit?14:47
jefflyne left14:47
fss7546 is there a way to sign all previous commits in a git repository with a gpg key if they weren't signed before?14:47
j416 onethfour: debugging to name one. Perhaps there is an error and you want to run your test suite on an earlier commit to see if the error is there too.14:47
fss7546: filter-branch perhaps. Not sure.14:48
fss7546: yes, you should be able to do it with filter-branch.14:48
Jackneill joined14:48
mastro joined14:48
j416 fss7546: although, history will of course be altered.14:48
fss7546 thanks, I will try it14:48
jast andrewSC: then all you should need to do is, while on the feature branch, 'git rebase master'14:49
Norm_ left14:49
kevwil joined14:49
Sakako left14:49
andrewSC jast: hmmm14:49
paulweb515 joined14:49
m0ltar left14:50
moben joined14:50
moben Is there a setting I can set to make commit -a add untracked files?14:51
jnavila joined14:51
ojacobson joined14:51
marhaban joined14:51
j0ran2 left14:51
j0ran2 joined14:52
PerlJam moben: sure ... just "git add" them first ;)14:52
Remram hmm my company is using a automatic script to extract the list of bugfixes and new features from the log14:52
into a changelog14:52
fss7546 left14:53
bitkiller left14:53
Remram currently they are using <feature>added more colors</feature> and <ticket>123</ticket>14:53
what do you think is a good format?14:53
Cromulent joined14:54
Remram it's better if it doesn't interfere with github's parsing of commit messages14:54
AaronMT left14:54
_ikke_ Why not: Feature: The feature\nTicket: #12314:54
jceb left14:54
moben PerlJam: the point is that I mostly edit files and mostly use 'commit -a'14:54
Remram that's what I was thinking14:55
quizzi left14:55
moben PerlJam: and then sometimes I add a new file and forget to add14:55
Remram it's close to the Signed-off-by: format14:55
rabbite joined14:55
OnO joined14:55
xxpor left14:55
pauli1 moben: why not use add -A?14:55
cmpera left14:56
rabbite In order to see the difference between develop and master branches is14:56
jnavila left14:56
rabbite (master)$ git diff develop14:56
jnavila_ joined14:56
mbease joined14:56
rabbite that the correct syntax?14:56
Remram git diff develop..master14:56
bwreilly joined14:56
Remram git diff develop will diff develop with your working tree14:56
_ikke_ git diff takes two commits, not a range14:56
jast it supports ranges, too14:57
rabbite hm14:57
cmpera joined14:57
Remram git diff --cached develop will diff develop with your index14:57
ojacobson It "supports" ranges by parsing them as if they were two commits14:57
_ikke_ yes, but it's just the same as two commits14:57
jast git diff a..b is the same as git diff a b14:57
_ikke_ yes14:57
jast git diff a...b is more interesting14:57
rabbite I want to see if my master and develop branches are identical after a merge, is diff the right tool?14:57
_ikke_ yes14:57
m0ltar joined14:57
jast personally I prefer looking at the history14:58
Remram probably not14:58
jast but if you prefer diffs, why not14:58
ojacobson: three-dot ranges actually have a different meaning14:58
rabbite Here's a related question. Assume master has 1 hotfix that is not represented in develop. Come time to merge develop to master, is there a faster way to get develop up to date than develop > master, master > develop?14:58
jast git diff a...b == git diff `git merge-base a b` b14:58
Remram yiy should do git log master...develop14:59
ojacobson jast: sometimes they're the symmetric set difference of the two histories! Sometimes they're the merge base of the two commits!14:59
Remram if you want the refs to be the same, and not point to versions with the same content14:59
heinrich5991 joined14:59
harobed_ left14:59
jast ojacobson: the only time the merge base comes in is while diffing. in all other cases it's symmetric difference.14:59
ManDay joined14:59
ojacobson jast: it's also the merge base for at least one rebase option, and I think also at least one checkout option14:59
jerius left14:59
ManDay I've committed and pushed. What's the correct way to return to the direct parent and push that change to the remote?14:59
introom joined15:00
jast rabbite: ... just merge develop to master? :)15:00
ojacobson jast: man git-rebase, check the --onto option :)15:00
gitinfo jast: the git-rebase manpage is available at http://jk.gs/git-rebase.html15:00
ManDay I tried git set --hard <theparent> ; git push ; but that wont work15:00
mbease left15:00
taptapdan joined15:00
_ikke_ ManDay: try git reset instead of set15:00
ManDay _ikke_: That's what I did15:00
typo15:00
rabbite jast: That won't put the hotfix on develop though, it only brings develops changes into master, not the reverse15:00
ManDay _ikke_: Still it says, when I try to push, that the remote is ahead of me15:01
g0bl1n joined15:01
rabbite ManDay: git reset —hard <parent>15:01
_ikke_ ManDay: You have to force pusbh15:01
ManDay _ikke_: ah15:01
jast rabbite: right... so you have to do two merges because you want two merges. makes sense to me. :}15:01
_ikke_ ManDay: !rewrite15:01
gitinfo ManDay: [!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), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum15:01
jast ojacobson: I wasn't aware of that synta15:01
x15:01
rabbite also, git reset —HEAD <parent> works sometimes15:01
ManDay _ikke_: what's the alternative?15:02
thiago_ joined15:02
jast --HEAD doesn't exist :}15:02
jerius joined15:02
ManDay How can I just add the reverted commit on top of itsself?15:02
ojacobson jast: I think git-checkout accepts it in one mode too, one sec while I remember15:02
jast ManDay: 'git revert'15:02
ojacobson jast: ah, here it is:15:02
jast ojacobson: yeah, it does... interesting15:02
ManDay jast: ty15:02
ojacobson :)15:02
rabbite _ikke_: instead of a reset, you'd recommend reversing the code change in a second commit?15:03
valgrind joined15:03
jast that's pretty crazy15:03
ojacobson IMO it's useful enough that it deserves its own syntax, rather than overloading ...15:03
rabbite I get the reasoning there, just want to be clear that's whats suggested.15:03
ojacobson or that symmetric diff should be a separate syntax, whichever15:03
_ikke_ If I know no one has pulled from the repo, I would just force push15:03
ojacobson Then it'd work in other places15:03
jast rabbite: it's vastly preferable if other people already have a copy of the undesired history15:03
in other cases rewriting history makes sense15:03
konadr left15:04
jast it might make sense even if history has been shared already... but fixing all the copies is a major headache15:04
rabbite jast: you're correct, i was mistaking -head for -hard15:04
netiul left15:04
jast so really, rewriting public history is a last resort15:04
rabbite jast: assuming that you've pushed, but it was to a feature/ branch, you should be fine doing a reset before a merge to develop15:05
jefflyne joined15:05
jast rabbite: unless someone else is working on the same feature branch and got your changes15:05
rabbite I suppose it depends on your shop's workflow15:05
mw44118 left15:05
rabbite in my shop, it's rare to have more than one dev working on a feature branch15:05
EvilDMP left15:06
rabbite And we don't care about crazy dirty git logs15:06
jnavila_ left15:06
apipkin joined15:06
fss7546 joined15:06
tjbiddle joined15:07
simesy joined15:07
tjbiddle left15:07
dougsland left15:07
rabbite ugh, one of my team members keeps putting # signs in his branch names >.<15:07
thierryp left15:08
boblee joined15:08
gua_ould joined15:08
fss7546 I've got one more question on signed git commits15:09
if git objects are named by an SHA1 hash over the contents of the commit, the date, and the SHA1 hashes of the commit parents15:10
if I understand correctly how git works15:10
would it suffice to just sign the latest commit with a gpg key15:10
in order to trust the whole repository?15:10
cyphase left15:10
Stalkr joined15:10
Xethron joined15:11
ics left15:11
simesy left15:11
jast fss7546: the history of that particular commit, yes.15:11
ox_ left15:12
jast in fact that's why signed tags exist (and they've been around for much longer than signed commits; that's a comparably recent addition): they allow you to easily sign releases15:12
rabbite Hmm, my GitLab repo is showing branches that command line git can't find.15:12
_ikke_ rabbite: does git branch -r show them?15:12
rabbite: It's also possible that they live in namespaces that don't get automatically fetched15:13
maestrojed joined15:13
fss7546 thanks, I think it's not necessary to sign all the previous commits if I just started signing the new ones15:13
rabbite ahh yes, there are tons in -r15:13
is there any way to delete them?15:13
_ikke_ fss7546: Nope15:13
moben left15:14
_ikke_ rabbite: If you only delete them locally, they'll reappear the next time you fetch15:14
cyphase joined15:14
jast rabbite: git push --delete15:14
cbreak-work left15:15
fss7546 left15:15
Stalkr left15:15
qknight joined15:15
dbolser joined15:15
shoshin joined15:16
rabbite I see. Can I specify a branch with git push —delete?15:16
dbolser sorry for noobs... how do I list the commits different between two branches (assuming one can be ff onto t'other)15:16
_ikke_ rabbite: yes15:16
FernandoBasso joined15:16
schemanic left15:16
Risto- left15:16
pepper_chico joined15:16
_ikke_ dbolser: git log <branch1>..<branch2>15:16
Risto- joined15:16
_ikke_ That shows commits that are in branch2, but excludes the commits that are in branch115:17
schemanic joined15:17
dbolser _ikke_: tys15:17
PeterBooker left15:17
dbolser and '..<branch2>' assumes current branch on the lhs?15:17
PeterBooker joined15:17
_ikke_ yes15:18
dbolser thanks again15:18
LuxuryMode left15:19
pauli1 left15:19
ayaz left15:19
rudak left15:19
qknight hi. i have a strange git problem: when i add 18 branches to a remote repo and do a fresh 'git fetch --all' it works. if i add another branch it does not anymore. i have made some traces using wireshark and i can see that the failing git fetch --all seems to send tcp data over and over and the client 'git fetch --all' will never terminate15:21
Stalkr joined15:21
yhager joined15:21
cigarshark joined15:21
ThomasLocke left15:22
schemanic left15:22
qknight i have generated a log of the request but i don't understand that either, seems to be some internal git protocol: https://gist.github.com/qknight/679547415:22
any idea welcome!15:22
threesome left15:23
schemanic joined15:23
adac joined15:23
adac in a hook, is it possible to execute a file from within the git repository without checking out the repo into another folder?15:24
stamina joined15:24
qknight maybe this is a git bug, on the server i use: git 1.7.9.5 while i use: git 1.8.3.2 on the client; in the /var/log/apache/errors.log i see: fatal: protocol error: bad line length character: �15:24
Zarthus joined15:24
jaiballistic joined15:24
Dougie187 left15:24
gitinfo set mode: +v15:25
jaequery joined15:25
jaiballistic hi new to git, just did a git svn clone of my svn repository which cloned the whole thing, I want to just checkout one of the tags, do I just go into newgitrepo/tags/mytagver1 and start hacking away?15:25
rath left15:25
Droolio left15:25
adac gtg. I'll ask you later again :)15:25
adac left15:25
jfoy joined15:25
Misan left15:25
Stalkr left15:25
aartist joined15:26
pandeiro joined15:27
tuxx joined15:27
Seb left15:27
tuxx left15:27
Ziber_ joined15:28
Ziber left15:28
lb1a left15:29
LuxuryMode joined15:29
gua_ould left15:29
tuxx joined15:29
VictorCL left15:30
schemanic left15:30
tuxx left15:30
Ziber_ left15:30
aep if i have a merge between two large branches, how do i make git log only display changes from one branch or the other?15:30
Ziber joined15:30
aartist left15:30
jfoy left15:31
mikepack left15:32
Squarism joined15:33
Dougie187 joined15:33
cilly joined15:33
cagedwisdom left15:33
leeN joined15:34
DoniRS left15:36
aartist joined15:36
hwrd|work left15:36
milki aep: /me reads man git-log15:36
gitinfo aep: the git-log manpage is available at http://jk.gs/git-log.html15:36
dyng left15:37
harobed joined15:37
mindriot101 left15:37
bamdad joined15:38
dfanjul left15:38
milki aep: maybe --first-parent maybe?15:39
bamdad Hi15:39
Cromulent left15:39
aep milki: yeah thought so too, but i get the same result15:39
yhager left15:39
milki --left/right-only?15:39
aep same15:39
bamdad Github API doesn't have support for revert. I wonder if there is anyway to replicate the same effect of revert15:39
milki shrugs15:39
simesy joined15:39
mam[idl] joined15:39
milki aep: try !lol15:39
gitinfo aep: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all15:39
Squarism left15:39
milki and derive something useful from that15:40
consumerism left15:40
mklappstuhl left15:40
aep yeah, but i have a coworker who is very confused by how branches work. he doesnt want to see the changes that come in via a merge15:40
simesy left15:40
mikepack joined15:40
simesy joined15:40
aep i was hoping --left-only does that :/15:41
osse --first parent does that.15:41
dhruvasagar left15:41
mikepack left15:41
nmpro joined15:41
renumi left15:42
osse at least it should, because it does that here15:42
milki well, if the first parent is actually correct15:42
Neon1024 joined15:43
aep hm it works fine for me too15:43
primitive joined15:43
milki occiasionally i see the parents mixed15:43
you just said it didnt15:43
milki shakes aep15:43
nmpro I have folders 1, 2, 3, etc in my repo. can I add a .gitignore inside the folder I want ignored during git pulls?15:43
ManDay left15:43
gitinfo set mode: +v15:43
Neon1024 Hey all15:43
cmpera left15:43
milki nmpro: gitignore has nothing to do with git pull15:43
samtuke joined15:43
nmpro milki: ahh ok.. new to git .. just trying to find a easy way to ignore folders in my repo ..15:44
Neon1024 Can anyone please give me some pointers on moving submodules around inside my repo? I have moved them and updated my .gitmodules and .git/config accordingly, but now git submodule doesn't output anything15:44
milki nmpro: !explain15:44
hmm doesnt work here15:44
theres something..15:44
nmpro lol15:44
milki uh15:44
aep milki: doesnt work on his machine. works fine for me15:44
milki step back and explain what you are trying to achieve15:44
aep maybe he screwed up the merge15:44
vurma left15:44
milki aep: use git lol to visualize it15:45
aep yeah15:45
thanks15:45
bamdad left15:45
mikepack joined15:45
cilly left15:45
akiva joined15:46
ciampix left15:47
Anticom left15:48
vkz joined15:48
AWinterman joined15:48
rafeca left15:49
Balliad left15:50
mikepack left15:50
iamjarvo left15:51
iamjarvo joined15:51
juril left15:52
vince_prignano joined15:52
geekbri left15:53
BSaboia joined15:53
OOPMan joined15:53
buibex_ joined15:55
dhruvasagar joined15:55
natechan joined15:55
psoo left15:56
buibex left15:56
iamjarvo left15:56
bwreilly left15:57
eletuchy left15:57
eletuchy joined15:57
boblee left15:59
boblee joined15:59
mindriot101 joined15:59
Alagar joined15:59
cred joined16:00
dyng joined16:01
eletuchy left16:02
johnkpaul joined16:02
rath joined16:03
simesy left16:03
dyng left16:03
mam[idl] left16:04
valgrind left16:05
Skrypter left16:05
dyng joined16:05
serapath left16:06
dhruvasagar left16:06
mindriot101 left16:06
yhager joined16:06
EvilDMP joined16:07
harobed left16:08
aChatir joined16:09
matanya joined16:09
breck7 joined16:09
g0bl1n left16:10
normanrichards joined16:10
Squarism joined16:11
mizu_no_oto left16:11
w0ng left16:11
Stalkr joined16:11
dyng left16:12
user258467 left16:12
mindriot101 joined16:13
D9_ joined16:13
LimeBlast left16:13
matanya left16:13
Skrypter joined16:14
mindriot101 left16:15
stamina left16:16
jaiballistic left16:16
Stalkr left16:16
mindriot101 joined16:17
PeterBooker left16:17
fission6 left16:18
EvilDMP left16:18
mindriot101 left16:19
bwreilly joined16:19
fRAiLtY- left16:19
Octalot left16:20
Stygia left16:20
mishok13 left16:20
jfoy joined16:22
dsdeiz left16:22
skorgon is there something like a merge strategy 'theirs' available?16:22
matanya joined16:23
jgornick Hey guys, branching strategy question here. I'm kind of following git-flow and my scenario is I merge a hotfix back into master, tag, then run regression tests. If my regression tests fail for the new release, does this mean I go in and make another hotfix and bump the version again for the fix?16:23
Octalot joined16:24
jargon left16:25
frankstallone left16:25
crass left16:26
Mars` joined16:26
raijin joined16:26
kewah left16:26
Norm_ joined16:26
CreekRock joined16:26
nemesit|znc left16:27
Error404NotFound joined16:28
CreekRock left16:28
moritz jgornick: why not test in the hotfix branch before merging?16:28
mizu_no_oto joined16:28
violinappren joined16:28
TomyLobo joined16:29
jgornick moritz: Good question, but in our case regression tests are run on our build server as we tests multiple browsers, environments, etc...16:29
violinappren Hello all, how may I reject all pushes to a branch from all users? Effectively making it a read-only branch.16:29
jgornick So, there's only one location to do regression tests.16:29
dbuch left16:29
donmichelangelo left16:30
hahuang61 left16:30
RaceCondishun joined16:30
mikecmpbll left16:30
rohiebrehieb16:30
DoniRS joined16:30
jxpx777 left16:30
donmichelangelo joined16:31
john_doe_jr left16:31
ewnd9 left16:31
fission6 joined16:31
petey left16:32
GODDOG joined16:32
nemesit|znc joined16:32
moritz jgornick: maybe tag commits you want tested, and have the build server test them (instead of master, or in addition to master) automatically?16:33
King_Hual joined16:34
simesy joined16:34
canton7 violinappren, if you're using gitolite, use that gitolite config. If you're hosting the repo yourself another way, see the pre-receive hook in man githooks. If you're using something like github, no16:34
gitinfo violinappren: the githooks manpage is available at http://jk.gs/githooks.html16:34
johnnyfuchs joined16:34
boombatower joined16:35
noname001__ left16:35
dougsland joined16:36
dhruvasagar joined16:36
FernandoBasso left16:36
achadwick left16:36
breck7 left16:37
hyperair left16:38
jgornick moritz: Hmmm16:39
nateshr joined16:39
w0ng joined16:40
nateshr left16:41
introom left16:41
RaceCondishun left16:41
jgornick moritz: I think I can look at it this way. I tag the release (1.1), regression tests run and fail, I create another hotfix to fix that issue, tag a new release (1.2), regression tests pass, a user finds a bug, I create a new hotfix for that bug, tag a new release (1.3), etc....16:41
eletuchy joined16:41
Katafalkas joined16:42
jasonroyle left16:42
jgornick moritz: With that type of a flow, I'm essentially treating regression tests the same as if a user finds an issue and reports it.16:42
simesy left16:42
threesome joined16:42
jgornick moritz: So, I'm always creating a new tag for each merge into master (which is what git-flow recommends) and then when there are any issues with that release, you create another hotfix and bump the version.16:43
Katafalkas left16:46
samtuke left16:46
marcio_ joined16:46
RaceCondition joined16:47
FatDarrel joined16:47
darnir left16:47
stamina joined16:47
kanzure_ joined16:47
moritz jgornick: well, if it were my workflow, I'd like to keep master free of regressions, so that you can really release from it any time16:49
RaceCondition left16:49
koda left16:50
devoldmx left16:50
spaceonline left16:50
PaulePanter In coreboot we need to store patch/diff files, which have whitespace error by design.16:51
Is there a way to exclude files from `git diff --check`?16:51
http://review.coreboot.org/#/c/3340/1/util/lint/lint-stable-003-whitespace16:51
Cromulent joined16:52
kanzure_ left16:52
thiago_ left16:52
cmpera joined16:53
geekbri joined16:53
moritz jgornick: another model (that the perl 5 core developers use) is to have special branch names if you want automatic regression tests; but I guess that doesn't mix too well with gitflow16:54
devoldmx joined16:54
mishok13 joined16:55
howlymowly left16:55
acharlieh left16:56
rurufufuss left16:56
CKyle left16:57
Mars` left16:59
jaiballistic joined16:59
geekbri left16:59
aChatir left17:00
pepper_chico left17:00
ChrisAnn left17:00
D9_ left17:01
jceb joined17:02
jcebGuest1442117:02
revyd joined17:03
Xethron left17:03
Amandil joined17:03
johnnyfuchs left17:03
Devastator left17:03
dhruvasagar left17:04
Cromulent left17:04
Risto- left17:04
johnnyfuchs joined17:04
shinnya left17:04
Risto- joined17:04
Risto- left17:05
raijin left17:05
Risto- joined17:05
whunt left17:05
matanya left17:05
Stalkr^ joined17:05
cwoebker joined17:06
dsdeiz joined17:06
kesha left17:07
iamstalkr joined17:07
cwoebker left17:07
Stalkr^ left17:07
cwoebker joined17:07
iamstalkr left17:08
hakril Hi ! just a question about remotes/origin/HEAD : why some repos show this ref with "git branch -a" and some others don't ?17:08
Risto- left17:08
Sonderblade left17:08
marhaban left17:08
Risto- joined17:08
Stalkr^ joined17:08
iamjarvo joined17:08
coldboot|laptop joined17:08
stamina left17:08
johnnyfuchs left17:08
staafl joined17:09
coldboot|laptop How do you get Git's pager.log settings to apply to aliases of the log command?17:10
violinappren left17:10
khushildep left17:10
kesha joined17:10
coldboot|laptop I have this config file here: http://pastie.org/8372632 but the settings in pager.log don't apply when I'm using one of my log aliases.17:10
tang^ left17:11
hahuang61 joined17:11
mmitchell left17:11
violinappren joined17:11
Roots47 joined17:11
tatsuya_o left17:11
taptapdan left17:12
RaceCondition joined17:12
intellix left17:12
Risto- left17:12
Holomorphism joined17:12
druonysuse left17:12
violinappren canton7: thanks17:12
violinappren left17:12
Risto- joined17:12
ErKa joined17:12
hyperair joined17:13
Stalkr^ left17:13
g41n left17:13
Lady_Day joined17:14
Risto- left17:14
PeterBooker joined17:15
iamjarvo left17:15
johnnyfuchs joined17:15
Risto- joined17:15
iamjarvo joined17:16
whunt joined17:17
Holomorphism I'm getting this error when I try to `git fetch`: http://pastebin.com/qzUqJqzV. I think the issue is related to Mac OS X… There are two branches, 'Hotfix' and 'hotfix/SearchPageProductGate', but I'm on an HFS filesystem (case insensitive), so I think the issue is with git creating .git/refs/origin/Hotfix as a file, and .git/refs/origin/hotfix therefore cannot be a directory. The question is… what do I do to stop seeing this error?17:17
juniorsilva7 joined17:17
Lady_Day left17:17
Holomorphism Er, that is, .git/refs/remotes/origin/[hH]otfix17:17
PeterBooker left17:17
PeterBooker joined17:18
juniorsilva7 left17:18
m0ltar left17:18
juniorsilva7 joined17:18
Exio4 joined17:18
angelsl left17:19
dhruvasagar joined17:19
buibex_ left17:20
iamjarvo left17:20
arussel left17:20
vigs joined17:20
arussel joined17:20
Mars` joined17:21
dsdeiz left17:21
ryxai left17:21
machouinard left17:22
Guest33959 left17:24
raijin joined17:24
iamjarvo joined17:24
matanya joined17:24
Risto- left17:25
Risto- joined17:25
Risto- left17:26
ErKa left17:26
normanrichards left17:26
revyd left17:27
geomyidae left17:27
matanya left17:28
gitpicker left17:29
geomyidae joined17:29
catsup left17:30
matanya joined17:30
catsup joined17:31
mmitchell joined17:32
hyperair left17:33
strategicpause joined17:33
eletuchy left17:34
nadirvardar joined17:34
eletuchy joined17:34
jhulten joined17:34
jgornick moritz: Thanks for your insight.17:35
jfoy left17:35
matanya left17:35
Spyro left17:35
geekbri joined17:36
Devastator joined17:36
cwoebker left17:37
aard_ joined17:37
matanya joined17:37
thiago_ joined17:37
badass joined17:38
eletuchy left17:38
refried_ joined17:38
badass Hello, I am having troubles getting a hook to execute. Specifically, I need post-receive to execute a simple 1-liner bash script after a push finishes to the server17:39
The problem is that the hook does not seem to be executing at all17:39
osse badass: chmod +x ?17:39
milki is it executable?17:39
jfoy joined17:39
milki is it named post-receive?17:39
badass yes, the file is 755 and it is named appropriately17:39
milki make it echo to stdout as well17:40
osse not post-receive.sh or anything like that?17:40
badass I have tried this17:40
Misan2 joined17:40
badass osse, no17:40
thiago_thiago17:40
badass I've even tried touching a file into /tmp17:40
with no success17:40
I do know that the push is going through successfully17:40
milki !repro with some ls -l please17:40
gitinfo 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.17:40
badass I will need to reproduce an environment which I can view the terminal session more appropriately17:41
as right now I'm using a stash plugin to mirror (push) the repo17:42
osse badass: the hook is on the server, right?17:42
badass yes17:42
the hook is on the server that is receiving the push17:42
mikepack joined17:42
ingof joined17:42
vince_prignano left17:43
cilly joined17:43
Risto- joined17:43
foist left17:43
aartist left17:43
vishal left17:44
osse and it's placed inside /path/to/bare-repo/hooks ?17:44
badass yes17:44
osse and you're using git, not jgit?17:44
badass correct17:44
matanya left17:44
osse hmm17:44
KaibutsuX left17:44
osse The only explanation I can think of is: some of what you've said must be a lie :P17:45
does the hook have a shebang?17:45
I think it'll work regardless, though17:45
juniorsilva7 left17:46
AWinterman left17:46
matanya joined17:46
juanmabc joined17:47
danicampa901 left17:47
badass it does17:47
and i have not lied... lol17:47
I can pastebin all of my stuff if I really must17:47
osse badass: what protocol do you push over?17:47
badass ssh17:47
juanmabcimbakbabedoll17:47
badass its just git push root@host:/path/to/repo develop17:48
osse you can make it says just e.g. echo "It works!" and it'll be displayed in your terminal17:48
cilly left17:48
stamina joined17:49
nmpro left17:49
canton7 badass, seen !hooks ?17:49
gitinfo badass: [!hook_pitfalls] Guidelines for writing hooks: 1. Consume all input (cat >/dev/null if you don't want it). 2. If you use any 'cd', also 'unset GIT_DIR'. 3. Don't git-pull in a hook (or any other script).17:49
Risto- left17:50
cirenyc joined17:50
badass lol17:50
i know all that17:50
thx though17:50
mam[idl] joined17:50
mam[idl] left17:50
mam[idl] joined17:50
cirenyc I mistakenly force pushed after a rebase before doing a pull. Is there any way to see if I removed any commits from origin?17:50
canton7 badass, I hadn't seen anyone mention it, and the "consume all input" thing catches lots of people out17:50
milki canton7: !fixup17:50
gitinfo canton7: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!17:50
ojacobson left17:51
canton7 milki, hmm?17:51
ojacobson joined17:51
badass thanks canton717:51
breck7 joined17:51
breck7 left17:51
vurma joined17:51
milki er17:51
breck7 joined17:51
milki thats not you :P17:51
cirenyc: !fixup17:51
gitinfo cirenyc: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!17:51
badass lul17:51
przemoc left17:52
cred left17:52
tonyj joined17:52
canton7 badass, ok, let's see some pastebins - I'm out of ideas too17:52
Burer left17:52
tsmith left17:53
badass Well, I just tried it from another repo (pushing from a local repo instead of stash) and I get my echos and the commands are being issued17:53
so I'm going to rule out the hook being the issue now17:53
tsmith joined17:53
canton7 aha cool17:53
maqr joined17:53
Xethron joined17:54
przemoc joined17:55
przemoc left17:55
przemoc joined17:55
cirenyc milki: Not finding yet what I'm looking for. I intentionally did a git push -f, but I don't see whether I removed commits on origin/remote by doing so. I stupidly forgot to pull and don't want to lose those commits.17:55
milki cirenyc: hm, so we need to go over what you want. what do you mean by "origin/remote" and "origin"17:56
do you mean the remote repo or your remote branches?17:57
svm_invictvs joined17:57
cirenyc milki: The remote repo, named origin.17:57
svm_invictvs If I am resolving conflicts and I want to resolve with "theirs"17:57
git checkout --theirs /path should be all I need right?17:57
milki cirenyc: ok, if you git push -f, then the commits on the remote side become unreachable17:57
antoks left17:57
milki cirenyc: however, like any other git repo, the commits are available locally until git gc17:57
cirenyc: also, they should be avialable in your local repo as well17:58
cirenyc milki: how do I find them locally?17:58
milki cirenyc: if you git reflog origin/branchname, you should see the history of the remote branch17:58
AWinterman joined17:58
mribeirodantas left17:58
milki or on the remote repo itself, git reflog branchname17:58
acharlieh joined17:58
vurma left17:59
cirenyc milki: I see "updated by push" and "fetch: sorting head"17:59
mikepack left17:59
milki i cant help you figure out what the commits are. you have to examine them yourself17:59
cirenyc Is this fetch: sorting head the HEAD commit prior to the git push -f?17:59
milki git log the sha and find out yourself18:00
aard_ left18:00
jnavila__ joined18:00
jehaby left18:00
dsferreira joined18:00
cirenyc got it. looks like i'm good. phew. thank you.18:00
^ milki18:01
Stalkr joined18:02
maqr left18:03
maqr joined18:04
ErKa joined18:04
hyperair joined18:05
melee left18:06
Stalkr left18:07
minim joined18:07
melee joined18:07
staafl why is "rebase" called that way?18:07
I get what it means, but isn't "replay" more intuitive?18:07
HG` joined18:08
dreiss joined18:08
OnO left18:08
canton7 it rewrites a set of commits such that they're based on a new commit - such that they have a new base18:08
DoniRS left18:10
imbakbabedoll left18:10
milki staafl: git config alias.replay rebaes18:11
done18:11
ErKa left18:11
staafl canton7, yes, but that's not the way i think about the process18:11
milki uh18:11
whats the acronym18:11
ftfy18:11
there18:11
dorkmafia joined18:11
cmn replay is called cherry-pick or sequencer depending on what you mean18:11
matanya left18:12
staafl at least my intuition is about replaying diffs rather than rewriting snapshots18:12
iamjarvo left18:12
staafl is that naive?18:12
canton7 staafl, well that's how the process worked, before the likes of rebase -i. It was purely to do with moving branches around - none of this editing business18:12
dorkmafia I have a bunch of files that are showing up as merge conflicts is there a way I can just take mine? i did git co --ours -- $(files) but still show up as AU18:13
melee left18:13
catsup left18:13
cff joined18:13
ErKa joined18:14
luxgeek left18:15
hwrd|work joined18:15
w0ng left18:15
GODDOG left18:16
refried_ left18:17
pantsman joined18:17
pantsman left18:17
pantsman joined18:17
PeterBooker left18:18
PeterBooker joined18:18
aldodelgado joined18:20
TGiFallen_ joined18:21
matanya joined18:21
TGiFallen left18:21
apipkin left18:21
gitpicker joined18:21
iamjarvo joined18:22
raonyguimaraes left18:23
jazz264 joined18:24
|Freeman| joined18:25
tobscore__ left18:25
tatsuya_o joined18:26
wakd left18:27
chrisshattuck left18:27
kesha left18:28
Fervicus joined18:28
oonska joined18:28
mizu_no_oto left18:28
Fervicus Hey. I am getting Permission denied (publickey) when pushing my repo (to both github and heroku).18:28
Even though I have uploaded my keys18:28
Any idea what's wrong?18:29
nicknisi joined18:29
nicknisi left18:29
Xethron left18:30
kongthap joined18:30
nicknisi joined18:31
acharlieh left18:31
Holomorphism I'm getting the error "unable to create directory for .git/logs/refs/remotes/origin/hotfix/SearchPageProductGate" when I try to `git fetch` (http://pastebin.com/qzUqJqzV). I think the issue is related to HFS being case insensitive… There are branches 'Hotfix' and 'hotfix/SearchPageProductGate', so I think the issue is with git creating .git/.../Hotfix as a file, and .git/.../hotfix therefore cannot be a directory. The question is… what do I do to stop18:31
Xethron joined18:31
JSharpe joined18:31
Stalkr joined18:32
Caritade left18:32
kongthap left18:32
TGiFallen_ left18:32
kongthap joined18:32
minim left18:32
dhruvasagar left18:32
Error404NotFound left18:33
eletuchy joined18:35
tobscore__ joined18:35
cmpera left18:35
HG` left18:36
simesy joined18:37
Holomorphism left18:37
nemesit|znc left18:37
Caritade joined18:38
TGiFallen joined18:38
shabob joined18:38
cmpera joined18:38
osmosis joined18:38
dsferreira left18:39
dhruvasagar joined18:39
huoxito left18:40
jefflyne left18:40
tobscore__ left18:40
aeontech joined18:41
strategicpause left18:41
doev joined18:41
nemesit|znc joined18:41
aeontech left18:42
codeFiend joined18:42
shuaib left18:42
stfn left18:43
eletuchy left18:43
staafl left18:44
GeertV left18:44
Guest14421 left18:44
kukks joined18:44
kukks left18:44
kukks joined18:44
staafl joined18:45
tsmith left18:45
diegoviola joined18:45
zackiv31 joined18:46
antoks joined18:46
thiago left18:46
codeFiend left18:47
jerius left18:47
russt_ joined18:48
russt_ left18:48
kongthap left18:49
antoks left18:49
Caritade left18:49
iamjarvo left18:49
nwertman left18:49
flaguy48 left18:50
Caritade joined18:51
flaguy48 joined18:52
flaguy48 left18:52
flaguy48 joined18:53
codeFiend joined18:53
kwmiebach left18:53
kwmiebach joined18:54
druonysus joined18:54
catsup joined18:54
thiago joined18:54
a____ joined18:54
g0bl1n joined18:55
frgtn left18:55
frgtn joined18:55
tinjaw joined18:56
vigs left18:57
tinjaw for my question, I shall refer to this image from the online version of the Pro Git book18:58
http://git-scm.com/figures/18333fig0332-tn.png18:58
jds "git fetch" is hanging for me, not quite sure why. "git fetch -vvv" shows a bunch of "got ack"s, then "Receiving objects: 60% (181/301)", at which point it doesn't seem to be doing anything18:58
aldodelgado left18:58
jerius joined18:58
TGiFallen left18:58
EugeneKay Fervicus - many ideas; `ssh -v [email@hidden.address] will tell you most of tem.18:58
But spelled right.18:58
tinjaw What I want to do is take C10 (and NOT C4 or C3) and merge it onto client18:58
jonkri joined18:59
EugeneKay tinjaw - man git-cherry-pick18:59
maqr left18:59
gitinfo tinjaw: the git-cherry-pick manpage is available at http://jk.gs/git-cherry-pick.html18:59
tinjaw I have never used patches before and am wondering if that is what I need to do.18:59
canton7 tinjaw, that's not a merge - merges merfe different branches, not individual commits18:59
a cherry-pick is the closest you'll get - that duplicates C10 after C9', so you'll have both C10 and C10'18:59
maqr joined18:59
matteo left19:00
tobscore joined19:00
TGiFallen joined19:00
frgtn left19:00
cmpera_ joined19:00
mFacenet joined19:01
dhruvasagar left19:01
fission6 i just did git add .; git commit -m 'whatever' on the wrong machine. how do i remove this commit ./ undo it and have the files become unstated as if nothing had happened19:02
tinjaw git-cherry-pick -- thx -- off to RTFM19:02
mizu_no_oto joined19:02
iamjarvo joined19:02
canton7 fission6, if you didn't push, git reset HEAD^ removes the commit, git reset --soft HEAD^ does the same but keeps the commit's contents staged19:02
(both keep all of the changes from the commit being removed in the working copy)19:03
cmpera left19:03
cmpera_cmpera19:03
ryxai joined19:03
fission6 i want the files committed to be brought back into the working copy (not staged though)19:03
canton7 git reset HEAD^19:03
fission6 but does that actually remove the commit19:04
staafl currently, is there a significant distinction between cherry picking and rebasing?19:04
fission6 that just resets19:04
jkremser left19:04
canton7 yes, resets to HEAD^19:04
removing HEAD19:04
fission6 right but that commit is still in the git status right19:04
its still a commit19:04
canton7 hmm?19:04
staafl other than the direction in which the commits move between the branches?19:05
canton7 fission6, just try it :P19:05
trust me19:05
TGiFallen left19:05
MacWinner left19:05
canton7 fission6, !reset19:05
gitinfo fission6: A good resource explaining git-reset is http://git-scm.com/2011/07/11/reset.html19:05
thelamest joined19:06
Caritade left19:06
tang^ joined19:06
iamjarvo left19:07
nwertman joined19:07
huoxito joined19:07
fission6 thanks canton719:07
canton7 basically, reset is to do with manipulating the current branch. reset --soft moves the current branch around without touching the index or working copy. --mixed (the default) moves the branch and index, and --hard moves all 319:07
now if you 'git reset [--soft|--mixed|--hard] HEAD', you're moving the current branch to itself, so that bit's a no-op - you're only manipulating the index and working copy19:08
Caritade joined19:08
freestyl3r left19:08
tinjaw left19:09
bauruine joined19:09
aldodelgado joined19:10
boki joined19:10
Fervicus EugeneKay: I just needed to ssh-add19:11
thanks19:11
zequence-work left19:12
youlysse` joined19:12
dhruvasagar joined19:13
gtmanfred joined19:13
infynyxx joined19:14
LuxuryMode left19:14
druonysuse joined19:16
druonysus left19:16
jehaby joined19:16
vince_prignano joined19:16
vince_prignano left19:16
nix joined19:16
boki left19:17
nixGuest697519:17
vince_prignano joined19:17
Guest6975 left19:17
maxorator is there any way to include the password in command line when doing git pull/push/etc?19:18
PeterBooker left19:18
PeterBooker joined19:18
maxorator I do not want to permanently store any credentials on the machine19:18
vince_prignano left19:19
vince_prignano joined19:19
canton7 use ssh auth, a passphrase, and ssh-agent?19:19
vince_prignano left19:19
yaroslav joined19:20
vince_prignano joined19:20
nemesit|znc left19:20
Jackneill left19:20
vince_prignano left19:20
doev left19:20
maxorator any tutorial anywhere?19:20
Davey left19:20
tobscore left19:20
ryxai left19:21
vince_prignano joined19:22
vince_prignano left19:22
osmosis left19:23
jazz264 left19:23
breck7 left19:23
cbreak a tutorial for something as simple as that?19:24
foucist joined19:24
jonkri left19:24
foucist i'm curious if it's possible to have some kind of git branch that is exactly like the master branch, but has configuration differences.. stays up to date with the master branch except for a few commits that are on that branch and automagically merge no matter what is done on the master branch?19:24
bremner maxorator: https://help.github.com/articles/working-with-ssh-key-passphrases19:24
foucist could be useful for having different server deployment setups19:24
cbreak foucist: just make a branch, then commit changes.19:25
tatsuya_o left19:25
foucist cbreak: hmm i suppose i could maintain a branch indefinitly and merge changes from master into that branch19:25
cbreak yes19:25
I hope you like subway maps.19:26
marcio_ left19:26
vince_prignano joined19:26
mribeirodantas joined19:26
TGiFallen joined19:26
foucist cbreak: i don't :(19:27
hwrd|wor_ joined19:27
foucist heh19:27
vince_prignano left19:27
hwrd|work left19:27
vince_prignano joined19:27
minim joined19:27
ryxai joined19:28
Davey joined19:29
TGiFallen_ joined19:29
danman joined19:29
SHyx0rmZ joined19:30
vince_prignano left19:30
vince_prignano joined19:30
TGiFallen left19:31
LucasTizma joined19:32
vince_prignano left19:32
mFacenet left19:33
tobscore joined19:34
yacks left19:35
diegoviola left19:35
Mars` left19:36
Ted_ joined19:37
alvaro_o joined19:37
jwmann_ joined19:38
diegoviola joined19:38
asQuirreL joined19:39
CKyle joined19:39
ingof left19:40
JPeterson joined19:40
[twisti]_i joined19:40
mfulz joined19:41
m0ltar joined19:41
codeFiend left19:41
marjorip joined19:42
JSharpe left19:42
Squarism i merged one branch into another (wo conflicts) but now i regret that - can it be undone easilty?19:42
Gamecubic joined19:42
[twisti]_i hello, i have a question, i use egit, and dont really understand, so i went with the default settings. i commited an existing project to a local repository, and it moved all my files there, and now works directly on the file it moved to that folder. is that right ? it folder also contains a subfolder named .git. are copies of my files in there ? if i do a local 'commit', will my data exist twice19:43
? if i empty that folder, but keep the .git subfolder, will i still have my data ?19:43
chrob joined19:43
shoshin left19:44
nemesit|znc joined19:44
GT4066 left19:44
milki [twisti]_i: that is called a non-bare repo. see !bare19:45
gitinfo [twisti]_i: 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/19:45
[twisti]_i thanks19:45
milki [twisti]_i: it is fine to work on those files19:45
LuxuryMode joined19:45
cbreak Squarism: did you push?19:46
Pullphinger left19:46
ingof joined19:47
codeFiend joined19:48
lazers joined19:48
Squarism cbreak, nope19:48
found : git reset --hard HEAD^19:48
is that correct?19:49
andrewSC alright, so here's the situation: I have a remote branch (let's call it feature) I created with commits that are different/need to be merged into master at some point. However, since my first push of this feature branch I've since pulled master and rebased master into my feature branch locally so those couple of commits are now at HEAD of my feature branch. When I try to push my local feature branch to my remote feature branch I get a19:49
cbreak Squarism: if you want to nuke it completely, and it is the msot recent commit, then yes19:49
serapath joined19:49
ryxai left19:49
andrewSC is behind my remote19:49
cbreak Squarism: it will also remove uncommitted changes19:49
andrewSC even though it's ahead?19:49
Squarism cbreak, then im ok19:49
fotis joined19:49
andrewSC tl;dr how do i resolve this? I don't like the idea of forcing the push19:49
Squarism cbreak, thanks for holding my hand there =D19:49
cbreak andrewSC: rebase rewrites history19:50
andrewSC dudeee.....19:50
cbreak andrewSC: rebasing master into anything is braindead. don't do it19:50
g0bl1n left19:50
andrewSC ------_________________________________________------19:50
nadirvardar left19:50
cbreak andrewSC: if you have rewritten public (pushed) history, you have to throw away either your history or the remote one19:50
so either force push, or reset away the local history.19:51
frgtn joined19:51
cbreak (you can merge it, but that'd be quite bad)19:51
andrewSC cbreak: I'll just force pull the remote then19:51
cbreak force pull?!19:51
andrewSC rather than reset?19:51
I'm not sure where the branches differ at this point?19:52
realeyes left19:52
cbreak andrewSC: git fetch and then run !lol19:52
gitinfo andrewSC: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all19:52
yuppie joined19:52
jasdel joined19:53
jasdel left19:53
andrewSC cbreak: getting broken pipe on the git fetch...... i think github is flaking out19:53
pain19:54
everywhere19:54
badass left19:55
onethfour Has anyone wrote a script when pushing to github, it afterwards displays a link to that commit on github?19:55
Balliad joined19:55
yaroslav left19:55
shoshin joined19:55
Balliad_ joined19:57
andrewSC cbreak: called it: https://twitter.com/githubstatus/status/38549305371867545619:57
breck7 joined19:58
Balliad left19:58
s2013 joined19:59
s2013 i keep getting a 403 error while trying to push to github19:59
jnavila__ left19:59
andrewSC s2013: https://twitter.com/githubstatus/status/38549305371867545619:59
rabbite So if I run "git push —delete" will it remove all listed refs or just the ones with no tracked branches?19:59
Pyrogerg joined20:00
cbreak rabbite: all you tell it to delete20:00
rabbite: and you have to use --20:00
s2013 k thanks andrewSC20:00
s2013 left20:00
apipkin joined20:00
jwmann_ left20:00
yacks joined20:00
Kabaka left20:01
rabbite For example: "git branch -r" reveals "origin/pre_jquery" which is no longer a branch20:01
jnavila joined20:01
rabbite git push —delete will remove it from the list?20:01
Squarism left20:01
simesy left20:01
rabbite I don't really understand how branch namespace works.20:02
Kabaka joined20:02
codyrobbins joined20:02
moritz git fetch --prune20:03
rabbite that will remove any old (and dead) branches?20:03
codyrobbins left20:03
normanrichards joined20:03
Devastator left20:03
rabbite I'm having an issue where branches that were deleted are still showing up in the gitlab dropdowns20:03
moritz: that helped, thanks.20:04
crankharder left20:04
codeFiend left20:04
cbreak rabbite: if you want to delete a branch from the remote, you have to tell it which20:04
rabbite: so if you want to delete origin's foo, git push --delete origin foo20:05
rabbite Hm, so git branch -rd origin/pre_jquery20:05
hm20:05
acharlieh joined20:06
rabbite fatal: --delete doesn't make sense without any refs20:06
:/20:06
Mars` joined20:06
chamunks left20:06
acharlieh left20:06
chamunks joined20:07
druonysus joined20:07
moritz git push origin :pre_jquery # iirc20:07
cbreak rabbite: branch has nothing to do with it20:07
druonysus left20:07
druonysus joined20:07
cbreak rabbite: it only works on local branches20:07
arussel left20:07
druonysuse left20:07
cbreak rabbite: look at my example20:08
rabbite git push --delete origin pre_jquery20:09
error: unable to delete 'pre_jquery': remote ref does not exist20:09
It should be noted that we migrated from Github to GitLab20:09
Balliad_ left20:09
shoshin left20:09
nmeum joined20:09
rabbite so it probably carried these entries with it, though they are not available on gitlab20:09
Mars` left20:10
nicknisi left20:11
Balliad joined20:11
Mars` joined20:12
cbreak rabbite: so it's already deleted20:12
rabbite Why does it still show up on git branch -r?20:13
acharlieh joined20:13
cbreak tracking branches are not pruned automatically20:14
once a branch is fetched, no one from the outside can take it away.20:14
(they can rewrite history though, remote tracking branches are usually forced)20:14
mribeirodantas left20:14
rabbite Ahh, so someone else is still tracking that branch?20:14
cbreak rabbite: you are.20:15
you have a tracking branch for it20:15
Xiti left20:16
rfoust left20:16
rabbite How do I stop tracking it then?20:16
cbreak rabbite: as said above, git fetch --prune will do that20:16
see man page for details20:16
rabbite It didn't though.20:17
But I'll read up anyway.20:17
sq-one joined20:17
el3ctron joined20:18
PeterBooker left20:18
cads joined20:20
onethfour How would I write a post-push hook which spits out a link to github.com/foo/bar/compare/<SHA1>...<SHA2>20:21
chrisshattuck joined20:21
tobscore left20:21
andrewSC cbreak: so how do you recommend I go about making this better?20:21
minim left20:21
cbreak onethfour: which ever language you want.20:21
onethfour ok where do i put it though?20:22
how do i get the last 2 hashes?20:22
cbreak onethfour: you probably want a post-receive though20:22
onethfour: read man githooks for your options20:22
gitinfo onethfour: the githooks manpage is available at http://jk.gs/githooks.html20:22
minim joined20:22
cbreak andrewSC: making what better?20:22
PeterBooker joined20:23
cads left20:23
cbreak andrewSC: first, look at your history, then think what you would like instead.20:23
andrewSC I mean, I know what I want--my commits on top of the master i rebased in20:24
but i think that screws up the pull request20:24
if i force pushed20:24
i think the diff would just get messed up20:24
onethfour How do i get the last 2 commit shas ?20:24
cads joined20:24
onethfour individually for usage in a script20:25
andrewSC realistically I think the best/simplest way to get this fixed is just to start over from the last push to my remote feature branch20:25
cbreak andrewSC: then go to your branch, git rebase master20:25
andrewSC i only changed one file20:25
i did20:25
cbreak so you didn't rebase master on your branch after all? good20:25
andrewSC: then, force push that branch20:25
that will kill the remote version and replace it with your local one20:26
onethfour: git rev-list -220:26
normanrichards left20:26
cbreak onethfour: of which ever ref you want20:26
cads left20:27
onethfour HEAD?20:27
andrewSC cbreak: right, but I don't know what happens to the pull request in github with that. because the diff from the previous version is gonna be a whole lot different since i did run git rebase master locally in my feature branch20:27
cbreak andrewSC: no20:27
andrewSC haha20:27
cbreak andrewSC: I doubt it'll change20:27
andrewSC really?20:27
cbreak just make a new pull request and throw your old away20:27
andrewSC: did you request a pull with a branch or a hash?20:27
BSaboia left20:28
andrewSC but comments from other users and stuff...20:28
cbreak: branch20:28
jceb joined20:28
jceb left20:28
cads joined20:28
cbreak then it'll either be the new branch or the old20:28
just try it out...20:28
Guest13625 joined20:28
cbreak if you tag the old hash before force pushing, then you can force push it later if you want to go back.20:29
onethfour how many chars is usually used for the short SHA-1 version?20:29
cbreak six or more20:29
consumerism joined20:30
consumerism is there a way to have git show me what would change in my working tree if i were to run git stash pop/apply? git stash show compares with HEAD but i'm interested in comparing against the working tree20:31
Xethron left20:32
starfox21 left20:32
hholtmann_ joined20:32
onethfour How do I get the repository name?20:33
rabbite You could git stash pop, git diff >20:33
zarubin joined20:33
rabbite *git diff20:33
onethfour: git remote -v ??20:34
no ??20:34
consumerism rabbite: i don't want to apply the stash, i only want to see what would change if i did20:34
rabbite just saying, try it20:34
Hmm, dunno if you can diff a stash20:34
git diff [options] <blob> <blob>20:35
This form is to view the differences between the raw contents of two blob objects.20:35
antoks joined20:35
rabbite Perhaps?20:35
hholtmann left20:35
hholtmann_hholtmann20:35
ojacobson rabbite, consumerism: the stash is implemented as a ref (refs/stash) and a bunch of reflog entries, both of which are valid arguments for anything accepting a revision20:36
including git-diff20:36
consumerism what's the ref for the working tree? i've gotten so far as "git diff HEAD stash@{0}" but this is the same as "git stash show -p"20:37
what do i use instead of HEAD to refer to the working tree20:37
andrewSC cbreak: alright, resolved the issue and chickened out with a reset --hard20:38
cbreak andrewSC: that's the other way.20:38
andrewSC moving forward, how do i keep my feature branch up to date with master and also maintain/be able to push new commits i make into the pull request?20:39
do i always just do a git pull and deal with the merges?20:39
git pull in my feature branch?20:39
ojacobson There's no ref for the work tree, because it's not an object20:39
rednaks joined20:40
ojacobson however, 'git diff' with one argument compares the work tree and the named object20:40
consumerism ojacobson: ah, got it. thanks20:41
git diff stash@{0} or git diff refs/stash are what i was looking for20:41
aldodelgado left20:42
stfn joined20:43
refried_ joined20:44
ojacobson 'git diff stash' should be sufficient20:45
man gitrevisions to see why20:45
gitinfo the gitrevisions manpage is available at http://jk.gs/gitrevisions.html20:45
danicampa901 joined20:45
geekbri left20:45
youlysse` left20:45
diegoviola left20:45
mikepack joined20:46
scampbell left20:46
tatsuya_o joined20:46
infynyxx left20:47
markovh left20:47
fission6 left20:48
markovh joined20:49
Guest17847 left20:49
dhruvasagar left20:51
jhulten left20:51
rcu joined20:52
threesome left20:52
iveqy onethfour: git doesn't have repository names20:52
mastro What happen if I rebase an history that contain a merge at some point?20:53
Can I re-do the merge at that point?20:53
_ikke_ rebase tends to flatten out merges20:53
cbreak andrewSC: you can either merge master into your feature branch20:54
andrewSC: or rebase your feature branch onto master (which you did)20:54
SamB mastro: rebase is documented not to do particularly nice things to merges20:54
cbreak the latter will rewrite history, so you can only force push20:54
SamB !tias20:54
cbreak the former will create merge commits (unless it is fast forward)20:54
gitinfo 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.20:54
onethfour iveqy, ok its a github thing thanks20:54
_ikke_ .version20:55
gitinfo _ikke_: .version: still at 1.8.4, not updating topic.20:55
andrewSC cbreak: so realistically speaking i want to fast forward only with the former to preserve commit history20:55
_ikke_ meh20:55
fission6 joined20:55
Fervicus_ joined20:55
cbreak andrewSC: you can't fast-forward, you have commits on the feature branch20:55
andrewSC :(20:55
TheBrainWork left20:56
normanrichards joined20:56
infynyxx joined20:56
Fervicus left20:57
FatDarrel left20:59
alexw joined20:59
LuxuryMo_ joined20:59
ryxai joined21:00
mastro which means my best bet is to manually rewrite my commit history and next time be more careful :D21:00
thanks SamB cbreak21:00
kcj joined21:01
LuxuryMode left21:01
samtuke joined21:01
skorgon joined21:01
phile left21:02
mizu_no_oto left21:02
Fervicus_ left21:02
koda joined21:04
sq-one left21:04
milki huh, --mirror is very destructive21:05
TIL21:05
itll delete and force push all day long without asking21:05
canton7 indeedy21:06
bremner yep. this led one person into such a rage the ended up being banned from #git21:06
Nugget I'm disappointed I missed that.21:07
iveqy milki: and dangerous, one big project (kde?) had a corrupt repo which lead to all their "backup repo" also destroyed21:07
milki its in the logs21:07
iveqy milki: do we have logs for this channel?21:07
milki !logs21:07
gitinfo [!irclog] Public logs of #git are kept at: http://colabti.org/irclogger/irclogger_log/git or look at stats for the last 30 days: http://itvends.com/irc/git.html or since Jan 1, 2012: http://itvends.com/irc/git-all.html21:07
_ikke_ !bot21:07
gitinfo [!gitinfo] I am an IRC bot which responds to certain keywords to provide helpful(?) information to humans. Please see http://jk.gs/git/bot for more information about how to use me.21:07
_ikke_ when was this?21:07
milki idunno when it was though21:07
bremner long time ago.21:08
well, 1 year?21:08
iveqy milki: thanks21:08
sbrath joined21:08
BombaUcigasa left21:08
fotis left21:08
[twisti]_i left21:09
sbrath I some how have detached my local git repo from my origin and am lost on how to re-attach, anyone willing to help me?21:09
MacWinner joined21:09
BombaUcigasa joined21:10
BombaUcigasa left21:10
canton7 sbrath, man git remote add21:10
BombaUcigasa joined21:10
gitinfo sbrath: the git-remote manpage is available at http://jk.gs/git-remote.html21:10
BombaUcigasa left21:10
ojacobson sbrath: "detached my local git repo from my origin" isn't entirely clear21:11
BombaUcigasa joined21:11
BombaUcigasa left21:11
ojacobson can you show us (gist/pastie a transcript showing the problem)?21:11
BombaUcigasa joined21:11
BombaUcigasa left21:11
sbrath sbrath@SBRATH-ENVY /c/users/sbrath/Documents/NetBeansProjects/Guild_Legacy ((20121:11
309292330-release))21:11
$ git branch -a21:11
* (detached from origin/sbrath-20131001-really-change-dynamic-tags)21:11
sbrath-20130926-shipping21:11
temp21:11
remotes/origin/master21:11
remotes/origin/sbrath-20130926-shipping21:12
remotes/origin/sbrath-20131001-really-change-dynamic-tags21:12
fotis joined21:12
BombaUcigasa joined21:12
BombaUcigasa left21:12
tang^ ow21:12
sbrath This is from Git Bash on my windows box, under the covers of NetBeans.21:12
FatDarrel joined21:12
BombaUcigasa joined21:12
BombaUcigasa left21:12
cmpera left21:12
worstadmin left21:13
ojacobson Ah, you ran 'git checkout origin/sbrath-20131001-really-change-dynamic-tags' didn't you21:13
!detached21:13
gitinfo A detached HEAD(aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach21:13
apipkin left21:13
ojacobson That's case (a)21:13
!reattach21:13
gitinfo Letters refer to !detached. (a) and (b): 'git checkout branchname' to continue working on another branch, or 'git checkout -b branchname' to start a new one here; (c) git am --continue; (d) git rebase --continue21:13
BombaUcigasa joined21:13
BombaUcigasa left21:13
acharlieh left21:14
BombaUcigasa joined21:14
BombaUcigasa left21:14
cmpera joined21:14
sbrath So I did a git checkout -b temp and that pulled in my local changes. Now I guess I just need to push that up21:14
BombaUcigasa_ joined21:14
FernandoBasso joined21:14
canton7 aah, that form of detached21:15
sbrath ojacobson: And I did do what you said.21:16
samtuke left21:17
rcu left21:17
tpollard joined21:17
rcu joined21:17
ngladitz left21:17
hoschi left21:18
joshh__ joined21:19
apipkin joined21:20
rcu left21:20
marthinal left21:20
acharlieh joined21:20
zarubin left21:21
joshh__ left21:22
jantman joined21:22
rabbite left21:22
BombaUcigasa_ left21:23
worstadmin joined21:23
jantman I'm trying to write a server-side update hook that runs syntax checks on changed files (only changed, not the whole repo). works fine for existing branches, but for a new branch, I can't seem to figure out how to get the changed files...21:23
anyone happen to know?21:23
BombaUcigasa joined21:23
BombaUcigasa left21:23
BombaUcigasa joined21:24
BombaUcigasa left21:24
jnavila left21:24
iveqy jantman: how is your script now?21:24
BombaUcigasa joined21:24
BombaUcigasa left21:24
iveqy jantman: and btw. shouldn't this be a part of your code-review process? I mean a good code review will catch things a syntax check would not21:24
BombaUcigasa joined21:25
jantman so for non-new branches, "git diff-tree -r $2 $3" does what I want21:25
iveqy: this is way before code review....21:25
this is "no, you can't push to origin at all if automated syntax checks fail"21:25
BombaUcigasa left21:25
jantman we have a bunch more CI and peer review beyond this21:25
BombaUcigasa joined21:26
BombaUcigasa left21:26
BombaUcigasa joined21:26
iveqy jantman: hmm, but that should work for a new branch too afaik. The new branch has a parent, yes?21:26
BombaUcigasa left21:26
cmpera left21:27
BombaUcigasa joined21:27
BombaUcigasa left21:27
fridim_ joined21:27
jantman well for a new branch, $2 (the "old hash") is 0{40}21:27
which diff-tree barfs on as an invalid ref, rightly so21:27
I don't see anything coming into the update hook arguments about a parent branch...21:28
Pyrogerg left21:28
breakingthings left21:28
iveqy jantman: but if you look at your local log, does the branch have a parent?21:29
(or is it orphan (git checkout --orphan))21:29
minim left21:29
No_One left21:29
jantman um...21:29
axl_ left21:29
jantman standby one21:29
donmichelangelo left21:30
acharlieh left21:30
kermit left21:30
jrnieder jantman: for new branches, you want diff-tree style format for comparing the empty tree to the new value?21:30
donmichelangelo joined21:30
jantman jrnieder: well all *I* want is a list of files that are changed in that branch21:30
jrnieder I think 'git diff-tree -r $(git mktree </dev/null) "$3"' should do the trick21:30
BombaUcigasa joined21:30
BombaUcigasa left21:30
jantman jrnieder: wouldn't that give me all files in the branch? period?21:31
jrnieder I mean21:31
mastro left21:31
BombaUcigasa_ joined21:31
BombaUcigasa_ left21:31
kermit joined21:31
jrnieder if test "$2" = 0000000000000000000000000000000000000000; then (that thing); else git diff-tree -r "$2" "$3"; fi21:31
_ikke_ Can't find anything in my logs about someone being banned after git clone --mirror21:31
BombaUcigasa_ joined21:32
jantman iveqy: what's the easy way to tell?21:32
BombaUcigasa_ left21:32
el3ctron left21:32
JokerxHarley joined21:32
Zarthus left21:32
iveqy jantman: !lol21:32
macabre left21:32
gitinfo jantman: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all21:32
jantman jrnieder: so if I run that in my local git checkout on the branch in question, I get a list of EVERY file in the repo...21:32
jrnieder jantman: sorry, let me back up a bit21:33
ojacobson left21:33
jrnieder you are writing a server-side "update" hook21:33
ShooterMG joined21:33
jrnieder in English, what should this "update" hook do?21:33
jantman jrnieder: syntax check every file that was added or changed21:33
LuxuryMo_ left21:33
jantman ignore any file that was already in the repo21:33
jrnieder added or changed = since before the fetch?21:34
or since when?21:34
jantman since the last "thing" that origin knows about...21:34
jrnieder you can have lots of branches, after all --- if I were doing the work of this hook by hand, which branch would I compare to?21:34
akurilin joined21:34
jrnieder hm, last "thing" = old value of that branch?21:34
jantman for an existing branch, the answer is easy: since the state of that branch that's OLD_HASH21:34
jrnieder or last "thing" = 'If I push first "master", then "next", then compare master..next'?21:34
cirenyc left21:35
BombaUcigasa_ joined21:35
jantman old value of that branch21:35
jrnieder ok, great21:35
BombaUcigasa_ left21:35
jantman however... if there is no old value of that branch on origin...21:35
BombaUcigasa_ joined21:35
BombaUcigasa_ left21:35
jrnieder so, I think 'git diff-tree -r --name-only "$2" "$3"' would do what you want when the branch already existed21:35
rednaks left21:35
jantman it should be (in english) "the latest version on origin, of whatever branch this one was cut from"21:36
jrnieder that leaves us two more cases: when the branch didn't already exist, and when the push is to delete the branch21:36
BombaUcigasa_ joined21:36
dorkmafia I have a bunch of files that are showing up as merge conflicts is there a way I can just take mine? i did git co --ours -- $(files) but still show up as AU21:36
jrnieder jantman: I see. git has no notion of what branch this one was cut from21:36
jantman jrnieder: yeah, that's what I'm using now, works perfectly for existing branches21:36
BombaUcigasa_ left21:36
devoldmx left21:36
BombaUcigasa_ joined21:36
jrnieder refs are just pointers into history. There can be more than one ref that points to an ancestor of the commit you're pushing.21:36
BombaUcigasa_ left21:36
yetet joined21:36
apipkin left21:36
jantman jrnieder: yeah I know, hence why I specified english. git speak would have to be... some sort of awful "since the last common commit with..... ????"21:36
devoldmx joined21:37
jrnieder well, even in English, if you hand me the existing history and the stuff you are pushing, you haven't handed me enough information to tell you the baseline to compare to21:37
jantman iveqy: so the graph looks like a grenade blew up in a pot of spaghetti...21:37
acharlieh joined21:37
jrnieder one possible answer is "for new branches, always compare to refs/heads/master"21:37
i.e., hard-code it21:37
jantman jrnieder: exatly...21:38
yeah... i suppose I could do that21:38
yeah, I guess it's a reasonably safe expectation. "if it's not in master, it's suspect, syntax check it"21:38
jrnieder another answer might be more appropriate. it depends on your workflow21:38
jantman if you cut the branch off something other than master, that's your problem...21:38
cool. thanks21:39
jrnieder sure thing21:39
jantman yeah that simplified it a lot :)21:39
have to run, but thanks again21:39
jrnieder np. cheers21:39
JokerxHarley left21:39
BombaUcigasa_ joined21:40
BombaUcigasa_ left21:40
jrnieder jantman: don't forget to handle the $3 = 0{40} case, too :)21:40
minim joined21:40
BombaUcigasa_ joined21:40
BombaUcigasa_ left21:40
jantman left21:41
Gamecubic left21:42
eletuchy joined21:42
bdavenport left21:42
cads left21:43
JokerxHarley joined21:43
PeterBooker left21:43
platzhirsch joined21:44
platzhirsch Can I git subtree a single file? I just want to link repo1/data/file.txt and repo2/file.txt21:44
jrnieder platzhirsch: I don't quite follow. what are you trying to do?21:47
platzhirsch I have a list in repo2, I don't want to copy the content all the time to repo1 which makes use of the same list21:48
JokerxHarley left21:48
platzhirsch so I thought git subtree would be useful21:48
iveqy platzhirsch: no you can't21:48
Gamecubic joined21:48
jrnieder platzhirsch: repo2 has other files, too?21:48
platzhirsch yes21:49
jrnieder I see. yeah, iveqy's right --- git doesn't have any good way to record that you're bringing in a subset of another repository21:49
threesome joined21:49
platzhirsch I thought that's what subtree is for, as opposed to git submodule, include a part of another repo21:49
jrnieder nope :)21:49
platzhirsch :|21:49
jrnieder you can make a single-file repo out of repo221:50
with git filter-branch21:50
and then include it as a submodule or a subtree in repo121:50
but that would be making a new history, with new commit ids, for the single-file history21:51
platzhirsch Seems a bit to much effort, but thanks for the idea :)21:51
jrnieder depending on how it gets used, just copying over the file now and then is probably more convenient21:51
platzhirsch yep21:51
iveqy platzhirsch: let's say that subtree really could pick just one file for you, you would still have to fetch the whole repo and track the whole repo so you wouldn't benefit anything21:51
diegoviola joined21:52
platzhirsch iveqy: yeah, I see that now21:52
cff left21:52
freeed joined21:54
psoo joined21:54
psoo left21:55
Droolio joined21:55
psoo joined21:55
BombaUcigasa_ joined21:56
BombaUcigasa_ left21:56
BombaUcigasa_ joined21:56
BombaUcigasa_ left21:56
BombaUcigasa_ joined21:57
BombaUcigasa_ left21:57
pantsman left21:57
tinjaw joined21:57
coldboot|laptop left21:58
m0ltar left21:59
BombaUcigasa_ joined21:59
BombaUcigasa_ left21:59
tinjaw left21:59
coldboot|laptop joined21:59
hholtmann left22:01
Ted_ left22:01
Dougie187 left22:01
Dreadnaught joined22:01
Ted_ joined22:01
Internet13 left22:02
Internet13 joined22:03
jehaby left22:04
Spyro joined22:04
staafl left22:04
mikepack left22:07
jerius left22:08
[twisti] joined22:08
AAA_awright left22:08
freeed left22:08
[twisti] how do i delete something from a remote repo22:08
devoldmx left22:08
[twisti] i did git rm file; git push22:08
but it says everything is up to date22:09
and the file is still there22:09
did i completely misunderstand how that works ?22:09
tang^ is that remote bare?22:10
doev joined22:10
osse [twisti]: you have to commit after git rm22:10
[twisti] oops22:11
bwreilly left22:11
[twisti] thanks22:11
Swayz left22:11
AAA_awright joined22:11
harobed_ joined22:12
infynyxx left22:14
cmpera joined22:16
rehieblehieb22:17
lehiebrohiob22:17
koda left22:19
Balliad left22:21
fission6 left22:21
fotis left22:23
chrob left22:24
minim left22:24
m0ltar joined22:25
minim joined22:25
v0n left22:25
infynyxx joined22:26
m8 left22:26
el3ctron joined22:27
ryxai left22:28
threesome left22:28
Ted_ left22:30
raijin left22:30
Ted_ joined22:30
[twisti] left22:31
Fandekasp joined22:32
cmpera left22:32
TeckniX left22:32
jhulten joined22:33
Guest13625 left22:36
eletuchy left22:37
eletuchy joined22:37
yuppierealeyes22:38
cjwelborn joined22:39
doev left22:39
harobed_ left22:39
andrewSC left22:39
decotii left22:39
cjwelborn omg, i suck at git. I'm having to manually fix a merge with lines like '<<<<<< HEAD (the good stuff) ======== (the bad stuff) >>>>>>> myrepo/master' ....is there a command that will just say keep everything in HEAD, delete everything in 'myrepo/master' ?22:40
danicampa901 left22:40
osse cjwelborn: git checkout --ours -- path/to/file22:41
cjwelborn osse: awesome, thank you. i knew there was something, I just didnt know what.22:41
osse cjwelborn: or maybe you just want to push --force to nuke away whatever you had in myrepo22:42
rath left22:42
johnnyfuchs left22:42
_iron left22:42
cjwelborn osse: also good. i may just do that.22:43
cmpera joined22:43
rigel left22:43
acharlieh left22:44
Swayz joined22:45
infynyxx left22:48
mmitchell left22:50
DrNick left22:51
DrNick joined22:52
tjbiddle joined22:52
jaequery left22:52
coldboot|laptop left22:52
el3ctron left22:53
tinti joined22:54
onethfour Does git version 1.7.10.4 have any serious flaws?22:54
I just staged only 1 file. Did a commit, and it says it committed like 15 files, the files had nothing to do with what I staged.22:55
el3ctron_ joined22:55
jaequery joined22:55
primitive left22:56
cagedwisdom joined22:56
osse did you use git commit -a ?22:56
had you added a bunch of files before and forgotten about i`t?22:56
jaequery left22:57
babilen left22:57
Destos left22:57
JosephFerano joined22:59
onethfour no i can show you the log, it is absolutely bizar22:59
babilen joined22:59
adaptr joined22:59
onethfour bizzar22:59
SJr left23:00
onethfour crap its "bizzare"23:00
SJr joined23:00
druonysus left23:00
druonysus joined23:01
druonysus left23:01
druonysus joined23:01
_nova left23:01
boboc joined23:02
jayrobot left23:04
Lunatrius` joined23:04
onethfour osse, can you look at this: https://gist.github.com/anonymous/6801846#file-2013-10-02_18-04-08-txt-L3723:05
Lunatrius left23:05
Kabaka left23:05
Lunatrius`Lunatrius23:05
onethfour line 37 is where it says 15 files changed???/ and not one of them is the file I committed23:05
Internet13 left23:05
jayrobot joined23:05
woollyams joined23:06
onethfour i think my git repo is screwed23:06
jhulten left23:07
onethfour either 1, my repo is screwed, my hard drive is hosed, my vm hard drive is hosed, or my git version 1.7.10.4 is hosed23:07
Kabaka joined23:07
ScottE or you did something wrong :-)23:07
Internet13 joined23:08
boboc left23:09
a-l-e left23:09
onethfour i just posted my log ScottE23:10
ingof left23:10
onethfour look at the times, all within 1 minute23:11
i did nothing23:11
diegoviola left23:11
onethfour and if I did, please tell me :(23:11
kevwil left23:13
fuzzybunny69y joined23:13
Misan2 left23:14
Destos joined23:14
ScottE onethfour: I guess I would look at what the script 'gitbcommit' does, it's when that was executed that the files showed up...23:16
onethfour i made that script and it output the command it sent23:17
but i'll double check it now23:17
lavaman left23:18
infynyxx joined23:18
cjwelborn left23:18
infynyxx left23:19
infynyxx joined23:19
Ozch left23:19
tagava left23:20
pfFredd left23:20
onethfour https://gist.github.com/anonymous/6802001 <-- this script just commits a message starting with the current branch name23:21
it is benign23:21
Mars` left23:21
onethfour see, its not my fault, something serious is wrong23:21
jasonp left23:22
Mars` joined23:22
boombatower left23:22
onethfour time for dinner!23:22
later23:22
platzhirsch left23:23
Stalkr left23:23
wrp6 joined23:24
babilen_ joined23:25
wrp6 I'm getting the message: "No submodule mapping found in .gitmodules for path 'php/Zfc/ZfcAdmin" upon executing git submodule update --recurisve23:25
Basically, I just cloned a repo with a lot of submodles, and I was hoping to pull all of them23:25
TomyLobo left23:25
iveqy wrp6: have you done a git submodule init?23:25
babilen left23:26
wrp6 Oh, right, sorry23:26
Actually, that does give me the same error23:26
(But it initializes the others as expected)23:26
iveqy wrp6: then I guess you've cloned a corrupted repo23:27
shinnya joined23:27
leeN left23:27
iveqy wrp6: if there's no mapping in .gitmodules then git won't know where to clone the submodule from23:27
wrp6 How does it know it's a submodule if there's no entry in .gitmodules ?23:27
(I thought .gitmodules was the onlyrecord of them)23:28
iveqy wrp6: no, the submodule is stored as a special file (which contains data on which commit to point the submodule to)23:28
the .gitmodules tells you where to find a submodule23:28
wrp6 Ah okay23:30
Amandil left23:31
wrp6 A number of the submodules just aren't being pulled -- but they have entries in .submodules23:32
What kind of problem could this be?23:32
Dougie187 joined23:32
wrp6 In fact only half of them were pulled, trying to figure out what could have been different between them23:33
tang^ left23:34
D9_ joined23:34
iveqy wrp6: are they present in your commit?23:35
and do you get any error message?23:36
normanrichards left23:37
wrp6 Well, the directories are all present, but in the clone they are empty. In fact, when it lists teh registered submodules at the start of submodule update --recursive, they seeem to be missing23:38
(But there are entries in .gitmodules in the local clone I have)23:38
pandeiro left23:38
LuxuryMode joined23:38
LuxuryMode left23:39
boombatower joined23:39
iveqy wrp6: is this a public project?23:39
wrp6 Nope, I just committed and then cloned remotely23:39
iveqy wrp6: what does git submodule tell you?23:40
wrp6 Outputs the same list as returned by submodule update --recursive23:40
(Of course with the hashes etc)23:40
jaiballistic left23:42
psoo left23:42
vkz left23:42
wrp6 Thanks for the help by the way. I will probably just scp the data over for now but it would be good to solve it in the long run.23:43
boombatower left23:44
iveqy wrp6: well, that's the list of submodules that commit contains, if you've more submodules listed in .gitmodules they are probably in an other commit or faulty removed23:45
danman left23:45
carpii joined23:46
gitpicker left23:46
carpii i just created a branch, made a commit, and then merged into master. I then started pushing to remote, but noticed id branched from the wrong branch. Now my master is diverged from origin/master and even git reflog cant seem to get me back to a clean setup. Is it safe to checkout local master and 'git reset origin/master --hard' ?23:47
i forgot to say, i CTRL-C'd the push before it completed, and having checked out remote repo, it looks unaffected23:48
SilverKey joined23:48
SilverKey left23:49
iveqy carpii: define safe?23:51
it sounds like it what you want to do. But no, it's not safe, it will destroy data23:51
carpii id like to just get local master to match remote exactly, so its not diverged anymore23:51
and the sort out the damage from there23:51
destroy which data ?23:51
R1KRDO joined23:52
iveqy carpii: it will destroy your worktree and move your master branch possible to leave some commits unrefered and then they will be deleted by git gc in 14 days23:53
carpii hm23:53
Stalkr joined23:54
carpii is there a way to know which commits will be left dangling?23:54
my local master was up to date before i made this bad merge23:54
normanrichards joined23:54
natechan left23:54
D-Chymera joined23:54
carpii admittedly i dont understand why its diverged really23:54
jason237 left23:55
D-Chymera1 left23:55
thiago left23:56
relipse joined23:56
iveqy carpii: the commits that are in your master but not in origin/master (nor any other branch) will be dangling23:56
if you did a merge into master of course it has diverged, it contains a merge23:56
carpii ok, thats fine. they will still be in local branch and i can remerge when ready23:56
but merging a feature branch into master is my usual workflow. it very rarely diverges23:57
unless something has gone wrong (or i need to pull origin)23:57
iveqy carpii: did someone else maybe pushed to origin/master?23:58
Stalkr left23:58
oonska left23:58
carpii no, ive only one other developer23:59
and he's not working atm23:59

Logs Search ←Prev date Next date→ Channels Documentation