IRCloggy #git 2010-01-11

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.

2010-01-11

xiong joined00:00
_Vi osmosis, If you want to limit it to root, use "/*.pyc".00:00
osmosis ok00:00
daifuku left00:00
loinclot_ joined00:00
loincloth left00:00
osmosis is there a quick command to add all modified files to the next commit, or do I have to add each of the files each time?00:00
_Vi osmosis, "git commit -a", "git add" with some parameter.00:01
daifuku joined00:01
_Vi osmosis, (It doesn't add new files)00:01
Slix joined00:01
osmosis got it00:01
abadr joined00:01
rudi_s_ left00:02
Paraselene_ left00:03
robinr left00:04
sako Hey all, anyone have any comments about this setup?00:04
http://joemaller.com/2008/11/25/a-web-focused-git-workflow/00:04
i am going to use it for version controlling my website projects going forward..00:04
is this the "suggested" way of using git with websites00:04
DavidKlein left00:05
_Vi sako, You may also use such thing without "Prime" repository.00:05
RobertLaptop sako I don't know if it is the suggested way but it looks pretty close to the way I do it.00:06
_Vi sako, (Running "git archive" each time for push to production branch).00:06
sako yea actually, i am trying to figure out if i need these 2 repos00:06
JasonWoof left00:06
JasonWoof1 joined00:06
_Vi sako, But if they are no separate machines then better to use that your scheme.00:06
s/no /on /00:06
JasonWoof1JasonWoof00:07
nevyn sako: I do something similar with an update-incomming hook and non-bare central repo00:07
JasonWoof left00:07
JasonWoof joined00:07
a7x left00:07
nevyn sako: actually my workflow is undocumented and enormous (dev -> UAT -> prod etc)00:07
sako nevyn: does this setup look decent then?00:08
seems easy enough to implement00:08
i just dont really know if there is redundency like the 2 repo deal00:09
NetHawk left00:09
lbayle left00:09
sako i'm coming from svn00:09
Paraselene_ joined00:09
_Vi sako, Are you running "hub" and "prime" on the same installation?00:09
sako i will be yes00:09
NetHawk joined00:09
sako ah i found out the reason why the author suggests this..00:10
never push into a repository that has a work tree attached to it..00:10
_Vi sako, Do you plan storing big blobs in the repository (non-code such as images/sounds/videos)?00:10
sako possibly00:11
_Vi sako, It is bad already having big or generated file in repository and may be especially bad if they are mixed with normal code.00:12
sako, But if repositories duplication is an issue, you can make them to know about each other and share some information.00:12
sako, But if there are only normal code and text files (and not too big history), then repository is usually smaller that checkout.00:13
nevyn I don't get why pushing to a non-bare repo is so bad if it's the only mechinism for updates to that repo00:14
sako http://git.or.cz/gitwiki/GitFaq#head-b96f48bc9c925074be9f95c0fce69bcece5f6e7300:14
nevyn I don't see how prime get's you anything over a hook that updates the working tree.00:14
catalis joined00:14
nevyn but all the problems with it exist with prime anyway00:15
if you change somethign in prime and don't commit/push it to hub then you've got the same problem00:15
daifuku left00:15
sako hmm00:15
what is the working tree anyway00:15
_Vi sako, It is files outside repository, but tracked by it.00:16
ronron2 left00:16
rettub left00:16
ph^_ left00:16
nevyn sako: the stuff you edit.00:17
sako: right but as that says..00:17
daifuku joined00:17
ereslibre left00:17
kmartiin left00:17
nevyn if you do need a remote that updates when you push to it use the linked hook code which deals with everything except a pre-existing conflict in the working tree on the remote00:17
pkw joined00:18
nevyn so if you know what you're doing and have hooks to update the working tree from pushes then there's no reason to add the bare repo00:18
rettub joined00:19
Cromulent joined00:20
engla joined00:20
psoo left00:23
jelmer left00:25
catalis left00:26
godsflaw joined00:26
Cromulent left00:26
bentob0x left00:27
hadees joined00:28
Slix left00:28
hadees i'm doing git commit -m but nothing is being checked in00:28
i do git status and i still see the changes00:28
KiBi hadees: git add00:28
Slix joined00:29
hadees KiBi, i did that already00:30
they aren't being committed for some reason00:30
KiBi, Changes to be committed is what the files are under00:30
hobodave joined00:31
daifuku left00:31
bob2 what does git commit do then?00:32
succeed but commit an empty changeset?00:32
daifuku joined00:32
bob2 or fail with an error?00:32
or...00:32
kipras left00:32
hadees bob2, empty set i guess00:33
[root@localhost gambit]# git commit -m "Checkin"00:33
[ealter_paypal_oneclick 3a302c9] Checkin00:33
_Vi left00:33
godsflaw left00:33
bob2 I don't know what that means00:34
what does 'git log -p' say afterwards?00:34
hadees bob2, they are commits but no files00:34
v0n left00:34
hadees *there00:35
catalis joined00:35
_Vi joined00:36
thiago_home left00:37
abadr left00:37
Chillance joined00:43
hadees i found one thing that might shed light on this00:44
fatal: git diff [--no-index] takes two paths00:44
when i did git diff00:44
vbgunz left00:44
daifuku left00:46
daifuku joined00:47
Cromulent joined00:47
ereslibre_laptop left00:48
loinclot_ left00:50
loincloth joined00:50
mjf left00:50
[1]awnstudio joined00:52
r11t_ joined00:52
hadees argh that wasn't the problem00:52
i really can't figure out why it isn't commiting00:52
engla left00:53
nickrw left00:53
catalis left00:54
r11t left00:56
daifuku left00:59
scarabx left01:01
daifuku joined01:01
oliver3 joined01:01
flaguy48 joined01:03
awnstudio left01:04
[1]awnstudioawnstudio01:04
tekky joined01:04
remi left01:06
tobias__ left01:06
vbgunz joined01:06
imajes left01:07
aspotashev left01:10
JayM left01:13
jelmer joined01:13
xiong left01:13
daifuku left01:15
daifuku joined01:17
numberGrey joined01:19
numberGrey left01:19
juan_arandaalvar joined01:19
spacebat_ joined01:25
sudoer joined01:27
sudoer left01:29
daifuku left01:29
daifuku joined01:31
deschet joined01:31
rudi_s left01:32
priidu left01:37
drigz left01:37
pheaver_ joined01:38
spacebat left01:38
cedricv joined01:40
pheaver left01:41
pheaver_pheaver01:41
pheaver left01:43
swisherdude joined01:47
swisherdude left01:47
loinclot_ joined01:54
loincloth left01:54
NathanielJ left01:59
osmosis left02:01
DrAk0 joined02:01
daifuku left02:01
daifuku joined02:02
loinclot_ left02:02
loincloth joined02:02
jwoods_ left02:02
loincloth left02:06
loincloth joined02:06
rmancy joined02:07
hgimenez_ left02:08
warthog9 left02:10
docgnome left02:13
docgnome joined02:13
s1kx- joined02:15
project2501a joined02:15
tedoc2000 joined02:15
coolcat left02:17
orafu left02:18
orafu joined02:18
smuf left02:20
imajes joined02:20
osmosis joined02:21
Cromulent left02:22
VVSiz_ joined02:24
sako hey all is it ok to clone a git repo into another one?02:24
i have a git repo setup, but i want to get a project which is version controlled by git as well02:24
so i would get the repo by git clone project2 and that will live in project1 which is a git repo itself02:25
problem is if i am in project1 and do a git-update, will it go and update project2?02:25
mahesh joined02:26
S1kx left02:26
keystr0k joined02:26
hummingkid joined02:28
DrAk0 left02:28
sako anyone?02:29
is it possible to have a git repo inside another git repo?02:29
keystr0k left02:29
agenteo joined02:29
sako left02:30
mhagger joined02:30
osmosis left02:31
volk joined02:31
volk before every commit, do i have to "git add filename" then "git commit" if I modified the filename?02:32
daifuku left02:32
agenteo isn't git checkout ID FILE supposed to "update" the file with the ID version?02:32
sako joined02:32
sako anyone alive? :)02:32
Khisanth volk: you can also do git commit filename02:33
daifuku joined02:33
sako hey guys is it ok to do a git clone projectname of a git version controlled project into another repo?02:33
shouldn't be an issue right?02:33
cloudhead joined02:33
volk left02:34
upul joined02:37
Aldwuin left02:39
loincloth left02:40
loincloth joined02:40
imajes left02:41
agenteo when I do a git show ID FILE I can see a few changes, but git checkout ID FILE, doesn't seem to actually update the file02:41
VVSiz left02:42
vbgunz left02:43
mhagger I have a simple patch series mh/rebase-fixup that Junio has merged to "next" but is waiting on further steps. Now I'm working on cleanup etc in the neighborhood, followed by the further steps. Is it preferred that I reroll the old patch series or that I submit an additional series? And if the latter, what should the new patch series apply against?02:45
daifuku left02:45
rchavik joined02:45
project2501a left02:47
aliasre left02:47
daifuku joined02:47
kerx joined02:49
parasti left02:51
pheaver joined02:52
segher left02:53
pheaver left02:53
remi joined02:53
coderdad joined02:53
coderdad I have a file that I want to revert to what I had a 4 commits back. I tried git reset --hard but it doesn't accept paths02:54
how can I bring that version of the file up02:54
I know the commit it was in02:55
bauruine left02:56
agenteo coderdad that's similar to what I am trying to do02:56
try git checkout ID FILE02:56
jelmer left02:58
coderdad thanks agenteo02:59
ricky_ joined03:00
agenteo give it a go, I am not sure why it's not working for me. Maybe cause I did it from a branch :) let me know how it goes03:00
coderdad it ran, but it still looks to be the most recent file03:00
ricky_ left03:00
coderdad haha same place here03:00
but that shouldn't matter03:00
agenteo eventually I used git show ID FILE to see the diff, and changed it manually03:01
aliasre joined03:02
daifuku left03:03
simNIX left03:03
daifuku joined03:05
JayM joined03:05
coderdad mine is an xib file for iphone03:05
all generated and crazy03:05
hummingkid left03:06
fcuk112 left03:06
EricInBNE left03:06
Twisted_Mentat left03:06
gdaa left03:06
ange left03:06
ilteris_ left03:06
kukks left03:06
maattd left03:06
cantoma left03:06
tetha left03:06
Fissure left03:06
GodEater left03:06
sdboyer left03:06
Cesario left03:06
vinse left03:06
jast left03:06
bgerber left03:06
robinbowes left03:06
johnjay_ left03:06
__bert__ left03:06
peper left03:06
fualo left03:06
MacGyverNL left03:06
htns left03:06
Khisanth left03:06
bbeecher left03:06
Arrowmaster left03:06
diegoviola left03:06
blast_hardcheese left03:06
kate_afk left03:06
milli left03:06
madmoose left03:06
ozzloy left03:06
cdngfrog left03:06
MIR100 left03:06
drfree left03:06
jaalto left03:06
dermoth left03:06
_rane left03:06
bremner left03:06
redondos left03:06
xinit left03:06
shad left03:06
Risar left03:06
binjured left03:06
awx left03:06
ChenKaie left03:06
dominikh left03:06
Sigma left03:06
lamont left03:06
GustavoRamos left03:06
argonel left03:06
Rhonda left03:06
Cope left03:06
Tass` left03:06
Spark left03:06
Tommy[D] left03:06
remi left03:06
cloudhead left03:06
Paraselene_ left03:06
ruediger left03:06
ProperNoun left03:06
RaceCondition left03:06
riz2 left03:06
jailbox left03:06
keseldude left03:06
bry left03:06
pgalbraith left03:06
cenuij left03:06
cytrinox left03:06
phadviger left03:06
ft left03:06
SolarWar left03:06
DrNick left03:06
sunaku left03:06
thiago left03:06
perk left03:06
jksz left03:06
harv left03:06
mebus left03:06
numbah left03:06
thijso left03:06
Bucciarati left03:06
Ilari left03:06
pcgod left03:06
floppyears left03:06
levifig left03:06
ruxpin left03:06
ruskie left03:06
jacobat left03:06
mediaslave left03:06
ph^ left03:06
johnw joined03:06
rchavik left03:07
remi joined03:07
cloudhead joined03:07
Paraselene_ joined03:07
ruediger joined03:07
ProperNoun joined03:07
RaceCondition joined03:07
riz2 joined03:07
jailbox joined03:07
keseldude joined03:07
bry joined03:07
Tommy[D] joined03:07
pgalbraith joined03:07
cenuij joined03:07
cytrinox joined03:07
phadviger joined03:07
perk joined03:07
SolarWar joined03:07
ft joined03:07
DrNick joined03:07
sunaku joined03:07
thiago joined03:07
ph^ joined03:07
mediaslave joined03:07
levifig joined03:07
jacobat joined03:07
numbah joined03:07
pcgod joined03:07
jksz joined03:07
ruskie joined03:07
floppyears joined03:07
ruxpin joined03:07
harv joined03:07
Ilari joined03:07
Bucciarati joined03:07
thijso joined03:07
mebus joined03:07
hummingkid joined03:08
fcuk112 joined03:08
EricInBNE joined03:08
Twisted_Mentat joined03:08
gdaa joined03:08
ange joined03:08
kukks joined03:08
maattd joined03:08
cantoma joined03:08
tetha joined03:08
Fissure joined03:08
GodEater joined03:08
sdboyer joined03:08
Cesario joined03:08
vinse joined03:08
jast joined03:08
blast_hardcheese joined03:08
cdngfrog joined03:08
bgerber joined03:08
robinbowes joined03:08
Cope joined03:08
diegoviola joined03:08
johnjay_ joined03:08
__bert__ joined03:08
peper joined03:08
fualo joined03:08
MacGyverNL joined03:08
htns joined03:08
Khisanth joined03:08
bbeecher joined03:08
xinit joined03:08
Arrowmaster joined03:08
Risar joined03:08
shad joined03:08
Sigma joined03:08
ozzloy joined03:08
_rane joined03:08
MIR100 joined03:08
argonel joined03:08
dominikh joined03:08
lamont joined03:08
Rhonda joined03:08
Spark joined03:08
bremner joined03:08
drfree joined03:08
kate_afk joined03:08
dermoth joined03:08
GustavoRamos joined03:08
milli joined03:08
redondos joined03:08
madmoose joined03:08
awx joined03:08
binjured joined03:08
jaalto joined03:08
ChenKaie joined03:08
Tass` joined03:08
ruediger left03:08
taufiqkh joined03:10
Joe_Conyers joined03:12
Joe_Conyers left03:12
aziz left03:13
kerx left03:13
sako left03:14
JM joined03:15
coderdad left03:15
mhagger left03:15
coderdad joined03:15
simNIX joined03:15
RobertLaptop left03:15
JoeConyers left03:15
loinclot_ joined03:16
loincloth left03:16
RobertLaptop joined03:17
Bass10 left03:18
aliasre left03:18
loinclot_ left03:19
loincloth joined03:20
mpr left03:20
flaguy48 left03:22
daifuku left03:25
cytrinox_ joined03:25
mpr joined03:27
daifuku joined03:27
loinclot_ joined03:28
loincloth left03:29
sako joined03:31
sako left03:31
sako joined03:32
jamesgolick joined03:33
jamesgolick is there any way to get git to tell me the total number of insertions and deletions in a commit range?03:34
jelmer joined03:34
cedricv left03:36
JM left03:36
cytrinox left03:37
cytrinox_cytrinox03:37
gambler left03:39
vbgunz joined03:40
justinweiss left03:44
gdaa left03:44
pheaver joined03:44
loinclot_ left03:46
loincloth joined03:46
candybar joined03:47
Ilari jamesgolick: 'git diff --stat <commit1> <commit2>'?03:48
jamesgolick nice03:48
Ilari: thx03:48
i had whipped out awk03:48
with --numstat03:49
LiamH left03:50
tjaway joined03:52
daifuku left03:52
remi left03:52
daifuku joined03:53
Adlai left03:53
loinclot_ joined03:54
swisherpop left03:54
loincloth left03:55
kukks left03:55
tekky left03:55
Adlai joined03:55
Haarg left03:56
schmukkk joined03:58
rgr left03:58
EricInBNE left03:58
rgr joined03:58
pheaver left04:00
daifuku left04:00
swisherpop joined04:00
daifuku joined04:01
EricInBNE joined04:01
Twisted_Mentat left04:01
swisherpop left04:02
stringo0 joined04:03
stringo0 left04:03
stringo0 joined04:03
stringo0 left04:04
stringo0 joined04:04
stringo0 left04:04
stringo0 joined04:04
swisherpop joined04:04
stringo0 left04:05
stringo0 joined04:05
sako left04:05
khmarbaise joined04:07
tjafk left04:08
bauruine joined04:09
ideogon joined04:11
godsflaw joined04:12
khmarbaise left04:12
daifuku left04:12
Tureba left04:13
daifuku joined04:14
daifuku left04:15
warthog9 joined04:21
hummingkid left04:21
hummingkid joined04:21
catalis joined04:23
amerine left04:25
mahesh left04:28
amerine joined04:29
kssddy joined04:30
pheaver joined04:32
loinclot_ left04:35
coderdad left04:39
sumangurung joined04:39
coderdad joined04:39
hummingkid left04:40
m104 left04:42
mdel joined04:42
sako joined04:43
Slix Alright.. so I put some changes into my master branch.04:44
I have a feature branch though. My feature branch needs those changes.04:44
What's the best way to get those onto my feature branch?04:45
I've heard of rebasing a lot, but am unsure of what that exactly means.04:45
m104 joined04:45
rettub left04:50
ricky joined04:50
d2dchat left04:51
rettub joined04:53
offby1 Slix: time to read various tutorials :-|04:53
in the meantime ...04:53
just "git checkout feature; git merge master"04:53
actually, the answer is, "it depends" :-|04:53
probably not what you wanted to hear04:54
herlo joined04:54
rgr left04:55
rgr joined04:55
Slix Yeah, I know I have to read more tutorials.04:55
But it's 10:55pm and I can't go to sleep until I finish some hw. :P04:55
herlo hello all, would I ask gitosis config questions here? Or is there a better channel??04:56
Slix Will the tutorials explain the "it depends"?04:56
Ilari herlo: Gitosis is obsolete, but yes, ask here.04:57
pinnacle joined04:57
herlo Ilari: what do you use in place of gitosis then?04:58
anyway, I have a fun error that I haven't been able to identify a quick fix04:58
http://pastebin.ca/174649004:58
Ilari herlo: Gitolite. But if you have working gitosis install, no real reason to change.04:58
herlo Ilari: I don't...04:58
offby1 Slix: it depends on the tutorial :)04:58
lemme see if I can help04:58
Slix: is this repository just for you, or are you sharing it?04:59
Slix offby1: Just for me.04:59
offby1 good!04:59
then just merge.04:59
herlo Ilari: either way, any suggestions on the pastebin?04:59
Slix And then commit the merge?04:59
g3d joined04:59
offby1 no need; merging commits automatically, unless you tell it not to04:59
Slix Ahh.04:59
offby1 (that's the opposite of bzr, and maybe hg too)05:00
Ilari herlo: That kind of stuff would look like some user/repo name is misspelled.05:00
herlo yeah, don't think so...05:00
coderdadcoderdad|away05:00
herlo Ilari: I've checked and doublecheked that many many times, since it's just gitosis-admin05:00
Ilari herlo: Can you also pastebin the gitosis configuration (~git/.gitosis.conf)?05:01
kssddy: (That is the "active" configuration").05:01
Oops.05:01
herlo: (That is the "active" configuration").05:01
herlo Ilari: sure05:02
Ilari: http://pastebin.ca/174649605:04
Ilari herlo: The right user is "herlo@herlo-lap", not "herlo".05:05
herlo I've tinkered with the 'herlo' and 'herlo@herlo-lap'05:05
I knew you were going to say that :)05:05
but I can change it back05:06
though it doesn't seem to make a diff05:06
Ilari herlo: Edit the active configuration as you can't clone or push properly?05:06
herlo yeah, trying that again05:07
strange, got it working. I swear I tried that05:07
Ilari: thanks05:07
schmukkk left05:08
Ilari herlo: BTW: On this computer, I run gitolite on top of git-daemon2 (no sshd at all!)05:09
herlo nice05:09
Ilari: I'll have a look at gitolite05:09
Ilari herlo: gitolite is designed for ssh operation, but if underlying daemon looks like sshd to it...05:10
vbgunz left05:10
sumangurung left05:10
Ilari herlo: BTW: What wasn't nice was to have to security-patch it yesterday. :-/05:11
BigMack83 left05:11
d2dchat joined05:11
herlo ooh05:12
not nice05:12
Ilari herlo: One could authenticated with forged keypair if one obtained the public key of user/server.05:14
Adlai is it possible to use git-svn to get just one branch of an SVN repo?05:14
Ilari *authenticate05:14
herlo Ilari: not good!05:15
tedoc2000 left05:15
rgr left05:15
DrAk0 joined05:16
aresnick left05:17
sitaram Ilari: security patch gitolite? or ssh-daemon2?05:17
[1]awnstudio joined05:17
jceb joined05:21
project2501a joined05:22
cloudhead left05:22
cloudhead joined05:22
amouge1 joined05:25
coderdad|awaycoderdad05:26
sitaram errm , I mean git-daemon205:27
godsflaw left05:27
offby1 Adlai: yep05:28
Adlai offby1, what if it involves externals?05:28
offby1 I doubt externals work05:28
the man page probably explains05:28
Adlai it just lists one command, show-externals. I guess it's worth a shot :\05:30
cedricv joined05:30
LRN left05:31
jelmer left05:33
LRN joined05:33
awnstudio left05:33
[1]awnstudioawnstudio05:33
amerine left05:33
sagsousuke left05:34
pkw left05:34
jelmer joined05:35
kssddy left05:35
hummingkid joined05:35
sunaku left05:36
cxreg i'm still a little surprised to find that git-notes arent meant to be clone05:38
d05:38
amouge left05:40
Ilari sitaram: git-daemon2.05:41
sitaram Ilari: thanks; saw that bit about forged keypair later (juggling multiple things sorry)05:42
krynnotaur joined05:42
pkw joined05:43
Ilari sitaram: Actually not a proper fix, just tightens checks enough so that it can't be exploited.05:43
tekky joined05:43
tekky left05:45
Adlai ok, I cloned a single SVN branch, worked ok. Tried show-externals, and it only lists the externals, but doesn't fetch them. Is there any way to fetch them into the right parts of the tree?05:45
tekky joined05:46
savant joined05:47
savant left05:47
jfkw left05:48
marc_m left05:48
blast_hardcheese left05:49
munichlinux joined05:51
wereHamster Adlai: nope05:52
Akkernight joined05:53
kssddy joined05:53
hummingkid left05:54
Akkernight I'm trying to build a GIT repository of Wine, and after it says "=> Starting make..." it checks alot of stuff, but when it checks whether gcc -m32 works, it says no, and it says "Cannot build a 32-bit program, you need to install 32-bit development libraries", does anyone know how to help?05:54
cehteh what has that to do with git?05:55
johnw what OS?05:55
cehteh build wine on 64bit debian some time ago .. you need to isntall some 32 bit devel stuff05:56
cehteh but thats bit of topic here, better ask in #wine05:56
johnw Akkernight: you'll need to look up how to install 32-bit devel libs for your platform05:56
cloudhead left05:56
Akkernight johnw, I'm on Arch Linux and I have done pacman -S lib32. cehteh I thought it had something to do with Git because I'm using Git to get the repository :P05:57
cehteh nope thats not a git thing05:57
jamesgolick left05:58
SeveredCross Arch FTL.05:58
wereHamster Akkernight: you are trying to build package X, so ask the people who are developing X. (head over to #winehq or #arch)05:59
Akkernight wereHamster, yeah I was already on both channels :P just thought this was a Git thing, sorry06:00
divVerent in a bare repo, how can I list which files exist?06:00
git-ls-files shows nothing06:00
lcpfnvc left06:01
divVerent (want to see why it's still 1.8GB after lots of branch filtering and deleting all the big stuff)06:01
fishey left06:02
wereHamster git ls-tree -r06:02
divVerent ah, thanks06:03
all the files appear to still be there :(06:03
but well06:03
seems like I got farther by that06:03
another thing... what is recommended commit workflow when using git-svn and having the git repo published?06:03
git svn dcommit rebases the branch, which I'd like to avoid as I then cannot continue working on it06:03
what about git checkout master; git merge branch; git svn dcommit06:03
roop joined06:04
divVerent that still rebases, but would it be safe (as in, not rewriting PUBLISHED history)?06:04
or do I then get into trouble when doing the next merge?06:04
giallu left06:04
divVerent basically, assume this: two branches be fully merged, i.e. merging A to B does nothing and B to A does nothing.06:05
then I rebase A.06:05
and merge A into B06:05
will that do anything nasty?06:06
solofight joined06:06
Ilari divVerent: Rebase what branch? And with what as base?06:06
divVerent well06:06
assume I have a development branch xyz06:06
and a master branch, which is a mirror of svn trunk06:06
assuem that, in branch xyz, I did git merge master06:07
then in branch master, I do git merge xyz, then git svn dcommit (which rebases master on the previous head of master)06:07
Chillance_ joined06:07
solofight left06:07
Ilari divVerent: That would mess up git svn if you want to commit development back...06:07
divVerent what if, then in branch xyz, I do git merge master?06:07
Ilari: why would it?06:07
Ilari divVerent: Merges and SVN don't mix.06:07
divVerent okay, so the only way to commit to svn is to git svn dcommit from a SEPARATE branch, then throwing away the branch?06:08
solofight joined06:08
divVerent note that the development branches are not kept in svn, only the master/trunk is06:08
Ilari divVerent: Don't dcommit any merges unless you really know what you are doing.06:09
divVerent which also means I really don't want to rebase the development branches06:09
well, to know what I am doing, what breakage should I expect?06:09
I assume it rebases all the commits from the merge on top of HEAD06:09
Ilari divVerent: Dcommits to wrong branch, git svn refusing to dcommit, etc...06:09
divVerent which by itself sounds fine to me06:09
jackdempsey joined06:09
divVerent the thing I don't like about dcommit is the rebasing...06:10
what if I want to dcommit a branch to master/trunk06:10
Ilari divVerent: wrong commits being dcommitted, commits being lost, etc...06:10
divVerent but want to keep working on the branch06:10
if I dcommit it, I rebased it, which means I really shouldn't push it06:10
so assume I reset back to origin/branchname after dcommit, undoing the rebase06:11
Ilari divVerent: Basically, if you push some commit, it must be already dcommitted, or it can never be dcommitted.06:11
divVerent: Sorrt, SVN is just so limited.06:11
divVerent why?06:11
I don't get it06:11
I want to keep development branches in git06:11
and the main one in svn06:11
so the only branch I ever dcommit _to_ is svn's trunk06:11
Ilari divVerent: git-svn is not distributed.06:12
divVerent sure, I know that06:12
johnw divVerent: I do what you just described all the time06:12
divVerent but how does it hinder me from doing rbanches in a published git repository?06:12
johnw you want to publish your topic branches?06:12
divVerent exactly06:12
johnw that won't work with git-svn06:12
divVerent basically... I know that git svn dcommit from a branch pushes on top of svn trunk06:12
johnw because it rebases after every dcommit06:12
in order to record the metadata with the commit06:13
divVerent sure, which basically means I currently dcommit only if I know I dont need the topic branch any more06:13
i.e. after a dcommit, I delete the topic branch06:13
numberGrey joined06:13
johnw either that, or rebase your topic branches and tell everyone who consumes from you to use git pull --rebase06:13
divVerent I just wonder... can I maybe avoid that?06:13
assume I do this:06:13
1. dcommit from topic branch to svn trunk06:13
2. fetch and merge this into the master branch (containing the svn metadata)06:14
sako left06:14
divVerent 3. reset the topic branch to the previous, un-rebased, head06:14
4. merge master into the topic branch06:14
what will happen then?06:14
johnw you'll see "duplicated" commits in your history06:14
one version with metadata, and one without06:14
divVerent fine with that06:14
will it cause any trouble?06:14
like millions of merge conflicts?06:14
johnw not post-merge, no06:14
ankit9 joined06:14
divVerent okay, so that means I can actually do that06:15
clumsy workflow, maybe, but sounds like a plan06:15
johnw it should work as you imagine. your consumers will pull your merge commit and then be updated06:15
it's gonna make for some pretty funky trees in gitk though06:15
divVerent so basically,a duplicate commit usually causes no real harm when merging06:15
but is basically skipped06:15
i.e. git merge notices the change is already in, and skips it06:15
johnw yeah, it should be ok06:15
divVerent and the other side of the question...06:15
git svn dcommit will know that the commits to push next start at the last dcommit06:16
despite the merge?06:16
johnw there may be cases where, if a merge conflict does occur for some reason, you could end up having to fix it twice06:16
but I can't think of a case offhand06:16
jackdempsey left06:16
divVerent well, I can mostly prevent that by, before pushing, pulling06:16
(and making sure the git-svn-managed master branch is current too)06:16
johnw dcommit should get things right, because the metadata will be on the first parent06:16
divVerent also... for this weird git-svn workflow... I'd like to add a commit hook on server side that prevents pushing to any git-svn managed branch06:17
just in case I mess up :P06:17
how to know if git-svn manages a branch?06:17
johnw good idea06:17
i'd list them in a file if I were you06:17
divVerent as nobody ever creates new branches on svn anyway, I can safely do that and get no conflicts06:17
so there is no command do do it, okay06:18
Swimming_Bird left06:18
divVerent actually... will do _positive_ matching then06:20
basically, I will require branches to be prefixed with a username and a slash for being pushable06:20
onigiri_ left06:20
__bert__ left06:20
__bert__ joined06:21
__bert__ left06:21
hyperair joined06:22
kssddy left06:23
Chillance left06:23
hummingkid joined06:23
g3d left06:24
girishr joined06:24
girishr left06:24
kssddy joined06:28
niki left06:30
catalis left06:33
jceb left06:34
amerine joined06:36
sako joined06:37
ideogon left06:37
madewokherd left06:40
robinr joined06:40
hummingkid left06:42
wolog left06:42
juan_arandaalvar left06:43
marc_m joined06:46
maattd left06:50
robinr left06:52
coderdad left06:53
Chillance_ left06:54
mdel left07:00
bugfux joined07:00
deschet left07:00
Octalot left07:01
krynnotaur left07:04
juan_arandaalvar joined07:04
agenteo left07:06
Adlai left07:06
rmancy left07:06
r11t_r11t07:11
Bartman007 left07:17
warthog9 left07:18
bugfux left07:19
benbalbo joined07:19
Slix left07:22
petrux joined07:22
Jak_o_Shadows joined07:24
dolphinling joined07:25
dolphinling Hi, in the config option remote.<name>.fetch, what's the syntax for multiple <refspec>s? git help fetch doesn't say.07:27
Ilari dolphinling: Just have multiple settings by that name.07:27
dolphinling Awesome, thanks07:28
Ilari dolphinling: Some settings make sense specified multiple times (such as remote URL and fetch/push lines).07:29
kristian42 left07:33
SunilThaha left07:33
ntoll joined07:35
giallu joined07:35
ideogon joined07:37
psoo joined07:38
project2501a left07:39
kssddy left07:39
thiago_home joined07:39
project2501a joined07:39
hummingkid joined07:40
warthog9 joined07:41
sde_antrix joined07:41
bentob0x joined07:44
Axius joined07:45
pheaver left07:47
adamm_ left07:48
lucsky joined07:49
lucsky left07:51
lucsky joined07:51
SunilThaha joined07:51
kssddy joined07:53
benbalbo left07:54
hummingkid left07:58
r11t left07:58
johan-s left07:59
NET||abuse left07:59
DrAk0 left08:01
nico- joined08:02
kkoehne joined08:02
akar joined08:03
nico- left08:03
nico- joined08:04
divVerent someone know a good way to do a "cronjob" working on a git repository on sourceforge?08:06
from their web server I cannot access the SCM mounts08:06
so next idea would be something ugly like a git update hook08:06
and a server that regularily pushes to a dummy ref08:06
#just, I find that so ugly, I rather ask if anyone here knows a better way08:07
kahmalo left08:07
Adlai joined08:10
roop divVerent: i didnt really understand. you want to pull periodically from the sf git repo?08:10
akar left08:11
divVerent no08:11
from a remote svn into the sf git repo08:11
for a transition period08:12
Tass` how to pop the lastest commit and apply the changes to the working tree?08:12
roop divVerent: oh, like call git svn dcommit now and then?08:13
divVerent actually, just the other way round08:13
commands I want are git svn fetch, then git fetch08:13
project2501a left08:14
roop divVerent: the cron runs in your server? or does sf provide ssh access to its servers or something?08:14
nico- left08:14
divVerent cron runs on another server08:14
because sf allows no cron+08:14
akar joined08:15
divVerent and has some weird "shell creation" that doesn't work with public key login08:15
so I can't do a pubkey ssh command from another host either08:15
roop divVerent: so the cron has to git svn rebase && git push, right?08:15
divVerent no08:15
git svn fetch && git fetch08:16
inside the git-svn managed repo08:16
Akkernight left08:16
divVerent the git fetch is a trick to fix up the refs08:16
Kelly_zhou joined08:16
divVerent [remote "origin"]08:16
url = .08:16
fetch = +refs/remotes/trunk:refs/heads/master08:16
Axius left08:16
divVerent this is what it does08:16
ideogon left08:16
divVerent result is a nicely clonable read only (supporting extra branches though) git svn mirror08:17
suzak joined08:17
_gpg_ joined08:17
divVerent will get combined with an update hook that prevents pushing into git svn-managed branches08:17
roop divVerent: ok, it's a readonly git repo that's a mirror of the svn repo?08:17
amouge1 left08:17
divVerent mostly readonly, yes08:17
nonken joined08:17
divVerent allows creating topic branches in git-only08:17
_gpg_ hi08:18
divVerent and then users can dcommit these into svn08:18
roop so this 'git svn fetch && git fetch' fails eh?08:18
divVerent no08:18
it normally works08:18
I just am looking for a way to call it regularily08:18
because SF has no cron08:18
_gpg_ i have pushed my change to a public repository, and id like to change one commit "log", is it possible ?08:18
xlistener left08:18
roop but "cron runs on another server" anyway, right?08:18
divVerent yes08:19
amouge joined08:19
divVerent but I want the fetch and stuff to run on sf's server08:19
as I want to forbid pushing to svn-managed refs08:19
I can't do this git svn stuff on another machine08:19
sako left08:20
roop divVerent: so why cant you push from yourserver to the sf git repo?08:21
divVerent: (and disable push access for all but this cronjob user)08:22
(... in the sf git server)08:22
divVerent because my "yourserver" is not that reliable08:22
and I don't really want to clone the full repo there08:22
sde_antrix left08:22
divVerent also... I want to allow push from everyone08:22
just not to the git-svn managed branches08:22
ugh... the commit hook way fails too08:23
sh-3.2$ git push origin :refs/svn/update08:23
[email@hidden.address] password:08:23
git: 'svn' is not a git-command. See 'git --help'.08:23
looks like sourceforge is unsuitable for my needs, then08:23
roop divVerent: allowing push selectively can be done with hooks, i guess, but i dont know what level you can play with them at the sf repo08:23
divVerent: oops. they dont have git svn installed, eh? :)08:24
divVerent not on the git server08:24
they have on the shell server08:24
but using that one cannot be automated08:24
sde_antrix joined08:25
sroehle joined08:25
divVerent I wish icculus.org weren't so low on HDD space08:25
they'd otherwise be suitable for it08:25
but, one of the repos is 2.3 GB08:25
and df says 1.7 GB free08:25
sroehle left08:25
sroehle joined08:26
sroehle left08:26
amerine left08:26
divVerent well, maybe I can arrange with the guy to put in a larger HD for a donation08:26
yet another attempt could be asking github if they'd want to support this open source project08:26
but, normaly they allow 300MB only for public repos08:26
I wish there were good free git hosters allowing >3GB of space08:27
blazer divVerent: what do you need all that space for?08:28
bob2 3gb is a looooot of code08:28
wolog joined08:28
roop divVerent: i think gitorious.org just asks you to tell them beforehand if you exceed some limit. you can check with them too.08:28
divVerent: you have binaries too in the repo, eh?08:29
divVerent yes08:29
images08:29
and music files08:29
it's a game08:29
and game data has to stay consistent wiht the code08:29
and be branchable08:29
so you can, e.g., add a branch that adds a new weapon to the game08:29
and adding as new weapon means new textures, new models, AND code08:29
bentob0x left08:30
Polysics joined08:30
divVerent but well... given the size, I'd also want branch-based access control08:30
juan_arandaalvar left08:30
Polysics hello08:30
divVerent so I can e.g. add a user who can only push to branches that start with hisusername/08:30
Polysics slightly OT but i don't know where else to ask08:30
divVerent that'd save HDD space on the server for extra clones :P08:30
Polysics is github having issues today?08:30
divVerent and would allow him to do forks08:30
Polysics i need to clone a rep to read the docs, but i can't get to it :-)08:31
bob2 there's a #github08:31
Polysics bob2, thanks and sorry08:31
ph^_ joined08:31
samcarter left08:31
pheaver joined08:32
divVerent if grouped by file type, most space is used by .tga files (images)08:32
then by .ogg files08:32
SunilThaha left08:32
roop divVerent: mmm, makes sense. so sf git repos dont have a limit eh?08:32
divVerent they have no limit indeed08:32
SunilThaha joined08:32
divVerent and sf is a reliable server08:32
so two conditions fulfilled08:32
now I only need that svn mirror for a transition period08:32
(until everyone is using git)08:32
roop divVerent: can you point me to the repo. just curious to see a git repo with lots of binaries. :)08:33
niki joined08:33
divVerent http://141.2.16.23/cgi-bin/gitweb.cgi?p=nexuiz.git;a=summary08:33
it's not on SF yet, still push-mirror-ing :P08:33
and yes, it once was cvs too08:33
it was on SF cvs...08:33
then got imported into icculus svn08:33
and this is a git-svn clone of it08:34
bauruine left08:34
divVerent this server is my not-so-reliable server at university08:34
actually, my old desktop machine08:34
imajes joined08:34
divVerent wouldn't want to bet the project on that08:34
as it may fail any time08:34
to explain the structure...08:35
and why submodules wouldn't work well08:35
to add a weapon08:35
Polysics left08:35
divVerent you need files in data/qcsrc (game code)08:35
in textures/08:35
and in models/weapons/08:35
and textures is the largest subdirectory08:35
we gave up trying to tell modellers to save their textures in the same dir as the model08:36
as apparently blender exporters don't get then path names right then08:36
d0ugal joined08:36
divVerent and artists usually aren't fluent with a hex editor :P08:36
also, the balance*.cfg files contain weapon specific stuff08:37
anno^da joined08:37
divVerent the other stuff that's bound to the code is gfx/* (although not THAT bad if it's desynced), and all the cfg fiels08:37
I am also currently trying to separate it using submodules, but this is getting hard too08:37
as whatever may be part of the same branch should be in one submodule08:38
roop divVerent: just thinking aloud: maybe you can make icculus remember only the last few commits and forget the ones before08:38
so you wouldnt need a lot of space08:38
divVerent that would work initially08:38
but not later :P08:38
sure, instead of using a git-svn import, we could clear history08:39
but I don't really want to08:39
roop divVerent: i mean, keep forgetting08:39
divVerent that works "reliably"?08:39
galderz joined08:39
divVerent but even then... often people want a 1 year old version08:39
can't forget anything less than 2 years old08:39
roop divVerent: the sf git repo will still have all the commits, so there's nothing to worry08:39
divVerent still, could maybe bring the 2.3GB down to 1.5GB or like that08:39
well, I want to end up wiht ONE good official repo08:40
and preferably on icculus, except their HDD is small08:40
roop divVerent: i dont mean let's forget the history. let me try and reword that.08:40
cxreg man, schacon is going to have to do a version 2 of his book already08:40
git changes so fast08:40
roop divVerent: we pull 100 commits from svn, push to sf git. then pull 100 more, forget the first 99, push the 101 commit \s we have to git, and so on.08:41
divVerent: and a similar strategy for the cron even after they're synced08:41
divVerent oh, you mean for keeping the mirror up to date08:41
dolphinling left08:41
divVerent not for publishing the icculus.org repo?08:41
that may work then08:41
roop divVerent: right.08:41
divVerent just, how?08:42
roop divVerent: it's hack and a lot of work still :)08:42
divVerent also, I can do the INITIAL setup from 141.2.16.23, my uni host08:42
only the keeping-it-updated would have to be on something more reliable, like icculus08:42
so how to forget history? :P08:43
roop divVerent: one sec. just checking some man pages. :)08:43
divVerent but well08:43
no matter how well it works08:43
icculus will still need about 1G HDD space08:43
because that's the current sizes of all media, zipped08:43
and this should be the size of the git history "without past"08:43
roop yeah, something line 1.5x to 2x of current repo size would be good08:44
divVerent also, the art files (tgas etc.) tend to not have much history08:44
well08:44
that is how big the git history is :P08:45
actually, it is 2.0GB08:45
the large fiels are usually added once, then never touched again08:45
(except for maybe moving, renaming)08:45
still I'd like to see how big that would be wiht all history forgotten :P08:45
roop divVerent: mm, so the repo size just increases as the binaries got added08:46
divVerent yes08:46
mostly08:46
Twisted_Mentat joined08:46
divVerent sometimes binaries get deleted or replaced08:46
but that is seldom08:46
although, we MAY have duplicates08:46
as I don't know if git-svn tracks "svn mv" correctly08:46
or creates a new copy, and a delete for the old fiel08:46
akar left08:47
divVerent will be back soon08:47
pantsman joined08:48
stringo0 left08:49
marc_mmarc_kdab08:49
hobodave left08:50
jmk2 joined08:51
thiago_home left08:53
nico- joined08:53
roop divVerent: git svn init <svnpath>; git svn fetch -r<N>; git push <sfgitpath>; rm -rf . #hehe08:53
divVerent: so we dont forget, but we reinitialize every time from the svn repo.08:54
Haarg joined08:55
johnw left08:56
jmk2 two questions are driving nuts: #1 whats with the .git in project names (eg: website.git) and is it important to have it? #2 is it okay to leave my .git repo directory on a websites document_root, more exactly, i have a repo for a website and pull/push to it for updates, is that okay?08:57
_rane jmk2: it's not in the project name08:57
ashH joined08:57
Ilari jmk2: #1: Its just convention.08:57
jmk2: $faq non-bare08:57
Gitbot jmk2: Pushing to non-bare repositories is discouraged. See http://git.or.cz/gitwiki/GitFaq#non-bare08:57
johan-s joined08:58
johan-s left08:59
jmk2 Ilari: thx09:01
now if you can just point me to the FAQ "my back hurts after sleeping the wrong way" that would be awesome :)09:02
nico- left09:03
johan-s joined09:03
GustavoRamos left09:03
HG` joined09:04
becomingGuru joined09:11
divVerent roop: that is interesting approach...09:11
VVSiz_VVSiz09:14
giallu left09:15
ixti joined09:16
jmk2 roop: i like that concept as well.09:17
kssddy left09:20
hummingkid joined09:20
nadim left09:20
pcgod left09:21
pcgod joined09:22
robinbowes left09:22
_gpg_ is it possible to change some commit logs ?09:22
jmk2 so question #2: is it okay for my website directory (document_root) to have the repository .git directory ?09:23
Ilari jmk2: It should not. Or if it does, you should setup hooks to update it (because push does not update working copy).09:24
hummingkid left09:24
jmk2 _gpg_: quick glance read, http://stackoverflow.com/questions/179123/how-do-i-edit-an-incorrect-commit-message-in-git09:24
_gpg_ jkm2 thank you09:25
jmk2 Ilari: good to know, i guess what i'm asking is for security purposes, is it find to keep it there.09:26
robinbowes joined09:27
jmk2 _gpg_: try this site, its been my swiss-army-knife to learning Git, http://www-cs-students.stanford.edu/~blynn/gitmagic/09:27
xiong joined09:28
robinbowes_ joined09:28
Ilari jmk2: http://toroid.org/ams/git-website-howto09:28
m104 left09:28
munichlinux left09:29
robinbowes_ left09:29
_gpg_ jmk2, thank you, really interesting09:29
GarethAdams|Work joined09:30
_gpg_ i have seen in the past some website propising free git video cast, i can't find them again, any one know them ?09:30
priidu joined09:31
nickrw joined09:31
weev joined09:32
gitte joined09:33
curtana joined09:33
AkumaStreak left09:34
bentob0x joined09:34
shruggar joined09:36
mathrick left09:37
jmk2 left09:38
project2501a joined09:38
lemonchicken left09:39
AkumaStreak joined09:39
weev left09:40
pheaver left09:41
tvw joined09:42
tbf joined09:45
dwmw2_dwmw209:57
gebi joined09:57
solofight left09:59
solofight joined10:00
Twisted_Mentat left10:00
hummingkid joined10:05
ianmcorvidae left10:06
ianmcorvidae joined10:06
RaceCondition left10:09
tetha left10:10
tetha joined10:10
jelmer left10:14
yhager git rebase, conflict, resolved it, ran 'git add', trying git rebase --continus, but I get "No changes - did you forget to use 'git add'"10:14
jelmer joined10:15
g0 joined10:16
g0 really need help here... I had a few image files in my working directory, untracked in .gitignore, I switched back to a previous commit where .gitignore didn't contain anything, then did git add . forgetin that i'm not at the last commit, then I thought 'duh' and did git checkout master now the images are gone!10:19
TBAA joined10:20
TBAA hi10:20
i like to switch back to an old commitstate10:20
what is the command to do that if i have the hash of this commit?10:20
vkroll_ git checkout hash10:21
Kelly_zhou left10:21
TBAA thx10:21
vkroll_ or git revert hash10:21
__bert__ joined10:22
g0 actually I was lying, I did a git reset --hard befre trying git checkout master10:23
I'm totally f*d right?10:23
TBAA hmm git push says i cannot fast forward. is there a way to force a push?10:23
aspotashev joined10:24
wereHamster g0: the images are saved within the git object database10:24
TBAA -f thx that this is so easy10:24
hummingkid left10:24
wereHamster g0: you just have to find them (git fsck --lost-found and then inspect 'tree's and see which one contains references to your images)10:24
hummingkid joined10:24
g0 wereHamster I did not commit the after git add ., i instead did git reset --hard10:25
will they still be there?10:25
wereHamster yes10:25
g0 ok ok...10:25
g0 needs to calm down10:25
Araneidae joined10:25
psankar joined10:26
g0 wereHamster git fsck --lost-found gave me a few dangling commits and dangling trees.. um.. how to i see what's in them?10:27
wereHamster git show <tree>10:27
g0 thanks10:27
wereHamster or better: git cat-file -p <tree>10:28
Araneidae I'm in the middle of a rebase conflict: how can I get git-diff to show *all* the changes on the conflicting file?10:28
lemonchicken joined10:28
Araneidae As far as I can tell git-diff by default only shows me the differences it hasn't merged ... not sure I understand it, to be honest10:28
In particular, I'm confused at the horribly things the automatic merge has done to my file!10:29
FauxFauxAAAAAAAAAAAAAAAA10:29
wereHamster g0: nah, use git ls-tree -r <tree> | grep .jpg or so and the git the images with 'git cat-file -p <blob> > path/to/image.jpg'10:29
AAAAAAAAAAAAAAAAFauxFaux10:29
broonie git diff <something>.. to diff from <something> to your working directory.10:29
Araneidae broonie, sorry, I don't quite get that. I've tried `git diff $FILENAME..` and `git diff $FILENAME ..` without success10:30
g0 wereHamster: Actually I had 571 images, do I have to do that for each one of them?10:30
Araneidae ".. is outside repository"10:30
wereHamster Araneidae: <something> is a commit, not a filename10:31
g0 My sad life :'(10:31
Araneidae Well, that's not useful: I haven't commited the conflict yet...10:31
g0 I think I found the tree10:31
broonie Araneidae: git diff <something>.. filename10:31
wereHamster g0: you can script taht ('git ls-tree -r <tree> | grep ... | while read ...; do git cat-file ...)10:31
broonie Araneidae: where something is something like HEAD or one of the branches you're merging.10:31
TBAA hmm Not currently on any branch.10:31
Araneidae Ahh... actually, `git diff HEAD <filename>` --- simple as that!10:32
wereHamster Araneidae: if you just had a merge conflict, you can simply run 'git diff' to see what caused the conflict10:32
TBAA i want that my code now should be the HEAD10:32
wereHamster TBAA: it is10:32
Araneidae wereHamster, my problem was that `git diff` shows both sides of the merge and I wasn't trusting it...10:32
wereHamster HEAD is whatyou have currently checked out10:32
TBAA ok, but this message is new10:32
froschi left10:34
TBAA ok instead of HEAD i think i mean MASTER10:34
Araneidae In particulara, when merging a conflict, git-diff doesn't show the already merged part. Anyhow, thanks for pointing me at `git diff HEAD <filename>`10:34
wereHamster TBAA: 'master' (lower case)10:34
TBAA ok :-D10:34
wereHamster TBAA: git checkout master; git reset --hard HEAD@{1}10:34
TBAA: but read faq detached first!10:35
Gitbot TBAA: You are on a detached HEAD and might lose commits.. See http://git.or.cz/gitwiki/GitFaq#detached10:35
simonpe joined10:35
TBAA lose commits is what i want to do :-D10:35
Ilari TBAA: But the commits to lose in this case are not likely the ones you want to lose.10:36
TBAA yeah maybe :-D10:36
simonpe I have branched from master and tagged that branch, without changing any files. When I try to push I am told that everything is up to date, i.e. I can't push. Why is this?10:36
TBAA i read the faq10:36
munichlinux joined10:36
munichlinux left10:36
wereHamster simonpe: do you want to push the tag or the new branch?10:37
simonpe wereHamster: yes10:37
Ilari simonpe: 'git push <remote> <tag>'?10:37
simonpe Im checking the man page... 1 sec10:38
TBAA wereHamster: your command helped thanks!10:38
simonpe Ilari: why do I need to specify <remote>? When I do only 'git push', <remote> is implicit10:39
Jak_o_Shadows left10:41
wereHamster simonpe: by default only tags are pushed which are reachable from branches already on the remote10:42
TBAA left10:42
Ilari simonpe: If its implicit, the right value is origin. The first non-option for fetch/push always designates remote, rest specify what to transfer.10:43
*likely is origin10:43
hummingkid left10:43
simonpe i see, so if I base a tag 0.0.1 on a branch 0.0.1, that would also push the branch?10:45
wereHamster no. 'git push' would only push the tag if branch-0.0.1 was already on the remote10:45
mastro joined10:46
wereHamster but pushing the tag doesn't also push the branch10:46
simonpe man this is confusing :P10:46
wereHamster 'git push' by default pushes branches which are common to both local and remote repository (IOW no new branches are pushed by default)10:47
that behaviour can be changed with the config option push.default10:48
simonpe ah so I explicitly need to push the branch first, then the tag10:49
kwinz joined10:50
aptituz_aptituz10:51
simonpe should I prefix my tags and branches with tag- and branch- ?10:53
anno^da left10:53
Ilari simonpe: they implicitly have prefixes tags/ and heads/10:53
simonpe: And in many instances, those are guessed correctly.10:53
simonpe: So you shouldn't prefix them manually.10:54
g0 wereHamster Yay!! I got them all back, thank you! thanks indeed! :)10:54
wereHamster but you shouldn't use the same names for tags and branches - it's only confusing10:54
Ilari simonpe: The push can be done in either order (or both can be pushed in the same transaction).10:54
tango_ left10:54
wereHamster git.git prefixes all tags with 'v' (v1.6.6) for example10:54
g0 for all those who might get into this mess here's a line of code to resurrect something you added but reset and lost10:55
after finding <tree> run `git ls-tree -r <tree>|sed 's/.*blob \([a-f0-9]*\)\(.*\)/git cat-file -p \1 \> \2/'`10:55
Ilari simonpe: If you have both branch and tag 'foo', then one way to specify which one you mean for push is to use 'heads/foo' and 'tags/foo'.10:55
wereHamster git checkout <tree> -- <path> would probably have been better..10:56
simonpe Ilari: ah that's what I was looking for :P10:56
wereHamster g0: ^^^10:56
simonpe Ilari: thanks for the help, u've been very kind10:56
Ilari simonpe: Actually, even if you push them in the same transaction, one gets created/updated after other.10:57
simonpe: And tags aren't on any branch, so no problem whatever the order is.10:57
simonpe ok, so a tag is just a state, not a permutation of a branch?10:58
Ilari simonpe: Its kind of read-only branch by itself (possibly with extra message).10:58
tango_ joined10:59
g0 wereHamster Why didn't you tell that before? Shift man :D10:59
How do I drop files I have currently added using git add for the first time? git rm?11:01
Ilari g0: 'git rm --cached <file>'?11:02
simonpe left11:02
simonpe joined11:03
nadim joined11:03
eletuchy joined11:04
g0 is there a particular mishap that can happen by moving around git repository to different directories?11:04
_daniel_ joined11:04
_daniel_ hi guys11:04
how do I revert a file to an older version11:04
_rane git checkout <revision> -- path/to/file11:05
hummingkid joined11:06
jogla joined11:07
jogla_ joined11:08
jogla_ left11:08
joglafoooo11:08
__iron joined11:08
jogla joined11:09
foooo left11:09
jogla left11:10
TTilus how do i make my local branch go to origin also?11:10
i've got a clone, created a branch and stuff to it11:10
now i wanna "publish" that branch11:10
the repo i cloned from is public11:11
kraymer joined11:11
TTilus and i can push11:11
jogla joined11:11
Ilari TTilus: 'git push <remote> <branchname>'.11:12
simonpe TTilus: that's where I'm at now too, I can push but when I remove my clone and re-clone the branch isn't there11:12
Ilari simonpe: You shouldn't remove your clone.11:13
simonpe Ilari: I just wanted to check what others get when they checkout11:14
RaceCondition joined11:14
Geralt joined11:14
simonpe sort of verify my branch is there11:14
project2501a left11:14
Ilari simonpe: 'git ls-remote <URL>'.11:14
simonpe Ilari: ah sweet :P thaks11:14
Ilari simonpe: It directly queries the remote repo. All refs contained are shown.11:15
simonpe I'm getting the hang of it soon :P11:17
juan_arandaalvar joined11:17
simonpe I'm used to svn and thought it'd be similar but it isn't o_O11:17
Ilari simonpe: This isn't SVN. :-)11:18
imajes left11:18
ideogon joined11:18
GarethAdams|Work THIS. IS. SPARTAAAAAAAAA11:18
RaceCondition left11:20
juan_arandaalvar left11:23
krynnotaur joined11:26
JackWinter left11:27
dtrott joined11:28
ideogon left11:28
augustl joined11:30
phadviger1 joined11:30
augustl is there a way to ignore a file with configs in my .git dir? I.e. repository local ignore.11:30
so that my NOTES doesn't show up in either .gitignore or `git status` ;)11:31
wereHamster .git/info/exclude11:31
augustl wereHamster: thanks!11:31
_gpg_ left11:32
divVerent Is there a way to list all file names that ever existed in a git repo?11:32
upul left11:33
unapiedra joined11:33
unapiedra How do I remove all untracked files in the folder where I use git?11:35
git clean -f or -n or???11:36
dtrott divVerent: git diff --name-only FIRST_COMMIT LAST_COMMIT11:36
divVerent does that also list ones created and deleted again in between?11:37
phadviger left11:37
warthog19 joined11:37
warthog9 left11:37
dtrott divVerent: sorry don't think so11:37
TTilus i've got a local tracking branch and i rebased it11:37
how do i push the rebase11:37
git push (in rebased branch) refuses saying its non-fastforward11:38
divVerent well11:38
you know what you are doing?11:38
TTilus i want the tracked branch in origin to be rebased too11:39
like push the rebase operation11:39
psankar left11:39
TTilus so rephrasing, how do i rebase a branch in origin?11:39
divVerent git push --force... but for this you REALLY need to know what you're doing11:40
because this will harm anyone tracking the branch11:40
TTilus i dont wanna --force11:40
say i have people tracking a branch which needs to be rebased11:40
how do i rebase?11:40
dtrott TTilus: Basically you don't rebase origins unless you KNOW no-one is tracking it.11:40
divVerent you can't11:40
TTilus ok11:41
divVerent rebasing IS non-fastforward11:41
imajes joined11:41
divVerent these people can of course pull the new base using git pull --force11:41
so not all is lost11:41
dtrott Better to just merge changes and push them11:41
divVerent normally yes11:41
jas4711 left11:42
divVerent e.g. if you do push a rebase, others need to trust you that you included all commits on upstream11:42
TTilus create a new branch, merge/cherrypick the old there and push the new to origin?11:42
divVerent if someone pushed right before you, his changes would get lost11:42
TTilus divVerent: uhh, thats scary, dont wanna go that way11:42
divVerent for example, yes - just why do you want to rebase anyway?11:42
froschi joined11:42
xiong left11:43
divVerent I ask, because there may be a better way to achieve that goal11:43
TTilus there's a wip which has been worked with and i just found out it's been branched from "devel" instead of "stable"11:43
its basically a bugfix which need to be done against "stable"11:44
s1kx-S1kx11:44
TTilus and they stay in wip branch until they are tested and accepted11:44
thats why11:44
kesor joined11:44
divVerent then cherry-pick probably is the way to go11:44
make a new separate branch11:44
cherry-pick the bugfix into it11:44
TTilus ok11:44
imajes left11:44
divVerent and11:44
merge or push that onto stable11:45
is that branch ONLY the bugfix?11:45
kesor can someone help please, i want to get a list of all the commits that were pushed in a post-receive hook ... the regular "$oldrev..$newrev" is good, but I am concerned about merge commits - will "git log $oldrev..$newrev" show the commits that were merged or not?11:45
imajes joined11:45
divVerent if yes, you can indeed try rebasing the branch onto the head of stable, then push that into stable11:45
(THAT would be fastforward)11:46
but don't push that to the wip branch then11:46
dtrott Has the wip branch been pushed to the origin already ?11:46
JackWinter joined11:46
TTilus dtrott: yes11:46
dtrott I would rebase the wip branch locally then rename the branch and push that up then.11:47
ph^_ left11:51
ph^_ joined11:52
vadi joined11:52
vadi How to create a new branch from changed files without committing them to the current branch?11:52
ike__ joined11:52
ike__ hi .. I've commited a project unto github, but I inadvertedly committed the .svn folder as well11:53
pfig joined11:53
pfig left11:53
ike__ how do I remove it and have it ignored?11:53
pfig joined11:53
kesor left11:54
dtrott vadi: git checkout -b NEWBRANCH11:55
d0k joined11:55
vadi thanks dtrott11:56
RaceCondition joined11:57
simonpe left11:58
dtrott ike__: git rm -r .svn11:59
then commit that change and push it11:59
ike__ dtrott, no, i dont want to DELETE it from my disk. I just want git to ignore it11:59
and delete it from github11:59
the project is a fork from a svn11:59
http://github.com/ikolar/ghostpluplus-plus12:00
this is it, it's messy12:00
.gitignore only works for future files, not for existing commings, yes?12:00
Guest96666 joined12:02
dtrott just add --cached to the command then: git rm -r --cached .svn12:02
_daniel_ left12:03
smuf joined12:03
wereHamster ike__: why didn't you use git-svn to import the svn repo into git?12:03
TTilus (i can feel the facepalms, but) how do i delete a branch from origin? already deleted the tracking branch, but wanna delete the tracked too12:04
wereHamster git push origin :branch12:04
Grum git push origin :branch12:04
ike__ dtrott, does --caches leave the files on the disk?12:04
wereHamster yes12:04
ike__ ty12:04
i uset git svn12:05
Sonderblade left12:05
wereHamster interesting, so how did the .svn folder end up being tracked?12:05
Sonderblade_ joined12:05
wereHamster git-svn doesn't add/commit those folders... not even leave them in the filesystem12:05
dtrott ike__: no but --cached (with a d does )12:06
ike__ kk12:06
ProLoser1Trmnl joined12:06
ProLoser1Trmnl hello12:06
capndiesel joined12:06
ProLoser1Trmnl so i'm trying to setup a system where git publishes to my webserver, is there a way to make it use a specific username?12:06
froschi left12:07
ike__ ok, one more q ... I've accidentaly git -rm -ed some files, but did not commit yet12:08
how do i get them back12:09
capndiesel left12:09
capndiesel joined12:10
dtrott you typed caches didn't you12:10
project2501a joined12:11
dtrott git checkout LIST_OF_FILES YOU WANT BACK12:12
divVerent how do I git push ALL branches, but all TAGS too?12:13
--all is just branches12:13
--tags is just tags12:14
can I somehow push both?12:14
gebi sure, git push --all; git push --tags12:15
divVerent git push mirror 'refs/heads/*' 'refs/tags/*' trying this, i.e. passing wildcards12:15
well, I want it to be atomic :P12:15
dtrott because ?12:15
divVerent cleaner12:15
mithro left12:16
dtrott left12:16
vbgunz joined12:16
divVerent just, are wildcards supported in push12:16
or will it tell me at the end of the operation that it didn't do it?12:17
hyperboreean left12:17
H4ns joined12:17
Pupeno joined12:18
rgr joined12:21
pcgod left12:21
pcgod joined12:21
segher joined12:21
^^raven^^ joined12:22
kristian42 joined12:22
xiong joined12:23
H4ns left12:23
galderz left12:24
ProLoser1Trmnl fatal: 'iwdsa@iwdsa.org/website.git' does not appear to be a git repository12:24
that isn't true, what am i doing wrong?12:24
galderz joined12:25
divVerent you may be missing the ssh://?12:28
try ssh://iwdsa@iwdsa.org/website.git12:28
ProLoser1Trmnl i did12:28
curtana can someone tell me what determines what shows up in the diff of a merge commit?12:28
ProLoser1Trmnl does adding the user at the beginning cause the problem?12:28
divVerent ProLoser1Trmnl: no12:28
nullvariable left12:28
divVerent where exactly is the repo on iwdsa.org?12:28
possibly you mean ~/website.git and not /website.git?12:29
try ssh://iwdsa@iwdsa.org/~/website.git, then12:29
ProLoser1Trmnl git remote add web ssh://iwdsa@iwdsa.org/website.git12:29
ohh12:29
good point :)12:29
i love you :)12:30
simNIX left12:32
simNIX joined12:34
VVSiz hi folks, a quick question about git push and problems that it creates merge commits12:36
for our project, we tend to use "linear" history, no merges, etc12:37
but, sometimes, when two folks do pushes about the same time, we end up with merge commit which makes history not linear12:37
is there a way to prevent git doing those merge commits?12:38
teuf isn't it the pull before the dev pushes which create the merge commits?12:38
VVSiz so that if somebody tries to push, he/she would fail12:38
Pata joined12:39
bremner VVSiz: I don't think push makes new commits12:39
VVSiz teuf: hmm, I'm not sure. but probably, yeah! git pull is the culprit12:39
teuf VVSiz: git pull --rebase would avoid that12:40
I think it can be made the default12:40
lohrun joined12:40
Pata Hey All, I have a branch which had 4 commits, #2 was ver bad but got pushed anyway along with 3 + 4. I've used cherry-pick to make my local branch good and working, but now when I try to push it's saying that we've diverged, what's the correct course of action now?12:40
VVSiz teuf, bremner: thanks, this clears my confusion!12:41
froschi joined12:41
vbgunz left12:41
augustl left12:41
Pata Any clues/keywords for me to search by?12:43
christophsturm joined12:44
teuf if other people are working on the branch with 2 + 3 + 4, pushing the "fixed" commit would break things for them12:44
so maybe it's better to fix #2 on top of 3 + 4 ?12:45
psankar joined12:45
Pata Nobody else is working on anything, #2 I think came from a mis guided revert last thursday, it basically un-does everything from #112:45
(and perhaps a couple before #1)12:46
teuf git push origin +master should push the fixed branch I think12:46
or git push -f12:46
Pata Can I rebase and skip #2? (Perhaps? I've just understood rebase I believe)12:46
I pondered using -f12:46
but couldn't find too much info about how it worked12:47
will it say 'What I have is correct, so take it anyway"?12:48
ooh, and if so what's the difference between that and +master12:50
teuf I don't think there's a difference between -f and +master12:50
and yeah, it basically means that12:50
"take what I have, don't ask questions"12:50
and also means "I know I'm screwing with other people who are using this branch"12:51
halfline_ joined12:51
Pata hm ok, so it then 'deletes' the commits on the other end?12:51
halflin__ joined12:51
Pata back up till the last merge?12:52
kukks joined12:52
pfig left12:53
halfline_ left12:53
stamina_ joined12:54
Axius joined12:55
halfline left12:55
ike__ left12:57
loincloth joined12:57
cannonball joined12:58
hicham joined12:59
hicham you are in a middle of a merge conflict12:59
what should i do in that case ?12:59
auslander joined13:00
ProLoser1Trmnl left13:00
Rhonda Take a look at the conflict and git add the files after you resolved the conflict.13:01
I think git diff is handy here, and git mergetool13:01
loincloth left13:03
loincloth joined13:03
aziz joined13:06
awnstudio left13:10
mnyon left13:11
xiong left13:11
tstclair joined13:13
capndiesel left13:15
Pata So if I "git push -f origin master", all the commits on 'origin/master' up until which point get overwritten?13:16
NET||abuse joined13:16
wereHamster they will be overwritten with your local master13:16
Pata So just any files with a merge conflict will get overwritten by my local master?13:17
and the rest is as normal13:17
wereHamster push doesn't solve any conflict13:21
if you have a merge conflict, and want to overwrite any conflicting files with the versinos from HEAD, use git checkout --ours -- .13:21
divVerent is there a git command to call a specified hook?13:22
parasti joined13:22
divVerent basically, in a bare repo, I'd do13:22
[ -x hooks/post-update ] && hooks/post-update13:22
Pata I have a commit which I want to ignore, I've used cherry-pick to get my local in the state in which I want it but am having trouble pushing now13:22
divVerent what is the generic case?13:22
Pata teuf has suggested using "git push origin +master " which sounds like it's what I want, but I wanted to understand what it was doing13:24
wereHamster divVerent: the hooks are called automatically, why would you want to force it?13:26
divVerent because I want to share the code from post-update and in a script called after git svn fetch13:26
wereHamster if you have a hook which you want to run both from post-update and also at other times, make it a separate script and exec it from post-update. that way it's much clearer which scripts are when executed (IMO)13:27
divVerent (in both cases, pushing to a backup server)13:27
wereHamster btw, you can also 'git push . branch'13:27
which would run the post-update script13:27
ehabkost joined13:28
PN joined13:29
divVerent hm... how to create the first branch after a git init?13:29
first time I actually CREATE a repo... before I always cloned13:29
_rane master is automatically created13:29
divVerent git branch begs to differ13:29
_rane I might be wrong :P13:30
divVerent its output is empty13:30
Ilari divVerent: First commit would create it.13:30
_rane maybe it's not there until the first ocmmit13:30
divVerent ah, okay then13:31
sumangurung joined13:31
loincloth left13:31
Chaser_ joined13:32
catalis joined13:33
catalis left13:34
g0 left13:35
gergap joined13:35
lericson joined13:35
lericson How do I switch branch without touching my index?13:35
Ilari lericson: That doesn't make much sense.13:35
gergap hi13:36
lericson Ilari: The stuff I have on the filesystem, I want that to remain intact.13:36
simNIX left13:36
loincloth joined13:37
gergap can msysgit create symlinks on windows?13:37
Ilari gergap: AFAIK, symlink creation is priviledged operation on windows.13:37
sumangurung left13:38
Ilari lericson: Leaving that intact would show up as changes.13:38
lericson Ilari: Yes, my point exactly.13:38
gergap Ilari: ok, does this mean 'no'?13:38
Ilari gergap: I don't think it can create symlinks, but I'm not sure.13:39
lericson: Should the staging area also be left as is?13:40
lericson Ilari: Optional, don't mind - whichever is easier.13:40
gunmuc1 joined13:41
Ilari lericson: 'git symbolic-ref HEAD refs/heads/branchtoswitchto'.13:41
lericson: Note the refs/heads/ prefix.13:41
lericson I see. Thank you.13:42
gergap is there a way to let msysgit checkout symlinks as regular copies of files? So changing one file and doing commit/pull would synchronize all other linked copies?13:43
lericson I just realize13:43
I just realized that wasn't at all what I wanted to do.13:44
rrrrutdk joined13:44
lericson Let me phrase it like a normal question, how do I switch branch and keep my local changes to the previous branch, reapplying them to the new branch?13:44
DavidKlein joined13:45
ProperNoun left13:46
gergap lericson: isn't it possible to use the stash for your purpose? git stash; git checkout newbrach; stash pop13:46
tango_ lericson: are these COMMITTED changes or just worktree changes?13:47
also, is that a single commit or multiple commits, in the former case?13:47
psankar left13:47
lericson Changes to the working directory, which I want to keep.13:47
And yes, stashing would be possible, but I'd like an easier way to do it13:48
The usecase is that I often realize half-way through a change that I was on the wrong branch.13:48
Tass` how to push one branch only?13:48
tango_ lericson: then git stash ; git checkout ; git stash pop is the quickest way13:48
Axius left13:48
tango_ unless git checkout supports -m13:48
lericson: ok, git checkout -m otherbranch ought to work13:49
Tass`: git push dest branch ?13:49
Tass` tango_, yeah, correct :-)13:49
lericson tango_: Nice, thank you.13:51
tango_ yw13:52
nessundorma joined13:52
EricInBNE left13:54
EricInBNE joined13:55
gunmuc left13:57
lohrun left13:58
aresnick joined13:59
divVerent is it normal that TortoiseGit always shows "Failed" when cloning?13:59
(but actually successfully cloned)13:59
ereslibre joined14:00
Bass10 joined14:00
Axius joined14:00
Axius left14:01
univate left14:01
Ryback_ joined14:02
univate joined14:03
rrrrutdk left14:03
univate left14:04
esc joined14:05
nothingHappens joined14:05
univate joined14:05
_Vi left14:06
univate left14:07
kmartiin joined14:07
ereslibre left14:07
illsci joined14:07
illsci if you have a git repo you've cloned and you created a bunch of different branches and you git pull from the remote master14:07
how do you merge those changes into your branches from your local master14:08
univate joined14:08
illsci assuming you've git checkout somebranchyoumade14:08
univate left14:09
univate joined14:10
LiamH joined14:11
univate left14:12
univate joined14:13
jacobat illsci: git checkout yourbranch ; git merge master14:13
if i read you correctly14:14
univate left14:14
justinweiss joined14:14
fr0sty illsci: alternatively: git checkout yourbranch; git rebase master14:14
rubbs left14:16
illsci thanks14:16
i left my git book at home today... learning slowly14:16
reprore joined14:17
illsci does rebase automattically commit it and merge doesn't?14:17
jacobat rebase changes your history14:17
you might not want that14:17
illsci to late :P14:17
but yeah i was curious about that14:17
jacobat especially if you're sharing your branches with others14:17
illsci like if i pulled down some guys git branch and merged it14:18
and decided it wasn't what i wanted14:18
now that I've rebased im not sure how to undo that14:18
xiong joined14:18
illsci but if i had merged it, it might not have been committed14:18
so i could just check out my branch again14:18
malumalu joined14:18
jacobat with a merge you get a merge commit14:18
with a rebase you "replay" your commits on top of the new head of the master branch (or whatever you're rebasing onto)14:19
brodyberg joined14:19
johan-s left14:20
illsci so its the order in the history that's different14:20
one's merged in and the other happens following whatever was in head?14:20
i can go read up on the differenes between a merge commit and what happens when you rebase14:21
thanks for the help14:21
illsci left14:21
ideogon joined14:22
univate joined14:25
intripoon joined14:25
johan-s joined14:27
tstclair left14:27
univate left14:27
disappearedng joined14:28
nud joined14:28
disappearedng Hey I am seeing "Your branch and origin/master have diverged and have 10 and 4 different commits each respectivly, how do I tell git to get origin/master14:28
nud left14:29
jacobat what do you mean "to get origin/master"?14:30
altrux joined14:31
jacobat perhaps you're looking for "git pull origin master"?14:31
roop left14:32
Mezner joined14:34
corni joined14:36
nullvariable joined14:36
d3xter joined14:37
disappearedng yeah but I want to completely disregard my current branch14:37
spearce joined14:37
psankar joined14:37
Swimming_Bird joined14:37
virus_found joined14:38
sumangurung joined14:39
rrrrutdk joined14:39
sumangurung left14:40
sumangurung joined14:40
philsturgeon joined14:42
loincloth left14:43
philsturgeon Hey guys. Having a problem with pushing to my newly created git repository. error "bash: git-receive-pack: command not found". I ran the following command with no luck $ git config --global remote.origin.receivepack="/usr/local/git/bin/git-receive-pack"14:43
slabbeh joined14:44
virus_found left14:44
emmanueloga joined14:44
Ilari philsturgeon: On what computer? And it should definitely not be --global.14:45
ph^_ left14:45
virus_found joined14:45
philsturgeon <Ilari> I am creating a git server and trying to push to it from my client. server is OSX 10.5.8 running Git 1.6.5.1 and client in question is Ubuntu 9.10 git 1.6.3.314:46
virus_found Hello. I need to get a log between two revisions. What am I doing wrong? git log --all --date=local f31cf6f..264812314:46
Ilari philsturgeon: Anyway, that setting would have to be set in repository sourcing the push (as repo-local setting).14:47
ph^_ joined14:47
Ilari philsturgeon: And 'git config --global --unset remote.origin.receivepack'. It breaks stuff.14:47
virus_found: Are you sure f31cf6f is in past of 2648123?14:48
philsturgeon Ilari: That was set on server not the client. it was suggested in the Git FAQ14:48
Ilari philsturgeon: It must be set on client repo, not on server!14:48
nud joined14:49
nud left14:50
chris_n joined14:50
philsturgeon Ilari: Gotcha, done. How can I solve this on the server? There must be a way to save having to do it for all clients, there will be many14:50
chris_n is it possible to split a single commit up into multiple commits during an interactive rebase?14:50
philsturgeon Ilari: first day on the job, they hear I have used Git before and want me to set up a nice working server for them. I have only ever made repo's on GitHub! :p14:51
Ilari philsturgeon: Set $PATH correctly.14:51
chris_n ie. I have 80 commits and want to split commit #2 up into two separate commits14:51
Ilari philsturgeon: For _non-interactive_ logins.14:51
philsturgeon: Hint: gitolite.14:51
philsturgeon Ilari: non interactive logins? I currently have ssh://admin@ip/path.git14:52
virus_found Ilari: I don't know. >.<14:52
Ilari philsturgeon: 'ssh user@host echo \$PATH' should show the bindir of git install.14:53
virus_found Ilari: I know, that 2648123 is the result of git branch -v | awk '{print $3}'14:53
And was about just to test it.14:53
Ilari virus_found: If it isn't, you either get complete log or no log at all.14:53
JohnBat26 joined14:53
Ilari virus_found: 'git merge-base f31cf6f 2648123' says what?14:54
Swimming_Bird left14:54
virus_found f31cf6f9fe805539d50ed55b62b05ce12daf7cb014:54
ike__ joined14:54
Yuuhi joined14:54
virus_found That's it.14:54
Ilari virus_found: Drop that --all from log command. It makes no sense.14:54
mnyon joined14:55
virus_found Yes, that's better :)14:55
Thank you :)14:55
mnyon left14:55
virus_found I was always using --all for getting the recent log from server after git fetch.14:56
For without --all it threw only local log.14:56
solofight left14:56
Ilari virus_found: --all means all refs.14:56
virus_found: Which doesn't make much sense if you already specify ranges.14:57
struberg joined14:57
solofight joined14:57
virus_found In this case ,yes.14:57
Thank you again :)14:57
virus_found left14:57
mm_work joined14:57
jepler joined15:00
rrrrutdk left15:00
guardian joined15:01
philsturgeon Ilari: When logged into the server if I enter $ echo $PATH; I get "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin15:01
"15:01
Ilari philsturgeon: When logged does not matter.15:02
philsturgeon: 'ssh user@host echo \$PATH'15:02
jepler I have a commit ff26d90c that is "merge branch 'xxx' into master". I want to see what was in the topic 'xxx'. Is there a more succinct way to refer to those commits? I found that the following will visualize what I think I'm looking for: $ gitk ff26d90c^2..ff26d90c^15:02
guardian hello, I'm looking for a best-practice advice. I have a code base that is somehow "the core framework" and now I'm starting coding different apps based on this core stuff. Would you do 1 branch per app, or a different repository per app?15:02
philsturgeon Ilari: But when logged in I only get /usr/bin:/bin:/usr/sbin:/sbin15:02
agile left15:03
Ilari philsturgeon: The $PATH can be different for both types of logins. Non-interactive doesn't read .bash_profile.15:03
jepler: I think the parents should be other way around: X^..X^215:04
jepler Ilari: ah, you'd be right except that I lied. The commit is "Merge branch 'master' into xxx" which the developer turned around and merged into master as a fast-forward15:05
Ilari jepler: Ah, that explains it.15:05
gmcinnes joined15:06
offby1 left15:06
HG` left15:06
NetHawk left15:06
gmcinnes hi all: how can I see the state of a given file in all branches?15:06
__iron left15:06
jfkw joined15:07
jlilly joined15:08
jepler gmcinnes: you can combine for-each-ref and ls-tree15:09
gmcinnes: for instance, this will show the ls-tree information about tree.h in ever branch in git:15:09
git for-each-ref --shell --format="ref=%(refname)" refs/heads | while read entry; do eval "$entry"; printf "%20s " $ref; git ls-tree $ref tree.h; done15:09
gmcinnes hoorah! ok.15:09
jepler once you're looping over each branch with the git for-each-ref | while read (which I simply copied from the 'git --help for-each-ref') you can do a lot of things15:10
philsturgeon Lari: This is probably outside of your expertise now, but do you know where and how I edit $PATH? I can only find instructions for how to modify per-shell.15:10
jessep joined15:10
gmcinnes jepler: makes sense. thought there'd be something closer to a built in, but that's cool.15:11
Ilari philsturgeon: You want to edit it globally?15:11
jepler gmcinnes: there may be for all I know15:11
Ilari philsturgeon: Or it might be easier just to install to /usr, then one doesn't need to edit $PATH.15:13
offby1 joined15:13
r11t joined15:14
tlb joined15:15
philsturgeon i installed from DMG because I am lazy. I might have a go manually15:15
loincloth joined15:16
Ilari philsturgeon: Uh... Git hardcodes path to some binaries in its executable...15:16
mnyon joined15:17
philsturgeon Ilari: surely that would mean all downloads here are wrong? http://code.google.com/p/git-osx-installer/15:18
it installs to /usr/local/git/bin15:19
mattayers joined15:19
Ilari philsturgeon: Ah, then it must be hardcoded to use it. Try symlinking the binaries in local/git/bin from /usr/bin?15:19
ph^_ left15:20
mattayers Hey there, when I rebase. If I have committed a file say 6 times, and one person edits it between my rebase. Do I really have to go through every change I made, can I not tell it just to look at my latest file?15:21
Swimming_Bird joined15:21
oliver3 left15:23
oliver3 joined15:24
gajop left15:25
JoeConyers joined15:27
^^raven^^ left15:29
niki left15:31
JohnBat26 left15:32
keystr0k joined15:34
schierbeck joined15:35
agile joined15:35
GarethAdams|Work mattayers: well, rebasing applies each commit sequentially the same as when it it was first committed. Or to put it another way, rebasing still leaves a way to go back to the point between every successive commit15:35
coolcat joined15:36
wolog left15:36
GarethAdams|Work mattayers: so yes, rebasing does require you to look at each commit. But it sounds like merging might be a better option for you?15:36
coolcat left15:37
cedricv left15:37
madewokherd joined15:37
coolcat joined15:37
coolcat left15:38
coolcat joined15:38
mattayers GarethAdams|Work: Yea it's just for when I have a project that I need to keep up to date, not actually merge it in to the master. If that's the case it's fine it's just a bit confusing. Like I could understand if it were commits from other people but I thought git might be clever enough to workout the next ones in line are all from me alone.15:38
cedricv joined15:38
GarethAdams|Work mattayers: maybe, but still git needs to know what the state of the file would be if you checked out a commit from halfway through your rebase15:39
Axius joined15:39
GarethAdams|Work I see what you're saying but I think merging is complicated enough a topic that it isn't that simple15:40
maxter joined15:41
TeckniX joined15:41
tekky left15:41
tek joined15:41
wolog joined15:47
emias left15:48
brendon_work left15:48
sumangurung_ joined15:50
trodrigues left15:50
ice799 left15:50
com4 left15:50
com4 joined15:50
_Vi joined15:50
ben_h left15:51
irc2samus joined15:51
tedoc2000 joined15:51
ice799 joined15:52
rudi_s joined15:53
ben_h joined15:53
EricInBNE left15:54
trodrigues joined15:54
brodyberg Let's say I am on branch a) of a repo with several branches. I then run 'git branch foo'. How do I tell later that I've branched foo from a) rather than any of the other branches in the repo?15:54
aspotashev_ joined15:57
Axius left15:57
aspotashev left15:58
aspotashev_aspotashev15:58
becomingGuru left15:59
psoo left15:59
psoo joined15:59
tstclair joined16:00
psoo left16:00
d3xter left16:01
jepler brodyberg: if the reflog of the branch extends that far back, it will say what branch it was created from. Here's an example from my own project:16:01
$ git log -g --oneline PR18995 | tail -116:02
a9939cd PR18995@{5}: branch: Created from master16:02
sde_antrix left16:03
brodyberg jepler: hmm, I just get HEAD16:05
philsturgeon left16:06
brodyberg jepler: thank you though, it's a hint :-)16:06
jessep_ joined16:07
johan-s left16:08
sumangurung left16:08
sumangurung_sumangurung16:08
trogan joined16:09
dfr|work joined16:09
slabbeh left16:10
troganslabbeh16:12
guardian is it possible to maintain a link between 2 tags in 2 different repositories: for instance AppBar v1.0 in AppBar.git is tied to libFoo v1.1 in libFoo.git ?16:13
[Po]lentino joined16:13
guardian to facilitate future checkout and rebuilding of the app16:13
mattyfo joined16:14
Pata left16:14
offby1 guardian: maybe submodules16:14
whaley left16:15
guardian hmm investigating, didn't know about this feature16:15
juan_arandaalvar joined16:15
whaley joined16:15
mattyfo Hey I have a newbie git question. Let's say I've been building a program on my laptop and doing a bunch of commits with git. Is there a way I can package it all up and move it to my server to make it a private repository?16:16
mnyon1 joined16:16
tvw left16:16
offby1 of course16:16
mattyfo I ask because I don't think I can do git clone git://mylaptop16:16
offby1 that _might_ work16:17
mattyfo offby1: Can I package it as a tarball?16:17
offby1 sure16:17
ProperNoun joined16:17
offby1 once you do that, you'll probably want to "connect" the two repositories somehow -- make one a "remote" of the other, e.g.16:17
mattyfo offby1: Ok, yeah I tried uploading the folder to the server (ftp) and when I run 'git status' it doesn't see anything16:17
offby1 although it might be best to make the one on your server "bare"16:17
jessep left16:18
jessep_jessep16:18
mattyfo bare?16:18
offby1 mattyfo: that description was far too vague for me to help you. Can you show me a transcript of what you actually typed, and how the computer actually responded?16:18
mattyfo offby1: Sorry, so I uploaded the files via ftp and when I type 'git status' I got 'fatal: Not a git repository'16:19
is it possible ftp missed the .git folder?16:20
offby1 uh16:20
that's not a transcript16:20
gavinbeatty joined16:20
offby1 you make a transcript by running a program like "script", or perhaps by copying the contents of your screen session16:20
[Po]lentino_ joined16:20
offby1 and I can't answer the question about ftp, because I never use ftp16:20
vincent joined16:20
vincentGuest8028016:21
mattyfo Understood, should I move the folder via scp?16:21
offby1 I dunno!16:21
I don't know what's wrong.16:21
Sure, it's possible that ftp omitted the .git folder.16:21
mattyfo fair enough16:21
xanonus joined16:21
offby1 But if that were the case, you could confirm or deny it, yes? By examining the remote system?16:21
[Po]lentino left16:22
offby1 I _will_ tell you this: scp will not arbitrarily lose subdirectories :)16:22
[Po]lentino_ left16:22
mattyfo offby1: I think you've pointed out where I went wrong, I'm going to look into that right now16:22
offby1 Ho Kay16:22
mattyfo Sorry to be so clueless!16:22
offby1 :)16:23
hadees left16:25
mattyfo Well for the record it looks like ftp missed the .git directory16:25
offby1 pff16:25
good catch, I guess16:25
ftp is ancient and weird.16:26
I'm surprised anyone still uses it16:26
PN left16:26
mattyfo it's handy but you're right ancient16:27
sroehle joined16:27
mattyfo I'll try and stick to scp16:27
ruediger joined16:27
cbreak ssh costs extra with my provider16:27
mattyfo cbreak: Crazy, my host required a photo id for it but that was no biggie. I also have a Linode box which is just full bliss.16:28
sroehle left16:28
sroehle joined16:28
sroehle left16:28
jdahm joined16:29
jdahm is there a way to delete all untracked files in a git repository without going through all the directories that contains them?16:30
offby1 "costs extra"? "photo ID"?!16:30
geez16:30
jdahm: "git clean -dxf" maybe?16:30
not quite sure what you mean by "going through all the directories"16:30
v0n joined16:31
mattyfo offby1: Well, my host is pretty cheap so I don't expect much from them. On the otherhand Linode is a breeze and I have a full Linux box for whatever I want.16:31
oliver3 left16:32
sh1mmer left16:32
jdahm offby1: by the looks of man git-clean that'll do the trick. Thanks!16:32
Gitbot offby1: the git-clean manpage can be found at http://git.or.cz/man/git-clean16:32
oliver3 joined16:32
\ask left16:32
offby1 Gitbot: why, thank you, kind sir16:33
mattyfo yeah, and I'm now off reading the manpage for that ^_^ good gitbot!16:33
Guest96666 left16:33
offby1 limode++16:33
s/m/n/16:33
SeveredCross Yeah, I've seen hosts that require photo ID for SSH. Never understood it.16:34
gmcinnes left16:34
xiong left16:35
ph^_ joined16:36
mattyfo SeveredCross: Maybe as security against abuse? But I guess someone that's going to abuse would know how to get around such things.16:36
SeveredCross It's also not like they're giving me root or something.16:37
Geralt left16:37
jackdempsey joined16:38
alley_cat joined16:38
mattyfo Yeah, that's why I'm in the process of moving from Bluehost(ID required) to Linode(full Linux box to myself), Lindoe is challenging for me but I'm enjoying it16:39
kumbayo joined16:40
mnyon left16:41
hobodave joined16:42
hobodave left16:42
tek left16:42
r11t left16:42
tekky joined16:42
hobodave joined16:42
apeiros_ joined16:43
Araneidae left16:43
illsci joined16:43
illsci if you want to clone a remote git repo and pull down all the branches how do you do that16:44
offby1 "git clone url"16:45
oddly enough16:45
marty_h joined16:45
illsci oh wait... i was just doing git branch instead of git branch -r16:45
mnyon1mnyon16:45
maattd joined16:45
Suhail joined16:45
Suhail So I have git pull'd but I have directories that should be deleted hanging around16:46
how do I clean that up?16:46
marty_h I've run into a strange issue where I can't apply a git stash due to a dirty state16:46
but git status doesn't show the changes16:46
even though git diff does16:46
git reset --hard HEAD didn't help either16:47
curtana Suhail, if they show up as untracked in 'git status' you can remove them yourself. you can also use git-clean if you don't want to do it by hand. but use caution16:47
marty_h any suggestions?16:47
Araneidae joined16:47
illsci if you git reset --soft some_commit_in_the_past16:47
and then look at it and want it to just to back to the way it was16:48
how do you do that?16:48
HokieTux left16:48
illsci like if you just wanted to see the way the repo looked back in the day, you see it, and now you want to go back to HEAD16:48
Suhail curtana: it's weird, even when i git status it doesn't show them as deleted--this probably because another branch uses those files16:48
Sigma` joined16:48
Suhail curtana: it just really throws things off16:48
for me16:48
HokieTux joined16:48
sagsousuke joined16:49
sbiuhg joined16:50
jackdempsey left16:51
WebDragon joined16:52
project2501a left16:52
hicham left16:52
mattayers left16:53
hgpekm joined16:54
marty_h left16:55
EricInBNE joined16:55
jessep left16:56
Sigma left16:56
jessep joined16:57
candybar left16:57
jessep left16:57
jessep joined16:58
amerine joined16:58
ecwNick joined16:59
gebi left16:59
Adlai left16:59
catalis joined16:59
sbiuhg left16:59
guardian left16:59
ferdy left17:00
kalkin- joined17:00
kalkin- hi17:00
how i use git svn with svn externals?17:00
git fetch doesn't checks them out17:00
Pewpewarrows joined17:01
kalkin- (git svn fetch ofcourse)17:01
wolog left17:01
mefesto joined17:02
Guest80280 left17:02
smotchkkiss joined17:02
numberGrey left17:03
numberGrey joined17:03
emias joined17:04
\ask joined17:04
mastro I use git svn. Once in a while i can't access our internal subversion server but I can ask some collaborator to send me files to update my local git repository. If I leave a git repository cloning the svn on a server that can always access the subversion how can i transfer the upgrades from that git repository to my git repository? Maybe with git bundle but i'm a little confused on how to use it17:05
say there are this 3 remote (svn) branch i'm tracking: trunk version1 version217:06
numberGrey left17:07
numberGrey joined17:07
mastro and i know which is the last revision (git commit hash) i had from that remote repos. which command should I give on the other git repository to create a bundle with the missing parts?17:07
godsflaw joined17:08
ferdy joined17:09
godsflaw left17:09
mastro did you understood my problem?17:09
godsflaw joined17:10
gk__ joined17:10
Tureba joined17:10
DrAk0 joined17:10
tbuehlmann joined17:12
catalis left17:13
gavinbeatty how do i get the following pastebin code to include the current refs/heads/new tree in the commit?17:14
http://pastebin.com/m44bda95117:14
my commit object obv only has the new tree's contents, none of the previous tree's (if any)17:15
can't figure how to use ls-tree et al to do it though17:15
thanks17:15
schmukkk joined17:15
lericson left17:16
Suhail left17:16
rektide joined17:17
gk left17:19
rnjqse joined17:19
hgpekm left17:19
Pewpew joined17:19
WebDragonWebDragon|away17:20
jessep left17:21
ike__ left17:21
gebi joined17:22
kbingham_ joined17:22
tstclair_ joined17:22
gbacon joined17:23
x-demon joined17:23
sh1mmer joined17:24
maxter_ joined17:25
tbftbf|eating17:26
maxter left17:26
marc_kdab left17:28
catalis joined17:28
petrux left17:28
jessep joined17:29
nimrodg joined17:30
dreiss joined17:30
WebDragon|awayWebDragon17:30
sako joined17:31
rjeq2 joined17:31
rjeq2drigz17:31
bbeecher left17:31
kbingham left17:32
unapiedra left17:33
remi joined17:33
dauerbaustelle joined17:33
bbbtwb joined17:33
pheaver joined17:34
shruggar left17:34
jessep left17:34
dauerbaustelle how can I make git diff show the diff the last commit brought without typing the commit's id? (I'm from hg, there you did hg diff --rev tip)17:34
Pewpewarrows left17:34
nimrodg I'm maintaining a bare repository on a remote server for which I have SSH access. On that repository, there are two branches. On my local machine, I checked out the non-master branch and made commits to it. When I type "git push remotename nonmaster", I get "src refspec nonmaster does not match any.". When I run "git branch", I don't see "nonmaster". So I've been checking in stuff to "(no branch)". I don't understand what's going on.17:34
_rane dauerbaustelle: you can use ´git show´ for that17:35
EricInBNE left17:35
_rane or do you insist on using git diff?17:35
kipras joined17:35
mastro dauerbaustelle, git show17:35
dauerbaustelle, or git diff HEAD~17:36
dauerbaustelle I don't care about the tool, so thanks ;-)17:36
mastro dauerbaustelle, or git log -p -117:36
dauerbaustelle, HEAD is the "current" checked out branch, HEAD~ is the parent of the current17:36
_rane HEAD^17:37
kraymer left17:37
_rane more often, I think?17:37
mastro dauerbaustelle, if you write git diff <hash> it makes the diff between HEAD and <hash>17:37
JSeligstein joined17:37
dauerbaustelle thanks, thanks, thanks, so many ways oO17:37
JSeligstein Hey guys, how can I copy a file in git?17:38
tstclair left17:38
S1kx left17:38
coderdad joined17:38
lack JSeligstein: Depends what you mean by "copy"... from where to where, and for what purpose?17:39
dauerbaustelle two questions left: a) can I have the diff between ANY two revisions? and b) git log -n shows from -n to HEAD, can I show from -n to any other revision?17:39
tbf|eatingtbf17:39
nimrodg I guess a smaller question would be what does "(no branch)" mean in git branch?17:39
ogeluj joined17:39
JSeligstein lack: lets say i want to split a file into two? or just copy a file for a new version?17:39
lack nimrodg: You have a detached head.17:39
JSeligstein: Is there some reason just copying the file and doing 'git add' would not meet your needs?17:40
nimrodg lack: How do you deal with this problem?17:40
lack nimrodg: Hang on, finding you a resource...17:40
nimrodg lack: Is it a problem?17:40
JSeligstein lack: i could do that, but does git track that properly?17:40
mastro dauerbaustelle, a) git diff <first-revision> <second-revision>. b) git log -n <head-revision>17:40
GarethAdams|Work does anyone else do `git pull; git checkout otherbranch; git pull` instead of pull;checkout;merge?17:41
lack nimrodg: http://sitaramc.github.com/concepts/detached-head.html17:41
nimrodg lack: thanks.17:41
lack JSeligstein: Yes, it does! It uses the same logic as "rename detection" to detect copies.17:41
mastro _rane, HEAD^ and HEAD~ are equivalent, but HEAD^2 and HEAD~2 are not. and it is better to get used to the ~ notation because that's what you expect when you ask for parents. the HEAD^ is used for DIRECT parents so HEAD^2 is the second direct parent (from merging), instead HEAD~2 is the grand parent17:42
wolog joined17:42
lack JSeligstein: Though I suppose "properly" is open for interpretation.17:42
sh1mmer left17:42
catalis left17:42
JSeligstein lack: i would want the code in the new file to be properly traced to the old file17:42
lack GarethAdams|Work: Since 'pull' is a combination of 'fetch and then merge', you're really just adding an extra 'fetch' in there with the 1st of your 2 invocations...17:43
sh1mmer joined17:43
mastro anyone here available to share how to use git bundle in a simple example? say i have branch X and i want all commits after commit <myhash> how do i create that bundle?17:43
lack pull;checkout;pull = fetch;merge;checkout;fetch;merge whereas pull;checkout;merge = fetch;merge;checkout;merge17:43
sourcemaker_ joined17:43
mastro the git bundle documentation is not very easy to understand17:43
coderdad left17:44
dauerbaustelle mastro, git diff -3 -2 doesn't work, aren't (negative) indices possible as revision specification?17:44
GarethAdams|Work lack: yes, I agree, but some of my colleagues always use 'pull' because it always uses the tracking branch and avoids them having to type the full remote/branch as required by merge17:44
coderdad joined17:44
lack GarethAdams|Work: Explain to them how to enable bash completion for git, and they can then tab-complete their branches ;)17:44
wereHamster dauerbaustelle: what would negative indices refer to?17:44
mastro dauerbaustelle, what do you want to do? compare the 3rd grand parent with the second? (grand grand parent with the grand parent) so you should do git diff HEAD~3 HEAD~217:45
dauerbaustelle number(HEAD~) - N17:45
mastro dauerbaustelle, the -n is for git log it say: show me the last N commit17:45
ask joined17:45
rnjqse left17:45
GarethAdams|Work lack: My personal favourite solution would be for `git merge` to default to the tracked branch. I mean, that information is right there in my repository so why shouldn't it be used? Am I missing something?17:45
ask left17:46
mastro dauerbaustelle, git log -5 mybranch: will show the last 5 commit for "mybranch"17:46
lack GarethAdams|Work: But what is your concern? There is no harm in doing another fetch because of a pull there, it's pretty quick and painless for git to check "Oh, nothing new to download? Okay, I'll continue on then"17:46
mastro dauerbaustelle, instead git diff show difference between two commit, so you had to specify the commit. If there is only one parameter git diff take HEAD as the second parameter17:46
dauerbaustelle, so if you want to compare your current head with another commit you just do git diff <the-other-commit>17:47
GarethAdams|Work lack: well it just seems redundant. No real concern. Maybe under suboptimal network conditions it might be more of an issue?17:47
mastro dauerbaustelle, if you want to compare any two commit you do git diff <first-commit-hash/pointer> <second-commit-hash/pointer>17:47
jessep joined17:47
mastro dauerbaustelle, see this: http://progit.org/book/ch6-1.html17:48
schmukkk left17:48
ringlej joined17:48
nimrodg lack:Thank you very much. Everything worked perfectly.17:48
ereslibre joined17:48
dauerbaustelle mastro, yes but I want to compare two non-HEAD-commits, for example "compare 3rd-last commit to 2nd-last commit" (< if you say so in english)17:48
mastro dauerbaustelle, git diff HEAD~3 HEAD~217:49
lack GarethAdams|Work: It's only redundant if no one pushed to that other branch between your first 'pull' and the second 'pull'... If it's a very busy branch it may be *better* to do the 2nd pull! But you're right, there is some redundancy and overhead of 'pull' as opposed to merge if nothing has changed. But it's as small as possible within the constraints of the network.17:49
catalis joined17:49
mastro dauerbaustelle, since the two commit are consecutive you could just do git show HEAD~217:49
juro joined17:49
lack GarethAdams|Work: I can see some value to having 'git merge' default to the tracked remote branch... Maybe suggest it on the official git mailing list (with a patch?) and see if it works out...17:50
juro hi, I am using subversion and am curious about git - is it possible to use a remote location as a repository?17:50
mastro dauerbaustelle, HEAD~3 means the parent of the parent of the parent of HEAD (the 3rd parent of HEAD)17:50
lack juro: Of course! Probably. What do you mean exactly?17:50
dauerbaustelle mastro, thanks17:51
dauerbaustelle will try that with git diff17:51
GarethAdams|Work lack: I was just looking for the mailing list :) but I'm just a web programmer, not a real programmer ;) so a patch isn't especially easy to come up with17:51
lack mastro: Did you read 'man git-bundle'? It seems pretty straight-forward to me...17:51
Gitbot mastro: the git-bundle manpage can be found at http://git.or.cz/man/git-bundle17:51
lack Gitbot: Mailing list?17:51
maxter_ left17:51
sh1mmer left17:51
dauerbaustelle works, thank you very much :-)17:52
good day17:52
dauerbaustelle left17:52
juro lack, I have a hoster, where I cannot install anything but I was thinking of using that as an off-site repository17:52
lack juro: Well, you *can* use the http protocol to push to a remote site, but it's not as good as using git-over-ssh17:53
resmo joined17:54
mastro lack, i read it but i don't understand how to say: I already have commit 12345, make me a bundle with everything after this and I want the bundle of branch trunk17:54
resmo hi17:54
juro lack but I can use webspace where I have ftp access as a reopistory without installing anything there, right?17:54
mastro lack, and I don't understand if I could use to update the local copy of the remote repo or just for local branches17:54
lack, also I hope it is compatible with git-svn17:55
lack mastro: You saw the invocation 'git bundle create <file> <git-rev-list args>', right? Did it occur to you to try 'git bundle create mybundle 12345..HEAD'?17:55
gergap left17:55
bbbtwb left17:55
juro lack, so I install git on my Ubuntu machine here and use my remote access as a repository space17:56
chalkbag joined17:56
struberg left17:56
resmo I have uncommited changes in a file and want to commit not all changes, just a few? I know there is an git command where you can say, "yes, this I want to change" and so on, please give me a hint17:56
Yuuhi left17:56
lack mastro: Well, git bundle is a replacement for 'git push' if there's no network. You do 'git bundle create' and it packs up all the commits you specify into a file. You then take that file to your other git repo and run 'git bundle unbundle' and it acts as if you had pushed those commits into the history...17:56
Yuuhi joined17:56
wereHamster resmo: git add -p17:56
resmo: or use one of the GUIs which can do that on a per-line basis17:57
mastro lack, well.. since I use git svn i never (directly) do push on the repository, I do git svn rebase when i want to udpate and git svn dcommit when i want to commit17:57
lack, i'll make some try anyway17:57
lack, thanks17:57
had to go17:57
BigMack83 joined17:57
amerine left17:58
lack juro: Yes, with some performance hit... Though I'm not sure about FTP. Check the 'GIT URLS' section of 'man git-clone' and see what you think...17:58
Gitbot juro: the git-clone manpage can be found at http://git.or.cz/man/git-clone17:58
curtana git add -p is the bes tthing in the world17:58
at least the world of revision control17:58
jstephenson joined17:58
mastro left17:58
juro lack, Gitbot, thanx17:58
lack juro: There are probably some good docs on Google out there on what's required to host your repo over HTTP. But it's much better to use something else if possible.17:58
juro lack, ssh for instance?17:59
lack juro: There are a number of free git hosting solutions available... repo.or.cz github.com etc.17:59
sourcemaker left17:59
curtana juro, remote on http works fine but is slow17:59
lack juro: Yes, I think for bi-directional git operations you will find ssh is the best and most common solution.17:59
resmo wereHamster, got it with your help, it was actaully "git add -i" :) thx18:00
solofight left18:00
lack curtana: Did you see his earlier question about setting up a remote hosting solution for hosting a git repo? How does push work over http?18:00
curtana lack, didn't see that18:00
Chillance joined18:00
nickrw left18:00
curtana maybe with webdav? doubt it tho18:00
psankar left18:01
chris_n occasionally after doing repeated 'git rebase -i HEAD~X' git seems to loose track of where it is and loads up the to-do list with 500+ commits18:01
\ask left18:01
ilmari joined18:02
ilmari is the tree object on-disk format documented anywhere?18:03
tbf left18:05
chalkbag left18:06
em-dash joined18:06
Haaarg joined18:06
godsflaw left18:07
Chillance left18:08
tekky left18:08
LiamH left18:08
wereHamster ilmari: try this: http://progit.org/book/de/ch8-8.html18:09
berndj joined18:09
wereHamster (or the english variant...)18:09
Zephyrus joined18:10
wereHamster ilmari: this is better: http://progit.org/book/ch9-2.html18:10
berndj i suppose there's no way to undo what git reset --hard <some_commit> did - specifically uncommitted / unstaged changes? not a catastrophe, more of an annoyance18:10
Chillance joined18:10
marc_kdab joined18:11
ilmari wereHamster: doesn't say anything about the actual on-disk format (I'm trying to fix the charset handling in Git::PurePerl)18:13
lack berndj: Well, if the underlying filesystem has any sort of "deleted file recovery", then *maybe*. But not really, no.18:14
wereHamster ilmari: at the very bottom, in the 'Object Storage' section18:14
berndj hehe, no, ext3 doesn't have that18:14
tbf joined18:14
drigz left18:14
Haarg left18:15
berndj it's okay, got rid of a whole lot of now-superfluous debug output18:15
LiamH joined18:15
kennethlove joined18:15
lack berndj: Ah, so it helped you ;)18:16
ilmari wereHamster: "the commit and tree content are very specifically formatted", but it doesn't say _how_18:17
makeworkeasy joined18:17
guardian joined18:17
coderdadcoderdad|away18:17
\ask joined18:17
ilmari i.e. particularly, is the filename of a tree entry utf8-encoded?18:17
wereHamster ilmari: no, it's whatever readdir() returns18:18
\ask left18:18
ilmari ah18:18
wereHamster IIRC git does'nt encode anything except maybe the commit message18:19
berndj ah, i seem to have most of my nuked changes in an older stash18:19
WALoeIII joined18:19
freeride1 joined18:19
sockmonk joined18:19
freeride1 left18:19
thiago and it doesn't encode the commit message either18:20
ilmari wereHamster: ah, git config --get i18n.commitEncoding18:20
nimrodg left18:20
thiago it may save the locale name if it's not UTF-818:20
freeride joined18:20
thiago so that it may recode it when displaying somewhere else18:20
illsci left18:21
tchan left18:21
sh1mmer joined18:22
d-snp hey, my client has this error: fatal: ‘heroku’: unable to chdir or not a git archive18:22
I can't seem to reproduce, when would such an error occur?18:22
juro lack, ok, then I'll start to go through the git manual ....18:22
d-snp he says he's executing: git push -f heroku master18:22
lack juro: A good plan. There is also this excellent book at http://progit.org18:23
d-snp why would it want heroku to be a git archive?18:23
thiago d-snp: it's either a remote name or it's path on disk18:23
juro lack, I live in South Africa ... it will take about 3 weeks to get anything here18:23
lack juro: Ah, but this book you can read online :)18:23
For free.18:23
binjured left18:24
juro oh, ok. that makes sense - thank you18:24
lack juro: Enjoy, and good luck!18:24
binjured joined18:24
juro lack, thanx - I'll probably come by with a few questions later :D18:24
freeride left18:25
curtana left18:26
madewokherd left18:27
d-snp thanks thiago :)18:29
vadi left18:29
d-snp I can't reproduce the error, but I just asked him to send me his .git/config18:29
he probably missed the remote add step18:29
bgerber left18:30
\ask joined18:33
Pewpew left18:34
froschi left18:35
NET||abuse left18:37
psoo joined18:39
sumangurung left18:40
sumangurung joined18:40
sako left18:42
apeiros_ left18:43
xwkovr joined18:46
Chaser_ left18:46
godsflaw joined18:48
Kavu joined18:49
tchan joined18:49
LiamH left18:50
catalis left18:51
project2501a joined18:52
\ask left18:57
volk joined18:57
ogeluj left18:58
RandalSchwartz joined18:58
RandalSchwartz ok - I think I'm not crazy, but I'm sure I remember some simple hook in the default distro that would warn on conflict markers18:59
volk left18:59
RandalSchwartz but the pre-commit hook .sample doesn't seem to show that18:59
\ask joined18:59
WebDragon|away joined19:01
RandalSchwartz ahh - git diff --check does it...so the pre-commit hook just needs to be moved into place19:02
LiamH joined19:02
relagil joined19:04
ecwNick left19:05
malumalu left19:05
relagil If I create a git repo on my comp and give access to others. They will advance the head branch while I'm on a working copy. Not messy?19:06
Kavu left19:06
RandalSchwartz ? bare19:06
darn it, where's the bot19:06
don't push to a non-bare repo19:06
unless you know why we say that, then you can. :)19:06
Kavu joined19:07
relagil bare = rempty?19:07
bare = empty?19:07
RandalSchwartz bare = no working dir19:07
just the .git part19:07
Kavu_ joined19:07
RandalSchwartz see the faq about "bare"19:07
Kavu left19:07
Kavu_ left19:07
warthog19warthog919:07
Kavu joined19:07
RandalSchwartz which the bot could answer, but I can't remember the bot invocation19:07
?bare19:08
nope19:08
RobertLaptop_ joined19:08
nickrw joined19:08
RobertLaptop left19:09
thiago_home joined19:09
aCiD2 Gitbot: help19:09
Gitbot aCiD2: Try '?' instead of help.19:09
aCiD2: CyBot configuration directory.19:09
sagsousuke left19:09
relagil iow, a git repo accessible by many should be of a special type, bare.19:09
fr0sty faq bare ?19:10
relagil The faq says how to make a bare but not why19:10
coderdad|awaycoderdad19:10
Kavu left19:11
RandalSchwartz I think it motivates it somewhere19:12
carrus85 joined19:12
illsci joined19:14
illsci how would you find out what happen to a certain file that is no longer in the repo and the git log's don't seem to show where it went19:14
relagil Define submodule location using path relative to super project. Still can't be done? Mailing list mentions patch.19:15
wereHamster faq non-bare19:16
Gitbot wereHamster: Pushing to non-bare repositories is discouraged. See http://git.or.cz/gitwiki/GitFaq#non-bare19:16
RobertLaptop_RobertLaptop19:16
wereHamster relagil: ^^^19:16
WebDragon left19:16
WebDragon|awayWebDragon19:16
Nebukadneza joined19:17
Nebukadneza heho19:17
illsci left19:17
Nebukadneza if i use a simple git:// url, on what exactly does this try to access? some http-ish stuff, ssh or a spezialized daemon?19:17
wereHamster git:// uses port 941819:18
ilmari left19:18
kyron joined19:18
wereHamster and it uses a special protocol19:19
Nebukadneza: man git-daemon19:19
Gitbot Nebukadneza: the git-daemon manpage can be found at http://git.or.cz/man/git-daemon19:19
Nebukadneza okay, thanks19:20
relagil Read an article on bare. Thanks.19:20
kyron Ahoy! _Q_: I've been looking for an answer to the following but I am not sure the wording is correct: "how does one push a specific commit" I have a local work branch which has many commits but I would only like to push "up to" a specific commit. I am lucky enough that the commits we want are sequential since the last pull...19:21
wereHamster kyron: you can't19:21
jessep left19:22
wereHamster oh, up to a commit: git push origin <commit>:refs/heads/<branch>19:22
maattd left19:22
brizly joined19:22
kyron wereHamster: hehe, thanks ;)19:22
Mage_Dude Is there any way to completely remove a specific commit so that it is like ti never existed, repack the repository and then pull it again to a local machine?19:23
kyron let's see how it reacts now...actually, what I would really want would be to create a new local branch _of_ that local commit to see, if pushed, if it would break all hell loose19:23
wereHamster kyron: git checkout <commit>19:24
kyron wereHamster: is it feasable to do this into a different dir (as I will most probably have to work on both branches ...sigh...)19:24
wereHamster Mage_Dude: for that you'd typically use git filter-branch (or git rebase, if your history is linear and the commit is only in one branch)19:24
kyron: make a new local clone, or use the git-new-workdir script from contrib/workdir19:25
Mage_Dude wereHamster: It is linear. I pushed a 'really bad' commit to the repository that broke it and I need to undo that. I just want to take a step backwards.19:25
wereHamster is the bad commit the latest commit in your HEAD?19:25
maattd joined19:25
Mage_Dude wereHamster: Yes19:26
bousquet joined19:26
wereHamster git reset --hard HEAD~119:26
drizzd joined19:26
stamina_ left19:27
stamina_ joined19:27
Mage_Dude wereHamster: So that will fix the local version, when I push again to the remote repository, will I get an 'out of sync' error? Because the remote is on a different commit?19:27
wereHamster push -f19:27
kyron wereHamster: ok, so I could make a local clone of a local git repo without having to push to the "origin" ?19:28
wereHamster or you can push -f origin HEAD~1:refs/heads/foo19:28
Mage_Dude Is foo the 'branch' name? ie master?19:29
wereHamster yes19:29
Mage_Dude wereHamster: Swizzle. Thanks :)19:30
s4msung left19:31
ipmb joined19:31
kyron wereHamster: sorry for the n00b question, am reading up git-clone(1) and will ask real questions after ;) thanks!19:32
project2501a left19:32
davr joined19:32
kyron wereHamster: although I would still like to take a look at the git-new-workdir from 'contrib/workdir' (should this be in /usr/doc/git-* ?)19:33
wereHamster <HEAD:contrib/workdir/git-new-workdir>19:34
Gitbot [git git-new-workdir]: http://tinyurl.com/yjxezrn [blob]19:34
kyron wereHamster: most obliged ;)19:35
wereHamster: looking at the script, am-I mis-interpreting that the script only works with branches rather than a specific commit SHA tag? or do both work?19:37
munichlinux joined19:38
wereHamster you can replace <branch> with any commit (though that will detache HEAD in the othe repo)19:39
Tureba left19:39
juro left19:39
wereHamster or just do: git branch foo; git new-workdir . ../newworkdir19:39
er, git new-workdir . ../newworkdir foo19:39
jrmuizel joined19:40
kyron where foo is the SHA1 ID...correct?19:40
wereHamster lemme rephrase that: git branch newbranchname <commitwherebranchshouldpointto>; git new-workdir . ../newworkdir newbranchname19:41
nickrw left19:42
nickrw joined19:42
ruediger_ joined19:43
aliasre joined19:43
kyron oh, ok, so, I'm assigning a "new" branch name to the old commit and then calling git new-... (ie: patching that it does not permit the creation of a new local repo off an SHA1 ID....which is in fact patching the fact that I SHOULD have created a branch here anyways ;) )19:44
Bartman007 joined19:44
wereHamster it allows creating a new workdir without having a branch19:44
but it will detach HEAD which will probably confuse you (or maybe not)19:45
ipmb left19:45
jelmer left19:45
kyron well, I want to be able to have a dir wich goes back to the SHA1 ID, then try to evolve that new "dir/branch" onto a working stat without loosing the "other" work which ended up being entangled within the same branch (and should have been an entity of its own.19:47
garh...wording should probably have been: how do I branch off from a local only commit given its SHA1 tag...19:47
jrmuizel left19:48
kyron wereHamster: actually, what does confuse me is the following; I got: 'Note: moving to '71387cb7c40cfe11c5dc7a50972005a7c6b96d0d' which isn't a local branch' ...isn't local?19:48
jrmuizel joined19:48
jessep joined19:49
relagil left19:49
wereHamster 71387 is not a branch, so it can't be local nor remote19:49
Nebukadneza i know metaquestions are evil, but did anyone of you set up a gitorious on a own box? i feel like this is hell19:50
razvand joined19:50
amerine joined19:50
Nebukadneza i've got it running, everything except checking works. and its git-daemon tells me that for git-receive-pack 'test/test.git' it couldn't find the repository/path :/19:50
xwkovr left19:51
kyron wereHamster: so, I shouldn't worry about the error message and simply give it a branch name (as it suggests) and work on?19:52
wereHamster kyron: faq detached19:53
Gitbot kyron: You are on a detached HEAD and might lose commits.. See http://git.or.cz/gitwiki/GitFaq#detached19:53
bousquet left19:53
kyron thanks19:53
dcestari joined19:54
RandalSchwartz git checkout -b mybranch startingsha119:54
dcestari hello19:55
can anyone help me resolve a file/directory conflict?19:55
I removed some plugins from my repo and then added them as git submodules19:55
but now when I pull from others I get a conflict19:55
nickrw left19:56
nickrw joined19:56
Twisted_Mentat joined19:56
ruediger left19:56
ruediger_ruediger19:56
flaguy48 joined19:58
jessep left19:59
chalkbag joined20:00
meppl joined20:00
bousquet joined20:01
bousquet left20:01
bousquet joined20:01
meppl hello, is the git for webdav anyhow broken with some versions?20:01
dcestari anyone?20:01
meppl i type "git clone"20:01
and then20:01
GET /git/meppl_scrips.git/info/refs HTTP/1.1..User-Agent: git/1.5.6.5..Host: 192.168.0.7..Accept: */*....20:01
im sure it should be "/git/meppl_scrips.git/.git/info/refs"20:02
actually20:02
lack Where can I find out more about the environment in which 'git filter-branch --msg-filter' is run? I want to know if I can, from that script, find the SHA1 of the current commit object that filter-branch is rewriting.20:02
charon meppl: which is quite odd since by convention, foo.git is a GIT_DIR, i.e., the contents of what foo/.git/ would hold if it were a full repository with worktree20:03
meppl git version 1.5.6.520:03
charon ... and upgrade.20:03
lack Basically I want to, while rewriting this tree with filter-branch, put a line at the end of the commit log message much like the one you get from 'git cherry-pick -x'20:04
jstephenson left20:04
jstephenson joined20:04
charon lack: the sha1 is $GIT_COMMIT which is one of the very few things actually mentioned in the manpage. unfortunately, RTFS is the only recourse for many questions about g-f-b.20:04
d0ugal left20:05
pheaver left20:05
lack charon: Excellent ;) I love reading the fine source.20:06
meppl charon, well, if i rename meppl_scripts.git meppl_scripts, gits first request is GET /git/meppl_scrips/info/refs20:06
"info/refs" is in the subdirectory ".git" of course20:07
lack charon: Ah yes, I see that bit about GIT_COMMIT now, that may be all I need. Thanks for the tip!20:07
jelmer joined20:07
meppl and the manual tells me to use the url like "http://host.xz/path/to/repo.git/"20:08
smuf left20:08
reprore left20:08
gunmuc joined20:08
wereHamster meppl: mv meppl_scripts.git meppl_scripts.git.bak; mv meppl_scripts.git/.git meppl_scripts.git;20:08
er adjust the second mv accordingly -.-20:09
dauerbaustelle joined20:10
meppl cp -rp meppl_scripts.git meppl_scripts.git.bak; mv meppl_scripts.git/.git meppl_scripts.git;20:10
dauerbaustelle how do I delete unpushed commits without touching my (modified) local files? So I want nothing but that commits to disappear from the commits history20:11
wereHamster dauerbaustelle: use git stash to save the modified files20:11
keex joined20:11
dauerbaustelle then reset to HEAD and use stash to get the files again?20:11
drizzd if you really mean that you don't want to change anything, then git reset --soft20:12
wereHamster git stash; reset --hard HEAD; git stash pop is a noop20:12
dauerbaustelle wereHamster, apparently HEAD is my latest commit, so I have to reset to some other commit, yes?20:15
charon dauerbaustelle: perhaps you're under the (svn) assumption that HEAD designates the newest commit? it doesn't. HEAD is always what you have checked out20:15
tomaw__ left20:16
dauerbaustelle weird, I haven't checked out at that revision that is HEAD right now20:17
toussaint joined20:17
galderz left20:17
ereslibre left20:17
dcestari left20:18
JackWinter left20:19
toussaint left20:19
JackWinter joined20:19
forze` joined20:19
gitte left20:19
ereslibre joined20:20
forze` What are the parties here mirc20:21
munichlinux left20:21
forze` left20:21
gunmuc1 left20:23
brian_ joined20:24
coderdad left20:25
tomaw__ joined20:25
pheaver joined20:26
kyron hmmm...can I merge a branch with a past SHA1 ID... I want to recover a past implementation of a specific file which shouldn't have been commited (yet) and is causing problems...but we want to keep the file in a current (more recent) branch...20:28
Corion joined20:29
jceb joined20:29
Corion Hi! Is there a documented problem with Git for large(r) files? I have a 900MB database dump and msysgit fails with "out of memory" for me. The system is Windows XP with 4GB RAM installed.20:30
komsas joined20:30
kyron or, wait, in this case, all I really want is one or two files from a past commit and revive those versions in a work branch (also based on a past commit)... I'll read up on that, that should be basic enough ;)20:31
ntoll left20:31
psoo left20:31
Corion I'm using the latest msysgit, 1.6.5.120:31
Other than that, thanks for git! ;)20:32
dauerbaustelle left20:32
kyron ...or..wait, is what I am describing "chrrypicking" ?20:32
davr Corion: I'd say in general git isn't really meant to hand huge files like that. It's possible git needs to keep 2 or 3 copies of a file in memory to handle it, and on a 32-bit system I think you're limited to 2GB per process20:33
imajes left20:34
Corion davr: Yes, but it added larger files without problems (this is on the initial import).20:34
I admit that I'm trying to abuse git as the backend for an incremental backup system, but that would make backup+restore of incremental backups well-tested at least20:34
irc2samus left20:35
razvand left20:35
komsas left20:36
cytzol joined20:36
Corion But if git is designed to always have a complete file in memory/swap/address space, that limits the files that solution can backup in size...20:38
rgr left20:40
divVerent we need a "git pastebin" command :P20:40
aliasre left20:41
kyron divVerent: agreed... 'cuz I have something to attempt to explain which requires one to see my 'messy' tree20:41
divVerent except... IO just noticed that command shouldn't be git specific20:42
the git use would be, e.g., git diff ... | pastebin20:42
kyron divVerent: its called wgetpaste under gentoo ;)20:42
mmitchell joined20:42
mnyon left20:42
sykopomp joined20:43
divVerent ah, cool, thanks :P20:43
rgr joined20:43
mnyon joined20:43
divVerent not in ubuntu20:43
SeveredCross divVerent: pastebinit is.20:43
git diff ... | pastebinit20:43
keex left20:44
kyron divVerent: http://wgetpaste.zlin.dk/20:44
divVerent yes, just found that one20:44
kyron ah... nm, SeveredCross answered20:44
divVerent kyron: I really don't think one can prefer one of these over the other :P20:44
sykopomp heya, I'm dealing with an older version of git, 1.5.4.3, and I don't seem to have git-remote available. Is there a different command in 1.5 that does the same thing? It would be a bit of trouble to get the sysadmin to update git :\20:44
divVerent I mean, what user interface stuff do they do :P20:44
one of these can only be better than the other if it tab completes easier :P20:44
rgr left20:44
kyron divVerent: agreed20:44
divVerent which speaks against pastebinit20:44
rgr joined20:44
divVerent as it has paste, passwd, in its way20:45
jjuran left20:45
lack sykopomp: Did you try 'git remote' instead? The format 'git-remote' is a deprecated syntax that may not work much any more.20:45
divVerent pasuspender too even :P20:45
but so does wgetpaste...20:45
rgr left20:45
divVerent makes alias "wpaste" :P20:45
montylounge joined20:45
sykopomp lack: ....thank you.20:46
:|20:46
lack sykopomp: Just curious, what let you to want to try 'git-remote' instead? Working off someone's old document that needs to be updated?20:47
rgr joined20:48
gebi left20:48
tfarina joined20:48
rgr left20:48
rgr joined20:48
Lisimba left20:49
WebDragon|away joined20:50
sykopomp lack: user error. I'm embarrased to have asked :\20:50
WebDragon left20:50
redbaritone joined20:50
rgr left20:50
WebDragon|awayWebDragon20:50
lack sykopomp: No worries :)20:51
dabinich joined20:51
dabinich http://www.pandamailer.de/?bettel=pimbolli20:51
redbaritone left20:51
dabinich left20:51
catalis joined20:52
rgr joined20:52
brizly left20:52
froschi joined20:53
mjf joined20:53
TTilus left20:53
TTilus joined20:53
blaenk joined20:54
DrNick left20:54
imajes joined20:54
smotchkkiss left20:54
Lisimba joined20:54
rgr left20:55
rgr joined20:55
tbf left20:57
rgr left20:58
sgh joined20:58
rgr joined20:58
aliasre joined20:58
imajes left20:59
Modius joined20:59
imajes joined20:59
DrNick joined21:01
catalis left21:01
sako joined21:02
catalis joined21:02
herlo left21:02
brian_ left21:02
coderdad joined21:03
virus_found joined21:03
mnyon left21:03
virus_found Hello. Suppose, I have some old dated working copy (REV revision). I need to get all the changelog since REV to the topmost, most recent revision on the server. Will "%git log REV.." suffice?21:05
rgrps3hamburg21:05
sgh left21:06
virus_found Or %git fetch && git log REV.. ?21:06
Or %git fetch && git log -all REV.. ?21:06
I mean --all21:06
sgh joined21:06
virus_found I just can't test it :(21:06
Adlai joined21:07
DrNick left21:07
slabbeh left21:08
lucsky left21:08
apeiros_ joined21:08
flaguy48 left21:09
catalis_ joined21:10
ps3hamburgrgr21:10
virus_found %git fetch && git log REV.. downloads new sources, but shows the log as if my working copy were old.21:10
%git fetch && git log --all REV.. shows the full log21:10
nessundorma left21:11
virus_found How do I get new sources and show the log since REV ??21:11
catalis left21:11
blaenk left21:11
NET||abuse joined21:12
d0k left21:12
virus_found svn log SERVER -r HEAD:REV it's so simple for svn21:12
ehabkost left21:13
tekky joined21:13
virus_found hg pull && hg log -r tip:REV so is for the mercurial21:13
ablemike joined21:13
parasti virus_found: learn about remote-tracking branches, e.g., "git log origin/master"21:15
flaguy48 joined21:16
virus_found parasti: I know something about them. But why, the changelog is the whole one.21:16
tfarina_ joined21:17
rgr left21:18
catalis_ left21:19
virus_found Well, is it that difficult? I thought, git was a very mighty tool, that could everything.21:20
GustavoRamos joined21:20
Swimming_Bird left21:21
rgr joined21:21
parasti virus_found: "git log $commit..origin/master"?21:21
DrNick joined21:23
virus_found parasti: the won't fix anything21:23
I repeat:21:23
Hello. Suppose, I have some old dated working copy (REV revision). I need to get all the changelog since REV to the topmost, most recent revision on the server.21:23
remi left21:24
DrNick git fetch origin; git log HEAD..origin/master21:24
bentob0x left21:24
virus_found I have some old dated working copy and don't want to do anything to it. Neither fetch, nor pull.21:24
parasti virus_found: it's impossible21:24
virus_found Sorry, fetch is allowed :)21:24
pull is not21:24
jast git fetch; git log HEAD..origin/master21:25
parasti HEAD can be left off in that case, "..origin/master"21:25
PointMan joined21:25
PointMan shrug I did a git . and added too many files, how do I remove them again?21:26
mattyfo left21:26
methanol joined21:26
davr what's a "git ." ?21:26
PointMan sorry git add .21:26
dannas_ joined21:26
parasti PointMan: git status should tell you21:26
jast PointMan: git reset (without --hard!) will unstage all changes21:27
PointMan git reset HEAD <file>..." to unstage21:27
bentob0x joined21:27
PointMan ah21:27
i wasnt familiar with the term unstage21:27
thanks21:27
methanol left21:27
jast now you are :)21:27
moosecake joined21:27
davr has a git alias "unstage = reset HEAD --"21:27
virus_found That worked, thank you. git fetch origin && git log ..origin/master21:27
jast http://git.or.cz/man/gitglossary might help :)21:27
methanol joined21:27
PointMan but it wont undo my changes, right?21:28
as in changes in files21:28
jast reset only touches files if you use the --hard switch21:28
PointMan ty21:28
jast and then it can be quite destructive if you don't know what you're doing :)21:28
guest39148 joined21:28
jast --merge can change files, too, but I haven't ever used it21:28
s4msung joined21:28
jceb left21:28
virus_found left21:29
bousquet left21:29
moosecake left21:30
bousquet joined21:30
altrux left21:31
bousquet left21:31
niki joined21:33
Zephyrus left21:34
rgr left21:34
rgr joined21:34
tfarina left21:35
diegoviola left21:39
kyron _Q_: From a branch called out of a local SHA1 commit, is it possible to checkout into this branch some files from a past commit and some from future ones?...or is my only recourse to copy the files from the "future" commit directly into the branch?21:40
corni left21:41
s0ber joined21:42
teuf kyron: git checkout <commit_sha1> -- filename21:42
hipe joined21:42
tfarina joined21:42
hipe what's the analog to svn:externals?21:42
kyron teuf: even with commit_sha1 in the future relative to the current branche's sha1?21:42
Corion left21:42
teuf kyron: git doesn't care much about time in my experience21:43
hipe submodules, looks like21:43
teuf kyron: a commit is a commit wherever and whenever it comes from21:43
krynnotaur left21:43
apeiros_ left21:43
kyron teuf: nice, will try that21:44
spearce left21:44
Zenopus left21:46
Zenopus joined21:46
spearce joined21:47
gunmuc1 joined21:47
Sigma`Sigma21:47
aliasre left21:48
carrus85 left21:48
guest39148 left21:48
coderdadcoderdad|away21:49
adamm joined21:51
hipe so i want to pull in one little project/repository of mine as a submodule to my other project, but i plan on developing and commiting fixes and features to the pulled in project. is that a use-case for submodule? or should i just plain old clone it?21:52
coderdad|awaycoderdad21:52
s0ber_ left21:54
ablemike left21:55
mefesto left21:55
robinr joined21:55
jas4711 joined21:55
apeiros_ joined21:55
Slix_ joined21:57
brodyberg left21:58
mnyon joined21:58
tfarina_ left21:58
drizzd hipe: my general rule for submodules is: If you don't really need them, don't use them.21:58
xanonus left21:59
dgarrett joined21:59
hipe drizzd: this is just one or two javascript files that i'm using in a different project that i planned on using across different projects. right now they live in the one project but i need them in the other project and i plan on enhancing them there21:59
drizzd: i guess, what would you do in a case like that ?22:00
gunmuc left22:02
sykopomp left22:02
Chillance left22:02
WebDragon|away joined22:03
pheaver left22:03
WebDragon left22:03
tedoc2000_ joined22:03
WebDragon|awayWebDragon22:03
TDJACR left22:04
krynnotaur joined22:04
jotik^^jotik22:05
DerGuteMoritz joined22:06
BigMack83 left22:06
mindworx joined22:06
DerGuteMoritz left22:06
mindworx Hi everyone22:06
mmitchell left22:06
hipe hi mindworx22:06
ablemike joined22:07
mindworx question.. if I have a website that is up and running and I want to work on phase 2 how do i do this using git22:07
hipe mindworx: is it currently under svn or something22:07
mindworx no22:07
I also have someone I am working with on the project and I dont want to accidently merge into Master22:07
hipe mindworx: just curious where does the project live? do you zip it up into a tarball and ftp it to the server?22:08
montylounge left22:08
Skinkie joined22:08
Skinkie could anyone explain me an oddity? when i checkout with http checkout i get an older version than is actually on the server present22:08
mindworx no i use capistrano22:08
hipe: its a rails project22:08
tedoc2000 left22:08
Skinkie so if i clone it basically gets me an older version, the log seems to be 'old' while the http server shows the latest log22:09
hipe mindworx: i'm no pro but if it were me i would get a directory tree of your project (website) on your local machine, make *sure* that you've pruded everything you don't wnat to version (log fiels, cache files temp files), "git init" in that folder, create a github project,22:09
and per the instructions there, from inside your project tree to "git add remote origin git://github/your-url" or whtaever, the "git push origin master"22:10
maattd_ joined22:10
hipe *pruned not pruded. were it a verb22:10
*git remote add (not git add remote) github will walk u thru it22:11
PerlJam Skinkie: same branch?22:12
mindworx hipe: ok how do i create a test branch off of the master branch and treat that like its a master?22:12
PerlJam Skinkie: how do you know it's "older"?22:12
Skinkie i think it is the git update-server-info error...22:12
WebDragon left22:12
Skinkie confirmed22:12
ablemike left22:13
hipe mindworx: i think it's "git branch mindworx-branch" but i actually haven't done this that much, sorry22:15
tvw joined22:15
Skinkie left22:15
juan_arandaalvar left22:15
mindworx hipe: no problem22:16
anyone with git experience and rails?22:16
dtrott joined22:16
cannonball left22:17
dtrott If I have a commit on my master (mainline) and I add a remote that happens to have the same code (but a different commit message) how do I join the histories ?22:17
teuf dtrott: depends what you mean by join...22:18
you can use git rebase --onto to put some commits from mainline "on top" of the commit from the remote22:19
pheaver joined22:19
dtrott Ok I may have oversimplified the problem when I stated it one line is imported using the git-p4 (perforce import script) the other is comming from a true git remote to another git repository.22:20
they are showing as seperate line despite that fact that there is no difference between some of the commits.22:21
maattd left22:21
maattd_maattd22:21
dtrott I am trying to show a unified view22:22
keystr0k left22:22
catalis joined22:24
xiong joined22:25
dgarrett left22:26
jelmer left22:26
jelmer joined22:26
NetHawk joined22:26
balint joined22:27
dgarrett joined22:29
Sky[x] joined22:29
mm_work left22:30
kumbayo left22:31
dannas_ left22:32
catalis left22:32
Whtiger left22:34
lack dtrott: Unfortunately if they are separate commit objects they have separate SHA1 IDs, so git treats them completely separate even if the actual directory contents are equivalent.22:40
Tiggers joined22:41
Tiggers Hey, so I'm between a rock and a hard place22:42
lack So, you have 2 choices. Either rewrite the history using grafts and/or git filter-branch and/or git rebase, or22:42
ideogon left22:42
lack Just merge the 2 branches together. I think the merge should *probably* come out conflict-free if the contents are identical, so then you have a common point between the 222:42
osfameron how do I reorder the last 3 commits?22:43
lack Tiggers: I thought tiggers were *good* at bouncing. Just jump out.22:43
Tiggers i tried doing "git pull" on the server to update the live website from the repository on the server, and it replies "you asked me to pull w/out telling me which branch to merge with"22:43
makeworkeasy osfameron: git rebase -i HEAD~322:43
Tiggers I'll be jumping my way out of a job if I cant fix it22:43
osfameron makeworkeasy: ta22:43
lack Tiggers: What branch does 'git branch' say you are on?22:43
Tiggers master22:44
sgh left22:44
davr git pull is just a shortcut to doing git fetch and then git merge. so you can always do it manually, "git fetch" then "git merge <remote branch>"22:45
Tiggers oh excuse me that wasn't correct22:45
I was on my local machine22:45
osfameron oo, that wasn't so hard (not that I was doing anything hard)22:45
Whtiger joined22:45
alley_cat left22:45
Whtiger left22:45
Tiggers it says "no branch"22:45
loincloth left22:45
catalis joined22:45
Tiggers yeah its kinda weird22:46
johnw joined22:46
Mezner left22:46
Tiggers the way we have it setup is you have a /www directory that you're only supposed to pull into, but someone uploaded a file in there and now its all messed up22:46
davr Tiggers: you likely checked out a remote branch without creating a local branch first. so you need to either create a local branch or simply check out a different existing branch22:47
Tiggers theres two branches it lists on the server, (no branch) which i'm on, and master22:47
blaenk joined22:48
Tiggers should I do, git checkout master then?22:49
balint left22:50
lack Tiggers: Well, if you're sure no one has done any commits there on the server on that detached head, yes. 'git checkout master; git pull' will get you where you want to go.22:50
But be careful before you do the checkout, and read more about detached headns.22:50
Tiggers: http://sitaramc.github.com/concepts/detached-head.html22:50
kmartiin left22:52
hipe left22:52
davr I think git would be more friendly if it required --force or similar in order to check out a detached head22:52
Sky[x] left22:52
Zenopus left22:53
TDJACR joined22:54
psoo joined22:54
tedoc2000_ left22:55
Zenopus joined22:55
tedoc2000_ joined22:56
deschet joined22:57
Tiggers lack: thanks!22:59
looks like I get to keep my job for another day22:59
bentob0x left22:59
ereslibre_laptop joined23:00
catalis left23:01
Tiggers left23:02
dtrott lack: Thanks for the pointers, this is looking like its going to very quickly become a quagmire (due to issues with the p4 import script).23:03
ideogon joined23:04
catalis joined23:04
Swimming_Bird joined23:05
skyjumper joined23:06
Zenopus left23:06
Zenopus_ joined23:06
jrmuizel left23:06
jrmuizel joined23:06
tlb left23:07
AkumaStreakAkumaStreak_CST23:10
EricInBNE joined23:10
justinweiss left23:10
kipras left23:13
hipe joined23:13
ilmari joined23:14
__iron joined23:14
coderdadcoderdad|away23:15
AkumaStreak_CSTAkumaStreak23:15
psoo left23:18
Chaser_ joined23:18
auslander left23:18
Theravadan joined23:19
LRN left23:21
L_R_N joined23:21
makeworkeasy left23:23
benjy_ joined23:23
PointMan left23:24
hadees joined23:27
hadees how do you see all the branches on origin23:27
PointMan joined23:27
RandalSchwartz you mean, as it exists there, or as you've fetched them?23:28
git ls-remote origin (or) git branch -a | grep origin :)23:28
agile left23:29
jlilly left23:30
squarism joined23:32
apeiros_ left23:34
froschi left23:34
benjy_ left23:36
coderdad|awaycoderdad23:36
benjy_ joined23:36
coderdad left23:36
froschi joined23:36
v0n left23:37
TeckniX left23:37
xiong left23:37
froschi left23:37
vinse left23:38
charon also, for a crazily verboose listing, 'git remote show origin'23:41
s/oo/o/23:42
toxx joined23:43
kevlarman joined23:43
sockmonk left23:43
kevlarman is there anything like git-svn that would let git read from/write to hg repos? (or actually, i'd be happy with read only too at this point)23:44
Aldwuin joined23:45
chalkbag left23:45
rudi_s_ joined23:45
jas4711 left23:45
JayM left23:45
jstephenson left23:46
stamina_ left23:47
davr kevlarman: I think you can do it the other way around...eg push from a hg repo into a git repo23:50
PointMan left23:51
kevlarman davr: that's not particularly helpful, i'm trying to deal with a project that uses hg, but i'm spending more time fighting hg than i am reading source code23:53
ereslibre left23:55
Chaser_ left23:55
pantsman left23:56
john268 left23:57
jrmuizel left23:57
bremner kevlarman: in theory tailor can help23:59
ereslibre_laptop left23:59
tedoc2000_tedoc200023:59

Logs Search ←Prev date Next date→ Channels Documentation