IRCloggy #git 2013-04-16

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

tmcmahon joined00:00
ozette left00:00
offby1 easiest way: "git push -u remotename branchname"00:01
nigelb left00:01
nigelb joined00:01
knightshade3 joined00:02
Noldorin left00:03
tvw left00:04
boombatower left00:04
rvsjoen_ left00:05
TheMoonMaster left00:05
knightshade2 left00:06
thasmo left00:06
dreiss left00:06
Noldorin joined00:06
thiago joined00:06
chuckharmston joined00:07
boombatower joined00:07
kvda joined00:08
rideh left00:08
TheMoonMaster joined00:08
tmcmahon left00:10
ncd|leeN joined00:10
ncd|leeN left00:11
jacoluta left00:11
rickruby joined00:12
joaoh82 joined00:13
leeN left00:13
eletuchy left00:14
AdrienBrault left00:14
pitzips joined00:16
knightshade3 left00:16
ehsan left00:16
Markvilla joined00:17
Celelibi left00:18
hwrd|work left00:20
rvsjoen joined00:20
rvsjoen left00:20
rvsjoen joined00:20
wheezl left00:21
miso1337 joined00:22
infynyxx joined00:22
pastime left00:22
mloskot left00:23
guns left00:24
pitzips left00:25
rasto joined00:26
dideler joined00:26
private joined00:28
m0ltar left00:28
rurufufuss left00:28
marc_kdab_ left00:29
bmac joined00:29
daivdh left00:31
joaoh82 left00:31
gerep joined00:31
alansaul-laptop left00:33
yshh left00:33
vedant left00:35
simesy joined00:36
ISF left00:36
simesy left00:36
w09x joined00:36
w09x left00:37
simesy joined00:37
lindenle_ joined00:37
simesy left00:37
hyperair left00:38
pitzips joined00:38
poohtarou left00:38
Bilge left00:39
bytephilia left00:39
simesy joined00:39
maslowbeer joined00:40
poohtarou joined00:40
rideh joined00:41
Watabou joined00:41
kit joined00:42
joaoh82 joined00:42
sluther left00:44
chrisdev left00:44
Sosumi joined00:44
normanrichards joined00:46
jaequery left00:47
wrouesnel left00:48
Alenah left00:52
hellopat left00:52
hellopat joined00:53
barneybook left00:54
Alenah joined00:54
blami_orcl left00:55
blami_orcl joined00:55
lindenle_ left00:55
gerep left00:56
bmac left00:56
thiago left00:57
hellopat left00:57
benjings left00:57
joaoh82 left00:58
ehsan joined00:58
samholmes left00:58
kogent joined00:58
yshh joined00:59
Gentlecat__ joined00:59
Gentlecat_ left01:00
agile joined01:02
FabTG left01:02
FabTG_ joined01:02
kogent left01:03
electrog1ek left01:03
tinti joined01:03
MattStratton joined01:04
dharriga1 joined01:04
Joe9 joined01:04
FatDarrel left01:04
normmalno left01:05
Joe9Guest2142401:05
brocken_ joined01:05
Joe8 left01:05
brocken left01:06
dharrigan left01:06
tjbiddle joined01:06
scelis left01:06
R1KRDO joined01:06
flippo joined01:07
natechan left01:09
flippo left01:09
flippo joined01:09
nathanr_ joined01:09
jalama joined01:11
trusktr left01:12
nathanr left01:13
aberrant left01:13
kit left01:13
R1KRDO left01:13
aberrant joined01:14
d3O joined01:14
electrogeek joined01:14
electrogeek left01:14
electrogeek joined01:14
aberrant left01:15
d3O left01:15
d3O joined01:15
MattStratton left01:15
SaCu left01:15
security joined01:16
SaCu joined01:16
megha left01:17
Bilge joined01:18
kit joined01:18
hyperair joined01:19
esto left01:19
ProLoser left01:20
jaequery joined01:20
r0bby_ joined01:20
eletuchy joined01:20
ProLoser joined01:21
rpg joined01:21
rakl left01:23
dmarkham_ left01:23
hellopat joined01:23
darinmorrison joined01:24
Goplat joined01:24
r0bby_robbyoconnor01:25
esto joined01:25
eletuchy left01:25
goshawk left01:25
jaequery left01:26
nicksloan joined01:27
nicksloan Just curious, is there a way, and if not, would it be possible, to clone a repository as of a given commit?01:27
so if there are 100,000 commits, and I know I'll never nead to touch them, I can just start at commit 100k and work from there01:28
bob2 not really01:29
nicksloan just seems silly. Who needs the inital import of a 10 year old project?01:29
bob2 it's not silly01:29
BiggFREE joined01:30
dkpi left01:30
Saby joined01:30
Saby left01:30
Saby joined01:30
nicksloan I understand that someone may, but they could do a full clone. The full history should be maintained *somewhere* for sure01:30
erkules_ joined01:30
thegorn joined01:30
stoo_ joined01:31
bob2 maybe you want man git-clone, but that'll cripple your clone01:31
gitinfo the git-clone manpage is available at http://jk.gs/git-clone.html01:31
nicksloan but I'm never going to need to look at the first commits from python. So why download all of that.01:31
bob2 suggest just learning how git works01:31
EugeneKay nicksloan - man git-clone; there's a --depth option, but it really isn't a good idea. The resultant repo will eventually break.01:31
gitinfo nicksloan: the git-clone manpage is available at http://jk.gs/git-clone.html01:31
simesy left01:31
EugeneKay If you want a tarball, just ask for a tarball.01:32
If you want to contribute, bite the bullet and wait for the history to download.01:32
nicksloan EugeneKay: what breaks it?01:32
EugeneKay The fact that it's a shitty hack which bypasses integrity checks on the git objects store01:32
erkules left01:32
yann|work left01:33
nicksloan like I said, purely a thought exercise here. And curiousity about the workings of git and other vcs's01:33
agu10^^ left01:33
joaoh82 joined01:33
simesy joined01:33
SuperSteff joined01:34
amesha left01:35
amesha joined01:36
boombatower left01:36
Vampire0_ joined01:37
barneybook joined01:37
simesy left01:37
tinti left01:38
robbyoconnor left01:40
Davey joined01:40
EugeneKay What you can do with git is to "snip off" old history by creating an !orphan branch with the current state of the repo, and then work from there01:40
gitinfo To create an orphaned branch(unrelated to existing history): `git checkout --orphan newbranchname`. This will leave your index/worktree as-is(use `rm .git/index; git clean -dfx` to delete EVERYTHING). If you get 'error: unknown option `orphan`' see !orphan_old. For an empty/null commit see !orphan_null.01:40
EugeneKay The old history can be archived for historical purposes01:40
bob2 but who cares01:40
for 99.9% of repos it doesn't matter01:40
Vampire0 left01:41
EugeneKay In practice, this isn't done even with huge projects like the linux kernel, because disks space is cheap01:41
subfauna left01:41
maqr left01:42
hafeez3000 joined01:42
ergZay joined01:42
Wulf left01:42
fredlwm joined01:43
Dougie187 joined01:43
erkules_ left01:45
yann|work joined01:45
preflex left01:45
Dreamer3 joined01:46
preflex joined01:46
tureba_ left01:46
erkules_ joined01:46
tureba joined01:47
rickruby left01:50
simesy joined01:50
NiteRain joined01:50
subfauna joined01:51
danishkhan left01:51
gitinfo set mode: +v01:51
simesy_ joined01:52
fredlwm Is git supposed to work with 128Mb of RAM ? I have a copy of the kernel tree, but 'git pull' doesn't do anything, except using the CPU until I kill it, or exiting by itself without printing anything, sometimes after hours. I'd also expect it to use the swap (almost 1Gb free), but it doesn't use it. It works fine with smaller repositories, so it looks like a memory issue ?01:52
bob2 well, 128mb is a tiny amount for a huge repo like the linux kernel01:53
jdyin joined01:54
simesy left01:55
teejmya joined01:55
JoefishJoefish]off01:56
kit left01:57
fredlwm Likely. But i'd expect git to print something. -v doesn't add any info. I wait, sometimes hours, but it never succeeds. I only see the CPU usage increasing and the timestamp in .git/FETCH_HEAD getting updated. I think it used to work with 384Mb. I'll see if it does with 256.01:59
momomomomo left01:59
simesy_ left01:59
alansaul-laptop joined02:02
tiglionabbit left02:02
pastime joined02:03
R1KRDO joined02:04
BadQuanta joined02:04
stack_ joined02:05
brum joined02:07
stack left02:07
robottinosino_ joined02:10
dreiss joined02:10
etcetera joined02:10
luc_ joined02:12
tjbiddle left02:13
harleypig left02:15
d3O left02:16
d3O joined02:17
m0ltar joined02:20
rickruby joined02:20
tiglionabbit joined02:21
tiglionabbit left02:21
m0ltar left02:24
InvidFlower joined02:24
jaequery joined02:25
InvidFlower Any thoughts on merging vs rebasing? I guess it is a matter of taste...02:25
jaequery left02:25
joaoh82 left02:26
madewokherd they both have their uses02:26
jaequery joined02:26
pitzips left02:27
avinashrbhat1 joined02:27
InvidFlower I like how it makes the graph simpler.. makes me feel a bit weird that it all comes in at the same time...02:27
madewokherd rebasing is good for cleaning up a set of changes before you add/send it to a project officially02:28
and keeping the history of that project tidy02:29
merging is good for long-lived forks02:29
InvidFlower That makes sense...02:29
avinashrbhat left02:30
rchavik joined02:32
delinquentme joined02:32
engkur joined02:33
dideler InvidFlower: i rebase when my topic branch needs to be updated, and merge when the work on the topic branch is complete02:33
madewokherd I just remembered, merge --ff-only is pretty good too02:34
that's my default for updating things02:34
mstrcnvs joined02:34
xiukun joined02:35
OrbitrixHuevo02:36
InvidFlower Yeah.. I've been working for a couple of days on a branch. Just rebased on the branch to get new changes from master..02:36
dideler if i'm getting updates from a remote repo, i pull --rebase. for merging the topic branch i use merge --no-ff02:36
mstrcnvs I have a script that postprocess my binary files and upload them IF THEY GOT CHANGED to a certain host. With rsync this was handled right, it uploaded only the changed. But with git it seems that every push that I do it changes the binaries and all of them get uploaded even if not changed...02:36
HuevoOrbitrix02:36
madewokherd with a remote repo I use merge --ff-only too, so that I get interrupted and have to think about what to do if I have local changes02:37
jalama left02:38
gumnos joined02:38
InvidFlower dideler: so forcing no merge when going to the branch and forcing the merge when bring back to master. That sounds like a good way to go..02:38
SamB madewokherd: I just wish you could then do a merge or a --rebase ...02:38
Davey left02:38
gumnos When rebasing to split a commit, is there an easy way to specify that the current commit should retain the commit message from the source commit without retyping it?02:38
acharlieh joined02:38
madewokherd SamB: I don't follow; surely you can merge or rebase whatever you want..02:38
MattStratton joined02:39
madewokherd gumnos: how do you do that currently? I never really found a procedure that I liked02:40
orafu left02:41
hwrd|work joined02:41
orafu joined02:41
gumnos madewokherd: before rebasing the commit, dump the commit log to a temp file, do my rebase and read it into Vim. That's *if* I remember to dump the commit-log entry.02:41
that's why I'm asking if there's a better way :-)02:41
this evening's "solution" was simply to saw "aw, screw it" and copy over the first line of the commit-log, dropping the boring details that would have been in the body02:42
bambams gumnos: For starters you can use the -F option to read directly from the file. Assuming the file contains exactly the log you want.02:42
madewokherd I thought of doing a rebase -i and picking the commit twice (editing the first one), but I don't know if that's better..02:42
ProLoser left02:42
preflex_ joined02:43
madewokherd wait, you can dump a series of commits to a file and then rebase those?02:43
hwrd|work left02:43
bambams gumnos: You can also read directly from inside of vim with :r!, possibly parsing the temp file.02:43
s/parsing/sparing/02:44
m0ltar joined02:44
dvide left02:44
gumnos madewokherd: me? no. I'm just doing a split as described at http://git-scm.com/book/en/Git-Tools-Rewriting-History#Splitting-a-Commit but wanted to be lazy in keeping the commit message for one of the committed pieces.02:45
preflex left02:45
preflex_preflex02:45
h2ero joined02:45
gumnos bambams: the trick would be finding the commit message in question. I'm guessing there's some way to coerce it out of git with minimal fuss for the commit that is currently being rebased. Just haven't banged on it long enough to find something I can remember easily enough to do next time.02:46
(I'm quite comfortable in Vim, so that part isn't the issue)02:46
madewokherd aha02:46
don't do git reset HEAD^02:46
well02:47
this'll be a procedure I haven't tried, but I think it'll work02:47
gumnos madewokherd: ? Is there a better way to get the effect of unstaging file2.txt but keeping file1.txt and the commit message, then commiting file2.txt with a new message?02:47
bambams gumnos: Well HEAD should point to the commit you're editing. So log HEAD~..HEAD should give you the log, I think.02:47
pitzips joined02:48
engkur left02:48
maqr joined02:48
bambams I am quite tired though so I may be completely wrong.02:48
madewokherd except that you lost the commit by resetting02:48
bambams No, a soft reset won't change your working tree's head commit. Just basically resets the index and working directory.02:49
Again, unless I'm tired and thinking of this wrong...02:49
madewokherd that page doesn't say to do a soft reset02:49
teejmya left02:50
madewokherd anyway, what I would do is copy the line that has your commit, so that it appears twice: making the first one an 'edit' and the second one a 'reword'02:50
bambams Wait, I'm thinking of mixed...02:50
nathanr_ left02:51
nathanr joined02:51
madewokherd when it stops to edit your commit, don't reset, but do a git checkout -p HEAD^ and remove the parts of the commit you don't want (or otherwise add any changes you want to make to the first commit to the index)02:52
then do git rebase --continue02:52
mstrcnvs left02:52
danishkhan joined02:52
robottinosino_ left02:53
madewokherd (rebase --continue will amend your commit for you; I don't recommend amending it yourself or making commits yourself during a rebase, because doing that when resolving a conflict can screw it up)02:53
etcetera left02:53
beakman joined02:53
gumnos That gives me some stuff to play with. Thanks, madewokherd & bambams02:53
bambams gumnos: Perhaps ORIG_HEAD is what you're after though.02:53
gumnos: Seems to do what I want after a reset --mixed HEAD~.02:54
maqr left02:54
engkur joined02:55
LucasTizma joined02:55
madewokherd actually I'd probably revert the commit, pick the commit with -n, only commit the bits I want in my first commit, then delete the revert in the rebase, but I'm crazy02:56
ryez joined02:56
madewokherd I don't split commits very much; mostly I commit often enough that I'm combining them instead02:57
danishkhan left02:57
bambams I usually end up adding edited patches instead. :-X02:58
madewokherd I never got the hang of hand-editing patches02:58
Garr255 joined02:58
bambams hack .. hack .. hack ... git add -p && git commit -m && git add -p && git commit -m ...02:58
madewokherd I'm just told they're malformed when I try to apply them02:58
tjbiddle joined02:58
madewokherd oh right add -p, I use that a lot02:59
bambams Yeah, it takes a bit of practice, but it's not too hard. My first experiences with hand editing patches was with Subversion... Probably resolving conflicts or something directly in a big patch instead of the files or something. I forget. It's been years.03:00
Garr255 hey all, I need some help. I've pulled a master branch, modified it, then pushed back to master. I realized that I should have made changes to the "development" branch and not the master. is there any way to merge only MY modifications into the develop branch, but not the other ones committed to the master?03:00
juanmabc left03:00
bambams I remember I lost a bunch of work and managed to recover it after hacking away at a patch file for an hour or something.03:00
PaulCapestany left03:00
nevyn Garr255: yes.03:01
bambams I recently added some Vim mappings to make it a bit easier too.03:01
engkur left03:01
nevyn Garr255: the simplest is probably to cherry pick it.03:01
Garr255: this doesn't remove it from master on the remote tho.03:01
Garr255 nevyn, meaning what? and yes I'm okay with that03:02
nevyn git cherry-pick03:02
bambams Basically will duplicate the commits onto the develop branch.03:02
dideler left03:02
R1KRDO left03:02
nevyn well the one with your changes...03:02
if you specify it.03:02
rakl joined03:02
AaronMT left03:03
bambams should really go to bed.03:03
nevyn git checkout develop && git cherry-pick <sha of desired change>03:03
Garr255 any where do I find that?03:03
nevyn git log master03:04
Garr255 should look like 028b3a6ecd047f9346e5b5105b49d9ba351b51ea ?03:04
nevyn yep.03:04
Garr255 sweet03:04
nevyn Garr255: how long have you been using git.03:04
Garr255 thanks03:04
one day03:05
nevyn Garr255: please read something...03:05
hellopat left03:05
nevyn Garr255: like !book03:05
gitinfo Garr255: 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 !parable03:05
MattStratton left03:05
simesy joined03:05
Garr255 will do :P03:05
bambams I don't know how this bot works, but !backup03:05
gitinfo Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups03:05
Garr255 git is awesome :D03:05
nevyn I personally like !gcs03:05
gitinfo [!concepts] "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://gitolite.com/gcs/03:05
nevyn !talks03:06
gitinfo Some good video talks about Git: [yt] http://goo.gl/z72s (Linus Torvalds: History&Concepts); [yt] http://goo.gl/R9H2q (Scott Chacon: Git basics, live examples); http://vimeo.com/35778382 (Randal Schwartz: Git basics, descriptional); http://vimeo.com/46010208 (Jesica Kerr: Git basics, descriptional)03:06
bambams recommends a tarball.03:06
etcetera joined03:06
Garr255 is incompetant03:06
wesside joined03:06
InvidFlower Git isn't the most obvious software I have to say.. takes a while to get the hang of it03:07
nevyn InvidFlower: it's really very simple if you look at it from the inside out.03:07
InvidFlower: if you understand the plumbing it all makes sense03:07
if you try and understand it from the porcelin you'll never get it.03:07
InvidFlower nevyn: Yeah.. and I agree that stuff like Pro Git helps a lot for that.03:08
I just mean some of isn't as obvious as it could be perhaps...03:09
spyroboy_ joined03:09
spyroboy_ left03:09
spyroboy_ joined03:09
flippo It would have been so simple to rename a few of the commands, and change a few of the default options03:09
bambams I prefer it this way.03:10
flippo Because Pain is Virtuous03:10
pitzips left03:10
nevyn fetch and pull being semantic inversions from mercurial is infuriating (regardless of who's got it right and wrong)03:11
bambams I think that it makes better sense as it is. And so what if it's a slightly steeper hill to climb. You've only got to climb it once. Then you can drive the tractor back down. Or something like that.03:11
Mercurial is infuriating all by itself.03:11
jaequery left03:12
madewokherd I was probably using git for weeks as simply a form of write-only code storage (literally commit and push to one branch and nothing else) before I did anything fancy03:12
spyroboy left03:12
Davey joined03:12
saurabh joined03:13
R1KRDO joined03:15
danishkhan joined03:15
pppaul joined03:16
brum left03:16
bimble joined03:16
WinstonSmith left03:19
h0bbit joined03:20
jdunck left03:21
hafeez3000 left03:23
SBoudrias left03:24
WinstonSmith joined03:25
barneybook left03:25
barneybook joined03:25
mmlac joined03:26
simesy left03:27
barneybook|2 joined03:27
m0viefreak left03:28
barneybook|2 left03:28
barneybook|2 joined03:28
barneybook|2 left03:29
barneybook|2 joined03:29
barneybook|2 left03:29
pitzips joined03:30
barneybook|2 joined03:30
barneybook left03:30
thiago joined03:30
etcetera left03:31
simesy joined03:31
hellopat joined03:31
flippo left03:32
leeN joined03:32
themill joined03:33
dreiss left03:33
etcetera joined03:34
dreiss joined03:34
the_cybersphinx left03:35
m0ltar left03:37
rakl left03:37
Dougie187 left03:38
beakman left03:38
nathanr left03:39
momomomomo joined03:39
dreiss left03:41
d3O left03:41
fredlwm left03:43
avinashrbhat1 left03:43
hellopat left03:43
d3O joined03:44
danishkhan left03:44
hongymagic joined03:46
hongymagic left03:46
undecim joined03:46
hongymagic joined03:46
stliu joined03:47
hongymagic left03:47
oakdog8 joined03:47
hongymagic joined03:48
hongymagic left03:48
oakdog8 left03:48
hongymagic joined03:48
hongymagic left03:48
robbyoconnor joined03:48
subfauna left03:51
h0bbit left03:51
jwsong joined03:51
dreiss joined03:53
bimble left03:54
engkur joined03:54
etcetera left03:55
etcetera joined03:57
BiggFREE left03:57
wesside left03:58
scorphus left03:58
hafeez3000 joined03:58
mh` left03:58
undecim_ joined03:59
macmartine joined04:00
chuckhar_ joined04:00
uidzer0 left04:01
beautifulmind joined04:02
DrHouse|WKSTN1 left04:03
chuckharmston left04:03
undecim left04:03
barneybook|2 left04:03
scorphus joined04:03
barneybook|2 joined04:04
subhojit777 joined04:04
ProLoser joined04:04
barneybook|2 left04:04
ProLoser left04:04
barneybook|2 joined04:04
barneybook|2 left04:05
barneybook|2 joined04:05
beautifulmind left04:05
kerrick joined04:05
etcetera left04:06
beautifulmind joined04:07
Katafalkas joined04:07
barneybook|2 left04:07
barneybook|2 joined04:08
barneybook|2 left04:08
barneybook|2 joined04:09
hwrd|work joined04:09
madewokherd left04:10
barneybook|2 left04:10
barneybook|2 joined04:10
etcetera joined04:10
aartist left04:10
rakl joined04:10
barneybook|2 left04:11
KBme left04:11
barneybook|2 joined04:11
Davey left04:12
chuckf left04:12
Sosumi left04:14
Mez left04:14
barneybook|2 left04:15
barneybook|2 joined04:15
miso1337 left04:17
Markvilla left04:17
miso1337 joined04:17
xiukun left04:18
chuckf joined04:19
rking left04:20
R1KRDO left04:20
rking joined04:21
KBme joined04:21
muddo left04:22
amesha left04:23
amesha joined04:24
InvidFlower left04:24
paddymahoney left04:24
Davey joined04:24
pppaul left04:25
hafeez3000 left04:25
Mez joined04:26
Mez left04:26
Mez joined04:26
Noldorin left04:26
ryez left04:27
ehsan left04:27
ARMIGER1 joined04:27
ARMIGER1 Hello, all! Is there a way to amend a commit that was two commits ago without rebase?04:28
Sosumi joined04:28
mmlac left04:28
hwrd|work left04:30
rideh left04:30
pppaul joined04:31
ARMIGER1 I haven't pushed to remote yet, but I can't seem to figure it out. Would checking out the specific commit and then calling git commit --amend do it?04:32
bob2 no04:32
Adlai ARMIGER1: try rebase --interactive04:32
and rebase onto the commit before the one you want to amend04:32
bob2 you're asking how to check out a commit, apply a commit but not commit it, make a change, commit, then reapply and commit a few other commits04:33
which is what rebase does04:33
Adlai then you can put your changes in the line after the commit to amend, and make the status 'fixup'04:33
stack joined04:33
Adlai man git-rebase04:33
gitinfo the git-rebase manpage is available at http://jk.gs/git-rebase.html04:33
irqq joined04:34
ARMIGER1 Thank you. Looks like I've got some reading to do.04:34
jceb joined04:34
Adlai np :)04:35
barneybook joined04:35
PaulCapestany joined04:35
stack_ left04:36
Tommy[D]_ joined04:36
ProLoser joined04:37
barneybook|3 joined04:39
barneybook|2 left04:39
Tommy[D] left04:40
stack_ joined04:40
ARMIGER1 Adlai: So in my case, I would want go use git rebase -i HEAD-3 and go from there?04:41
barneybook left04:41
Mangix left04:42
stack left04:43
OOPMan joined04:44
avinashrbhat joined04:44
stack_ left04:45
SamB ARMIGER1: if get rebase -i brings up the wrong list of commits in your editor, you can abort04:46
stack joined04:46
SamB *git04:46
orafu left04:46
barneybook joined04:46
dreiss left04:46
SamB wonders if ARMIGER1 is a relative of VGER04:47
ARMIGER1 SamB: Oops. Didn't catch that until you pointed it out. :P04:47
SamB ARMIGER1: I'm not certain it's made clear in the manpage anyway04:47
I just remember seeing it in the file that comes up04:48
barneybook|2 joined04:48
stoo_ left04:48
etcetera left04:49
barneybook|4 joined04:49
barneybook|3 left04:49
thegorn left04:49
ARMIGER1 SamB: VGER? The thing from Star Trek?04:50
Adlai ARMIGER1: sounds about right04:51
ProLoser left04:51
macmartine left04:51
w09x joined04:52
barneybook left04:52
barneybook|2 left04:53
barneybook joined04:53
ARMIGER1 Adlai: The git command or the VGER thing?04:54
ProLoser joined04:55
Adlai the git command04:55
I'd first make a commit that makes the changes you want to amend in04:55
ARMIGER1 As in, make the commit on HEAD and then apply it to HEAD-3?04:56
aberrant joined04:56
barneybook|4 left04:56
arvind_khadri joined04:58
arvind_khadri left04:59
raging_swine joined04:59
arvind_khadri joined04:59
Adlai yeah04:59
well05:00
which commit is the one you want to amend? HEAD-3?05:00
mossplix left05:01
subfauna joined05:02
taylorlapeyre left05:03
mossplix joined05:04
ARMIGER1 If that's the one that's two commits ago, then yes. Right now I'm on the current working copy, wanting to amend a file to the commit before the last one.05:06
jaequery joined05:06
pretty_function joined05:06
hoschi joined05:06
raging_swine left05:08
longbeach joined05:10
LucasTizma left05:10
hwrd|work joined05:12
securitymegha05:12
xiukun joined05:15
hafeez3000 joined05:15
bgerber left05:15
w09x left05:18
szx joined05:18
bgerber joined05:19
hellopat joined05:20
ozette joined05:23
pppaul left05:23
hellopat left05:25
mossplix left05:26
diegoviola left05:28
momomomomo_ joined05:28
gnarf left05:28
momomomomo left05:28
momomomomo_momomomomo05:28
momomomomo left05:28
kvda left05:28
jceb left05:29
pantsman joined05:30
pantsman left05:30
pantsman joined05:30
szx left05:31
soee joined05:32
mossplix joined05:32
flavius left05:33
joaoh82 joined05:36
barneybook|2 joined05:37
hwrd|work left05:38
barneybook left05:40
barneybook|3 joined05:40
joaoh82 left05:41
Adlai left05:42
FatDarrel joined05:42
engkur left05:42
Adlai joined05:43
barneybook joined05:43
barneybook|2 left05:43
gnarf joined05:44
dmarkham_ joined05:45
barneybook|3 left05:46
engkur joined05:46
OOPMan left05:46
Wulf joined05:47
barneybook|2 joined05:47
ARMIGER1 Got it! Thank you!05:48
barneybook left05:48
barneybook|2 left05:50
jwsong left05:51
stack left05:51
Chillance_ left05:52
Saby left05:52
hwrd|work joined05:53
stack joined05:55
trusktr joined05:56
vedant joined05:56
fRAiLtY- joined05:58
ARMIGER1 left05:59
rakl left06:01
hafeez3000 left06:02
stack_ joined06:02
mihamina left06:03
stack left06:04
ozette left06:07
longbeach left06:08
cbreak-work joined06:10
ThomasLocke joined06:10
SuperSteff left06:12
papegaaij joined06:12
heytrav left06:13
heytrav joined06:14
wrouesnel joined06:15
mgedmin left06:15
mgedmin joined06:15
dreiss joined06:16
lb1a joined06:17
lb1a left06:17
lb1a joined06:17
darinmorrison left06:18
SuperSteff joined06:18
wrouesnel left06:18
cyphase left06:19
wrouesnel joined06:19
hahuang65 joined06:19
engkur_ joined06:20
beautifulmind left06:22
miso1337 left06:22
engkur left06:22
Goplat left06:24
vedant left06:25
flijten joined06:25
tvw joined06:25
h0bbit joined06:26
rob_w joined06:26
jdunck joined06:28
SuperSteff left06:28
jaequery left06:28
Vile left06:28
warthog9 joined06:29
miso1337 joined06:30
ph^ joined06:30
alexwhitman left06:31
Noldorin joined06:31
netiul joined06:31
alexwhitman joined06:32
cyphase joined06:32
rob_w left06:33
GeertV joined06:33
alunduil joined06:34
undecim_ left06:35
undecim_ joined06:35
Noldorin left06:36
AlexanderS left06:38
vals_tango_06:40
wsebastian joined06:40
MestreLion joined06:40
fsvend joined06:41
AlexanderS joined06:41
MestreLion how can I list the files in a given commit? git ls-files SHA1 returns no files06:41
_ikke_ ls-files is for the index06:41
use ls-tree06:41
hafeez3000 joined06:41
fsvend left06:42
Raging_Hog joined06:42
thiago left06:42
fsvend joined06:42
MestreLion thank you _ikke_06:43
HNF joined06:45
marthinal joined06:48
dreiss left06:49
tbosua joined06:49
dominik_ joined06:50
Davey left06:50
LekeFly left06:50
wannado joined06:52
rob_w joined06:52
jargon joined06:53
fsvend left06:55
Chaser left06:57
rubikcube_work joined06:57
benje hi how to reget the remote after deleting some file in local ?07:00
Bilge left07:00
whowantstolivefo joined07:00
lavong joined07:00
bob2 do you mean 'git checkout -f'07:00
Chinorro joined07:01
psoo joined07:02
QshelTierBombe07:02
subfauna left07:02
anderse joined07:03
_ikke_ benje: git is decentralized, which means you already have everything local (unless you deleted something from the .git directory)07:03
benje bob2, don't know maybe i have deleted some file and want to reget them07:03
_ikke_ benje: git checkout <file>07:03
benje not deleted in .git but in rep07:03
rep directory07:03
The-Compiler joined07:04
hwrd|work left07:04
_ikke_ right07:04
git checkout <file> is enough07:04
benje ok thanks the -f get all ?07:05
normanrichards left07:06
subfauna joined07:06
_ikke_ git checkout -f overwrites anything not comitted in the working directory07:06
bambams left07:08
timj1 joined07:09
benje good this is that ;)07:09
thanks07:09
ErKa joined07:10
FatDarrel left07:11
timj left07:12
Chaser joined07:12
dmarkham_ left07:13
fsvend joined07:13
eatyourgreenery joined07:13
suy joined07:13
PaulCapestany left07:14
vedant joined07:14
eatyourgreenery left07:15
wrouesnel left07:15
wrouesnel joined07:15
DaisyTheCow joined07:15
LekeFly joined07:17
LekeFly left07:17
LekeFly joined07:18
pantsman left07:18
rickruby left07:18
KevinSjoberg joined07:18
hahuang65 left07:19
dmarkham_ joined07:21
dmarkham_ left07:21
alorence joined07:22
kvda joined07:22
rath joined07:22
mossplix left07:22
d3O left07:23
mossplix joined07:23
d3O joined07:23
mitz joined07:26
tjbiddle left07:26
Yougi joined07:26
nihilista left07:27
mitz_ left07:28
juril joined07:29
szx joined07:30
ozette joined07:30
nihilista joined07:30
nihilista left07:30
simesy left07:31
maxmanders joined07:31
Chaser left07:31
nihilista joined07:31
spyro left07:31
spyro joined07:32
heytrav left07:33
_Qman joined07:34
heytrav joined07:34
elixir joined07:34
chimay joined07:35
Gentlecat__ left07:35
huoxito left07:36
joaoh82 joined07:37
subfauna left07:41
joaoh82 left07:41
Noldorin joined07:41
infynyxx left07:41
nodweber joined07:42
ProLoser left07:42
nodweber left07:42
MestreLion left07:42
infynyxx joined07:42
nodweber joined07:42
erkules_erkules07:43
xiukun left07:43
szx` joined07:43
Joefish]offJoefish07:45
ddv left07:45
ddv joined07:46
szx left07:46
Noldorin left07:46
The-Compiler Heya! I had two git repos and merged one into a subfolder of another, like described in the "subtree merge" strategy on http://stackoverflow.com/a/1426163 - now my tree looks like this: http://paste.the-compiler.org/view/6cd50adf - the commit on the top (626b0be) is the merge commit I just did. What I'd like is to prefix every commit message in the right tree-branch (9175e27..f0056be) with "bep: " so I can07:46
clearly differentiate what was in the old repo. How would I do that?07:46
PerlJam left07:47
_ikke_ The-Compiler: man git filter-branch07:47
gitinfo The-Compiler: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html07:47
Bilge joined07:47
PerlJam joined07:47
LeMike joined07:47
xiukun joined07:48
pen left07:48
penguin1 joined07:48
vedant left07:48
vedant joined07:48
benje bye07:50
benje left07:51
tevio left07:51
The-Compiler _ikke_: thought so, but how could I refer to all the commits coming from one side of a merge?07:51
jast I would redo the merge...07:52
1) checkout the 'right side' of the merge into a new branch, 2) filter everything in there, 3) recreate the merge07:52
alkino joined07:53
Raging_Hog left07:54
bambams joined07:55
bambams left07:55
bambams joined07:55
marcdel left07:57
Sadeukko joined07:57
szx`szx07:58
psoo left08:00
Milossh left08:00
psoo joined08:00
The-Compiler okay, I did a reset --hard to the commit before the merge, then checked out bep/master into bep, changed the messages, and merged bep into master. But now I still have the original unchanged commits in my log, as refs/original/refs/heads/bep - how would I get rid of them?08:02
jast rm -rf .git/refs/original (check if there's anything else in there you want to keep -- probably not)08:03
Anders_J joined08:04
amesha left08:05
LimeBlast joined08:05
amesha joined08:05
wrouesnel left08:06
wrouesnel joined08:07
forlin joined08:07
mnathani left08:07
mnathani joined08:08
ozette left08:10
ozette joined08:10
dharriga1dharrigan08:11
dharrigan left08:11
dharrigan joined08:11
The-Compiler I still seem to have the original commits in my log, see http://paste.the-compiler.org/view/6100283508:11
_ikke_ You seem to have merged the old and the new commits together08:12
The-Compiler I just noticed08:12
ddssc joined08:13
jnavila joined08:14
stephan_ joined08:14
eletuchy joined08:14
rubikcube_work left08:14
dthorman left08:16
Macaveli joined08:16
dthorman joined08:16
schemula joined08:19
schemula left08:19
schemula joined08:19
wdxsnail left08:21
madduck left08:22
The-Compiler okay, worked now :)08:23
wdxsnail joined08:23
vedant left08:24
vedant joined08:24
dominik_ left08:24
wdxsnail left08:26
wdxsnail joined08:27
kvda left08:27
madduck joined08:28
wdxsnail left08:28
WormDrink joined08:29
WormDrink left08:29
WormDrink joined08:29
Raging_Hog joined08:29
subfauna joined08:30
Yuuhi``` joined08:30
wdxsnail joined08:30
schemula left08:30
edgeuplink joined08:30
schemula joined08:31
saurabh left08:31
wdxsnail left08:31
yacks left08:31
Yuuhi`` left08:32
tirengarfio left08:33
delinquentme left08:33
dominik_ joined08:33
maxandersen joined08:33
maxandersen left08:33
maxandersen joined08:33
tevio joined08:35
spyro left08:36
hafeez3000 left08:36
_Vi left08:36
joaoh82 joined08:37
spyro joined08:38
wdxsnail joined08:38
wdxsnail left08:40
Yougi left08:40
alunduil left08:40
Yougi joined08:41
achadwick joined08:41
hafeez3000 joined08:41
joaoh82 left08:41
Thra11 joined08:42
khushildep joined08:44
mattymo joined08:46
guns joined08:48
marhaban joined08:48
DoniRS joined08:50
wdxsnail joined08:51
wdxsnail left08:51
jdunck left08:52
elixir left08:52
rob_w left08:52
private left08:53
eijk joined08:53
wdxsnail joined08:54
wdxsnail left08:54
tevio left08:55
esc is ther any way to somehow structure the gitolite config so that repos are grouped into section in gitolite?08:55
tevio joined08:55
themill left08:56
mmlac joined08:57
alp82 left08:58
eijk_ joined08:58
heytrav left08:58
marhaban left08:58
tirengarfio joined08:58
GarethAdams joined08:58
wdxsnail joined08:58
hoschi left08:59
heytrav joined08:59
khushildep left08:59
rudak joined09:00
PaulePanter Hi. Is there a command for `git svn` to get branches and tags from Subversion *after* having already done `git svn clone URL` without any options/switches?09:00
howlymowly joined09:00
eijk left09:02
CareBear\ left09:02
MatthewWilkesmwilkes|away09:03
LekeFly- joined09:05
DaisyTheCow left09:05
ErKa left09:06
tirengarfio left09:06
dominik_ left09:06
hafeez3000 left09:07
ferdev left09:08
jnavila left09:08
yacks joined09:08
LekeFly- left09:08
LekeFly left09:09
jnavila joined09:09
heytrav left09:10
heytrav joined09:10
DaisyTheCow joined09:11
sitaram esc: could you explain what you mean? maybe a pseudo example of some syntax you think should work?09:12
tirengarfio joined09:13
joaoh82 joined09:15
esc like: section = "git-dev"09:15
http://bp.zetatech.org/43f95ec09:16
for example like this09:16
security joined09:16
megha left09:17
thierryp joined09:18
thierryp left09:18
thierryp joined09:18
hafeez3000 joined09:19
iveqy PaulePanter: I didn't know it was possible to use svn AND git branches09:20
mwilkes|awayMatthewWilkes09:20
heytrav left09:20
heytrav joined09:21
BadDesign joined09:21
BadDesign left09:21
BadDesign joined09:21
Gaga left09:22
Juri_Agarin joined09:22
testrest joined09:22
diegoviola joined09:24
ferdev joined09:27
TheJH left09:27
TheJH joined09:28
alansaul-laptop left09:28
HNF left09:30
ozcanesen joined09:30
juvenal left09:30
scorphus left09:32
PaulePanter iveqy: http://git-scm.com/docs/git-svn09:32
marhaban joined09:33
PaulePanter http://www.jukie.net/bart/blog/svn-branches-in-git09:33
mastro joined09:36
luc_ left09:36
mastro left09:36
luc_ joined09:36
infynyxx left09:37
mastro joined09:38
tvw left09:38
OOPMan joined09:38
mmlac left09:38
sitaram esc: what is that supposed to achieve?09:38
irqq_ joined09:39
esc to put the repo in it's own section09:39
but i think I need config gitweb.section09:39
osmosis left09:39
esc but I need to enable that in GL_GITCONFIG_KEYS09:40
but can't find the damn config file on this server09:40
sitaram esc: oh this is about *gitweb*...09:40
BadDesign left09:40
esc well, no, cgit09:41
but apperently, cgit can read gitweb settings09:41
dhruvasagar joined09:41
irqq left09:42
KevinSjoberg left09:42
esc sitaram: http://git.zx2c4.com/cgit/tree/cgitrc.5.txt and grep for "enable-git-config"09:44
zoresvit joined09:46
saurabh joined09:48
_Vi joined09:51
elixir joined09:51
Houl joined09:51
jast repo infrastruktur/scriptsammlung category = Infrastruktur09:53
two lines, of course... but that works for me with gitweb09:53
with gitweb's $projects_list_group_categories = 109:54
esc i have it now09:54
$GL_GITCONFIG_KEYS = "gitweb\..*";09:54
in gitolite.rc09:54
vedant left09:54
jast I have '.*' for that :)09:55
esc http://bp.zetatech.org/54e12e609:55
http://git.zetatech.org/09:55
and then i get the appropriate sections09:55
elixir left09:55
esc and setting enable-git-config=1 in the cgitrc09:55
ph^ left09:56
HeN left09:56
HeN joined09:56
ph^ joined09:56
esc of course it would be nice to set these things in a more conveninet fashion in the gitolite conf09:57
Thra11 left09:57
joaoh82 left09:58
thyseus left09:58
esc jast: do you do 'config gitweb.category', or just 'category'09:58
jast just 'category'09:59
esc jast: thanks, I'll try it10:00
sitaram esc: and your description can be just this line: desc = foo bar baz10:00
thyseus joined10:00
eletuchy left10:00
sitaram you don't need to use the old syntax, which required the repo name on the same line (that was designed to keep all descriptions in one place, which still works of course)10:00
the_cybersphinx joined10:00
eletuchy joined10:00
dkpi joined10:01
jast though I'm having trouble finding the part of the docs that describes 'desc' and 'category'10:02
geekbri joined10:02
jast for some reason I pretty much always have trouble finding the relevant section :)10:02
sitaram external.html10:03
jast oh10:04
sitaram gitweb is an external tool, one of the few that we *ship* some quasi support for10:04
jast I suggest making the master TOC more detailed in that section10:04
dropdrive left10:04
esc i'll experiment a bit10:05
sitaram jast: you mean not just mention the UMASK but this also... hmm10:05
jast yeah10:05
esc sitaram: is there a way to set category for a bunch of repos?10:05
elixir joined10:06
sitaram jast: will do; thanks10:06
esc I am using v2.0.3-45-ga7a2732 do I still need the old syntax?10:08
infynyxx joined10:08
The-Compiler left10:08
sitaram esc: oh yeah you do; the new syntax is 3.x10:09
jast oh, you're from the past, why didn't you say so :P10:09
esc sitaram: i'll see if I can squeeze in an upgrade sometime soon10:09
marhaban1 joined10:10
elixir left10:10
marhaban1 left10:10
dropdrive joined10:11
rob_w joined10:11
ph^ left10:11
ph^ joined10:11
Thra11 joined10:12
j0ran1 left10:15
j0ran joined10:15
infynyxx left10:17
spuz joined10:18
tinti joined10:18
miso1337 left10:21
bartman` left10:21
bartman` joined10:22
khushildep joined10:22
khushildep_ joined10:23
AdrienBrault joined10:25
khushildep_ left10:26
khushildep left10:27
AdrienBrault left10:27
Milossh joined10:27
Thra11 left10:27
alansaul-laptop joined10:27
AdrienBrault joined10:28
chimay left10:29
subfauna left10:30
marhaban left10:31
KevinSjoberg joined10:32
stephan_ left10:32
d3O left10:32
yann|work left10:32
vi7000 joined10:34
lyang0 left10:34
alansaul-laptop left10:36
penguin1 left10:36
testrest left10:37
engkur_ left10:37
tvw joined10:37
penguin1 joined10:38
esc is there already a tool that will mirror github repositories, given a github username10:39
hyperair left10:39
bob2 #github i guess10:40
jast probably not... shouldn't be too hard to make, though10:40
I suspect you can do it with shell script10:40
geekbri left10:41
esc not it shouldn't10:41
dvide joined10:41
esc an initial prototype for sure not10:41
rideh joined10:41
esc but something that is nicely configurable10:41
yshh left10:43
mikecmpbll joined10:43
KevinSjoberg left10:44
yann|work joined10:44
jast untested: USER=jast; for repo in $(curl https://api.github.com/users/$USER/repos | grep '^ "name":' | cut -d\" -f4); do git clone https://github.com/$USER/$repo; don10:44
e10:44
obviously not the most robust parser ever10:44
Thra11 joined10:44
jdyin left10:45
Yougi left10:45
KevinSjoberg joined10:45
Yougi joined10:46
dropdrive left10:46
monty-monty10:47
marc_kdab_ joined10:51
dropdrive joined10:51
vi7000 left10:53
monty left10:54
rob_w left10:54
jnavila_ joined10:54
h2ero left10:56
jnavila left10:58
dhruvasagar left10:58
monty joined10:58
guns left10:59
knightshade joined10:59
maxmanders left10:59
elixir joined11:00
dhruvasagar joined11:00
Sadeukko left11:01
luc_ left11:03
maxmanders joined11:04
jnavila_ left11:04
jnavila__ joined11:04
mrwalker joined11:05
rurufufuss joined11:06
rob_w joined11:06
rideh left11:06
Bilge left11:07
esc jast: nice11:09
BtbN left11:10
sonOfRa left11:10
mrwalker left11:11
elixir left11:12
stliu left11:12
KevinSjoberg left11:14
dsiganos joined11:14
jnavila joined11:14
jnavila__ left11:14
stack_ left11:15
rudak left11:15
Henoxek joined11:15
stack joined11:17
KevinSjoberg joined11:18
Bilge joined11:22
eletuchy left11:23
nkr joined11:24
eletuchy joined11:24
jnavila left11:24
jnavila_ joined11:24
simesy joined11:25
BtbN joined11:25
sonOfRa joined11:26
joaoh82 joined11:27
simesy left11:27
flaguy48 left11:28
kcj left11:28
eletuchy left11:29
hoschi joined11:29
reikalus1kka left11:29
elixir joined11:29
mikecmpbll left11:30
Katafalk_ joined11:31
flaguy48 joined11:32
gerep joined11:33
sgambino joined11:34
jnavila_ left11:34
jnavila_ joined11:34
Katafalkas left11:35
rob_w left11:36
gusnan joined11:37
bmac joined11:37
heytrav left11:39
Thra11 left11:40
bmac left11:40
szx left11:41
mikecmpbll joined11:41
chimay joined11:41
heytrav joined11:42
reikalus1kka joined11:43
jnavila__ joined11:44
jnavila_ left11:44
sgambino left11:45
hafeez3000 left11:45
j0ran left11:47
j0ran joined11:47
johnthebear left11:48
LeMike left11:48
br07 joined11:51
lyang0 joined11:51
rob_w joined11:52
jnavila joined11:53
juvenal joined11:53
LeMike joined11:54
bmac joined11:54
jnavila left11:54
jnavila joined11:54
jnavila__ left11:54
Thra11 joined11:55
hafeez3000 joined11:55
xiukun left11:57
aitiba joined11:59
tinti left11:59
KnightHawk3 left12:01
jalama joined12:03
jalama left12:03
jnavila_ joined12:04
jnavila left12:04
joaoh82 left12:05
bmac left12:05
rideh joined12:06
simesy joined12:07
juanmabc joined12:08
dkpi left12:10
mobileblue joined12:11
simesy left12:12
cannonball joined12:12
nicksloan left12:12
marc_kdab_ left12:12
dkpi joined12:13
freeed joined12:13
angelsl joined12:14
jnavila_ left12:14
jnavila__ joined12:14
e66 joined12:14
Katafalk_ left12:16
Katafalkas joined12:16
Macaveli left12:16
marc_kdab_ joined12:17
mossplix left12:18
Siraris joined12:20
maxandersen left12:20
thelucid joined12:21
mikecmpbll left12:21
monty left12:22
diegoviola left12:23
kaictl left12:23
kristofers joined12:23
juanmabc left12:24
tmcmahon joined12:24
jnavila__ left12:24
jnavila joined12:24
saurabh left12:25
mossplix joined12:27
mikecmpbll joined12:28
mobileblue left12:28
dreiss joined12:28
gitinfo set mode: +v12:30
mossplix left12:32
MatthewWilkesmwilkes|away12:32
thelucid Anyone know how to read a a binary blog e.g. jpg from a bare repo for writing directly to file or more specifically a MongoDB12:32
ZaherDirkey joined12:33
TheJH left12:33
_ikke_ thelucid: man git cat-file12:33
gitinfo thelucid: the git-cat-file manpage is available at http://jk.gs/git-cat-file.html12:33
_ikke_ You can perhaps pipe that to mongo12:34
thelucid Oh cool, that'll work with binary files?12:34
_ikke_ Yeah, I don't see why not12:34
ZaherDirkey Hi, I am in branch b1 I need to merge it to the master without switch or checkout the master, and continue developing with b1, "merge it to master"?12:34
Is that possible?12:34
thelucid And from a bare repo?12:35
_ikke_ ZaherDirkey: Nope12:35
ZaherDirkey: Merge requires a working directory12:35
ZaherDirkey: Specifically of the branch being merged into12:35
thelucid: Shouldn't be a problem12:35
jnavila_ joined12:35
_ikke_ thelucid: You just have to set something like GIT_DIR12:35
jnavila left12:35
thelucid _ikke_: Nice, thanks12:36
TheJH joined12:36
mossplix joined12:36
thelucid I'm using the Rugged Ruby bindings, ideally I want to do it with that but the documentation is a bit thin on the ground.12:37
br07 left12:37
_ikke_ Can't help you with that12:37
br07 joined12:37
thelucid _ikke_: No probs, thanks anyway.12:38
e66 left12:38
brocken joined12:39
keller left12:41
brocken_ left12:42
kdave joined12:42
yacks left12:42
sgambino joined12:42
_Qman left12:42
ZaherDirkey _ikke_: thanks12:43
jnavila__ joined12:44
jnavila_ left12:44
br07 left12:45
bmac joined12:45
kdave hi, is it possible to get a 'oneline' pretty format with custom fileds? My goal is to display author (%an) in interactive rebase12:46
jast I don't think the format in interactive rebases can be customized at all12:47
JaredMiller joined12:47
jnavila joined12:47
jnavila__ left12:47
kdave git-rebase--interactive uses --pretty=online12:47
jast that's precisely my point12:47
JaredMiller left12:47
kdave if I could tweak oneline in my local .git that would suffice12:47
jast the meaning of --pretty=oneline is static12:47
you can't define new pretty formats except by manually specifying a format string12:48
(which rebase -i gives you no way of passing to it)12:48
KaiSforza joined12:48
kdave all pretty formats force multiline output afaics (except oneline)12:48
jast if you use your own format string you can do whatever12:49
thelucid left12:49
dreiss left12:49
Chinorro left12:49
kdave aha, --pretty and --format can be combined together12:50
Element9 joined12:50
jnavila left12:50
jnavila_ joined12:50
tmcmahon left12:51
aartist joined12:51
thelucid joined12:51
thelucid left12:51
NiteRain left12:51
LeMike left12:52
m8 joined12:52
JaredMiller1 joined12:52
natechan joined12:53
JaredMiller1 left12:53
pastime left12:53
jelly1 joined12:54
jnavila_ left12:54
robertodecurnex joined12:54
jnavila__ joined12:54
jelly1 Hi, I have a current repo where I keep my dotfiles, now I have a new install and my dotfiles are changed, but I want to use the dotfiles git repo again. How could I easily git init and add the repo and merge the changes12:55
I don't really know what to google12:55
I have tried git init; git remote add gitrepo; git fetch -> works12:55
maxandersen joined12:55
maxandersen left12:55
maxandersen joined12:55
scampbell joined12:55
hellopat joined12:55
engkur joined12:56
thehandler joined12:57
jnavila joined12:57
jnavila__ left12:57
trusktr left12:58
fightback joined12:58
cybersphinx joined12:59
Rulin joined12:59
uidzer0 joined12:59
nevyn yeah but it's ugly. (you have two initial commits in the repo12:59
mossplix left12:59
trusktr joined13:00
the_cybersphinx left13:00
LeMike joined13:00
jelly1 nevyn: hmm13:01
nevyn: is there a "nice" solution13:01
nevyn clone?13:01
jelly1 else I'll just need to clone the repo and then cp the files back13:01
hehe13:01
nevyn you could do it by rebasing the initial onto the old history if that's even possible...13:02
R1KRDO joined13:02
jelly1 hrrm sounds Like I rather setup a new repo13:03
since i can't clone into a nonempty directory13:03
Vile joined13:03
natechan left13:04
ddssc left13:04
jelly1 I think i have the solution, nevyn thanks13:04
jnavila_ joined13:04
jnavila left13:04
ddssc joined13:04
axl_ joined13:05
mossplix joined13:06
rob_w left13:06
Sigma joined13:06
dir joined13:07
rob_w joined13:08
maxandersenmaxwebinar13:08
EthanCooler1 joined13:08
jnavila_ left13:09
jnavila__ joined13:09
RaceCondition joined13:09
EthanCooler left13:09
anonymuse joined13:10
jceb joined13:10
jnavila joined13:10
jnavila__ left13:11
breakingthings joined13:11
yacks joined13:11
security left13:13
jelly1 left13:14
elixir left13:14
acharlieh left13:14
Raging_Hog left13:14
jnavila_ joined13:14
jnavila left13:15
elixir joined13:15
normanrichards joined13:15
texasmynsted joined13:15
AaronMT joined13:15
p3lim joined13:15
eijk joined13:16
texasmynsted I have a submodule in one branch and want to add it to another branch by submodule add but keep getting a message "f you want to reuse this local git directory instead of cloning again from"13:16
normanrichards left13:17
trungqtran joined13:17
texasmynsted Or "A git directory for 'foo' is found locally with remote(s):13:17
etc.13:17
cmn it also tells you what to do13:17
rcu joined13:17
texasmynsted How do I say, yes, that is correct, please clone it from the remote anyway13:17
it says to select another name with the —name option13:18
jnavila_ left13:18
jnavila__ joined13:18
AdrienBrault left13:18
texasmynsted that does not make sense. I know of no other name, and would not want a different name as I want the name to be the same in both branches13:18
I do not know why I have never seen this problem before.13:19
rcu left13:19
Vile left13:19
eijk_ left13:19
texasmynsted is the right answer to remove my local clone?13:19
texasmynsted tries that13:19
pretty_function left13:20
AdrienBrault joined13:20
texasmynsted hmm. nope13:20
kogent joined13:21
Ryback__ joined13:22
texasmynsted It is not in cache because I rm ed from cache13:22
it is not on the filesystem because I rm-ed it from the filesystem13:22
soee_ joined13:23
soee left13:23
texasmynsted I am not clear where it thinks it is and what would happen if I forced it to reuse the "existing" version13:23
Bass10 joined13:23
bytephilia joined13:24
pretty_function joined13:24
jnavila joined13:24
jnavila__ left13:25
texasmynsted it is not in cache, not in .gitmodules, or .git/config13:25
mrwalker joined13:25
Ryback__ left13:26
Ryback__ joined13:26
KevinSjoberg left13:26
p0wn3d joined13:26
MattStratton joined13:27
nathanr joined13:27
Ryback__ left13:27
charon !repro13:27
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session. This will help immensely with troubleshooting.13:27
johnflux joined13:28
rabellamy joined13:28
m0ltar joined13:29
aitiba left13:29
soee__ joined13:30
thl0 joined13:30
soee_ left13:30
wrouesnel left13:31
pretty_function left13:31
mmitchell joined13:31
jnavila_ joined13:31
jnavila left13:31
engkur left13:31
hwrd|work joined13:31
amcsi_work I don't know, but I would try googling it. There seem to be a few hits13:32
mezner joined13:32
maxmanders left13:33
maxmanders joined13:33
Chinorro joined13:35
jnavila__ joined13:35
jnavila_ left13:35
texasmynsted http://pastebin.com/96ipnLJU13:36
kdave left13:37
KevinSjoberg joined13:37
texasmynsted Yes there are two hits in google one in german one in english. Neither make a difference.13:37
jnavila__ left13:37
jnavila joined13:37
texasmynsted The suggestion to edit .gitmodules files does not make sense because the entry is not there (as shown in my above paste)13:37
trusktr left13:38
texasmynsted and 'submodule sync' would not and does not do anything since the entry is not there13:38
Voziv joined13:38
jnavila_ joined13:39
jnavila left13:39
texasmynsted Sense the files are not in the index nor on the filesystem nor referenced in the .gitmodles, nor in the .git/config, I am clearly missing something so early this morning.13:39
hehe13:39
phantomtiger joined13:40
texasmynsted I guess I will try force13:40
fightback left13:40
subhojit777 left13:40
amesha left13:41
mossplix left13:41
mwilkes|awayMatthewWilkes13:41
amesha joined13:42
aitiba joined13:42
texasmynsted hmm. I guess I need to re-read how git works internally13:42
JSharpe_ left13:43
fightback joined13:43
jnavila__ joined13:43
jnavila_ left13:43
thiago joined13:44
JSharpe joined13:44
RaceCondition left13:47
hwrd|work left13:47
hellopat left13:48
pmdarrow joined13:48
leehambley joined13:48
leehambley is it possible to completely ignore a certain path during rebasing? Perhaps not, I guess, because of all the hashing for tree integrity ?13:48
RaceCondition joined13:48
leehambley I'm in a Rails project where the `Gemfile.lock` conflitcts /every/ time, and the solutino is just to delete it, and call `bundle`13:48
jaequery joined13:49
GarethAdams if it conflicts every time then you're not committing enough13:49
mossplix joined13:49
GarethAdams ;)13:49
_ikke_ leehambley: You might want to use filter-branch then13:49
leehambley :-) we're a lot of people, on cutting edge Rails 4, so the head ref from the Rails dependendy changes every two hours :-)13:49
lacrymology joined13:49
dhruvasagar left13:49
freestyler7 joined13:50
_Qman joined13:50
leehambley _ikke_: filter-branch looks perfect, but perhaps too much learning for the next half an hour :-)13:50
Siraris left13:50
GarethAdams leehambley: deleting and calling `bundle` is not the same as fixing the conflicts however. You may end up upgrading gems that no one had planned to upgrade13:50
leehambley GarethAdams: I know, but it's close enough :-)13:50
GarethAdams which shouldn't be a problem if you're bleeding edge anyway but it's a consideration13:51
leehambley GarethAdams: right, certianly agree "all the newest things" is a terrible way to fix confifcts13:52
GarethAdams leehambley: so you're happy that different devs should all be working with different edge Rails commits?13:52
leehambley especially as it guarantees that this file will conflicts on /every/ other change13:52
AdrienBrault left13:52
dkpi left13:53
GarethAdams leehambley: sounds like you're saying that you *don't* want your (local) version of Rails to be affected by an update that someone else has made13:53
DrShoggoth left13:54
rabellamy left13:54
SuperDMP joined13:54
leehambley GarethAdams: no - but if I "bundle install", then the Gemfile in a commit from a week ago will be brouht upto date13:54
so it'll conflict with the 6.5 days old change, and the 6 day old change, and the next, etc13:54
yshh joined13:55
AdrienBrault joined13:55
johnnyfuchs left13:55
johnflux left13:56
JohnBat26 joined13:56
johnflux joined13:56
johnflux left13:56
johnflux joined13:56
soee__ left13:57
Voziv left13:57
jxpx777 joined13:59
ferdev left14:01
rob_w left14:01
ferdev joined14:02
ph^ left14:02
ehsan joined14:03
erichynds joined14:03
rpg left14:03
aitiba_ joined14:04
mossplix left14:05
hellopat joined14:05
jordilopezamat joined14:06
daniele91 joined14:06
bytephilia left14:06
juvenal left14:06
aitiba left14:06
mklappstuhl left14:07
jordilopezamat hi there! Nice to be here with you... i have a newbie question on the github web interface, is anyone willing to give me a hand ?14:07
:-)14:07
lb1a jordilopezamat: !hi14:07
gitinfo jordilopezamat: [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice.14:07
cbot_ joined14:08
lb1a jordilopezamat: there is also #github14:08
Raging_Hog joined14:08
jordilopezamat great! thanks for, lb1a ... moving to14:08
dkpi joined14:09
YS-L joined14:10
cagedwisdom left14:10
natechan joined14:12
fightback left14:12
rob_w joined14:13
mrwalker left14:14
acharlieh joined14:14
mossplix joined14:14
juvenal joined14:16
infynyxx_ joined14:17
juvenal left14:17
spaceonline joined14:17
phantomtiger left14:17
ojacobson joined14:18
KevinSjoberg left14:18
ustunozgur joined14:18
m0viefreak joined14:18
juvenal joined14:18
ustunozgur Hi there, sometimes when I make some commits, and push and then when a coworker pulls the latest stuff, my newly added files are shown as untracked, and my changes are reverted with no commit that shows the revert. I have given a more detailed explanation of the problem here: http://stackoverflow.com/questions/16039320/my-coworkers-changes-remove-my-commits-in-git?noredirect=1#comment22883433_1603932014:20
so basically git log -p a does not show my changes in the file, while --follow does. Any ideas as to what might be the problem?14:20
aberrant left14:21
oakdog8 joined14:21
ojacobson ustunozgur: I would look really closely at what 'git pull', 'git fetch', and 'git push' commands you're both running14:22
mklappstuhl joined14:22
geekbri joined14:22
ojacobson this looks a lot like someone using git push --force14:23
ustunozgur I suspected that he was running something like git pull --ours, but that doesn't seem to be the case.14:23
vedant joined14:23
rchavik left14:23
ustunozgur hmm is there a way to find out of a forced git without looking at command history?14:24
ojacobson If your shared repo (the one you're both pushing to and fetching from) has reflogs turned on, yes14:24
otherwise, not really.14:24
lb1a left14:24
ojacobson You'll see "(forced update)" during git fetch and git push14:24
ustunozgur OK, we are using github, I'll ask them to see if they have a clue.14:25
Thank you.14:25
ickyb0d joined14:25
jast left14:25
daniele91 left14:25
aitiba__ joined14:25
ndimitrij joined14:26
wesside joined14:26
uidzer0 left14:26
aberrant joined14:26
jast joined14:26
jast left14:28
mikecmpbll left14:28
aitiba_ left14:28
fightback joined14:29
vedant left14:29
vedant joined14:30
KevinSjoberg joined14:30
Artpicre joined14:30
johnnyfuchs joined14:31
jceb left14:31
jast joined14:31
MattStratton left14:32
pitzips left14:32
Rulin left14:32
wesside left14:32
aitiba__ left14:33
yshh left14:33
Rulin joined14:33
yshh joined14:33
MattStratton joined14:33
Katafalkas left14:34
TheFox joined14:34
wesside joined14:34
juanmabc joined14:35
jordilopezamat left14:35
marc_kdab_ left14:36
marc_kdab_ joined14:36
KaiSforzakaictl14:36
Rulin left14:37
Rulin joined14:38
astor does pushing a tag automatically push the commit and all dependant objects?14:38
vlt Hello. what command could show me that I’m behind the remote branch?14:38
ojacobson vlt: 'git status' will tell you14:39
rob_w left14:39
ojacobson 'git fetch' will update the cached copy of the remote branch that 'git status' (and friends) uses14:39
as will git branch -vv14:39
avinashrbhat left14:40
delinquentme joined14:40
rabellamy joined14:40
rpg joined14:41
trusktr joined14:41
jonatasnona joined14:41
vlt ojacobson: Hmmm … no, it doesn’t. git is version 1.7.9.5, `git log` locally shows a different last commit than remote. I did `git fetch`. Any idea?14:42
`git fetch` showed me that the remote branch has "updates".14:43
ojacobson !lol14:43
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all14:43
ojacobson that'll help you visualize what's going on14:43
mgedmin or gitk --all14:43
ojacobson 'git log @{u}..HEAD' and 'git log HEAD..@{u}' will tell you about the commits on either side of the split14:44
mgedmin (for a GUI version)14:44
ojacobson (even if the split is one of the two being strictly ahead of the other)14:44
lov Ah, the joys of having a coworker that clones a repo to make a branch because he doesn't understand branching.14:44
vlt And I get output from `git diff origin/topicbranch` but not from `git status`14:44
alansaul Hey guys, is there anyway to rename a file to one which already exists, merging the two files, and maintaining their history?14:46
vlt ojacobson: lol shows me (what I already knew). I just don’t know why `git status` doesn’t tell me (anymore).14:46
aitiba__ joined14:46
ojacobson Does your tracking config say what you think it says?14:46
'git branch -vv' will tell you what branch each local branch is tracking14:46
alansaul i.e. I have A_a, and A, and I want to rename A_a to A and have A have the contents of A before and also merge in the functions from A_a14:46
ojacobson is your current branch tracking the upstream you were expecting to compare with?14:46
alansaul: cat A_a >> A; git rm A_a; git add A;14:47
schemula left14:47
ojacobson i.e., do it the obvious way14:47
git will decide whether it thinks that's a rename of A_a to A or a change to A and the removal of A_a itself; either outcome is a merge hazard if others are working on either file14:47
jaequery left14:48
Yakko left14:48
_gmc joined14:49
vlt ojacobson: You were right: for that topicbranch there’s no origin branch in -vv.14:49
anderse_ joined14:49
ojacobson upgrade to 1.7.10 or later and use git branch -u to change the tracking info, or read man git-branch *closely* and use --set-upstream (the argument order is surprising)14:50
gitinfo the git-branch manpage is available at http://jk.gs/git-branch.html14:50
hierbabuena joined14:50
ojacobson or use git-config to manually set up tracking, but that's no fun :)14:50
maxwebinarmaxandersen14:51
anderse left14:51
anderse_anderse14:51
mauke joined14:51
cagedwisdom joined14:52
hierbabuena Hi guys. One quick question: I used ''git update-index --assume-unchanged a_file'' on a file with changes. Then I did ''git stash''. The changes were staged. I would have expected the changes to be ignored, because of the first command. Is this by design or a bug?14:53
Siraris joined14:54
RaceCondition left14:54
ChanServ set mode: +v14:55
jast --assume-unchanged is for telling git that it's not necessary to check the file for changes14:55
it's not meant to forbid git from checking the file14:55
m0viefreak left14:55
thiago left14:55
leehambley left14:55
tga joined14:55
jast there are several operations that discard/ignore that flag in the index14:55
tga greetings14:55
<rant>does this kind of error message actually make sense for anyone?14:56
error: src refspec master does not match any.14:56
_ikke_ yes14:56
mauke no14:56
EugeneKay Of course it does; we have the man pages tattooed on our buttocks.14:56
tga I don't mean recognizing it14:56
EugeneKay !repro your problem though14:56
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session. This will help immensely with troubleshooting.14:56
mrwalker joined14:56
tga I mean understanding what that things says14:56
mauke the answer to my question I haven't even asked yet: git show <commit1> <commit2> ...14:56
cmn tga: spell the branch properly14:56
jast yes. I know what it means.14:56
tga you get that when you try to push a new repo before commiting14:57
_ikke_ yes14:57
jast is that so?14:57
_ikke_ it says master doesn't exist yet14:57
tga it's the actual error text that I find horrible14:57
OOPMan left14:57
alansaul ojacobson, Oh, so theres no real say of doing it I guess?14:57
mauke that's because it is horrible14:57
cmn it tells you exactly what's wrong, the source in the refspec dosen't match anything git knows about14:57
alansaul I mean, thats just a copy and paste effectively14:57
_ikke_ mauke: </troll>14:57
mauke I'm not sure it's even english14:58
ojacobson alansaul: I'm not sure what you're looking for beyond that14:58
EugeneKay tga - feel free to raise your concern on the mailing list; git's porcelain is historically unfriendly to new users.14:58
ojacobson how would the solution you have in mind (no matter how fuzzy it is) differ from the obvious one, in observable ways?14:58
EugeneKay It has been getting improvements, but things like `git checkout` are just bad.14:58
MattStratton left14:58
alansaul ojacobson, Doesn't matter that much, but it kind of means you can't revert "part of a file"14:58
EugeneKay Note that just whining isn't useful. Provide a suggestion to make it better14:58
jast even better, provide a patch14:59
tga hah alright, fair enough14:59
stliu joined14:59
tga git needs a humanization team15:00
_ikke_ Hmm, maybe even add a hint when master isn't created yet15:00
ojacobson tga: you volunteering? :)15:00
tga I would if I would understand it better15:00
ojacobson (please please PLEASE make any new, more verbose "hints" disableable via git-config the way the existing advice.* entries are. :)15:00
_ikke_ yes, that's why I meant15:01
ojacobson tga: you ran 'git push origin master', correct?15:01
_iron joined15:01
MattStratton joined15:01
ph^ joined15:01
tga yeah, with -u15:01
spyroboy_spyroboy15:01
ojacobson Is this a brand-new repository, or a clone of a brand-new repository?15:01
(I'm going to try to get you up to speed :)15:02
netiul left15:02
tga init, add, (forget to commit), add remote, push15:02
Raging_Hog left15:03
tga so that would make it a brand new one, no empty master15:03
ojacobson yeah, ok15:03
jaequery joined15:03
huoxito joined15:03
ojacobson So, "git push" takes a thing called a refspec, because you can push more than just branches15:03
you can push tags, groups of branches, or even non-branch "refs" (git's underlying naming mechanism, on which branches are built)15:04
A newly-created repository, until you run 'git commit' at least once, has no branches15:04
not even master15:04
jast afaics this error message comes from plumbing15:04
ojacobson (git "cheats" and allows HEAD to point to a nonexistant branch in that case, so that it can tell what branch the initial commit should create)15:04
tga right, so I told it to push that and it went huh, there is no master15:04
ozette left15:05
jast so, replacing it would be a rather involved project15:05
YS-L left15:05
ojacobson git push is complaining that the "refspec" master didn't match any local refs15:05
given that, what would a better message look like :)15:05
thiago joined15:05
jast (remote.c is used by plumbing, too, right?)15:05
rpg_ joined15:06
ZoeB joined15:06
rpg left15:06
tga heh at least something like "Source refspec master doesn't exist locally"15:06
_ikke_ Unknown local branch master?15:06
tga that sounds better actually15:07
jast neither would be correct15:07
example: 'Unknown local branch refs/remotes/*'15:07
psoo left15:07
jast doesn't make sense15:07
in any case, can we change the message without breaking scripts?15:07
I sort of doubt it15:07
_ikke_ Are those messages part of the plumbing 'api'?15:08
cbreak-work left15:08
_ikke_ I hope not actually15:08
tga "Unknown source master"15:08
jast I'm not sure15:08
cmn push is porcelain, you shouldn't be relying on the text15:08
ojacobson it'd have to use the branch name if and only if the resulting refspec's source was (A) not a wildcard refspec and (b) started with either refs/heads/ or +refs/heads/15:08
houser joined15:08
jast "Source refspec 'master' does not match any local refs" would be more readable and still accurate15:08
_ikke_ rigt15:08
ThomasLocke left15:08
ojacobson it still presupposes you care about refs rather than about the SCM-like abstraction built on them15:09
I propose that most users are in the latter set15:09
ZoeB left15:09
tga Source 'master' does not match any local refs15:09
up to you to know what master is, you requested it15:09
KevinSjoberg left15:09
tga oh, wait, I still said ref15:09
jast ojacobson: okay, but then you'd still get messages like 'Branch refs/remotes/origin/* does not exist' which make even less sense15:09
cmn 'mater' can never be an actual ref, though; that's the short name for a branch15:09
Cromulent joined15:10
ojacobson it's a short name, yes15:10
jast and you can push notes, too, can you not?15:10
cmn you know when you only have the lhs, so you can tailor it to that15:10
jast notes are not branches :)15:10
ojacobson it's only a short name for a branch if the branch exists, given the way branch names are resolved :)15:10
aitiba_ joined15:10
cmn right15:10
which is why the word "match" is used15:10
ojacobson tga: "up to you to know what 'master' is" is, I think, sane15:10
rath left15:10
madewokherd joined15:10
ojacobson Some people still manage to blow their feet off by creating local branches that shadow remote-tracking branches, but it's rarer than I would've expected15:11
jast how about something like: "Source 'master' not found"15:11
ojacobson (or branches with the same name as a tag)15:11
MattStratton left15:11
jude left15:11
tga jast: that is more informative15:12
alunduil joined15:12
leehambley joined15:12
aitiba__ left15:12
texasmynsted left15:12
jude joined15:13
MattStratton joined15:13
houser left15:13
juril left15:13
Element9 left15:13
aitiba__ joined15:14
diverdude joined15:14
infynyxx_ left15:14
diverdude I have a git repo on my clientmachine cloned from mydomainA.com. I now have a new server mydomainB.com where i made a --bare repo. My question is, is it possible to change my client repo to this new repo and upload files there?15:14
security joined15:14
ojacobson diverdude: push commits and refs to it as normal15:15
you can add it as a second remote, or re-point existing remotes to it; see man git-remote15:15
gitinfo the git-remote manpage is available at http://jk.gs/git-remote.html15:15
JEEB left15:15
diverdude ojacobson, but how do i instruct the repo to push to the new server instead?15:15
aitiba_ left15:16
_ikke_ diverdude: git remote --set-url origin <new_url>15:16
cmn it's set-url, no dashes15:16
vedant left15:16
batrick left15:16
diverdude _ikke_, ok, and how do i see the current?15:17
_ikke_ d'oh15:17
aitiba_ joined15:17
_ikke_ diverdude: git remote show -n origin15:17
(-n so that it doesn't probe the remote)15:17
cmn it's easier to just do git remote -v15:17
but maybe that's just me15:18
Katafalkas joined15:18
aitiba__ left15:19
GeertV left15:19
v0n joined15:20
stliu left15:21
rabellamy left15:21
barneybook joined15:21
_iron left15:22
johnflux left15:22
papegaaij left15:22
johnflux joined15:22
johnflux left15:22
johnflux joined15:22
fsvend left15:23
n00dle joined15:24
batrick joined15:25
infynyxx joined15:26
b1rkh0ff joined15:26
Dougie187 joined15:27
h0bbit left15:27
infynyxx left15:27
lavaman joined15:27
leehambley left15:28
Siraris left15:29
NiteRain joined15:29
nioncode joined15:30
thl0 left15:31
Cromulent left15:32
thl0 joined15:32
ThePawnBreak joined15:32
rath joined15:32
SeoZSeoZ-work[AWAY]15:33
cagedwisdom left15:33
rasto left15:33
ustunozgur left15:33
br07 joined15:33
delinquentme left15:33
fightback left15:33
edude03 joined15:34
t-mart joined15:34
aitiba_ left15:35
vedant joined15:35
thor7070 joined15:35
ilteris_ left15:36
spaceonline left15:36
aitiba_ joined15:36
bmac left15:36
aartist left15:36
ddssc left15:36
thierryp left15:37
br07 left15:37
thor7070 left15:37
JEEB joined15:38
tbosua left15:39
TheFox left15:39
jdav_gone left15:40
vedant left15:41
ilteris_ joined15:42
Donckers joined15:42
LekeFly joined15:42
thierryp joined15:42
n00dle left15:43
aitiba__ joined15:43
mikecmpbll joined15:43
aberrant left15:43
soulshake left15:45
phantomtiger joined15:45
aitiba__ left15:46
aitiba_ left15:46
rasto joined15:46
aitiba__ joined15:46
mg983 joined15:46
aberrant joined15:46
mg983 hi guys15:46
securitymegha15:46
gerep left15:47
ilteris_ left15:47
mg983 for some reason whenever i checkout from my repo it is setting permissions on my files to 665…. and i have to manually set them to 755 to use them properly… how can I resolve this15:47
ojacobson mg983: what does 'git ls-tree HEAD -- path/to/directory/containing/affected/files' print? gist/pastebin it15:47
I suspect the solution is 'chmod foo +x; git add foo; git commit' but the ls-tree output will help decide15:48
ergZay left15:48
mg983 http://pastebin.com/TsQfmi2v15:48
soulshake joined15:48
ojacobson Figured. They're checked in with the +x bit unset15:48
mg983 there are also files underneath lib15:48
ojacobson so git-checkout will not set the +x bits15:48
mg983 oy15:49
how do i fix that?15:49
ojacobson (php scripts don't need to be +x unless you're invoking them via exec(), though)15:49
(mod_php, in particular, will happily interpret them)15:49
thiago mg983: what was the permission on the file when you added/committed it?15:49
avinashrbhat joined15:49
thiago anyway, to fix: chmod +x filename && git add filename && git commit15:49
habva2013 joined15:49
mg983 ok cool15:50
for each one?15:50
ilteris_ joined15:50
delinquentme joined15:50
ojacobson chmod the files you think should be +x, git add them all, and git commit them all at once at the end15:50
Katafalkas left15:50
thiago well, chmod and add per file15:50
commit once15:50
mg983 yea15:50
ojacobson no need for a separate commit per file15:50
spyroboy wait15:50
mg983 gracias15:50
spyroboy git stores file permissions?15:50
thiago spyroboy: no, just one +x bit15:50
spyroboy oh I see15:51
so does it return a+x or u+x?15:51
thiago it's either 644 or 75515:51
Katafalkas joined15:51
spyroboy ah.15:51
I see.15:51
thiago it tests 0100 and then sets to 755 if that is set15:51
spyroboy I see.15:51
thanks for that.15:51
very useful15:51
asedeno left15:51
ojacobson spyroboy: all of the +x bits get set, except for the ones masked out by your umask15:51
mg983 you guys rule15:52
thiago right, files are created 0666 or 077715:52
the umask removes the extra bits15:52
ThePawnBreak left15:52
PaulCapestany joined15:52
thiago but if you do git ls-tree, you'll see git says 100644 or 10075515:52
thierryp left15:53
starsinmypockets joined15:54
zoresvit left15:54
ilteris_ left15:55
starsinmypockets I'm starting development work on an existing webservice... does it make sense to add a dev branch to the existing live repo, then merge with the live branch, or is it smarter to use separate repos?15:55
cmn separate repos isn't going to bring you advantages unless you have some odd configurations15:56
mitz left15:57
MattStratton left15:57
dmarkham_ joined15:57
spaceonline joined15:57
rudak joined15:58
Chinorro left15:58
trungqtran left15:58
ilteris_ joined15:58
Adlai left15:58
leehambley joined15:59
PerlJam cmn: it might if he doesn't have direct access to the webservice repo15:59
cmn but in that case it wouldn't even come up15:59
uidzer0 joined16:00
starsinmypockets Right, I do have access... it's common practice to have dev and production branches in the same repo, no?16:00
asedeno joined16:00
PerlJam starsinmypockets: sure16:00
cmn yes16:00
thiago left16:00
PerlJam starsinmypockets: or, alternatively, it's weird to have them in different repos :)16:00
hierbabuena left16:01
cmn especially if it's the branch you use for testing or similar16:01
starsinmypockets Right - ok16:01
Yeah exactly16:01
cmn you'd have topic branches in your own repo if there's too many people for everyone to push to the main repo and keep an overview (or if access is a problem)16:01
ThePawnBreak joined16:01
mg983 thanks16:02
acharlieh left16:02
asedeno left16:02
asedeno joined16:03
pmdarrow left16:03
jxpx777 left16:03
tureba left16:04
kogent left16:04
flijten left16:05
GarethAdams left16:05
Spydemon joined16:05
alorence left16:06
Siraris joined16:06
acharlieh joined16:06
tureba joined16:06
Spydemon Hi. We have some wrong commint in a remote branch. Is it a good idea to use `git revert` for “undoing” the wrong one?16:06
alunduil left16:06
pmdarrow joined16:07
jargon left16:07
Remram left16:07
diverdude _ikke_, hmmm it seems to not work....it suggests this syntax: git remote set-url --add <name> <newurl>16:07
_ikke_, should i then delete the old url first? and how do i know the name of the old url?16:08
cmn Spydemon: that's what it's for16:08
Lucha joined16:08
jaequery left16:08
jnavila__ left16:08
leehambley left16:08
Spydemon Ok cmn thanks. I was thinking that it's maybe not a good idea to do it on the remote one. ;-)16:09
MattStratton joined16:09
pastime joined16:09
cmn you won't do it on the remote one, the change happens in whatever branch you are16:10
kurkale6ka joined16:10
hpahpa_sick16:10
rath left16:11
erichynds left16:12
delinquentme left16:13
JohnBat26 left16:13
SuperDMP left16:14
Remram joined16:14
v0n left16:14
LeMike left16:14
thiago joined16:14
marhaban joined16:15
elixir left16:15
ozette joined16:16
j416_j41616:16
LeMike joined16:16
alainus joined16:17
alainus how do I set the shell prompt to show the current git branch ?16:17
hyperair joined16:19
amesha left16:19
_Qman left16:19
BadDesign joined16:19
BadDesign left16:19
BadDesign joined16:19
rakl joined16:19
Yougi left16:19
mmitchell left16:19
amesha joined16:19
john2496 joined16:20
LeMike left16:20
ergZay joined16:21
mathstuf joined16:21
Watabou left16:21
boombatower joined16:21
LekeFly left16:22
mathstuf hi, it seems as though with the latest git, MERGE_HEAD no longer exists after a merge; was this intentional?16:24
jordilopezamat joined16:24
mitz joined16:24
cmn it sounds just right16:25
MERGE_HEAD is there to assist git in doing a merge with several steps16:25
after the merge, it's meaningless16:25
hyperair left16:25
cmn even if it did exist, you shouldn't be reading from it16:25
jaequery joined16:26
rpg_ left16:26
mathstuf we were just testing for existence16:26
so the proper way to detect a merge commit in commit-msg hooks is to count parents?16:26
or is there some other way?16:26
cmn that doesn't happen after the merge16:26
jaequery left16:26
a-l-e joined16:27
jaequery joined16:27
mathstuf hmm16:27
LeMike joined16:28
LeMike left16:28
nathanr left16:28
jdav_gone joined16:30
bytephilia joined16:30
infynyxx joined16:30
angelsl left16:31
ultimateboy joined16:31
cmn are you checking during or after the merge?16:31
mmitchell joined16:31
mikecmpbll left16:31
erichynds joined16:31
mathstuf in the commit-msg hook16:32
ultimateboy Question, is there an opposite of "git apply --no-add" to apply a patch without removing anything?16:32
mathstuf though theres some weirdness going on; ill see where it thinks it is16:32
Guest59049mf_16:33
mathstuf (weirdness == customg merge script with gerrit integration)16:33
mitz left16:33
yshh left16:33
yshh_ joined16:34
Davey joined16:34
Sigma left16:34
JaredMiller joined16:34
mathstuf cmn: looks like we merge --no-commit followed by a --commit16:35
err commit -e16:35
kurkale6ka left16:35
fRAiLtY- left16:35
dankest joined16:36
cmn then it should be there, it's how git-commit knows to create a merge16:36
tjbiddle joined16:38
yshh joined16:38
yshh_ left16:38
Katafalkas left16:39
mathstuf seems it disappears before the commit-msg hook is called16:39
khushildep joined16:40
Shusshu joined16:41
cmn well, commit-msg is only meant for checking the contents of the message, maybe there's an assumption in the code that it won't need it16:41
mathstuf well, as a stopgap, ive edited the hook to let me work, but there probably should be a way to detect a merge commit in commit-msg (other than the first line matching '^Merge ')16:42
spuz left16:43
lolmaus joined16:43
john2496 left16:43
cmn are you sure you need that hook?16:43
mtk left16:44
lolmaus I've filed an incomplete commit. Instead of doing another commit, how do i add to the previous one?16:44
mathstuf it checks the first line < 78 wide16:44
bremner lolmaus: man git commit --amend16:44
gitinfo lolmaus: the git-commit manpage is available at http://jk.gs/git-commit.html16:44
john2496 joined16:44
cmn so why do you need to know if it's a merge?16:44
mathstuf merge commits are exempt from that condition16:44
as are reverts16:44
kristofers left16:44
nodweber left16:45
lolmaus bremner, could you please give a hint which option will help me?16:45
etcetera joined16:45
bremner I could and I did.16:45
lolmaus Oh missed it, sorry16:46
bremner, thank you a lot16:46
bremner no problem16:46
etcetera left16:46
elnn left16:46
suy left16:47
jdunck joined16:47
ergZay left16:47
kristofers joined16:47
TeckniX joined16:48
danman joined16:48
ZaherDirkey left16:49
hyperair joined16:49
lolmaus left16:49
mikef joined16:49
cmn checking the message seems to make sense, as you want an exception for a particular type of message16:49
Noldorin joined16:49
pastime left16:49
ojacobson I don't think there's a good mechanistic way to detect reverts that's morally superior to checking the message16:50
mikef left16:50
mathstuf ojacobson: thats all it does right now16:50
but the merge detection was trying to be smart16:50
ojacobson you could, in principle, compare the diffs, but you'd have to examine all of history, and even then it'd be tricky16:50
merges at least leave footprints16:50
mathstuf 'Merge files A and B together' is a plausible message16:50
ojacobson are you checking this on push, too, or only on commit?16:50
mathstuf commit16:50
cmn would you want to lift the restriction for a merge commit that doesn't have the canonical format?16:51
acharlieh left16:51
mathstuf cmn: i doubt it16:51
mikef joined16:51
cmn then the message seems the more correct option16:51
mathstuf k16:51
Shusshu left16:52
irqq_ left16:53
Noldorin left16:54
hwrd|work joined16:54
JaredMiller1 joined16:54
JaredMiller left16:54
Paul92 joined16:56
kermit left16:57
kermit joined16:57
hwrd|work left16:58
etcetera joined16:58
wheezl joined16:59
hwrd|work joined16:59
Gentlecat__ joined16:59
danman left17:00
anderse left17:00
mg983 thiago: are you around?17:01
hwrd|work left17:01
dkpi left17:01
mitz joined17:02
maqr joined17:02
maxmanders left17:02
acharlieh joined17:03
penguin1 left17:03
mg983 ojacobson: are you around?17:03
MattStratton left17:03
mg983 ojacobson: thiago that solution doesn't seem to have helped :-\17:03
for some reason whenever i checkout from my repo it is setting permissions on my files to 665…. and i have to manually set them to 755 to use them properly… how can I resolve this17:03
Saby joined17:04
Saby left17:04
Saby joined17:04
yshh left17:04
leehambley joined17:04
hyperair left17:04
JaredMiller1 left17:05
thiago mg983: occupied17:05
dreiss joined17:05
hyperair joined17:06
trungqtran joined17:06
tureba left17:06
EugeneKay mg983 - git tracks the +x bit; chmod +x && git add Foo.txt && git commit17:06
mg983 I did that17:06
it doesn't work17:06
EugeneKay git update-index --chmod=+x -- Foo.txt17:06
Is this Windows? ;-)17:06
mg983 no17:06
osx17:06
EugeneKay Odd. What's `git config core.filemode` say?17:07
[1]JPeterson left17:07
mg983 true17:07
mikef left17:07
mg983 i ran that update-index17:07
to no avail17:07
EugeneKay Really odd. I blame Steve Jobs.17:07
What does `git diff` say?17:07
mg983 blank17:07
this is frustrating :\17:08
EugeneKay Hm. So the file is +x in the repo, but not when checking out17:08
amesha left17:08
aksnot joined17:08
EugeneKay No clue on that - I blame per above ;-)17:08
mg983 when files are created in linux do they automatically have a specified permission assigned to them based on the user?17:08
amesha joined17:09
EugeneKay umask is applied, or whatever the app creates it as17:09
leehambley left17:09
mathstuf mg983: are you checking out on NTFS or FAT?17:09
mg983 osx17:09
FAT17:09
tinti joined17:09
EugeneKay Oh, FAT, not HGFS17:09
THERES your problem.17:09
mitz left17:09
mg983 wait...17:09
i'm checking out on a linux box17:09
i'm sorry17:09
long day so far17:09
EugeneKay -_-17:09
mg983 you have no idea how frustrating this is17:10
:-\17:10
EugeneKay ext3/4 then?17:10
kmels joined17:10
mg983 how can I tell for certain17:10
mathstuf FAT doesnt support *nix permissions17:10
EugeneKay `mount`17:10
ferdev left17:10
bmac joined17:10
tjbiddle_ joined17:10
tureba joined17:10
gwty left17:10
mg983 http://pastebin.com/0sBgZsM917:10
that's the result on my checking out box17:10
mathstuf mg983: are you checking out on /dev/vzfs ?17:11
EugeneKay Ahhhh reiserfs.17:11
The official filesystem of wife-murdering.17:11
mg983 mathstuf: i have no idea17:12
ferdev joined17:12
mg983 i'm just a developer trying to get this to work17:12
anderse joined17:12
mg983 so please excuse my ignorance17:12
EugeneKay I've never used git on reiser, so I dunno really17:12
mathstuf `pwd`17:12
EugeneKay It may not be handling it correctly17:12
mg983 my pwd is /home/mg983/public_html/angular17:13
EugeneKay I would suggest that you post something to the mailing list - the important details are the fact that it's +x in the repo, reiserfs filesystem, and +x is not being set.17:13
hyperair left17:13
mg983 is there any way I can make 100% sure it is +x on the repo? maybe via github?17:13
EugeneKay I would not be surprised to leearn that this is a corner-case - reiser is not a popular filesystem nowadays.,17:13
LucasTizma joined17:13
madh888 joined17:14
tjbiddle left17:14
tjbiddle_tjbiddle17:14
yshh joined17:14
mg983 ugh17:15
nathanr joined17:15
EugeneKay Talk to your sysadmin about using a more-common FS, eg ext3/417:15
jast I never ran into any problems like that while I used reiserfs, though admittedly that was quite some time ago17:15
mg983 how can I be 100% certain it's properly set as +x in the repo?17:15
bytephilia left17:15
jast git ls-tree HEAD17:16
normal files show as 100644, executable files show as 10075517:16
mg983 i want these to be 755...17:16
they are 75517:16
jast (it doesn't actually mean '755' literally, just that the file is marked as executable)17:17
mg983 all of the files when i ls -l17:17
are green with an asterisk17:17
what does that mean?17:17
marcdel joined17:17
mg983 again excuse the ignorance17:17
jast that normally means that all the files are executable17:17
depends on your colour config, of course17:17
mg983 ok17:17
EugeneKay Smells like reiser problems to me17:17
It'd be a shame if it.... MURDERED YOUR REPO17:17
mg983 ok17:18
EugeneKay (sorry, I'll stop)17:18
jast that would be a ridiculous problem for reiser to have17:18
chamunks left17:18
jast I've run a freaking _server_ on reiserfs (though not for long)17:18
chamunks joined17:18
EugeneKay Doesn't git do fs capability checking somewhere?17:18
jast all the common linux filesystems do all this correctly17:19
mg983 i'd be happy to give someone root access to this box if they can investigate?17:19
elixir joined17:19
mg983 this is so frustrating17:19
jast be careful with stuff like that17:19
mg983 i know17:19
i'm at a loss17:19
jast I suppose I could spare a few minutes...17:19
EugeneKay I'm guessing this isn't a public repo17:19
mg983 yeah it is17:20
etcetera left17:20
mg983 actually17:20
it's on github17:20
EugeneKay Linky?17:20
mg983 1 sce17:20
sec17:20
https://github.com/matstars/angular_mat17:20
jast why the heck do you have mode=755 for /dev17:20
mm, I have that too17:20
makes no sense to me, but whatever :)17:20
etcetera joined17:20
ergZay joined17:21
EugeneKay What file is giving you the issues?17:21
jast well, if you want me to look, let me know17:21
EugeneKay I see add-todos.js changed to +x on the last commit17:22
mg983 all of them17:22
jast why is a .js file supposed to be +x anyway? :}17:22
DonRichie joined17:22
maslowbeer left17:22
EugeneKay Well, it looks right to me.17:22
What does `umask` say?17:23
jast not to me... it's insanity for all those files to be marked as +xc17:23
grawity jast: Because it's a program?17:23
jast *+x17:23
grawity: it's a web app17:23
the JS files are delivered to clients17:23
EugeneKay grawity - in this case it isn't; it's a webapp. Only the .php should be +x17:23
jast not even that17:23
few PHP installations are plain CGI17:24
EugeneKay Depends upon your php config, but usually yes.17:24
I require them to be +x anyway17:24
jast most use mod_php or type-/extension-based handlers17:24
Noldorin joined17:24
EugeneKay mg983 - <EugeneKay> What does `umask` say?17:24
mg983 000217:24
EugeneKay Hm. Now I'm stumped.17:25
mg983 nuuu17:25
:)17:25
EugeneKay Lemme make up a test fs17:25
MattStratton joined17:26
jast I'm 99.9% certain that it's not because of reiser17:26
lavong left17:27
kevwil joined17:27
daniel_- joined17:27
tvw left17:28
jxpx777 joined17:28
jxpx777 left17:28
jxpx777 joined17:28
etcetera left17:29
EugeneKay Bah. And my kernel doesn't speak reiser.17:31
gwty joined17:32
mg983 does it speak Bocce?17:32
EugeneKay No, but it does interface with dehumibifiers17:33
mathstuf left17:33
ProLoser joined17:33
rpg joined17:33
motto joined17:33
jast so, it's not because of reiser :)17:33
m8 left17:35
forlin left17:35
tinti left17:35
hyperair joined17:36
breck7 joined17:36
starsinmypockets left17:37
spaceonline left17:37
mg983 jast = the man!17:37
Raging_Hog joined17:37
spaceonline joined17:38
tinti joined17:38
mitz joined17:39
maslowbeer joined17:39
mtk joined17:40
JPeterson joined17:40
cbreak-work joined17:40
elixir left17:41
elixir_ joined17:41
Davey left17:41
Milossh left17:42
jwmann joined17:45
hwrd|work joined17:45
goshawk joined17:46
mitz left17:47
swiety joined17:48
JaredMiller joined17:48
vedant joined17:48
johnflux left17:49
johnflux joined17:49
johnflux left17:49
johnflux joined17:49
flavius joined17:49
lacrymology left17:49
hwrd|work left17:51
MatthewWilkesmwilkes|away17:53
hwrd|work joined17:53
marc_kdab_ left17:54
soulshake left17:54
treaki__ joined17:54
marc_kdab_ joined17:55
mishok13 left17:55
soulshake joined17:56
maxmanders joined17:56
nkr left17:57
m8 joined17:57
danishkhan joined17:57
motto left17:58
jordilopezamat left17:59
treaki__ left17:59
jordilopezamat joined17:59
JaredMiller left17:59
m8 left17:59
ferdev left17:59
treaki joined18:00
oakdog8 left18:00
InvidFlower joined18:00
m8 joined18:01
tenmilestereo joined18:02
hyperair left18:03
dhruvasagar joined18:03
hyperair joined18:04
motto joined18:04
tevio left18:04
rpg_ joined18:04
opus joined18:04
rpg_ left18:04
rpg_ joined18:05
rpg left18:05
leehambley joined18:05
alkino left18:05
Watabou joined18:05
aksnot left18:06
chimay left18:06
Lucha left18:06
Noldorin left18:06
m8 left18:06
normanrichards joined18:07
oakdog8 joined18:08
thiago left18:08
mrwalker left18:08
marc_kdab_ left18:08
SuperDMP joined18:09
marc_kdab_ joined18:09
marc_kdab_ left18:09
marc_kdab_ joined18:10
vedant left18:10
habva2013 left18:11
nkr joined18:11
m8 joined18:12
gumnos left18:13
motto left18:13
exoon joined18:14
plasticboy left18:16
arvind_khadri left18:17
ergZay left18:17
rednaks joined18:17
GoshaZa left18:19
lacrymology joined18:19
jpwhiting joined18:19
plasticboy joined18:19
plasticboy left18:20
alvaro_o joined18:21
leehambley left18:21
opus left18:21
plasticboy joined18:21
motto joined18:21
macabre joined18:21
GoshaZa joined18:21
jpwhiting hey all, I have two git repos kde-dev-scripts and kde-cmake-scripts18:21
plasticboy left18:21
opus joined18:21
jpwhiting kde-cmake-scripts contains 61 commits all under cmake-utils prefix18:21
opus left18:22
lifechamp joined18:22
plasticboy joined18:22
jpwhiting I want to merge the kde-cmake-scripts commits into kde-dev-scripts and keep file history (author, committer, etc.)18:22
lifechamp are there user permissions for r/w within individual repos, or how is that done typically using git?18:22
m8 left18:22
ProLoser left18:22
lifechamp well, write i suppose you don't have to accept the push, but what about read restriction?18:22
juvenal left18:23
jpwhiting how can I do this? my first thought was to use git format-patch to create patches of the 61 commits, but I hear that will keep author, but not committer if I do git am each patch18:23
_Vi lifechamp, Reading permission is better to be managed with per-repo granularity.18:23
scorphus joined18:23
bremner jpwhiting: fetch one into the other and merge?18:23
mitz joined18:23
marni_ joined18:23
lifechamp _Vi you mean, have a separate repo for the group of users which should be allowed to read the entire repo? or?18:24
_Vi lifechamp, You should split repository into public and secret parts (possibly one being submodule of the other)18:24
jpwhiting bremner: just git remote add cmake kde-cmake-scripts, then git merge cmake/master master or something?18:24
from within a local clone of kde-dev-scripts18:24
jbub left18:24
mikef joined18:25
_Vi lifechamp, Like in "Number of user groups (considering read access) == number of repositories".18:25
bremner jpwhiting: something along those lines.18:25
przemoc left18:25
_Vi Is it possible to configure "git submodule update --init" to first check local collection of Git repositories instead of downloading (and preferrably put downloaded subrepos to the collection as well)?18:26
macabre left18:26
macabre joined18:26
thasmo joined18:27
jbub joined18:27
marni_ left18:27
przemoc joined18:28
lifechamp _Vi perfect explanation. Just curious tho, is it possible to restrict read access per file in a repo? was this a bad/diff design to implement if not? why?18:28
LekeFly joined18:28
Paul92 if i have 2 branches: master and A, how could I replace the master branch with the branch A and remove master branch's content? basically, I want to delete the current master branch and make A become the new master branch.18:28
_Vi lifechamp, In one repository, Git can pack together different files (even ones that are not expected to share anything common).18:29
lifechamp, And fetching works using packs.18:29
trungqtran left18:29
_Vi lifechamp, Maybe you have hack by restricting access per-ref, but I don't expect this to be reliable.18:29
s/you have/you can/18:30
BrianR left18:30
grawity _Vi: Doesn't the git daemon create a new pack containing just the objects to be downloaded?18:30
mitz left18:30
_Vi grawity, Maybe. But I would not rely on this for security.18:30
grawity, For example, some implementation may choose to give cached version with a little of extra objects...18:31
juvenal joined18:31
mmitchell left18:31
arietis joined18:31
wrouesnel joined18:32
_Vi "Secret" part should be kept small (and users able to access the secret part should not be numerous).18:32
juvenal left18:32
grawity the answer "it's impossible" is correct anyway, since the protocol cannot modify commits in any way, so no skipping files18:32
_Vi Why do you want to restrict read access to some files? Is it a config files with database password or something like that?18:32
grawity but I *think* there was something in the specs that forbade sending unrelated objects over the smart protocol18:33
breck7 left18:34
thiago joined18:34
milki Paul92: delete the master branch and rename A as master18:34
ferdev joined18:34
ehsan left18:34
grawity Paul92: alternatively, reset master to where A is, then delete A18:35
_Vi grawity, Maybe yes, maybe no... In any case fine grained read access is not a Git feature, as far as I understand. It should be done by a bit other means.18:35
hellz joined18:36
Paul92 milki, grawity: ok, thank you18:36
grawity if you're on master right now, `git reset --hard A`18:36
bauruine joined18:36
_Vi So, is there some thing like "central local storage of submodules" (as a contrib script, for example)?18:37
exoon left18:37
mmitchell joined18:38
jbub left18:38
m8 joined18:38
lausi left18:38
lausi joined18:39
jordilopezamat left18:39
gitinfo set mode: +v18:39
hellz quetion from someone looking to switch to git....No team, its just me. Can I create a local repo and leave it at that? Do I need to run one on a server? Any things I'll be missing doing it that way? Figure I'll just back up (copy/tar) the entire project folder including .git stuff to dropbox or S3 or something. Any problems with this or suggestions for a better plan?18:39
motto left18:40
danishkhan left18:40
imMute hellz: you can run it completely locally. you lose nothing18:40
jbub joined18:40
hellz does that backup plan make sense?18:40
imMute could get by just synching the .git folder (unless you want to backup uncommitted things too)18:41
Skaag left18:41
Skaag joined18:41
imMute there's probably scripts to pack the data more efficiently (or into a single file, etc)18:41
xrq hellz: it's easier to push to a server than make backups... unless you don't have any servers to push to18:41
avinashrbhat left18:42
xrq hellz: from what you said though you could push to your dropbox or S3 account18:42
bremner hellz: tarballs of the whole thing is fine. Synching repos via dropbox is a bad idea18:42
or of course pushing to a git server is fine too, but not mandatory.18:43
xrq hellz: I would recommend pushing as often as possible unless you have a continuous backup system18:43
hellz right ok. i have a cron job to push to S3 nightly. I can add a tar easily to it.18:43
mossplix left18:43
normanrichards left18:44
hellz i eventually will setup a server for git, but dont want to stop development right now if I dont need to. if I can wait a month or so....thats what ill do.18:44
St_Marx left18:45
xrq hellz: you can also push to dropbox on your own machine in that case18:45
trungqtran joined18:45
robertodecurnex hellz: yea, you can just have your local repo18:46
mmitchell left18:46
xrq not that I recommend putting source code on dropbox :/18:46
robertodecurnex hellz: and push it in a year :P18:46
mmitchell joined18:46
erichynds left18:46
xrq robertodecurnex: spoken like someone who's never lost a hard drive18:46
robertodecurnex hellz: better plan, there are some free, private, git services out there18:47
xrq: haha, yea, i was going to explain that18:47
hellz robertodecurnex: rather not put source on there.18:48
robertodecurnex hellz: so you can pick one of those, start there, and migrate to another one (yours or something like a paid github repo) whenever you can18:48
CareBear\ joined18:48
sq-one joined18:48
tvw joined18:49
St_Marx joined18:49
hellz ill figure out the serverside plan when i NEED to....just wanted to make sure that I can do everything I need to locally for now.18:49
RalfR joined18:49
robertodecurnex hellz: sure you can, you can lost your hardrive too (just trying to keep xrq happy :P)18:50
mossplix joined18:50
xrq just trying to avoid giving out bad advice :)18:50
Raging_Hog left18:50
mmitchell left18:51
system64 joined18:51
Chillance joined18:51
mmitchell joined18:51
alansaul left18:52
snearch joined18:52
ddv left18:52
ddv joined18:52
phantomtiger left18:52
edgeuplink left18:54
jdolitsky joined18:54
amesha left18:55
diegoviola joined18:55
amesha joined18:55
tevio joined18:56
v0n joined18:57
mitz joined18:58
jdolitsky left18:59
megha left19:00
[1]habva2013 joined19:00
_Vi left19:01
jdolitsky joined19:02
Villadelfia left19:03
SeySayux left19:03
MattStratton left19:03
chisler joined19:03
alansaul joined19:04
achadwick left19:04
lacrymology left19:04
hoschi left19:04
MattStratton joined19:04
private joined19:04
lacrymology joined19:05
hwrd|work left19:05
e66 joined19:06
cristi_ joined19:06
cristi_Guest3112019:06
ThePawnBreak left19:08
diegoviola left19:08
marn joined19:08
megha joined19:09
marn left19:09
Guest31120 left19:09
breck7 joined19:10
maksim_ joined19:10
ThePawnBreak joined19:10
danishkhan joined19:10
megha left19:10
snearch left19:10
maksim_ Hi, is there a way to configure git to send an email everytime my repo gets cloned?19:11
brenelz joined19:11
nicklasbo joined19:11
brenelz left19:11
thierryp joined19:11
cehteh maksim_: in some way for sure19:12
hwrd|work joined19:12
cehteh not git directly, but with some tricks19:12
Gabri joined19:13
kristofers left19:13
maksim_ cehteh: cool :) can you guide to some resource about that?19:13
megha joined19:13
Chaser joined19:13
cehteh how do you serve the repo? git-daemon or http?19:13
franck joined19:13
franckGuest8981219:14
madh888 left19:14
maksim_ i have one repo under git-daemon, and i have one using bitbucket.. if the later can do that job i would use it too19:14
lacrymology left19:14
cehteh and its prolly not *that* trivial to do, as you need to figure out how to differentiate a update(fetch) from a clone19:14
i'd track the logs of git-daemon19:15
well looking into the git hooks might also be worthwhile, but i dont know if there are any hooks run by git-daemon19:15
maksim_ mmm19:16
MistuhKurtz joined19:16
cehteh non-trivial but doable :)19:17
rcu joined19:18
maksim_ cehteh: with try checking the doc, looks challenging :D19:18
system64 left19:18
thiago left19:19
danishkhan left19:19
mitz left19:20
cehteh why do you want that anyways .. i dont see much *real* use for it19:21
cbreak maksim_: you can't easily tell appart a clone and a fetch19:21
exoon joined19:21
maksim_ left19:22
cbreak gitolite could probably allow you to hook read access19:22
but it's not straight forward19:22
juvenal joined19:22
pantsman joined19:22
tevio left19:22
goodwin_i joined19:23
system64 joined19:24
hafeez3000 left19:24
Seveas I don't think there is a ready-made point for this. Clone and fetch both simply connect and call upload-pack. You'll need to patch that command and somehow check whether it's a clone or fetch. Not sure it's as trivial as you think :)19:24
jdolitsky left19:26
cbreak it's not possible in general19:26
since a clone is an init and a fetch19:26
if you could somehow listen in on the communication between the git instances you could try to detect if the client already has some blobs19:27
Seveas a clone is a fetch that has nothing for any branch, this may be detectable in upload-pack19:27
cbreak but that's definitely non-trivial19:27
thierryp left19:27
WormDrink left19:28
axl_ left19:28
Seveas I don't know the details of the git protocol, but iirc it goes something like 'I have branch X at sha Y, give me what's newer' for all branches. X will be "nothing" for a clone.19:28
Y will be nothing*19:28
cbreak it's not about branches19:29
it's about hashes19:29
I think you try to establish a common front of known history19:29
(by sending tips of what you have)19:29
Seveas same difference, you will send "I have nothing"19:30
but yeah, looking at upload-pack.c, this still doesn't seem trivial :)19:30
ehsan joined19:30
sniffells left19:30
SuperDMP left19:31
sniffells joined19:31
cbreak I overread the protocol once.19:32
rpg joined19:32
axl_ joined19:32
cbreak the idea is simple. But I don't think it's easy to hook19:32
rpg left19:32
rpg_ left19:32
rpg joined19:33
rcu left19:33
marhaban left19:34
jonatasnona left19:34
marthinal left19:34
cehteh cbreak: yeah prolly not worth the trouble, needs some heuristics and some work19:34
h0bbit joined19:35
lacrymology joined19:35
rcu joined19:36
a-l-e left19:37
ehsan left19:38
jdolitsky joined19:38
ehsan joined19:38
dkpi joined19:40
SuperDMP joined19:41
SeySayux joined19:41
Villadelfia joined19:42
Gentlecat__ left19:43
Gabri left19:43
lacrymology left19:44
trusktr left19:44
kiumars joined19:44
hwrd|work left19:45
phantomtiger joined19:45
tinti left19:45
amesha left19:45
kiumars1234 joined19:46
chisler left19:46
kiumars1234 left19:46
amesha joined19:46
undecim_ left19:46
DaisyThe1ow joined19:46
undecim_ joined19:46
Gentlecat joined19:47
chisler joined19:47
troyt left19:48
goodwin_i left19:48
bmac left19:48
AdrienBr_ joined19:49
v0n left19:49
jpwhiting left19:49
v0n joined19:49
kiumars left19:50
AdrienBrault left19:50
troyt joined19:50
vedant joined19:53
rking How can one get the same list of commits that will be merged that the GitHub UI shows on a pull request screen?19:54
I'm trying to get better about not mashing the Big Green Button, since I think it's a bad practice to not actually run the code locally before merging.19:54
tinti joined19:55
rking But I made a mess by accidentally merging some junky commits that I would've seen if I had've gone to the UI.19:55
etcetera joined19:56
Paul92 left19:56
vedant left19:56
mitz joined19:56
vedant joined19:56
jdolitsky left19:57
rcu left19:58
freestyler7 left19:58
bremner rking: I know nothing about github, but why can't you look at the proposed branch to merge with gitk or git log19:58
LeMike joined19:59
Parhs8 joined20:00
InvidFlower left20:00
Tommy[D]_ left20:01
khushildep left20:02
Parhs left20:02
aitiba__ left20:03
rking bremner: I can try gitk, sure… but I just want a plain CLI way of doing it. What would the 'git log' invocation be?20:03
mitz left20:03
bremner roughly, git log master..pr-branch20:04
rking I tried 'git log ..master' and 'master..' plus the three-dot versions, a few other things. Each one showed a diff that I don't see in the Pull Request UI.20:04
DaisyThe1ow left20:05
cbreak rking: git log ..master means HEAD..master20:05
do you merge master?20:05
(your local master branch?)20:05
MattStratton left20:05
hellz is there a different between 'git add -A' and 'git add -a' ? help shows only -A but talks about -a in other options.20:06
mwilkes|awayMatthewWilkes20:06
cbreak hellz: -a is an option for git commit20:07
git commit -a is similar to git add -u && git commit20:07
rking cbreak: So you're asking if my local 'master' is the same as the one on GitHub?20:07
Like if I've made the local up to date with the remote?20:08
hellz ok got it20:08
Desproges joined20:08
jdolitsky joined20:09
cbreak rking: I am asking:20:09
if you want to know what you get by merging20:09
chadi left20:09
rking Yes, that's exactly what I want to know. =)20:09
cbreak then why not git log ..thingyouwanttomerge20:09
like bremner said20:09
Milossh joined20:10
rking Well, that was my first guess, but it differs from what I see in the Pull Request web UI, which I'm trying to get away from.20:10
nicklasbo left20:10
jaseemabid joined20:10
moondoggy joined20:10
penguin1 joined20:10
danishkhan joined20:11
lacrymology joined20:11
cbreak maybe that pull request thing is broken? :)20:11
because what I said will tell you the absolute truth.20:11
drizzd joined20:12
jaseemabid How do I get the manual on a config variable? I'm looking for something like 'git --help config pull.rebase'20:12
chadi joined20:13
hwrd|work joined20:13
cbreak jaseemabid: man git-config20:13
gitinfo jaseemabid: the git-config manpage is available at http://jk.gs/git-config.html20:13
cbreak just search in there20:13
franksNbeans joined20:13
ProLoser joined20:13
rking cbreak: OK, thanks. I'll just start comparing what I see there to what I see on the CLI, to what I see as a result.20:14
mmitchell left20:14
arietis left20:14
rking bremner: Thanks also. ☺20:14
DaisyThe1ow joined20:14
hwrd|work left20:14
hwrd|work joined20:15
hellz say i have a bunch of binary resources in a project (images, audio, etc). when i make changes and commit them, it replaces the file. But does the original still live somewhere in the .git? if so, anyway to permanently get rid of them so I don't cause huge bloat to my repo?20:16
cbreak hellz: it will be in the repository for ever20:17
and it is impossible to rip it out without destroying the history20:17
hellz well damn20:17
AlexanderS left20:17
cbreak that's why the usual recommendation is to not store big binary files or fast changing binary files in a git repository20:17
store them in a submodule, a slave repository, with git annex, ...20:18
AlexanderS joined20:18
cbreak naturally, git is fully capable to rewrite history so that it appears as if those files never existed20:18
etcetera left20:18
wrouesnel1 joined20:19
cbreak but this will create new history, and people who already have the old will have to work to get to the new20:19
drizzd cbreak: does it work gracefully if the submodule history is rewritten?20:19
danishkhan left20:19
drizzd I mean will git submodule update complain or just do it?20:19
hellz cbreak: when you say 'rewrite history' do you mean delete that history and those binary files?20:20
mmitchell joined20:20
__david__ joined20:20
Watabou left20:20
gitinfo set mode: +v20:20
elixir_ left20:21
__david__ hey folks, I created a feature branch A from master, and then a feature branch B based on A20:21
now I would like to merge both A and B into master as squashed commits20:21
bremner hellz: man git-filter-branch20:21
gitinfo hellz: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html20:21
Clint_Beancake joined20:22
Katafalkas joined20:22
dr_lepper __david__: have B and A diverged?20:22
lb_ joined20:22
dr_lepper or is B a direct descendant of A?20:22
cbreak drizzd: submodules don't really care about history, they just bind to a commit20:22
LekeFly left20:22
__david__ dr_lepper, A is fully merged into B20:23
so I guess that makes it a direct descendent?20:23
kit joined20:23
lb_lb1a20:23
dr_lepper but you want to have them as two separate squashed commits in master?20:23
__david__ exactly20:23
hellz this contradicts ->it will be in the repository for ever20:23
__david__ essentially I'd like to have a `git diff A..B` as a squashed commit in master20:24
opus joined20:24
BtbN left20:24
sonOfRa left20:24
bremner hellz: no, git-filter-branch destroys history because it changes the hash of every commit20:24
hellz so git-filter-branch allows actually deleting some commit20:24
so if i keep my binary commits all together and put no src in there, i can remove that commit?20:24
dr_lepper __david__: you can try using git rebase -i to squash commits inside the feature branches, and then merging them into master20:25
hellz oh oh, it destroys the hash but not the file data?20:25
dr_lepper or just merge --squash them into master individually20:25
bremner hellz: see !rewrite20:25
gitinfo hellz: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to). If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://git-scm.com/docs/git-rebase.html#_recovering_from_upstream_rebase20:25
hellz i get it. ty.20:26
Davey joined20:26
SuperDMP does Django have anything built-in that will have a go at turning rubbish into date objects? at present I have http://dpaste.org/Ouo4u/, but if something nicer exists already I'd like to know20:26
BtbN joined20:26
SuperDMP sorry, wrong #20:26
Watabou joined20:26
sonOfRa joined20:26
SamB there are occasionally problems that make rewriting public history the least bad thing to do20:26
etcetera joined20:26
__david__ dr_lepper, the latter is what I tried, and I got merge conflicts. Seems like git wants to merge things "twice" because it doesn't realize the squashed commit contains stuff it also has in its branch20:27
SamB like if you accidentally pushed huge binaries or something20:27
__david__ I'll look at the rebase20:27
thirtythreeforty joined20:27
thirtythreeforty Hi. What is the appropriate way to handle a 'next' branch in a public project?20:27
Is it occasionally rebased?20:27
SamB thirtythreeforty: rebasing is probably a bad idea if "next" means anything like I think it does20:28
thirtythreeforty Err, I guess I meant 'reset', SamB.20:28
Actually, maybe it would be better if *you* told *me* how next is supposed to be used.20:29
SamB well, what were you thinking it would be meant to hold?20:29
kit left20:30
thirtythreeforty I think it is a place that starts off pointing at master, then additional branches are merged into it.20:31
mitz joined20:32
etcetera left20:32
SamB oh, that sounds like that one branch of git ... was it called "pu"?20:32
cansf joined20:32
cbreak next is just a name20:32
MattStratton joined20:33
cbreak branch names carry no inherent notion of stability20:33
SamB yes20:33
thirtythreeforty Yes. pu basically points to whatever, and you're not supposed to base work off it.20:33
SamB yeah20:33
__david__ how can I get an "Automatic cherry-pick" failed in rebase -i ? I'm just squashing all the commits (except the first)20:33
thirtythreeforty I know, but "traditionally" how is it done, cbreak?20:33
cbreak depends on who you ask...20:33
I don't really mind the occasional history rewriting :)20:34
thirtythreeforty Maybe can you explain "Large-Merging Workflows" from http://git-scm.com/book/en/Distributed-Git-Maintaining-a-Project to me?20:34
SamB there's something that happens when you clone git.git, isn't there, that informs git to expect this?20:35
tsp joined20:35
tsp left20:35
tsp joined20:35
cbreak SamB: downloading the readme file? :)20:35
SamB cbreak: no, that's for users20:35
ph^ left20:35
cbreak I am not aware of anything else.20:36
diamonds joined20:36
ph^ joined20:36
diamonds I stashed & rebased then tried to git stash pop20:36
cansf left20:36
diamonds got a couple issues:20:36
thirtythreeforty cbreak, I don't understand what happens to next (in that page's example) when some topics are merged to master. Does next now point somewhere entirely different that may/may not be a descendent of the old next?20:36
tsp How can I explicitly set git's editor? I tried setting both EDITOR and VISUAL to ed, but still get error: cannot run vi: No such file or directory20:36
thirtythreeforty What does he mean by "next is rebased occasionally"?20:37
tsp, set core.editor20:37
http://stackoverflow.com/questions/2596805/how-do-i-make-git-use-the-editor-of-my-choice-for-commits20:37
cbreak thirtythreeforty: no idea. but in general, the only branch affected by a merge is the current branch20:37
SamB cbreak: I don't even see 'pu' mentioned in README20:37
diamonds http://pastie.org/pastes/7613366/text20:37
then it has "unmerged paths" in git status..20:38
I didn't attempt a merge, per se20:38
so I can unstage or add .. ??20:38
tsp Thanks, that fixed it20:38
diamonds why is it staged, I just wanted to apply stashed changes, not stage anything20:38
thirtythreeforty cbreak, oops... I was unclear. When the old next is not wanted, do we just git branch -D it and then push up a new branch? Or something else?20:38
SamB gitworkflows(7) seems to talk about this20:38
offby1 diamonds: that actually does a merge behind the scenes20:39
cbreak thirtythreeforty: you can do what ever you want. force push, delete, ...20:39
BadDesign left20:39
arand_ diamonds: well, it does merge the stashed changes with the working tree.20:39
troyt left20:39
drizzd tsp: maybe you did not export the environment variable?20:39
diamonds yes20:39
thirtythreeforty cbreak, I know you "can" but I want to know what is considered standard or good practice20:39
P4C0 joined20:39
diamonds arand_ offby1 but then it *stages* it (?)20:39
thirtythreeforty SamB, thanks for that link20:39
tsp drizzd: I'm using cygwin's git, it's doing some odd things20:39
cbreak as said, no idea :)20:39
P4C0 Hello, how can I merge changes from a branch but interactive? I mean, I only need part of a commit20:40
diamonds I am now forced to commit or reset HEAD the file?20:40
SamB I found it by grepping for "'pu'" (outer quotes were for the shell) in git's tree20:40
diamonds AAAAAAAAAAAARTGGGHHh20:40
arand_ diamonds: it stages things that was staged when you stashed it.20:40
mrwalker joined20:41
arand_ afaik20:41
diamonds no matter how many times I git stash pop, fix, git add . && git commit I still have 2 things in my stash stack20:41
SamB diamonds: you can unstage, or stash again, or whatever20:41
diamonds SamB: but staging means resetting back to head, no?20:41
rpetre left20:41
SamB diamonds: oh, try git stash drop20:41
diamonds which is *not* my stashed version20:41
well I don't know if the changes were applied20:41
mitz left20:41
SamB I meant once you've decided you're finished with that stash20:42
chadi left20:42
diamonds the most irritating thing is the fact that it's a single blank line causing this :/20:42
SamB: how do I know if the stash was applied?20:42
SamB I usually look at things in magit20:42
but I guess you can also use gitk20:42
or git gui20:42
troyt joined20:43
rpg left20:43
diamonds hmm...20:43
how view stash in gitk?20:43
chadi joined20:43
ThePawnBreak left20:43
SamB oh, to see what the stash was I use "git stash show" or whatever it's called20:43
cbreak P4C0: merging doesn't merge a commit20:44
it merges history20:44
merging only part of history makes zero sense20:44
maybe you want cherry-pick?20:44
P4C0 cbreak: maybe sherry pick without commit or similar?20:44
slacx joined20:44
SamB wonders why it's called "cherry" pick20:44
SamB (why cherries?)20:44
MattStratton left20:44
hellz left20:45
P4C0 cbreak: then thing is that i have everything on a temporal branch, and i need to split it in several branches, I don't really need the history just the changes20:45
cbreak P4C0: yes... you can use -n if you want20:45
infynyxx left20:45
cbreak or amend the commit afterwards20:45
SamB darn, it's not in the dictionary20:45
P4C0 cbreak: thanks20:45
thiago joined20:45
mossplix left20:45
thirtythreeforty cbreak, "the integration branch next may optionally be rewound and rebuilt from the tip of master using the surviving topics on next."20:46
P4C0 The thing is that I started coding and I have everything in tmp branch, tmp branch implements fix1, fix2 and fix3, what I want is to have a fix1 branch, fix2 branch and fix3 branch (and delete tmp)20:46
thirtythreeforty --gitworkflows(7)20:46
So that answers it :)20:46
cbreak P4C0: sounds dumb.20:47
arand_ SamB: https://en.wiktionary.org/wiki/cherry-pick at least a few notes ;)20:47
cbreak P4C0: you should make a new topic branch for each :)20:47
jaseemabid left20:47
P4C0 cbreak: yes, I know, I usually don't do it like that20:47
diamonds SamB: that shows the files changed & number of lines but not the contents20:48
SamB I think P4C0 knows it's kind of dumb and wants to salvage things20:48
hahuang65 joined20:48
SamB diamonds: oh20:48
in truth, I usually use magit to look at them20:48
arand_ git show stash{n} ?20:48
SamB but it must use some underlying functionality20:49
momomomomo joined20:49
SamB looks like you can alsu use "git stash show -p stash@{$N}"20:49
or skip the last word for the top one20:50
anderse left20:50
diamonds arand_: http://pastie.org/pastes/7614179/text20:50
Saby left20:50
cbreak salvaging is easy20:50
Bass10 left20:51
cbreak just squash merge the whole branch, then reset it away and selectively commit the debries20:51
SamB cbreak: I think it's usually possible to do a bit better than that20:51
arand_ diamonds: word order.20:51
mossplix joined20:52
arand_ git show stash@{n}20:52
diamonds ah20:52
prc3webs joined20:52
SamB diamonds: or add a -p20:52
rideh left20:52
diamonds SamB: I don't get that one20:52
amesha left20:52
Bass10 joined20:52
diamonds "With --patch, you can interactively select hunks from the diff between HEAD and the working tree to be stashed. The stash entry is constructed such that its index state is the same as the index state of your repository, and its worktree contains only the changes you selected interactively. The selected changes are then rolled back from your worktree. See the `Interactive Mode'' section of linkgit:git-add[20:52
1] to learn how to operate the `--patch mode."20:52
I don't see how... I just don't get how this means "show diff"20:52
amesha joined20:52
__david__ dr_lepper, ugh, rebase doesn't like it that I merged master into A and resolved conflicts...20:53
diamonds I don't want to interactively select hunks20:53
m0viefreak joined20:53
lb1a left20:53
SamB diamonds: I'm going from the paragraph under "show [<stash>]"20:53
arand_ diamonds: -p acts differently when used with log or stash than it does with add.20:53
exoon left20:53
dr_lepper __david__: you didn't mention merging master into the feature branches20:53
SamB which says you can use git-diff(1) options to select patch formats, and gives -p as an example20:53
khushildep joined20:54
diamonds ah "patch" == "diff"20:54
aitiba__ joined20:54
karstensrage joined20:54
SamB no, patch and diff are near-inverses ;-P20:54
diamonds so git show stash@{n} == diff20:54
__david__ dr_lepper, oh, ups. I did that in an attempt to prepare the feature branch for merging (maybe wrongly so?)20:54
prc3webs left20:54
SamB (though when used to denote a file format, they mean the same thing)20:55
karstensrage hi, were using gitolite and i was wondering if there were a smart way to itemize the current users and push their .pub keys to servers for ssh login?20:55
diamonds git stash show stash@{n} -p == .... inverse diff?20:55
drizzd left20:55
pmdarrow left20:55
SamB karstensrage: you mean, you want to graba /home/*/.ssh/*.pub and add those?20:55
john_anderson joined20:56
__david__ dr_lepper, I think in this case I achieve exactly what I want with `git log A..B` and `git diff A..B` - the former lists all commits, the latter all changes20:57
mloskot joined20:57
__david__ then manually apply that after squash merging A into master20:57
arand_ diamonds: git stash show -p stash@{n} looks like it's showing the diff as it was stored in the stash, and as it would be applied if pop/applied.20:57
wsebastian left20:57
karstensrage SamB, gitolite-admin/keys/*.pub and add those20:57
is that what you mean?20:57
diamonds arand_: as opposed to what20:57
tenmilestereo left20:58
Bass10 left20:58
wrouesnel1 left20:59
mg983 left20:59
Bass10 joined20:59
SamB I think "git show stash@{n}" doesn't show everything, actually, because a stash is really two commits isn't it?20:59
juvenal left20:59
arand_ yeah... git show stash@{n} does not show the diff of new files...20:59
robertodecurnex left21:00
thiago left21:00
p0wn3d left21:00
dr_lepper __david__: were there too many conflicts?21:00
momomomomo left21:00
arand_ And it seems to treat it as a merge diff instead...21:01
dr_lepper __david__: 'cause I'd recommend you to remove the merges, if you still want the squashed commits21:01
having _both_ the merges and squashed branches doesn't make any sense21:01
it's like having the same history twice21:02
SamB arand_: yeah, I believe it is a merge commit21:02
__david__ dr_lepper, how would I remove the merges?21:03
DaisyThe1ow left21:03
wheezl left21:03
dr_lepper __david__: reset the branches to a commit before the merge with "git reset"21:03
_Vi joined21:03
thiago joined21:04
axl__ joined21:04
vedant left21:04
dr_lepper e.g. "git checkout A ; git reset --hard A^"21:04
Bass10 left21:04
dr_lepper make sure "A^" is the parent commit you want, and that you don't have any unstaged changes21:04
__david__ dr_lepper, but there are changes after the commit that I also need21:04
Bass10 joined21:04
geekbri left21:04
__david__ s/commit/merge/21:04
freeed left21:04
bmac joined21:05
wheezl joined21:05
dr_lepper oh21:05
SamB why are we trying to squash again?21:05
axl_ left21:05
axl__axl_21:05
dr_lepper __david__: how many?21:05
__david__ a couple21:05
SamB can see the point when you're basically preparing a patch series, not so much in a main development repository21:06
__david__ SamB, just to clean things up21:06
Bass10 left21:06
ShooterMG joined21:06
__david__ SamB, it is a feature branch, but it's stable now and should go into production (master)21:07
suspekt left21:07
metze left21:07
cannonball left21:08
metze joined21:08
goshawk left21:08
__david__ hm, but the merge without squashing just works... maybe I should save myself some time and just do it this way21:08
dr_lepper __david__: good thought21:08
DoniRS left21:08
__david__ it just always bugs me when something that seems to simple turns out to be so difficult ;-)21:09
dr_lepper well, you have created a certain structure in the history21:10
by merging branches21:10
__david__ I think I need to use --ff more often21:10
though I'm not sure that would have fixed everything21:10
dr_lepper no, it wouldn't21:10
[1]habva2013 left21:10
dr_lepper what you probably want (or even mean) is git rebase21:11
__david__ yeah, I tried to avoid rebase because sometimes other devs fetch from my repo21:11
dr_lepper do they fetch your feature branches as well?21:11
danishkhan joined21:11
__david__ or maybe I just shouldn't worry about those "forced update" messages so much21:11
yeah21:11
ToothlessGear left21:11
__david__ to check on its status21:11
dr_lepper just to check?21:12
not to develop on them, or use them in their own work?21:12
__david__ usually, yes, though occasionally when something stalls they add to it21:13
MattStratton joined21:13
scampbell left21:14
sq-one left21:14
rudak left21:15
hobodave joined21:15
InvidFlower joined21:16
Jojomofoman joined21:17
mitz joined21:17
__david__ dr_lepper, seems like 'rerere' may have been the solution to the rebase conflicts - but it seems strange to me that it's even necessary21:17
e66 left21:17
e66 joined21:17
rudak joined21:17
__david__ actually, the intro to the rerere man page looks exactly like my situation21:18
schemula joined21:18
caspingus joined21:19
caspingus left21:19
sirdancealo2 left21:19
caspingus joined21:19
Bass10 joined21:19
danishkhan left21:20
DaveLib joined21:20
gitinfo set mode: +v21:22
goshawk joined21:22
h0bbit left21:23
maxmanders left21:23
mitz left21:23
system64 left21:24
nkr left21:24
DaveLib hello i am a git newbie i am trying to use git as a backup of a directory tree i will mirror on 2 linux computer in my home LAN over SSH i created a git repo for directory common/ on 1 computer my user account is dave on both computers and i previously got SSH working between the dave accounts on the 2 machines21:24
mmlac-bv joined21:25
v0n left21:25
Thra11 left21:25
Gentlecat__ joined21:25
DaveLib i went to the second machine and in the parent directory of the intended git mirror common/ i did21:25
karstensrage SamB, any suggestions other than just giving read access to the repo and lettting them download the keys to be pushed?21:26
clone the keys?21:26
DaveLib git clone ssh://192.168.1.102/path-to-other-common/21:26
SamB karstensrage: what is this about downloading keys ?21:26
DaveLib both accounts are dave so i left dave@ off21:27
mishok13 joined21:27
amesha left21:27
SamB DaveLib: so, you know git isn't really good for backups right?21:27
DaveLib i got back error message ....21:28
amesha joined21:28
SamB I mean, it works pretty well for backing up the source history of open source projects, but that's about it21:28
DaveLib no i didn't i had thought of that on my own last couple days hey why not use git for backups21:28
SamB and, I mean, it works okay for private sources sometimes21:29
DaveLib i had previosly been using dar for backups to external and unison to mirror directories21:29
hobodave left21:29
Gentlecat left21:29
eijk_ joined21:29
eijk left21:29
DaveLib yes it is just for me on my own computers21:29
to duplicate accross computers agaisnt hardware fair;lires21:30
Artpicre left21:30
DaveLib failures21:30
also against accidental rm files21:30
i thought git compression and delta's in packfiles the revision controls and so easy to push and pull and spread out the copies21:31
SamB but I suppose you'll probably be wanting to solve the error message anyway21:31
stephCoue joined21:31
e66 left21:31
DaveLib yes21:31
kmels left21:31
DaveLib i have 3 copmputers and an external21:31
sirdancealo2 joined21:31
DaveLib so i thought mkae 4 copies and use git to send them around21:31
why is git bad for backups in general SamB ?21:31
these would all be private just my own files for myself on my own computwers21:32
i have ssh on the lan with generated keys21:33
SamB well, I'm not sure it's always *bad*, but the circumstances where is sufficient are certainly quite limited.21:33
khushildep left21:33
Bass10 left21:33
Bass10 joined21:34
DaveLib i thought my unison mirroring adn if i mistakenly delete a file or change my mind anout a deletion then unison would have deleted all copies21:34
with git i can get them back21:34
SamB yeah21:34
Davey left21:34
uidzer0 left21:34
DaveLib also if the repos are getting too big i cane rebase -s to squash some old cimmits away21:35
SamB doesn't actually have any media to do backups on, personally :-(21:35
DaveLib i guess same squash on ech repo copy but i don't mind21:35
__david__ DaveLib, unless you really want versioning anyway, there are probably better solutions21:35
Noldorin joined21:35
DaveLib ok what are good ? i had been usiong dar as external hd backups and unison to mirror important files21:36
butblack joined21:36
Watabou left21:36
__david__ like rdiff-backup or "back in time"21:36
butblack does deleting a repository delete all of the commit and history of that repo?21:36
astroo- joined21:36
DaveLib i thought versioning is just a safety net21:36
butblack essentially wipe it clean21:36
penguin1 left21:36
etcetera joined21:37
__david__ DaveLib, you may need to combine them with unison or so to get the network synchronization though21:37
butblack this is for a case where no one forked, starred, followed the repo21:37
mossplix left21:37
__david__ but they solve the accidental rm problem21:37
butblack, followed? are you talking about github or something?21:38
butblack __david__:21:38
yeah21:38
i thought this was the channel?21:38
lol i guess not21:38
haha21:38
thanks (Y)21:38
DaveLib there is a #github channel somewhere21:38
__david__ github uses git, but what you're asking is not really about git21:38
butblack DaveLib: yeah, found it, thanks21:39
mikef left21:39
DaveLib ahh #github here at freenode21:39
butblack and yeah definitely github specific21:39
butblack left21:39
cbreak-work left21:40
b1rkh0ff left21:40
DaveLib anyway i have 3 computers + the external so mkae 4 cooies and i thought git would make that easier than unison also i thought git would be more intuitive to recover stuff than dar21:40
P4C0 left21:40
DaveLib a couple years ago i researched backup and at the time dar sounded better to me than rdiff or back in time21:41
amcsi joined21:41
osmosis joined21:41
jjido joined21:41
DonRichie left21:41
marhaban joined21:42
ojacobson left21:42
DaveLib anyway my error message was ssh: cannot resolve host name name or service unknown21:42
mmitchell left21:42
lacrymology left21:42
Dougie187 left21:42
DaveLib but from the same machine when i do ssh 192.168.1.102 its ok21:43
barneybook left21:43
__david__ try using 192.168.1.102:/my/path21:43
barneybook joined21:43
DaveLib thanks _david_21:43
b1rkh0ff joined21:43
DaveLib so no ssh: prefix at all ?21:43
__david__ hm though I guess ssh:// is more or less an alias for that21:44
DaveLib ok21:44
i will try21:44
thasmo left21:44
__david__ DaveLib, in any case I'd recommend for you to either setup /etc/hosts or to teach your router to resolve the names21:44
cbreak ssh:// is a URL prefix21:44
redhotvengeance joined21:44
thiago left21:44
__david__ imho that's much better than working with IPs21:44
infynyxx joined21:45
cbreak no prefix means local path, or maybe scp syntax21:45
tvw left21:46
DaveLib thanks _david_ that worked :)21:46
its processing now21:46
kadoban left21:46
thirtythreeforty left21:46
donmichelangelo joined21:46
Anders_J left21:47
TeckniX left21:47
mossplix joined21:47
rednaks left21:48
__david__ cbreak, no prefix, no : means local path, with host.name: it is scp-like21:48
josh_ joined21:48
w09x joined21:48
cbreak yes, as I said21:49
tinti left21:49
cbreak it's a stupid system21:49
josh_ left21:49
DaveLib i got that prefix version that didn't work from a help page on the web21:49
cbreak can't even handle paths that contain :21:49
__david__ I like scp for its brevity21:49
cbreak I recommend using url syntax always21:49
apart from local clones21:50
__david__ DaveLib: my guess is ssh:// urls don't start in your homedir, but at /21:50
josh_ joined21:50
josh_ left21:50
__david__ if you do host.name:foo it resolves to ~/foo21:50
kadoban joined21:50
b1rkh0ff left21:51
DaveLib oh yes that web page gave ssh://user@host:/~/rest-of-path21:51
lando23 joined21:51
lando23 left21:51
SamB awwwwwwwww21:51
lando23 joined21:51
SamB --cherry-mark doesn't work in gitk :-(21:52
DaveLib it is best to only push to bare repos and not to a wroking repo with working directory ?21:52
milki yes21:52
DaveLib ok21:52
SamB doesn't git tell you this?21:52
DaveLib i have a working repo on ocmputer A21:52
R1KRDO left21:52
mitz joined21:53
DaveLib yes i had read that in documentation and was following it but just confirming21:53
R1KRDO joined21:53
jjido left21:54
Conic joined21:55
jjido joined21:55
kcj joined21:55
infynyxx left21:55
Houl left21:56
chisler left21:56
infynyxx joined21:56
goshawk left21:57
rudak left21:58
kit joined21:58
jast left21:58
oakdog8 left21:58
pastime joined21:59
SuperDMP left21:59
wrouesnel1 joined21:59
breakingthings left21:59
thiago joined21:59
gitinfo left21:59
pantsman left22:01
__david__ left22:01
john2496 left22:02
etcetera left22:02
R1KRDO left22:02
Clint_Beancake left22:02
marhaban left22:02
jordanm joined22:04
wannado left22:04
JPeterson left22:04
jjido left22:04
johnflux_ joined22:05
astroo-_m joined22:05
danishkhan joined22:05
johnflux left22:05
Alenah left22:05
wrouesnel1 left22:06
ivan_on_trac joined22:07
CodeShark left22:07
CodeShark joined22:07
jcromartie left22:07
infynyxx left22:07
astroo- left22:07
mossplix left22:07
astroo-_mastroo-22:07
danishkhan left22:07
natechan left22:07
ivan_on_trac In my company has 25 staff developers. I need suggestions on how to choose a workflow. Tutorial suggestion?!22:08
Alenah joined22:08
Milossh left22:08
jordanm http://en.wikipedia.org/wiki/Agile_software_development22:08
jcromartie joined22:08
goshawk joined22:09
Raptors left22:09
diegoviola joined22:09
MattStratton left22:09
Sebboh joined22:10
etcetera joined22:10
Sebboh left22:10
Sebboh joined22:10
JPeterson joined22:11
mrwalker left22:11
Sebboh left22:11
trungqtran left22:12
johnnyfuchs left22:12
mossplix joined22:12
redhotvengeance left22:13
mitz left22:15
jwmann left22:16
Rulin left22:16
kit left22:17
bmac left22:18
lavaman left22:18
ToothlessGear joined22:18
mezner left22:18
cbot_ left22:19
bytephilia joined22:19
_iron joined22:19
macabre left22:20
Sosumi left22:21
w09x left22:21
Siraris left22:22
ivan_on_trac left22:22
redhotvengeance joined22:22
jude left22:23
comps left22:23
jude joined22:24
natechan joined22:24
uidzer0 joined22:25
etcetera left22:25
maslowbeer left22:26
tjbiddle left22:26
Desproges left22:27
gitinfo joined22:27
ChanServ set mode: +o22:27
kermit left22:27
kermit joined22:29
LuxuryMode joined22:30
thasmo joined22:30
Milossh joined22:30
kevwil left22:30
Pupeno joined22:31
goshawk left22:32
Pupeno left22:32
diamonds left22:32
gitinfo left22:32
calamari joined22:32
danishkhan joined22:33
arnej left22:34
Tommy[D] joined22:34
arnej joined22:34
wrouesnel left22:35
johnflux__ joined22:36
johnflux__ left22:36
johnflux__ joined22:36
johnflux_ left22:37
LuxuryMode left22:37
Davey joined22:40
private left22:40
w09x joined22:42
uidzer0 left22:42
ozcanesen left22:43
nioncode left22:44
hendry joined22:44
tinti joined22:45
axl_ left22:45
bytephilia left22:47
Kicer86 left22:47
infynyxx joined22:47
Milossh left22:48
Sosumi joined22:49
acharlieh left22:49
Kicer86 joined22:49
wrouesnel joined22:49
hwrd|work left22:50
mitz joined22:50
sanmarcos is there a way to make code reindents without it screwing up the entire history of git blame?22:50
or to have git blame skip certain commits?22:51
thiago git blame -w22:51
thl0 left22:52
uidzer0 joined22:55
Adlai joined22:56
comps joined22:57
kevwil joined22:58
mitz left22:58
m8 left22:59
khushildep joined23:00
ToothlessGear left23:01
opus left23:01
ToothlessGear joined23:02
thiago left23:03
Caelum so I'm in project/trunk in git-svn, and we recently started using branches/ but I didn't do the git-svn clone with --std-layout, how do I tell it I have a branches/ path now so I can make branches?23:04
maslowbeer joined23:04
imMute left23:04
opus joined23:05
eletuchy joined23:05
w09x left23:05
kevwil left23:06
hwrd|work joined23:06
Xethron joined23:08
john_anderson left23:08
werewolf2 joined23:08
werewolf2 left23:09
infynyxx left23:09
kvda joined23:10
TeckniX joined23:10
Caelum what's the difference between refs/remotes/git-svn and refs/remotes/trunk23:10
TeckniX left23:10
goshawk joined23:10
simesy joined23:11
imMute joined23:13
imMute left23:13
imMute joined23:13
astor left23:15
InvidFlower left23:16
goshawk left23:16
SkAzZ joined23:16
etcetera joined23:17
mossplix left23:18
markalanevans joined23:18
ehsan left23:19
markalanevans left23:20
markalanevans joined23:20
opus left23:23
gitinfo joined23:24
ChanServ set mode: +o23:24
opus joined23:24
mossplix joined23:24
eijk_ left23:26
Internet13 left23:27
mitz joined23:27
m0ltar left23:28
gitinfo left23:28
pastime left23:28
EugeneKay !botsnack23:29
Oh, he died again.23:29
Dougie187 joined23:30
Davey left23:30
HedgeMage blames EugeneKay23:30
EugeneKay It's because I'm not wearing pants, isn't it.23:31
HedgeMage Probably23:31
I thought you were on a trip with your dad, so the lack of pants thing is more concerning than usual.23:31
DaveLib left23:31
EugeneKay I am; we have a 2-bedroom suite.23:32
simesy left23:32
thiago joined23:32
Internet13 joined23:32
danishkhan left23:32
HedgeMage ahh23:32
schemula left23:33
uidzer0 left23:33
NiteRain left23:33
phantomtiger left23:33
mossplix left23:34
natechan left23:34
calamari I've set up git-daemon, and specified --enable=receive-pack, and it's still insanely slow. any tips on debugging this?23:35
boombatower left23:35
etcetera left23:35
calamari (pushes are slow)23:35
HedgeMage Sorry, I've never used git-daemon. I use gitolite for both my git servers.23:36
HedgeMage == lazy23:36
uidzer0 joined23:36
calamari gitolite uses ssh and shared keysm23:36
?23:36
HedgeMage no shared keys23:36
everyone uses their own key(s)23:37
mitz left23:37
calamari I'm hoping for a solution where everyone has access with a minimum of hassles23:37
HedgeMage that would be gitolite23:37
simesy joined23:38
milki or no authentation23:38
auth*23:38
calamari yeah I don't care about auth, we are behind a firewall23:38
HedgeMage calamari: gitolite took me <10 minutes to set up the first time, <5 the second23:38
milki calamari: then just use ssh?23:38
jfinn joined23:39
calamari milki: empty password?23:39
bitkiller joined23:40
milki sure?23:40
i wouldnt recommend it, but that would certainly be hassle free23:40
thasmo left23:41
boombatower joined23:41
milki assumming users understand ssh >.<23:41
which might be a high bar for your organization o.O23:41
EugeneKay calamari - I strongly encourage you to require users to auth to access repos in an organizational context23:41
If gitolite looks like too much work, there are other solutions, such as Atlassian Stash, that are cheap-and-easy.23:42
aitiba__ left23:42
anonymuse left23:42
JoefishJoefish]off23:42
Noldorin left23:42
simesy left23:42
calamari EugeneKay: if people have to deal with ssh keys their eyes will gloss over and they'll say "too hard"23:43
EugeneKay Get less-stupid users? :-p23:43
calamari lol23:43
HedgeMage calamari: If people think ssh key auth is "too hard" they are not competent devs and you should fire them.23:43
calamari not my call23:44
HedgeMage calamari: that is unfortunate23:44
mitz joined23:44
EugeneKay Look at Stash. It's basically bitbucket in a box23:44
sgambino left23:44
EugeneKay And for <=10 users it's $1023:44
calamari thanks for the ideas. it seems I am on the wrong path. I will check what I cfan do with ssh23:44
EugeneKay You can also try setting up gitolite with http(s)23:45
That'll take user+pass auth23:45
calamari maybe a single account with password everyone knows23:45
I heard http is slow23:45
opus left23:46
EugeneKay It is a terrible protocol to wrap git in23:46
AdrienBr_ left23:46
calamari I must have something wrong.. that push was running for 30 minutes and never finished23:47
(git-daemon).. but that's ok23:47
goshawk joined23:47
breck7 left23:47
MatthewWilkes calamari: How big are your repos!?23:47
Watabou joined23:47
breck7 joined23:48
calamari 8 megabytes, the commit was 1 kb23:48
goshawk left23:48
MatthewWilkes yeah… that's certainly in the 'did something wrong' bracket23:48
calamari (commented out a line to test the push)23:48
simesy joined23:50
simesy left23:50
breck7 left23:50
simesy joined23:51
jast joined23:51
ChanServ set mode: +v23:51
subfauna joined23:52
gitinfo joined23:52
ChanServ set mode: +o23:52
SBoudrias joined23:52
caspingu_ joined23:52
normanrichards joined23:52
TheMoonMaster left23:52
rideh joined23:53
Dougie187 left23:53
TheMoonMaster joined23:53
wesside left23:53
EugeneKay !botsnack23:53
gitinfo Om nom nom23:53
EugeneKay Yay23:53
trusktr joined23:54
RalfR left23:54
mr_mustard joined23:55
ozette left23:55
caspingus left23:55
Watabou left23:57
boombatower left23:58
Caelum left23:58
Caelum joined23:59
Xethron left23:59
opus joined23:59

Logs Search ←Prev date Next date→ Channels Documentation