IRCloggy #git 2012-04-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.

2012-04-11

brentdanley_ joined00:00
milki sounds like a copy/paste issue00:00
Evanlec Kre10s_: yea, you've got linebreaks in your key00:00
Kre10s_ I used 'ssh-keygen -t rsa' to come up with this file.00:00
koo3 left00:00
Evanlec Kre10s_: pastebin git.pub for us00:00
brentdanley_ left00:00
Kre10s_ oh... this is the private key.00:01
Evanlec ;o00:01
milki but it says .pub00:01
!00:01
ShooterMG left00:01
eph3meral left00:02
Drewch left00:02
dcarper joined00:02
koo4 joined00:03
koo4 left00:03
estevocastro left00:03
marhaban left00:04
tabakhase joined00:05
VAAE8OJ joined00:05
tabakhase left00:05
tabakhase joined00:05
fission6 joined00:06
chrissbx left00:06
offby1 Evanlec: nice try!00:07
dcarper left00:07
adam12 left00:08
thiago left00:09
joaoh82 left00:09
dreiss left00:10
joaoh82 joined00:10
Kre10s_ when I do 'dl-setup git.pub' git will be the name of the user with this pubkey... will this be the admin account?00:11
alberto56 left00:11
milki yes, as identified by the pubkey00:11
but it is not the user you identity as your git remote url00:11
mcluskydodallas left00:12
Kre10s_ claro. those would be the git users the admin creates00:12
BiggFREE left00:12
milki no, the git remote url is always the user gitolite is installed under00:12
the pubkeys are for the git users00:12
mikepack joined00:13
quazimodo joined00:15
cespare left00:16
brentdanley left00:16
Kre10s_ ok so now I try to clone the admin repo: git clone gitolite@server:gitolite-admin00:16
jameswarren left00:17
tvw left00:17
Kre10s_ but I cannot authenticate... the password is that of the linux gitolite user?00:17
jameswarren joined00:17
tvw joined00:17
Kre10s_ or that of the git.pub key i generated?00:17
iocor left00:17
milki what do you mean by cannot authenticate00:18
Kre10s_ it always says wrong password for gitolite00:18
neurodrone left00:18
Kre10s_ maybe gitolite is not allowed to ssh00:18
milki is that the exact error messagE?00:19
Kre10s_ Permission denied (publickey,password).00:19
fatal: The remote end hung up unexpectedly00:19
brentdanley joined00:19
milki ok, that means you arent providing the public key00:19
you either need to use .ssh/config or an ssh-agent00:19
ehsan left00:20
Kre10s_ they key generated to (localy) ~/.ssh/id_dsa.pub is not enough?00:20
milki you need to actually supply that to ssh somehow00:21
o...00:21
well, that should automatically be used then00:21
ssh should be asking you to unlock the key then00:22
Kre10s_ how does ssh know what key to unlock?00:22
milki if you have an id_dsa or id_rsa, it will use that automatically if no other key is specified00:23
that would be the private key00:23
Kre10s_ yes I have those in ~/.ssh/00:23
i have both id_dsa and id_dsa.pub00:24
milki so, is ssh asking you to unlock it then?00:24
imMute did you copy the public key to ~/.ssh/authorized_keys on the server?00:25
koo4 joined00:25
milki imMute: using gitolite00:25
imMute did you add it to the gitolite config then?00:26
gv left00:26
Kre10s_ ok. the server was not set up to allow ssh connections from the gitolite user...00:27
pfFred left00:27
Kre10s_ I have cloned the admin repository now.00:27
milki i didnt think ssh would give you that deny message if the user itself was not allowed to do ssh00:28
williamcotton left00:28
SeySayux left00:29
nikhgupta joined00:30
nikhgupta hey guys.. I have a repo in which i want to add a submodule. The problem is that the submodule is not contained in a separate directory00:30
frogonwheels nikhgupta: !?00:31
ziggles left00:31
nikhgupta lets say if repo exists at: ".", then this submodule has directories: "./dir1" and "./dir2"00:31
frogonwheels nikhgupta: is this a new submodule or one that exists somewhere?00:31
master-lincoln joined00:31
nikhgupta the one that exists somewhere00:31
frogonwheels nikhgupta: you have to add it as subdir of the parent repo00:32
nikhgupta i need to add it to my root directory of the repo00:32
mcluskydodallas joined00:32
nikhgupta hmm00:32
frogonwheels nikhgupta: !xy00:32
gitinfo nikhgupta: [!UGFWIINI] You appear to be Using Git For What It Is Not Intended - https://www.google.com/search?q=UGFWIINI Let's step back for a minute - What are you actually trying to achieve? Are you sure git is the right tool for the job?00:32
frogonwheels hmm..00:32
n1x left00:32
frogonwheels that wasn't quite what i meant.00:33
nikhgupta hehe.. i understand :)00:33
frogonwheels nikhgupta: back-up a step - what are you trying to achieve00:33
nikhgupta: describe your scenario. i'll be back in a mo'00:33
gasull left00:34
nikhgupta thing is I have this plugin for a cms, kind of.. I made a git repo for the CMS.. Now, I want to add this plugin as a submodule and work on it.. However, the plugin system utilizes two directories which are both contained in the root folder of the cms.00:34
lets say, cms is in "./cms", then the plugin would be contained inside directories: "./cms/plugins/name" and "./cms/widgets/name.php"00:35
frogonwheels nikhgupta: symlinks ?00:36
nikhgupta my bad.. the second one is actually a single file that needs to be included within the plugin (its repo), i guess.. this second file is what is creating problem.00:36
yeah, i thought so, but then I don't think it will be distributable.. I would be using symlinks, definitely, if there are no other methods00:36
frogonwheels nikhgupta: either that or have a bundler for distribution00:37
nikhgupta: it sounds like a crappy design00:37
nikhgupta hmm.. bundler.. as in a shell script or something that automates the bundling right? (a git hook maybe?)00:37
subbyyy joined00:37
Fandekasp joined00:38
nikhgupta well, yes.. they just switched to a better version, but the earlier version on which this plugin of mine is based, has this structure.00:38
so i was sayin.. bundlers are like git hooks, if i am right?00:39
yoklov left00:39
nikhgupta my bad.. found this: http://progit.org/2010/03/10/bundles.html00:39
thank you, frogonwheels, for directing me to bundles.. reading :)00:40
nikhgupta left00:43
WillMarshall joined00:44
delinquentme left00:44
barrbrain joined00:44
thiago joined00:45
Zeelot left00:45
replore joined00:47
Kre10s_ Ok. so I can now edit conf/gitolite.conf ... I see that there is already a repository testing with RW+ all...00:49
I cloned this repo, and added a README. did a git add, git commit, and tried a git push.00:50
I get 'No refs in common and none specified; doing nothing.'00:50
and 'Perhaps you should specify a branch such as 'master'.' .. so. what now.00:51
hobbyist joined00:52
charlenopires joined00:52
diegoviola joined00:53
neurodrone joined00:53
milki listen to it and specify a branch?00:53
ipalaus_ left00:53
milki new repos dont have any branches00:54
Kre10s_ seems i need to do git push origin master ... I'm used to the shorthand git push. what do i need to change to get that back?00:54
charlenopires left00:54
Kre10s_ oh. duh.00:54
the shorthand should work once there is one...00:54
milki yup00:54
duckxx left00:54
brngardner left00:55
Zeelot joined00:55
timoxley left00:56
hobbyist left00:56
blackmatrix_ny joined00:56
ipalaus_ joined00:57
glennpratt left00:58
yoklov joined00:58
metcalfc left00:58
gavin_huang joined00:58
Kre10s_ ok. so now to add the git repositories to gitolite all a need to do is move them into the repositories/<reponame>.git and add an entry in gitolite-admin/conf/blabla commit push and try it?00:59
bartman left00:59
milki its in the docs01:01
sounds about right01:01
except for blabla01:02
JackWinter left01:02
Kre10s_ yea...01:02
glennpratt joined01:03
alberto56 joined01:03
SegFaultAX|work left01:04
AaronMT left01:05
bartman joined01:06
timoxley joined01:06
Vampire0_ joined01:08
neiraza joined01:09
__class__ left01:11
Vampire0 left01:11
n1x joined01:11
__class__ joined01:12
hobbyist joined01:15
xiangfu joined01:19
glennpratt left01:20
ColKurtz left01:22
usmanity left01:22
mikepack left01:23
ehsan joined01:23
Bombe left01:23
duko_ joined01:24
duko_ left01:25
Vinnie_win left01:25
gusnan left01:25
kadoban left01:26
cordoval joined01:26
cordoval i am getting this while adding a submodule https://gist.github.com/6c06467a44274152491801:26
is it not from the top directory that i add the submodules?01:27
or should I cd to the low level directory and add it there?01:27
confused01:27
RainbowTables joined01:27
frankaa112 left01:28
DofLeFou joined01:28
CEnnis91 joined01:31
NetRoY joined01:31
Bombe joined01:31
SethRobertson Sounds like you should remove the path from your .gitignore01:31
mikepack joined01:32
SethRobertson You can even do it temporarily. Once it is committed it can be ignored to your heart's content (but the ignoral will be ignored)01:32
milki lol01:32
daaku left01:32
brngardner joined01:33
brentdanley_ joined01:34
cordoval or I could just -f01:34
force it01:34
i did that01:34
now it all works :D01:34
mgpcoe joined01:34
cordoval thanks guys01:34
SethRobertson: take it away on private if you have written some more on that cherry pick flow :D01:35
cordoval left01:35
SethRobertson take it away on private?01:35
cordoval joined01:35
el2ro left01:35
SethRobertson take it away on private? Anyway, I don't recommend the cherry-pick flow without some kind of support tool that AFAIK has not been written. You can always hire me to write it...01:36
dermoth_dermoth|home01:36
Nightfire034 left01:37
mythmon left01:38
Vinnie_win joined01:38
Bombe left01:38
SeySayux joined01:39
sj` joined01:39
Dulak left01:39
joaoh82 left01:39
n1x left01:39
milki lol01:39
alberto56 left01:39
mrwalker left01:40
cooloney joined01:40
calvados left01:41
pragma` left01:41
pragma` joined01:41
cordoval left01:43
apok left01:43
xiangfu left01:44
Bombe joined01:44
gchristensen joined01:44
mxweas_ joined01:45
recur joined01:45
joshsmith joined01:46
Bombe left01:49
Araxia left01:49
pragma`pragma-01:51
cordoval joined01:52
el2ro joined01:52
cordoval can I overlap submodule directories?01:52
so the problem is not solved with -f basically I am telling the submodule to be added on the same folder of other submodule but that is not good01:53
how it is handled?01:53
SethRobertson You can create a shadow tree of symlinks pointing to the right place01:54
You could try to see if !vcsh could be convinced to work with submodules01:55
gitinfo https://github.com/RichiH/vcsh -- version control shell - manage dotfiles using git's fake bare repos to put more than one working directory into $HOME01:55
SethRobertson You could rearchitect your layout so that one can be a subdirectory or a peer of the other01:55
igotnolegs joined01:55
cordoval since i am using namespaces on the code I wonder if it is easier to put it into a nother folder01:56
yeah that is better i think i hope i dont cause more problems01:56
you rock SR01:56
zdk joined02:00
whyking_ left02:01
iamjarvo1 joined02:01
iamjarvo left02:01
mxweas_ left02:02
weiyang joined02:03
dcarper joined02:03
dcarper left02:03
dcarper joined02:04
gchristensen left02:04
TomyLobo left02:05
master-lincoln left02:05
JackWinter joined02:07
cordoval left02:08
anjibman joined02:09
BiggFREE joined02:09
gitinfo set mode: +v02:09
anjibman how to check the difference between the local and remote repo?02:10
milki git log local_branch..remote/remote_branch02:10
cehteh fetch first02:11
milki after fetching remote02:11
gchristensen joined02:11
recur left02:11
iamjarvo1 left02:11
gavin_huang left02:11
arvind_k joined02:12
anjibman with git fetch origin/master I am getting 'origin/master' does not appear to be a git repository error msg02:13
neersighted left02:13
xiangfu joined02:13
iamjarvo joined02:14
offby1 anjibman: try "git fetch origin master"02:14
i.e., lose the /02:14
anjibman but I can see see log with git log master origin/master02:14
okie origin master works02:15
gavin_huang joined02:15
anjibman so i can see that fetch doesn't merge the updated content from the remote repo ... so what is the use of this fetch command then/02:16
orafu left02:16
orafu joined02:16
neersighted joined02:16
SethRobertson You have to get the changes before you can merge them anywhere02:17
BTW, don'02:17
BTW, don't use the four argument version of fetch or pull. It will only end in tears. `git fetch origin` `git pull origin`02:17
mattsa joined02:18
dcarper left02:18
mattsa github always creates it's gh-pages branch as a "new branch" that is - it has no previous commits (like it branches from a new repository). how is that accomplished?02:18
neersighted left02:18
tizzotizzo-afk02:18
SethRobertson git checkout --orphan newbranch02:19
neersighted joined02:19
mattsa SethRobertson: thanks a bunch!02:20
master-lincoln joined02:20
EugeneKay Or !orphan, if your git is too old to have that02:20
gitinfo To create an orphaned branch(unrelated to existing history): git symbolic-ref HEAD refs/heads/orphan; rm .git/index; git clean -fdx; touch foo; git add foo; git commit -m 'Initial commit on branch orphan'02:20
neersighted left02:20
segher left02:20
mikepack left02:20
neersighted joined02:20
aknewhope joined02:21
segher joined02:22
neersighted left02:22
mtx_init left02:22
DrDogwelder joined02:22
Bombe joined02:23
ChaoWang joined02:24
neersighted joined02:25
anjibman left02:27
mtx_init joined02:27
rgwu joined02:29
apok joined02:29
asakura left02:29
the_cybersphinx joined02:30
ben225 left02:31
thelazydeveloper left02:31
cybersphinx left02:33
LucasTizma joined02:33
aknewhope left02:33
limoges_ joined02:34
erujolc joined02:34
nif left02:35
mxweas_ joined02:35
zendeavr joined02:35
intripoon joined02:37
asakura joined02:37
infogulch_ left02:39
intripoon_ left02:40
CannedCorn joined02:40
erujolc left02:41
BiggFREE left02:41
w0ng left02:42
mritz left02:42
w0ng joined02:42
chronos left02:43
glennpratt joined02:43
kenperkins joined02:44
Davey joined02:44
milk left02:45
jameswarren left02:45
replore left02:45
nif joined02:45
BiggFREE joined02:45
diegoviola left02:46
milky joined02:46
cannonball left02:47
daaku joined02:47
brentdanley_ left02:49
Rafusek left02:50
Chibby_ left02:50
Dreamer3 left02:50
Rafusek joined02:51
Dreamer3 joined02:51
NetRoY left02:52
arvind_k left02:52
davidcoallier left02:53
daethorian left02:53
pppaul left02:54
Yuuhi` joined02:54
pppaul joined02:54
daethorian joined02:54
smw left02:55
Yuuhi left02:56
smw joined02:56
davidcoallier joined02:56
acl_ left02:58
ben225 joined03:01
bremner commit A is reachable from HEAD, but not upstream. commit B is reachable from both. Commit A and B have the same patch id. Should git-cherry upstream HEAD report + A ?03:01
eletuchy left03:02
mattsa left03:04
mister_m joined03:08
yoklov left03:09
glennpratt left03:11
mcluskydodallas left03:11
DrDogwelder left03:11
curtp joined03:11
cccaldas left03:12
mritz joined03:13
Gentlecat joined03:13
curtp_ joined03:15
brngardner left03:15
aknewhope joined03:15
wbednarski left03:15
curtp_ left03:16
curtp left03:16
fayaz joined03:16
kerrick joined03:16
Fandekasp left03:16
traviscj joined03:16
Fandekasp joined03:18
ppppaul joined03:24
krz left03:25
Targen left03:30
jameswarren joined03:31
akiress left03:31
akiress joined03:32
duckx joined03:32
n2diy joined03:32
__class__ left03:33
__class__ joined03:34
__class__ left03:37
brngardner joined03:38
__class__ joined03:38
mxweas_ left03:40
Fandekasp left03:42
rgwu left03:46
neiraza left03:49
jfelchner joined03:50
pppaul left03:50
pppaul joined03:51
RainbowTables left03:52
timoxley left03:53
nif left03:54
kerrick left03:56
Fandekasp joined03:57
__class__ left03:58
mo0nykit joined03:59
brngardner left03:59
aknewhope left03:59
tharkun left04:00
__class__ joined04:00
aknewhope joined04:00
Kre10s_ left04:00
mo0nykit Hi, suppose I have the following commits from earliest to latest: ABCDEFG. HEAD is currently on G. I want to squash the middle commits so that it will now look like AZG, where Z is BCDEF squashed together. How do I do that?04:01
ziggles joined04:03
BiggFREE left04:03
n2diy left04:04
hagabaka joined04:04
n2diy joined04:05
rurufufuss joined04:07
mxweas_ joined04:08
ferdna joined04:08
offby1 mo0nykit: "git rebase -i A"04:09
bremner: I don't think so.04:10
n2diy left04:10
satyanash joined04:10
kini offby1: won't that give him AZ, where Z is BCDEFG squashed together?04:10
or her, dunno04:11
igotnolegs left04:12
milli left04:12
spaceonline left04:12
tharkun joined04:12
mo0nykit The only solution I could imagine is to branch off G, then get back to the original, reset to F, then rebase -i A04:12
offby1 kini: depends on how he/she/it edits the list in the editor04:12
kini oh, true04:13
n2diy joined04:13
kini interactive rebase is nice04:13
milli joined04:13
mo0nykit offby1: Oh I got it. I'd just pick both F and G, then fixup the rest04:13
Thanks04:13
offby1 \o/04:14
mo0nykit left04:15
mo0nykit joined04:16
BSaboia left04:17
lyddonb left04:17
yoklov joined04:18
dcarper joined04:18
CannedCorn left04:19
ricky left04:22
dcarper left04:23
mcluskydodallas joined04:23
coyotebush left04:25
hyperair left04:26
gchristensen left04:26
gchristensen joined04:26
aknewhope left04:30
kukks left04:30
Targen joined04:30
sangi joined04:31
kenperkins left04:34
maqr left04:35
cjs joined04:36
cjs When I do a git log --status somefile, the status it shows me for each commit is only the changes to somefile, even if other files changed as well. How do I see all the files that changed for each commit touching somefile?04:36
ben225 left04:39
Bombe left04:39
beautifulmind joined04:40
wereHamster cjs: --full-diff04:41
igotnolegs joined04:42
lonewulf` left04:43
maqr joined04:44
Bombe joined04:44
dr0id joined04:45
lonewulf` joined04:45
cjs Thanks.04:45
Slix` left04:46
maleknet joined04:47
timoxley joined04:47
mritz left04:49
k-man joined04:49
k-man is there a way to automaticaly git rm any files that are no longer on my filesystem (but still in the repo?)04:49
ziggles left04:50
kerrick joined04:50
wereHamster k-man: git ls-files --appropriate-flags | xargs git rm --cached04:51
cime joined04:52
spaceonline joined04:53
maleknet left04:54
k-man wereHamster, thanks04:54
stepnem left04:55
ziggles joined04:55
k-man wereHamster, it almost works too, except the files have spaces in the names and xargs can't cope with that04:56
ben225 joined04:56
henryC joined04:56
nickcooley left04:56
wereHamster k-man: learn about the -0 xargs option04:56
k-man wereHamster, yeah i tried that, but afaict, it requires a null at the end of each file name but that does not seem to be what ls-files outputs ?04:57
wereHamster and the corresponding option in git ls-files ..04:57
k-man maybe i'm missing something04:57
kini heh04:57
nickcooley joined04:57
k-man wereHamster, ah - thats what I'm missing04:57
gitinfo set mode: +v04:57
stepnem joined04:57
k-man -z04:57
thanks04:57
henryC I did git add on a directory I meant to ignore. I haven't done git commit yet. Can someone tell me how to not add, and in fact ignore, that directory?04:57
kini henryC: git rm --cached dirname04:58
for ignoring, you'll need to edit .gitignore in the root of your repo04:58
wereHamster so you saw, 'oh, ls-files isn't producing the output I need' and it didn't occur to you that there might be an option for that?04:58
henryC kini: thanks04:58
wereHamster henryC: git reset <dir>04:58
neersighted left04:58
joaoh82 joined04:59
henryC If I did "git add" for these files which had not been previously committed, and I want to ignore them, "git rm" or "git reset"?04:59
neersighted joined04:59
kini either will work if you haven't committed those files04:59
wereHamster try it and see04:59
henryC ok thanks04:59
kini git rm --cached will cause the next commit to not have those files, even if the current commit does05:00
git rm without the "--cached" will furthermore physically delete the files, but I guess you don't want that05:00
henryC right05:00
thiago left05:00
slide_ left05:00
k-man wereHamster, it did occur to me that it might be there - but it was named differently to what i excpected and i missed it the first time around05:00
slide_ joined05:01
kini k-man: don't worry about it, that's what this channel is for :)05:01
reminding people about what was in the man page all along05:01
maqr left05:02
k-man is there a way to get git to add all untracked files except for any that should be ignored by .gitignore05:03
limoges_ left05:03
wereHamster git add .05:03
or if you want untracked, git ls-files --other --exclude-standard05:04
it's all right there in the man pages, as kini said :)05:04
Fandekasp left05:04
maqr joined05:04
k-man thanks05:05
Fandekasp joined05:06
maleknet joined05:06
Orbitrix left05:10
shruggar joined05:11
Gentlecat left05:13
ppppaul left05:13
Bass10 left05:14
_sundar_ joined05:14
LongBeach joined05:17
lonewulf` left05:17
mischat left05:18
mo0nykit left05:19
ricky joined05:20
yoklov left05:21
mo0nykit joined05:21
lonewulf` joined05:22
master-lincoln left05:25
n2diy left05:26
mister_m left05:26
n2diy joined05:27
Mowsh left05:27
ybitfiddlybits05:30
fiddlybitsybit05:31
satyanash left05:32
pppaul left05:32
aalex left05:33
subbyyy left05:33
mo0nykit left05:34
caseymcg joined05:34
pppaul joined05:34
ziggles left05:34
brokenshakles left05:34
Dave^| joined05:35
sangi left05:35
dreiss joined05:37
JohnBat26 joined05:40
madewokherd left05:41
glcrazy joined05:41
brokenshakles joined05:41
eletuchy joined05:43
Targen left05:43
harshpb joined05:43
mklappstuhl joined05:44
chronos joined05:47
chronos left05:48
Advocation joined05:49
shruggar left05:50
maleknet left05:50
pppaul left05:54
pppaul joined05:55
dnivra left05:55
thursday left05:55
kadoban joined05:57
lonewulf` left05:58
mikepack joined05:58
ajaykools joined05:59
Advocation left05:59
jchan joined05:59
LongBeach left06:00
jayne left06:00
jchan left06:00
lonewulf` joined06:01
flijten joined06:01
airborn joined06:01
jayne joined06:02
ph^ left06:02
duckx left06:02
mcluskydodallas left06:03
mikepack left06:03
mklappstuhl left06:04
khmarbaise joined06:04
dreiss left06:05
mishok13 joined06:06
MissionCritical left06:07
khmarbaise left06:07
Davey left06:08
Dulak joined06:09
ThomasLocke joined06:10
Fullmoon joined06:11
maleknet joined06:11
xiangfu left06:11
xiangfu joined06:11
joaoh82 left06:12
cbreak-work joined06:15
arvind_k joined06:15
archdori joined06:16
igotnolegs left06:18
pppaul left06:18
pppaul joined06:19
dcarper joined06:19
Fandekasp left06:20
maleknet left06:21
Shusshu joined06:22
dcarper left06:23
diminoten left06:25
dpino joined06:28
Werring left06:30
mishok13 left06:31
Werring joined06:31
neurodrone left06:31
Guest7979 joined06:32
ph^ joined06:32
Guest27784 left06:34
Guest27784 joined06:34
MissionCritical joined06:34
kerrick left06:35
maleknet joined06:35
barrbrain left06:35
DofLeFou left06:36
giallu joined06:37
vervic joined06:38
mxweas_ left06:38
tsdh joined06:38
mabrand joined06:39
_tasslehoff_ joined06:39
_tasslehoff_ Is msysgit on 64 bit windows 7 working (as) well (as can be expected)?06:40
Dave^| left06:42
pantsman joined06:44
maleknet left06:45
EugeneKay Works fine for me.06:45
AFAIK the msysgit binaries are 32-bit only, but W7 doesn't mind. NEver has.06:46
ivan` left06:46
daaku is there some built in/library to get a temp directory?06:46
ivan` joined06:47
marthinal joined06:48
mischat joined06:49
airborn left06:49
helgikrs left06:50
_tasslehoff_ EugeneKay: good. buying a new pc at work, and its the first one we get with 64 bit Win.06:50
WillMarshall left06:50
Sigma joined06:50
helgikrs joined06:51
dreiss joined06:53
mishok13 joined06:54
vervic left06:55
eletuchy left06:56
Element9 joined06:57
maleknet joined06:58
orkz joined06:59
glcrazy left07:01
vandemar left07:01
jceb joined07:02
slide joined07:02
Sitethief joined07:03
Dave^| joined07:03
albel727 left07:03
slide_ left07:05
harish_afk left07:05
harish_afk joined07:05
v_ joined07:05
harish_afk left07:05
harish joined07:06
ferdna left07:06
rendar joined07:06
dhruvasagar left07:08
Chib joined07:09
chadi joined07:09
Lujeni left07:10
dhruvasagar joined07:11
orkz left07:11
rtuin joined07:12
vandemar joined07:13
xiangfu left07:15
xiangfu joined07:16
gitinfo set mode: +v07:16
tfnico_ I've been pondering on merging latest development in master into feature branches (as asked here http://stackoverflow.com/questions/6837500/in-git-is-it-possible-to-merge-from-the-master-to-a-branch-that-was-originally-c ) - is the answer correct? Are there no drawbacks to this approach?07:16
psoo joined07:17
rtuin left07:18
Zenith77 left07:18
EugeneKay git-merge really doesn't care what was branched when. It only cares about common ancestry and the two sides.07:18
It'll do its best, but ultimately it's up to you to sort out merge conflicts and make sure the results are sane.07:18
ipalaus_ left07:18
zeshoem left07:19
thelazydeveloper joined07:19
EugeneKay It usually does a pretty impressive job, so you are encouraged to !justdoit07:19
gitinfo If you go to the trouble of asking questions, please go to the trouble of taking the advice offered, Take backups (type "!backup" as a reply to learn more) if necessary -- or in fact, it's a good idea anyway. You can almost always censor log messages if you have to. We are literally helpless unless you tell us what we need or do what we ask. Please, Just Do It™.07:19
kini tfnico_: merging master into a feature branch is definitely a normal thing to do07:20
the only drawback is that if your feature branch goes on for a very long time without getting merged into master, you're going to have a lot of merge commits pulling master into your feature branch - which personally I don't consider a drawback, but apparently linus doesn't like that when people are making feature branches for the linux kernel07:20
EugeneKay The semantics of your history(whether you rebase feature branches, or merge master into tem before submitting for merge back into master, or use space monkeys) is really up to you and your workflow. git doesn't care.07:20
kini which is why git rerere exists (but that's advanced stuff so don't worry about it)07:21
netiru joined07:21
tfnico_ kini: ok, thanks for that07:21
zeshoem joined07:21
palyboy left07:21
kini EugeneKay: sure, but it's perfectly valid to ask questions in here about common practices07:21
tfnico_ EugeneKay: arright, just wondering if there were some downsides down the road.. like if bisecting for bugs will get harder or something like that07:21
Shusshu left07:21
kini which is, I gather, what tfnico_ is really asking about07:21
brokenshakles left07:21
syphar joined07:22
sq-one joined07:22
EugeneKay My opinion is that a feature branch should be merged into master(or dev, which is what I use) once it's accepted. Do a test-merge and fix it up before you submit if it doesn't work cleanly.07:22
LiohAu_ joined07:22
Radium joined07:23
kini but what if the feature branch is not accepted? I mean, you usually merge master into a feature branch because you want to make sure it is not getting out of sync with master too much, but you haven't gotten approval to merge the branch into master, so you do the opposite07:23
LiohAu_ left07:23
LiohAu_ joined07:23
EugeneKay Then you beat the maintainer over the head until it is accepted or you drop the feature branch. :-p07:23
It's gonna come down to how cmplex / modularizable your codebase is.07:24
dstorrs left07:24
brokenshakles joined07:25
EugeneKay If feature A gets refactored halfway through to require something provided by new feature B(which was started after A diverged), then you should pull B into A, or from master to A after B has been merged.07:25
If that makes sense.07:26
Goplat left07:26
tfnico_ Background was that a colleague was always doing merge master -> featurebranch before merging the feature branch back to master. So we have merge commits that go "Merge branch 'master' into featureX" instead of the other way around. I got that a --no-ff when merging back to master will fix this, but in this case, the first merge is a bit of a waste anyhow.. Well discussion ensued on whether this w07:26
as the right approach, or if the feature branch should be rebased instead :P07:26
dreiss left07:26
EugeneKay I say beat your colleague.07:26
tonesfrommars left07:26
tfnico_ already did that, now we're laying down some conventions for merging and branching :)07:27
thanks for the input. I hope it won't be necessary to merge that way very often, but good to know that it's still OK to do so.07:28
mxweas_ joined07:28
albel727 joined07:29
mischat left07:30
pantsman left07:30
arvind_k left07:31
ben225 left07:32
ajaykools left07:33
ipalaus_ joined07:34
tatsuya_o left07:35
cxreg "nested localized bash prompt commands" <- does that even make sense to anyone? o_O07:35
EugeneKay Not really.07:36
cxreg sometimes i wonder if ive gone off the deep end on features07:36
https://github.com/cxreg/smartcd/commit/ad855a68f207:36
zeshoem left07:36
Nikoli joined07:36
EugeneKay What's the one-liner to "warm up" a .git/ into disk cache?07:37
cxreg find .git -type f -exec cat {} > /dev/null \;07:37
_ikke_ cxreg: Where is that usefull for?07:38
aristidesfl left07:38
_ikke_ that on_prompt07:38
EugeneKay There was one that used one of the plumbing commands. I don't think it was fsck.07:38
cxreg _ikke_: the use-case i imagined was related to history management07:38
zeshoem joined07:38
cxreg _ikke_: where you may want to 'history -a; history -n' on every prompt, but only in some directories07:38
_ikke_ ah ok07:39
cxreg incidentally, localized bash hisory is another smartcd feature, which would play nicely with that07:39
zeshoem left07:39
cxreg im having a feature asplosion o_o07:39
timoxley left07:40
cxreg EugeneKay: oh hm, not sure then07:40
timoxley joined07:41
cxreg i would think gc and fsck are good ones for something like that07:41
martinjlowm joined07:41
maxm-- joined07:41
cxreg repack maybe07:41
maxm- left07:41
EugeneKay My PS1 command is running git-status on first-entry to the repo, so that does something.07:42
timoxley left07:42
beautifulmind left07:42
cxreg for cache warming you mean?07:42
EugeneKay Don't think it does the entire objects store though07:42
Yeah07:42
dag- joined07:42
cxreg yeah .. status doesnt touch the whole repo07:43
jsut the index and a few objects07:43
git-status on first-entry to the repo sounds like a great use for smartcd! *duck*07:43
EugeneKay I parse the status output and keep it in some environment variables. Every 60 seconds, or whenever 'git' is invoked, the prompt command reloads the info07:44
cxreg right on07:44
arvind_k joined07:44
Ph03b3 joined07:45
cxreg you know for some crazy reason i thought i was in #xkcd07:45
i was wondering why this was so git-centric07:45
EugeneKay One of the vars is the $(git rev-parse --show-toplevel). That is checked on every PS1, and triggers a reload if it's changed.07:45
ajaykools joined07:46
EugeneKay The net effect is that I can move around and work in a large-ish repo without notable slowdown on every command.07:46
dc5ala joined07:46
cxreg nice07:47
EugeneKay I could speed it up even more by backgrounding the reloading of the info somehow(storing it in .git/repo_info?), but that seems like too much work.07:47
tvw left07:50
Kulrak left07:50
dvaske joined07:50
Element9 left07:51
d0k joined07:52
pppaul left07:52
Kulrak joined07:52
Kulrak left07:52
Kulrak joined07:52
OOPMan joined07:53
pppaul joined07:53
bauruine left07:54
dag-1 joined07:55
welly left07:56
ajaykools left07:58
dag- left07:58
mklappstuhl joined07:58
cxreg sounds like you do put some time into your config, i sure would appreciate it if you ever had a chance to give me some feedback on my project :-)08:00
_ikke_ Bevalt je laptop?08:01
PigeonFriend joined08:01
_ikke_ wrong window, sorry08:01
apok left08:02
dagon666 joined08:03
overbythere joined08:04
Chaser left08:05
tapas left08:05
dag- joined08:08
shruggar joined08:08
sq-one left08:08
dag-1 left08:09
GodEater left08:10
dr0id left08:10
Lujeni joined08:11
iamjarvo left08:12
iamjarvo joined08:12
dag-1 joined08:12
dagon666 do You guys know any good music streamer for apache ? I used jinzora till now but its getting a little bit outdated08:13
sorry wrong channel :)08:13
ipalaus_ left08:13
d0k left08:14
satyanash joined08:15
Desproges joined08:15
dag- left08:15
d0k joined08:15
Gentlecat joined08:16
LimeBlast joined08:16
EugeneKay dagon666 - dunno what you mean by "for apache", but Subsonic is pretty good. It's GPL, but the canonical distribution requires a "donation" to run after 30 days. I ripped out the licensing code, and built a .war https://github.com/KHresearch/subsonic08:17
dag- joined08:17
dcarper joined08:19
dag-1 left08:20
zheng joined08:20
iamjarvo1 joined08:20
pmatthews joined08:20
dag-1 joined08:20
Radium left08:20
blacktulip joined08:21
dag- left08:21
iamjarvo left08:22
timoxley joined08:22
bgerber left08:22
gebura left08:23
dcarper left08:23
cmn left08:23
dc5ala left08:24
RichardBronosky left08:24
dc5ala joined08:24
dc5ala left08:25
dc5ala joined08:26
harshpb left08:26
wubofeng joined08:27
wubofeng left08:28
kpreid joined08:30
mischat joined08:30
mischat left08:30
dag- joined08:30
master-lincoln joined08:30
jlebrech joined08:30
mischat joined08:30
pyhead joined08:31
dag-1 left08:31
gyre007 joined08:31
tatsuya_o joined08:31
marhaban joined08:32
zheng left08:32
Lujeni left08:33
bgerber joined08:34
francisfish joined08:34
pppaul left08:34
pppaul joined08:35
sq-one joined08:36
cmn joined08:36
EditThat left08:36
marcogmonteiro joined08:37
EditThat joined08:39
cjs /join #ubuntu08:39
Oops! Sorry.08:39
jmd joined08:40
ipalaus_ joined08:40
sq-one left08:40
overbythere cjs: ~_~08:40
false advertising was that?08:40
blackmatrix_ny left08:41
cjs Yes, I'm a very clever spambot. :-)08:41
overbythere :p08:41
Dulak /join #ubuntu08:41
It's not working.08:41
kini it's funnier when people leave out the slash by mistake rather than putting a space in front of it by mistake08:41
dag-1 joined08:41
kini then it really does look like spam08:41
overbythere I was on a network one time where the users thought they just had to say the channel name to get there08:42
I don't really understand some people's thinking08:42
Orbitrix joined08:42
maleknet left08:42
dag-2 joined08:43
neersighted left08:44
dag- left08:44
hagabaka left08:44
dag-1 left08:45
berserkr joined08:47
S0lign0c joined08:47
noisebleed joined08:47
noisebleed left08:48
noisebleed joined08:48
neersighted joined08:48
tvw joined08:48
_inc joined08:48
xiangfu left08:48
xiangfu joined08:49
gitinfo set mode: +v08:49
gyre007 left08:49
S0lign0c hi08:49
gitinfo S0lign0c: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.08:49
S0lign0c Can I make a git diff and edit with vim in the same time ?08:49
jmd S0lign0c: If you have multitasking operating system, then I suppose you can.08:50
S0lign0c :D, yes edit with the change, (+-), with diff colors08:51
?08:51
gitinfo set mode: +v08:51
tcurdt joined08:52
arvind_k left08:53
martinjlowm-lptp joined08:53
dr_lepper joined08:54
dr_lepper left08:54
dr_lepper joined08:54
maleknet joined08:56
dag-2 left08:56
hyperair joined08:57
dag- joined08:59
WillMarshall joined09:00
master-lincoln left09:02
EugeneKay S0lign0c - sounds like you're after "vimdiff"09:03
gldn joined09:04
gldn left09:04
dag- left09:04
pmatthews or mergetool09:04
maleknet left09:05
slide23 joined09:05
master-lincoln joined09:05
arvind_k joined09:06
bielewelt joined09:06
tqmz joined09:06
slide_ joined09:08
slide left09:09
slide23 left09:10
mklappstuhl left09:11
jmd Is there a way I can make git pull default to the --rebase option ?09:12
timoxley left09:12
BinGOs uses an alias for that.09:13
_ikke_ jmd: man git config09:13
gitinfo jmd: the git-config manpage is available at http://jk.gs/git-config.html09:13
_ikke_ jmd: pull.rebase09:13
BinGOs purl = pull --rebase09:13
pppaul left09:14
Fandekasp joined09:15
_inc left09:15
Dulak You can just set pull.rebase to true, why use a custom alias?09:15
gjoseph joined09:15
pppaul joined09:15
BinGOs because I don't like wtf gotchas09:16
lausi left09:17
lausi joined09:17
gitinfo set mode: +v09:17
BinGOs horses for courses, jumpers for goal-posts, each to their own. I just prefer to have them as two distinct operations.09:18
pmatthews also if you set the pull.rebase, can you specify the -p flag?09:18
maleknet joined09:18
djszapi joined09:18
archdori left09:18
marhaban left09:18
harish left09:19
Desproges about vimdiff, what the git equivalent to "svn diff -rPREV" ? (on a working directory clean )09:19
djszapi Hey! What is the reason behind that I can use the first 6-7 hexa value of a commit hash to identify the commit ? Why can I drop the remaining hexa values ? Could someone please help me with understanding that ?09:19
ndim left09:19
Grum djszapi: because sha1sums are quite unique and you'd need a million files on average to get a collision on sha's shorter than 8chars09:20
_ikke_ djszapi: Because in a single repo, the first values are enough to be unique09:20
Grum and git will scream at you when it has a collision :)09:21
Salonce left09:21
Grum or rather; when the shortened sha you use is not unique09:21
if you find a sha collision I think people pay good money for that :D09:21
Dulak pmatthews: don't think so, for that the alias would work, but pull.rebase is the same as 'git pull --rebase'09:22
Desproges it's not hexa (16 digits) but 36 digits, (so there is something like 36^6 possibility)09:22
intripoon_ joined09:22
Grum ^26 right? :p09:22
err 16 >.>09:23
djszapi Grum I can write a repo generator app where it collides :)09:23
so you said you would pay ? :)09:23
replore joined09:23
Grum djszapi: erm good luck doing that09:23
fission6 left09:23
dag- joined09:23
Grum and I wont pay, some institute on this world will I think :D09:23
djszapi just joking.09:23
Desproges a-z0-9 Grum09:23
dhruvasagar left09:23
Desproges oh now sorry you right09:24
0-9a-f09:24
Grum i'm confused how :p09:24
ay yeah indeed :)09:24
FauxFaux djszapi: https://blog.goeswhere.com/2010/12/git-set-commit-id/09:24
Grum djszapi: just saying right know there is no known sha collision (at least last i checked :D)09:24
flavius joined09:24
Desproges anyone for my question ? about vimdiff, what the git equivalent to "svn diff -rPREV" ? (on a working directory clean )09:25
intripoon left09:25
EugeneKay djszapi - !treeish09:25
gitinfo djszapi: What the heck is a "tree-ish"? Read 'man gitrevisions' and http://book.git-scm.com/4_git_treeishes.html09:25
Grum Desproges: what does that do?09:25
FauxFaux "HEAD" specifies the previous commit, if that's what you're after.09:25
dhruvasagar joined09:25
_ikke_ FauxFaux: previous?09:25
FauxFaux Most recent?09:26
EugeneKay FauxFaux - "current" commit. index would be your "next" commit.09:26
_Qman joined09:26
Desproges svn diff -rPREV returns the diff between the last and the previous commit (if we didn't modified anything)09:26
FauxFaux I would call the one in the index the current commit.09:26
EugeneKay It's not a commit yet :-p09:26
Grum Desproges: git diff HEAD^..09:26
arvind_k left09:27
djszapi Grum: thanks for the information.09:27
Grum: it means that md5 could also be truncated in certain cases out there ?09:27
Grum djszapi: no, git is special09:27
and it keeps track of if its unique09:28
oehman joined09:28
Grum so unless you build that system yourself, don't shorten hashes :)09:28
_inc joined09:28
Grum (and md5 has known collissions)09:28
EugeneKay djszapi - hash shortening is provided for convenience only, and is expanded to the full one. If a similar hash is encountered git whines about ambiguity and requires you to specify a few more digits09:28
Grum also FauxFaux; that is foul .... reallly really foul09:28
Desproges thanks Grum. In fact I want something more .. if I do "svn diff -rPREV path/to/file" I get the difference with the last modification of that file09:29
EugeneKay SHA1 has known weaknesses and a collision may be found, but none has yet to be encountered AFAIK.09:29
I expect git 2.0 or 3.0 to migrate to SHA-2 or even SHA-309:29
djszapi Grum: yes, obviously, but I do not see the differences between this solution and others out there.09:29
Grum Desproges: git diff HEAD^.. -- path/to/file :P09:29
djszapi I mean it is not unusual there are probably no collisions too chancy.09:29
Grum EugeneKay: yeah it will eventually migrate but that will be a pain in the ass09:29
Desproges that does not work Grum09:29
Grum Desproges: lemme see09:30
EugeneKay Grum - there is a repo version number which can be incremented. git-migrate(or such) to rebuild all repos with the new version, et voila!09:30
Grum it does work Desproges09:30
but you misphrased your question i think09:30
JeanMertz joined09:30
Desproges ok, I reformulate09:30
Grum I think you are looking for the 'last change of a particular file irregardless of which commit it is in'09:31
which unless that file is changed in the last commit, will not work for that file :)09:31
Desproges how can I replace : " git diff `git log /path/to/file | head -n2 && tail -n1 | awk '{print $2}'` /path/to/file09:32
Grum it works -- why replace it? :/09:32
EugeneKay Turn it into a git extension. vim ~/bin/git-foo, then run `git foo` ;-)09:33
djszapi left09:33
Desproges because it's a long command line09:33
EugeneKay Or, if you're esoteric like me, replace your `git` binary with a wrapper.09:33
Grum Desproges: long is bad? :(09:33
Desproges yeah I can do a script for taking a file and a number, but I thought there were something to do it already09:34
replore left09:34
Desproges well, 2 git command for one result :/09:34
EugeneKay What are you trying to get, exactly? The last diff of $FILE ?09:34
Desproges git diff `git log`09:34
Grum EugeneKay: yeah09:34
charon what's wrong with: git log -p -1 $file09:34
EugeneKay man git-log, look at the diff-generating options09:35
gitinfo the git-log manpage is available at http://jk.gs/git-log.html09:35
TomyLobo joined09:35
Grum charon: too short09:35
Desproges oh, very nice charon I think that's it !09:35
TNNUK joined09:35
Grum lovely, i didnt realize -<n> was added .. onmnom09:35
gitinfo set mode: +v09:35
Desproges mhhh, charon, have you some magic to delete the log line ?09:36
charon Grum: that's probably been there since day 1...09:36
Grum i call lies :P09:36
charon Desproges: huh?09:36
Grum charon: he doesnt want the header09:36
tcurdt left09:36
charon also note that in a mergy history, the -1 just picks a random* commit09:36
* ok you got me, not random but date-ordered modulo topology09:36
Grum really random not ^1? :p09:36
=D09:36
EugeneKay -N works just fine with !lol09:37
gitinfo git config --global alias.lol "log --oneline --graph --decorate"09:37
charon still, if you don't know the dates of your commits by heart and have merged two lines of history that both change the file, the choice will seem arbitrary09:37
Desproges date ordered is fine for me09:37
and I m not understanding yet the topology thing09:37
TNNUK With git 1.7.5.4; In the past when I've done "git checkout <branch>" where <branch> matches the name of a remote branch, it has automatically set a new local branch to track the remote. For some reason this has stopped happening and I have to manually tell it to track the remote, but only with one repository. Any ideas?09:37
EugeneKay The lol graph makes grepping history easy09:37
Grum Desproges: just dont do merges ;D09:37
FauxFaux high-fives Grum.09:38
charon Desproges: what's wrong with the header? you should probably configure your pager correctly, and then just fire up 'git log -p $file' so you can scroll down for further changes09:38
pppaul left09:38
TNNUK i.e. other repos in the same gitolite setup still work just fine09:38
ndim joined09:38
LiohAu_LiohAu09:39
pppaul joined09:39
Grum TNNUK: maybe you have multiple remotes that provide the same branch and thus it doesn't know which to pick?09:39
aristidesfl joined09:40
EugeneKay TNNUK - !repro the output of 'git branch -avv' and 'git remote -v'09:40
gitinfo TNNUK: Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting.09:40
Desproges What I m looking for is something like " git diff -l 3 /path/to/file" to see the differences of that file between the current one, and 3 modifications before09:40
cbreak-work left09:40
maqr left09:40
dr_win left09:41
_inc left09:41
Desproges so maybe what I wrote before can be good in a little script : " git diff `git log /path/to/file | head -n2 && tail -n1 | awk '{print $2}'` /path/to/file "09:41
EugeneKay Desproges - I would just do a log --graph -- $FOO and then plug the SHAs into diff manually, in all honesty.09:41
cbreak-work joined09:41
EugeneKay Less edge cases09:41
charon Desproges: except the && makes no sense there09:41
zivester left09:41
dr_win joined09:41
speakman !aliases09:41
charon also, in a properly organized git history you'll want to fire up gitk or similar anyway, and look at the commits themselves.09:41
EugeneKay speakman - !triggers09:41
gitinfo speakman: See http://jk.gs/git/bot/trigger.php09:41
Desproges giving one or more file to checks, and an extra param "$prev" to handle the number09:41
speakman thanks09:42
Desproges yes charon, - && + |09:43
pfFredd joined09:43
Desproges git diff `git log /path/to/file | head -n2 | tail -n1 | awk '{print $2}'09:43
arvind_k joined09:44
sdeboey joined09:44
Superlokkus joined09:47
whyking_ joined09:47
master-lincoln left09:47
_tasslehoff_ left09:48
pro_metedor joined09:48
weiyang left09:48
timoxley joined09:49
cortana2 joined09:50
papegaaij joined09:50
charon Desproges: i think i can properly word my gut feeling now. take a step back and think about *why* you want to compare the file N revisions back09:50
speakman Are there any "consensus" regarding "downstream" fork management with Git? I still can't really figure if I should rebase my local customized fork, or just merge continously from upstream. Ideas? Or better; Links?09:50
EugeneKay speakman - !best_practices09:51
gitinfo speakman: There is no one right answer for git best practices, but a consensus from #git is available at http://sethrobertson.github.com/GitBestPractices/09:51
charon Desproges: i suspect it's because those N revisions are tightly coupled, which would mean you don't separate commits at the right place09:51
EugeneKay speakman - how you merge / rebase / etc is up to you and the guy you're submitting patches / pull requests / etc to.09:51
cbreak-work left09:51
txomon left09:51
achadwick joined09:51
charon Desproges: if that's the case, perhaps you can learn about the history rewriting tools (commit --amend, rebase -i) to clean up such chains of half-done commits09:52
EugeneKay My preference is to branch where I branch from, then merge back in when I'm done with my branch. If I need to merge something in from the current 'master'(or 'dev') to make my feature work, then I do so. Other than that, KISS.09:52
charon Desproges: a month or a year on from now, that will make your history much easier to understand for yourself09:52
cbreak-work joined09:52
EugeneKay speakman - git-flow is a pretty good model that a lot of people seem to use, if not the shell commands themselves.09:52
Grum one of the true powers of it :D09:52
Desproges charon: today, it was just for seing the evolution and to check nothing was forgotten during merges. I agree I've lot of things to learn (and last time I tried to make a rebase -i , I didn't make it well , but I progress :)09:53
fisted joined09:53
slide_slide09:55
TNNUK EugeneKay: http://pastebin.com/YHig3zFH Cheers :)09:55
zivester joined09:55
timoxley left09:56
TNNUK Grum: only one remote. Tried with a fresh clone and had the same problem so it's not a local problem. Other people have the same issue too09:56
EugeneKay TNNUK - you probably want to use the third syntax of checkout; `git checkout -b foo origin/foo`.09:56
Desproges and also using --amend would be really interessing for me09:56
TNNUK EugeneKay: yes, that syntax does work. But the syntax I used in the paste worked until a couple of days ago09:58
EugeneKay: I can use the other syntax, but it doesn't sit well with me that something has broken09:58
EugeneKay TNNUK - there was some discussion about changing the default behaviour on the mailing list a few weeks back, I think this might have been affected. Poke at the changelog for git.git.... or don't use bleeding-edge ;-)09:59
dr_win left09:59
TNNUK EugeneKay: it works fine with another repo on the same gitolite setup, so I doubt it would be that09:59
shruggar I get a warm fuzzy feeling when I can use git to prove something correct :) After moving some changes into a branch, then merging that branch back into the master, git rev-parse HEAD@{2}: HEAD: gives two identical hashes, proving that I didn't change anything but the graph. Yum :)10:00
EugeneKay Probably little to do with gitolite, more to do with your local config10:00
_tasslehoff_ joined10:00
EugeneKay Pastebin your .git/config from the borked repo and the non-borked one ?10:00
TNNUK EugeneKay: same problem for other people on different machines too10:01
One min10:01
EugeneKay Well that is odd, then.10:02
Desproges left10:02
Dulak What is @{u}?10:02
EugeneKay Dulak - !treeish10:02
gitinfo Dulak: What the heck is a "tree-ish"? Read 'man gitrevisions' and http://book.git-scm.com/4_git_treeishes.html10:02
Dulak Thanks10:03
speakman EugeneKay: the problem comes when you manage a lot of customization which is not of interrest at all for upstream project. One could use quilt and version control a bounch of patches, but it seems a bit old-fashioned.10:03
timoxley joined10:03
ChaoWang left10:04
pppaul left10:04
EugeneKay speakman - eg, your fork should incorporate changes from upstream, but not the other way around?10:04
pppaul joined10:04
TNNUK EugeneKay: the .git/config's are the same :/ (appart from the branch names etc being different obviously)10:04
EugeneKay speakman - I would treat 'upstream' as a feature branch, and just merge it in to my primary branch regularly.10:04
TNNUK - well, I have nfi. Sorry.10:04
TNNUK EugeneKay: thanks anyway :)10:05
madsy left10:05
EugeneKay speakman - This is in fact what I do with my fork of Subsonic, where 'upstream' is git-svn.10:05
beautifulmind joined10:06
timoxley left10:06
subh joined10:06
speakman EugeneKay: Good point! Must run, bbl10:07
EugeneKay Is that a threat?10:08
Guest27784 left10:10
geb joined10:10
pppaul left10:11
pppaul joined10:12
slide23 joined10:13
dixel joined10:13
slide left10:15
gitinfo set mode: +v10:15
dixel Hello! Need some help: git log HEAD^ HEAD shows all history instead of last two commits - what can I do to fix this?10:15
ehsan left10:16
EugeneKay !dots10:16
gitinfo In the log family (git-log, gitk, etc.) A..B means "everything in B but not in A" [formally: ^A B] and A...B means "everything in A or B but not in both" [formally: A B --not $(git merge-base --all A B)]. An empty "side" of the dots implies HEAD, so 'git log master..' is very different from 'git log master'!10:16
EugeneKay Use .. instead of a space between them.10:17
dixel EugeneKay: thx =)10:17
EugeneKay You can also use HEAD^.. meaning "from HEAD^ to now". See also !treeish10:17
gitinfo What the heck is a "tree-ish"? Read 'man gitrevisions' and http://book.git-scm.com/4_git_treeishes.html10:17
EugeneKay tosses gitinfo a !botsnack10:17
cjs left10:17
EugeneKay Oh wtf, he doesn't work in /me? Bad bot!10:17
Fandekasp left10:18
shruggar does he even respond to !botsnack ?10:19
gitinfo Om nom nom10:19
dcarper joined10:19
dixel left10:19
Desproges joined10:20
Fandekasp joined10:20
tespezzo joined10:20
tespezzo left10:20
eijk joined10:21
maleknet left10:22
hroi joined10:22
hroi hi10:22
gitinfo hroi: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.10:22
hroi I just joined google codes.10:22
harish joined10:22
hroi and set up a project with git...10:23
pfFredd left10:23
hroi I'm wondering how I can now just push all my current code in there to get started...10:23
falena joined10:23
shruggar (does google code support git?)10:23
dcarper left10:24
TNNUK EugeneKay: I think it's info/refs in the repo :/10:24
ajaykools joined10:24
TNNUK EugeneKay: Some of the branches are missing from info/refs, there are some that *are* in there, which work10:25
EugeneKay Interesting.10:25
FauxFaux git add 70mb.txt && git commit -m "lol" literally hangs my q9600 / 4gb / ext4 / linux 3.2 (lolbuntu) machine for a couple of minutes. :s10:26
hroi: git remote add origin https://google/code/url/for/project && git push -u origin master10:26
f0i joined10:26
pro_metedor git submodule update10:26
fatal: Needed a single revision10:26
Unable to find current revision in submodule path 'xxx'10:26
whats going on?10:27
dag- left10:27
EugeneKay pro_metedor - !repro10:27
gitinfo pro_metedor: Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting.10:27
satyanash left10:28
pro_metedor I cannot get a submodule: this is the output https://gist.github.com/235850010:28
hroi FauxFaux: is origin my my local project source code folder?10:28
FauxFaux: how does git know what to copy over?10:28
_ikke_ pro_metedor: The people who updated the submodule forgot to push it or something like that10:28
TNNUK EugeneKay: git update-server-info in the remote repo fixed the info/refs file, but it looks like that was a symptom of the same problem10:29
Becuase it still doesn't work10:29
FauxFaux hroi: No, run those in the repo; 'origin' is just a (standard) name. 'master' is the name of the branch to copy onto google code.10:30
Bartzy joined10:31
Bartzy A bit unrelated to git itself, but maybe someone knows: When doing a pull request from a branch to another branch in GitHub, comments on the code on commits there vanishes once a user force pushes new commit history to the source branch10:32
Can I somehow see the comments? This is our code review process, so it's pretty lame that I c10:32
Can I somehow see the comments? This is our code review process, so it's pretty lame that I can't see the original comments I had on the code.10:32
FauxFaux #github10:32
Bartzy OK, thank you.10:33
maleknet joined10:34
WillMarshall left10:35
jceb left10:36
sattu94 joined10:40
hroi all repository packages, could do with a little less typing...10:42
how about... git syncup myfolder http://location ... (end of strory)10:43
netiru left10:43
hroi "git remote add origin ..." I ask, why the "remote" isnt it obvious?... why the "add" isnt that obvious too?10:44
rue_XIV left10:45
rue joined10:45
Guest7979 left10:46
honschu joined10:47
honschu_ left10:48
robotmay joined10:48
hroi FauxFaux: git remote add origin https://google/code/url/for/project && git push -u origin master ... doesnt work for me...10:49
FauxFaux: I guess I have to do something first... maybe register each file i want to be part of my git.10:50
iamjarvo1 left10:51
kadoban left10:51
brokenshakles left10:53
jceb joined10:53
davidcoallier left10:54
brokenshakles joined10:54
enmand left10:54
DarkAR joined10:55
davidcoallier joined10:55
canton7 hroi, yes, you push commits. If you haven't made any commits, git won't push anything10:56
hroi, !book is a good place to start with git10:56
gitinfo hroi: There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable10:56
iocor joined10:58
j0ran1 joined11:00
j0ran left11:01
vdv left11:01
zdk left11:02
hroi canton7: thanks, when i have time to read a book... man git, is interesting... especially the title "stupid content tracker" ... but I guess the user must be very knowledgable.11:04
gitinfo canton7: the git manpage is available at http://jk.gs/git.html11:04
pppaul left11:04
sbell joined11:04
tvw left11:04
tvw joined11:04
canton7 hroi, yeah. Sadly git isn't really something you can pick up without reading some sort of comprehensive guide11:04
sbell left11:04
TNNUK EugeneKay: argghhh; I had directory names matching the branch names11:05
TNNUK is so stupid11:05
pppaul joined11:05
EugeneKay !dashes11:05
gitinfo Use a double-dash(--) to separate refs from paths, especially when dealing with ambiguous file names. Ex: git checkout master -- origin (check out the file "origin" from branch "master")11:05
hyperair left11:05
j0ran1 left11:05
TNNUK EugeneKay: thank you for your help11:06
EugeneKay I suppose a 'ls' would have told me that in your pastebin :-p11:06
TNNUK EugeneKay: indeed. Sorry for wasting your time :-D11:06
TNNUK left11:06
EugeneKay shrugs11:06
guns left11:07
EugeneKay My other activity for the evening is getting stoned on pain pills and wishing my knee would STOP FUCKING HURTING.11:07
So, waste away!11:07
caseymcg left11:08
davidcoallier left11:08
hroi ok I just did a $ git commit -a ... then $ git push ... git reports everything up to date... an nothing new shows up on the remote server.11:09
LiohAu left11:10
EugeneKay 'git branch -avv'11:10
And !repro11:10
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting.11:10
oehman left11:12
oehman joined11:12
oehman left11:12
matthieu6371 joined11:14
matthieu6371 left11:15
hroi EugeneKay: thanks, here is the terminal... https://gist.github.com/235867211:15
Peste_Bubonica joined11:16
hroi EugeneKay: avhrr2vw is a new directory with some things in it.11:16
EugeneKay Can you please run: git branch -avv, and git remote -v, and add to the Gist?11:16
hroi EugeneKay: I simply want to push all of this up to google11:16
ok11:16
marthinal left11:16
hroi EugeneKay: https://gist.github.com/235867911:17
EugeneKay try: git push origin master11:18
hroi EugeneKay: ok finally git is doing something.. uploading it seems11:19
EugeneKay Yup.11:20
luke__ joined11:20
EugeneKay When it's done, create a new commit and then try: git push11:20
It should automagically know which remote(origin) and branch(master) you want.11:20
j0ran joined11:20
Fandekasp left11:21
hroi EugeneKay: autmagically :) like that word... but didnt feel like automagical11:21
EugeneKay The reason it didn't work the first time is because the original you cloned from didn't have any history to start with - normally, it "just works" with git push.11:21
pppaul left11:23
pppaul joined11:23
hroi EugeneKay: why doesnt anything show up on google codes source or download page?11:24
cmn I'm fairly certain you have to put tarballs by hand11:24
hroi EugeneKay: no, I see it now11:24
cmn: EugeneKay: can I symbolic link some local directories into the local source directory... and then git add that?11:26
EugeneKay No, git would track it as a symlink11:26
You can mv them into your repo and then symlink where they used to be to get the same sort of effect.11:26
dv310p3r left11:27
hroi EugeneKay: problem is I have a local directory called simply src/ and has a number of apps under it that I want all to be part of the same system.11:28
pppaul left11:28
pppaul joined11:28
maleknet left11:30
pyhead left11:31
pyhead joined11:32
enmand joined11:32
oriba joined11:32
hyperair joined11:33
pppaul left11:33
master-lincoln joined11:33
pppaul joined11:34
storrgie joined11:35
storrgie left11:35
pyhead left11:36
gchristensen left11:36
JackWinter left11:39
vervic joined11:40
iamjarvo joined11:40
master-lincoln left11:40
stroll2 joined11:42
litwol joined11:42
litwol hello11:42
gitinfo litwol: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.11:42
litwol O_O11:42
oh nice bot11:42
maleknet joined11:42
EyesIsMine joined11:42
litwol so i have a git branch checkout conflict. in master branch i have tarball extracted in sites/all/modules/contrib/ctools, in my work branch i replaced this tarball extract with git submodule. chances are i did it halfassed cause now i have a conflict... when i try to checkout master branch ("git checkout master") it aborts once merge hits the ctools directory.11:43
JackWinter joined11:43
kerrick joined11:44
bremner In http://paste.debian.net/162848/, 5ee29e4 is cherry-picked from 4220da4 and I verified they have the same patch-id. git cherry origin/master HEAD nonetheless reports 4220da4. Any ideas what could be going on?11:44
litwol it seems however, it is entirely possible to switch branch from master to work branch, while master has tarball checkout and work branch has git submodule11:44
berserkr left11:44
litwol so the tarball goes away and submodule comes in (when switching from master to work branch)11:44
but it is not possible to go in reverse (conclusion via aborted checkout)11:44
_Qman left11:44
Ph03b3 left11:45
litwol i have not tried any rebasing or whatever else is possible because i've never used more advanced techniques before, it is entirely possible they may be the solution to my problem.. right now i just dont know and too scared to screw up11:45
Kre10s joined11:45
berserkr joined11:45
ajaykools left11:46
litwol hopefuly some one here can advise what next step to try to resolve this, so i can reverse above process (ie checkout master branch, going from work branch which has gitsubmodule to master branch which has conflicting directory regular tarball extract which is tracked in repo)11:46
marhaban joined11:46
Kre10s I added a pibkey to keydir altered the config to allow RW on a repository, set up the remote in my local repo, but git pull asks for gitolites password not the private keys... why could this be?11:47
palyboy joined11:47
shruggar1 joined11:48
bremner ssh setup problem11:48
Kre10s: see the ssh troubleshooting doc on the gitolite site11:48
gjoseph left11:49
sitaram bremner: do either of those commits have a + or a - sign in front?11:49
Superlokkus_ joined11:49
bremner sitaram: a + for 4220da411:50
sitaram bremner: and I suppose if you reverse the arguments you get the other one with a + in front?11:50
dhruvasagar left11:50
shruggar left11:50
pppaul left11:51
Superlokkus left11:51
Superlokkus_Superlokkus11:51
_tasslehoff_ left11:51
bremner sitaram: if I reverse the arguments I get nothing. Is that unexpected?11:52
pppaul joined11:52
sitaram bremner: to me, yes but that doesn't necessarily mean much :)11:52
dhruvasagar joined11:52
Kre10s ahh I see the problem: remote: could not symlink gitolite-hooked11:52
pyhead joined11:52
Kre10s I guess the .ssh/authorized_keys isn't being updated.11:53
sitaram bremner: is it possible that one of them is reachable from *both* heads and the other is not?11:53
jbub left11:53
bremner sitaram: yes, that seems to be the case; 5ee29e is reachable from both, but 4220da4 only from HEAD11:55
sitaram bremner: yup; I just noticed11:55
bremner isn't that the normal case though?11:55
pfFredd joined11:55
bremner or maybe git-cherry does not expect upstream to be merged in?11:55
OOPMan left11:55
jbub joined11:56
Qoidnef joined11:56
sitaram bremner: I don't think that's normal but the point is that this is logical if you imagine the algo as "drop common ones then report what's left", but the dropping happens only pairwise11:56
binman-rt joined11:56
sitaram bremner: all the times I have used 'git cherry' have been on divergent refs11:57
reels joined11:57
pppaul left11:57
pppaul joined11:57
bremner sitaram: ok, I think this is enough of a clue for me to figure it out. Probably I have to script up a loop with git rev-list and git patch-id.11:57
thanks.11:57
sitaram bremner: cherry origin/master v1.4rc3-111:58
j0ran left11:59
ajaykools joined11:59
sitaram that's the last commit before you merged both sides11:59
you're welcome!11:59
j0ran joined11:59
tizzo-afktizzo12:00
binman-rt left12:00
sitaram bremner: if you rebased HEAD on top of origin/master, things would even out. I think12:00
but you've got merges; rebase is... unrepdictable with merges :)12:01
Kre10s: if it couldn't symlink something, the Unix permissions are borked.12:02
Qoidnef left12:02
jim0203 joined12:03
j0ran left12:04
michale joined12:04
litwol How do you guys resolve branch checkout aborts when branch being checked out has tracked code added after tarball export, while branches being switched from has that same directory tracked as submodule?12:04
cannonball joined12:04
mikewintermute joined12:05
jlebrechjlebrech|afk12:05
ph^ left12:06
bremner sitaram: your cherry works as expected, with a - in front of 4220d12:06
Bartzy Weird stuff - I had 2 branches on github, merged the via a pull request both, and now the commit history is not ordered right12:07
It is ordered from old to new:12:07
gchristensen joined12:07
Bartzy commit of branch 1 -> commit of branch 2 -> merge commit of branch2 -> merge commit of branch1. Why is that ? :\12:07
djszapi joined12:07
djszapi left12:08
sitaram bremner: which means my guess about the "algorithm" is correct or close enough12:08
:)12:08
_tasslehoff_ joined12:09
ph^ joined12:09
hroi left12:10
ph^ left12:10
davidcoallier joined12:11
n1x joined12:12
ph^ joined12:12
oehman joined12:12
pro_metedor hot to discard all changes up to the last commit ?12:13
how*12:13
Bartzy How do I see the parent branch of my branch ?12:14
Silex pro_metedor: you want to make it so your history only has one commit (the last one) ?12:14
pro_metedor nope, I just want to fall back to last commit12:15
Silex oh, "git reset --hard"12:15
but be cautious, that really lose changes12:15
n1x left12:16
pro_metedor I want the files that are one the "modified" section, to be brought back as they are on repo12:16
netiru joined12:16
pro_metedor I have some submodules attached so I need to be careful for them12:16
jceb left12:17
pro_metedor I know there is something with --cached word that works12:17
j0ran joined12:17
orkz joined12:18
orkz left12:18
_Vi left12:18
gusnan joined12:18
DarkAR left12:19
cbreak-work pro_metedor: git reset --hard works.12:19
Kre10s bremner, sitaram thanks.12:19
Silex you can also git checkout -- filename12:19
cbreak-work it will nuke all changed files back to the revision you specify, like HEAD12:19
dcarper joined12:20
orkz joined12:20
ajaykools left12:20
cbreak-work Bartzy: branches don't have parents12:20
do you mean upstream?12:20
Silex btw, what's the diff between "git reset --hard -- file" and "git checkout -- file" ?12:20
Bartzy cbreak-work: I mean the hash the branch was started from.12:21
cbreak-work Silex: one works, the other doesn't12:21
Bartzy cbreak-work: Is it possible to get that?12:21
jokar joined12:21
dwmw2_gone left12:21
cbreak-work reset --hard is reset in branch mode, it does not take single file arguments12:21
Bartzy: no12:21
Bartzy: git does not track that.12:21
Silex cbreak: oh, interesting. Thanks12:22
cbreak-work Bartzy: you can get the merge base relative to some other branch if you want12:22
jokar hello all12:22
jokar i need help about git12:22
_ikke_ jokar: !just_ask12:22
gitinfo jokar: You can just ask your question. If anybody knows the answer, they will answer soon (most of the time)12:22
jokar i'm a beginner in git12:22
dwmw2_gone joined12:23
jokar what should i do?12:23
_ikke_ !book12:23
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable12:23
_ikke_ Read that12:23
jokar gitinfo: excuse me can i send personal message?12:23
Bartzy cbreak-work: Hmm.. how ?12:23
_ikke_ jokar: gitinfo is a !bot12:24
gitinfo jokar: [!gitinfo] I am an IRC bot which responds to certain keywords to provide helpful(?) information to humans. Please see http://jk.gs/git/bot for more information about how to use me.12:24
dcarper left12:24
jokar hehe12:24
_ikke_ :can i send pm?12:24
cbreak-work Bartzy: man git-merge-base12:24
gitinfo Bartzy: the git-merge-base manpage is available at http://jk.gs/git-merge-base.html12:24
_ikke_ jokar: Nope, please keep it in here12:24
cccaldas joined12:24
jokar _ikke_: i have some persoanl question?12:25
_ikke_ jokar: Personal in what sense12:25
cbreak-work he wants to know your age.12:25
jokar _ikke_: i have some question about git and a book12:25
cbreak-work or bank account number12:25
jokar nope12:25
cbreak-work or hobbies12:26
_ikke_ jokar: So why is that personal?12:26
jokar _ikke_: i want translate a book about git in my native language12:26
but i didn't know anything about it12:27
is it good for developer12:27
_ikke_ jokar: https://github.com/progit/progit12:27
jokar: What is your native language?12:27
orkz left12:27
jokar _ikke_: persian12:27
michale left12:28
_ikke_ farsi?12:28
jokar yeah12:28
_ikke_ I can recommend progit12:28
and it's open source, so you can easily provide a translation12:29
jokar progit book?12:29
_ikke_ yes12:29
jokar _ikke_: how git help developer?12:29
cbreak-work it's an SCM, it manages source code12:30
jokar it have any interface?12:30
cbreak-work it's a multi-parallel temporal/spatial source manager12:30
yes12:30
it has a very nice command line interface12:30
jokar can you show me a output12:30
cbreak-work and a number of third party graphical user interfaces12:30
you can install it yourself12:31
subh left12:31
cbreak-work here's a short tutorial: http://schacon.github.com/git/gittutorial.html12:31
jsoa joined12:31
dbgster joined12:31
mgpcoe left12:31
timoxley joined12:32
jceb joined12:32
jokar cbreak-work: thank you12:33
ajaykools joined12:33
_ikke_ jokar: See, that's why we keep it in this channel12:33
jokar ok12:33
_inc joined12:34
netiru left12:37
snearch joined12:38
chronos joined12:39
cooloney left12:39
maleknet left12:41
tizzotizzo-afk12:43
hobbyist left12:43
litwol How do you guys resolve branch checkout aborts when branch being checked out has tracked code added after tarball export, while branches being switched from has that same directory tracked as submodule? This error happens: error: The following untracked working tree files would be overwritten by checkout:12:43
Bass10 joined12:43
FauxFaux That line had a lot of words not in the right order.12:43
glennpratt joined12:44
litwol yey finally an aknowledgement12:44
jlebrech|afkjlebrech12:44
litwol FauxFaux: gladly will reformat if i get some tips how it should be12:44
FauxFaux litwol: 1) Why are you trying to switch branches with uncommitted files?12:45
litwol FauxFaux: everything is committed.12:45
alberto56 joined12:45
litwol i can give full description if you're up for it12:45
with exact (not so long) list of steps taken to get to current state (ie, the conflict)12:46
FauxFaux You said that you have untracked files. Why are they not committed? If they were committed then you wouldn't get the message?12:46
macabre joined12:46
litwol no no12:46
everything is tracked12:46
i assure you12:46
jrots joined12:46
litwol let me elaborate12:46
FauxFaux Git disagrees.12:46
brentdanley_ joined12:46
brentdanley_ left12:46
litwol 1) i started with project repo (ie, origin/main). into it i introduces a directory with files via tarball extract. then i added those files to git (so entire directory and new files are tracked)12:47
2) i created new branch (work branch). in that branch i removed above tarball extract dir+files and replaced with git submodule. committed the work branch just fine.12:48
3) tried checking out back into master branch, conflict happened.12:48
Bartzy git reset is awesome12:48
thiago joined12:49
litwol FauxFaux: admittedly, to get submodule /contents/ into my repo i had to run git submodule update.... could it be that files pulled via submodule update are what being conflicted ?12:49
_inc left12:49
snearch left12:50
charon litwol: from the POV of the super-repo, the files *in* the sub-repo are untracked. (it merely tracks the fact that there's a submodule and its tip sha1)12:51
mercutio22 joined12:52
TeckniX joined12:52
diegoviola joined12:52
litwol charon: i c12:52
charon litwol: admittedly the submodule interface is rather rough if you remove/rename submodules. perhaps you can link up with the relevant devs on the mailing list to help improve it12:52
dwmw2_gone left12:52
netiru joined12:52
litwol actually12:52
i didnt think of this before...12:52
but ...12:52
litwol tries --force12:53
mercutio22 I would like to checkout an older version of my code because the newest changes are broken. How would I do that?12:53
maleknet joined12:53
EugeneKay mercutio22 - many different ways. git checkout -b oldversion $OLDSHA will give you a new branch, named oldversion, starting at $OLDSHA12:53
papegaaij left12:54
EugeneKay !fixup may be a good read for you, s well as the !book12:54
gitinfo So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions. For hints type !fixup_hints in IRC. Remember: if you have pushed already, there are only a few things you can do without !rewriting_public_history (type that for more info)12:54
There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable12:54
litwol this is nice12:54
jokar left12:54
litwol by employing --force i was able to coerse git into submission with the /desired/ endresult12:54
so overall i am happy12:54
BSaboia joined12:55
mercutio22 EugeneKay: thanks for the links12:55
Ryback_ joined12:55
dwmw2_gone joined12:55
mercutio22 EugeneKay: but yes, I want a new branch with an oldversion so I guess I will do the #OLDSHA thing12:56
babilen joined12:57
litwol FauxFaux: charon: thx guys. you got me thinking closer towards the solution and now all is resolved. much appreciated :)12:57
revagomes joined12:59
kerrick left13:02
DarkAR joined13:02
litwol left13:03
pppaul left13:05
ph^_ joined13:05
neurodrone joined13:05
kaen left13:05
ph^ left13:05
pppaul joined13:06
maxorator I want to move the whole root dir into one new dir in root dir, is it possible to make git understand those are not new files (so their history and diffs would still be intact)?13:07
ben_alman left13:07
FauxFaux maxorator: It'll work it out automagically. man git log -M13:08
gitinfo maxorator: the git-log manpage is available at http://jk.gs/git-log.html13:08
Chib left13:09
ybit left13:10
pppaul left13:10
pppaul joined13:11
tizzo-afktizzo13:11
saidi joined13:12
AaronMT joined13:13
pppaul left13:14
pppaul joined13:14
ben_alman joined13:15
aalex joined13:15
ybit joined13:17
alexisabril joined13:17
neurodrone left13:18
sbell joined13:19
fission6 joined13:19
tizzotizzo-afk13:20
changedNicksupasana13:20
upasanaupasna13:20
resmo left13:20
resmo joined13:21
vervic left13:21
Contex joined13:21
saidi left13:21
Element9 joined13:22
OOPMan joined13:22
EricInBNE left13:22
dv310p3r joined13:25
_tasslehoff_ left13:25
_Vi joined13:26
CannedCorn joined13:27
mrwalker joined13:28
mikos joined13:28
alberto56 left13:29
wbednarski joined13:30
sattu94 left13:30
williamcotton joined13:31
sbell left13:32
sbell joined13:32
kermit left13:32
kevwil joined13:33
aalex left13:33
Vortex34 joined13:34
kermit joined13:34
fayaz left13:34
t4nkd joined13:34
chrisgeorge joined13:35
netiru left13:35
Vortex35 left13:36
sbell left13:37
lyddonb joined13:37
ddenis joined13:37
RichardBronosky joined13:38
juanfer joined13:39
ddenis hi guys. How do I pass a rename threshold to git merge ? For git log and diff there is -M which works fine for me (-M80), but I for git merge I tried using -X rename-threshold=80 which still results in a conflict saying files were deleted on one side and deleted on teh other13:39
macabre^ joined13:40
satyanash joined13:40
brngardner joined13:41
oehman left13:41
ddenis sigh, I should read the output carefully before asking13:42
merge.renamelimit option is what I am looking for13:42
iocor left13:42
ISF joined13:42
dcarper joined13:43
macabre left13:43
iocor joined13:44
smw_ joined13:45
stkrzysiak left13:48
ehsan joined13:48
Maccer left13:48
hyperair left13:48
_ikke_ Ok, weird13:49
n/m13:49
xiangfu left13:51
ddenis hm, there is still one issue - the rename of one file is correctly detected by git log --name-status, but not by git merge with the same rename threshold13:52
dcarper left13:53
maleknet left13:55
arti_t joined13:56
Maccer joined13:56
mister_m joined13:56
Shusshu joined13:57
DarkAR left13:57
_inc_ joined13:57
ehsan left14:00
master-lincoln joined14:00
mercutio22 is there a way for me to find which was the last commit that modified a particular file?14:02
FauxFaux git log -1 file14:02
CannedCorn left14:03
gavin_huang left14:05
nimesh_accenture joined14:05
nimesh_accenture how do i get a list of remote branches in git?14:06
_ikke_ git branch -r14:06
gavin_huang joined14:06
nimesh_accenture no i want to clone a remote branch "git://gitorious.org/gstreamer-omap/gst-ducati.git"14:06
but not the master branch14:07
gavin_huang left14:07
zivester left14:07
gchristensen left14:07
_ikke_ git ls-remote14:08
gavin_huang joined14:08
zivester joined14:08
nimesh_accenture so what would be my command? git ls-remote git://gitorious........ ?14:08
_ikke_ yes14:09
tizzo-afktizzo14:10
nimesh_accenture i'm getting this:14:11
fatal: http://gitorious.org/gstreamer-omap/gst-ducati.git/info/refs not found: did you run git update-server-info on the server?14:11
what does that mean?14:11
_ikke_ Is it a dumb http server?14:11
(ie, not git enabled)14:12
hmm14:12
gitorious14:12
nimesh_accenture no git:// is blocked from where i work so i replaced git:// with http://14:12
_ikke_ You can't just do that14:12
Not if they don't offer the repo via http14:12
thelazydeveloper left14:12
nimesh_accenture git clone via http works14:13
netiru joined14:13
nimesh_accenture so the exact command that i gave was :14:14
git ls-remote http://gitorious.org/gstreamer-omap/gst-ducati.git14:14
_ikke_ I can't clone the repo via http14:14
williamcotton left14:14
arti_t left14:15
nimesh_accenture oh.. i didn't try on that particular repo... let me check14:16
variable Are there pre-svn-dcommit and post-svn-dcommit hooks ?14:16
marthinal joined14:16
_ikke_ nope14:17
zokko joined14:17
zokko hi guys14:17
gitinfo zokko: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.14:17
ph^_ left14:17
Xeon06_ joined14:17
nimesh_accenture the url is git.gitorious. ....14:18
coyotebush joined14:18
Xeon06_ Hey guys14:18
Kre10s left14:18
nimesh_accenture so now it works14:18
Xeon06_ I made a little mistake14:18
zokko i need to push all branches from local git repository to gitolite, should I use remote origin add?14:18
variable _ikke_: :( Is it possible to work around that? Do I need to make an alias and a script?14:18
gchristensen joined14:18
nimesh_accenture thx ikke14:18
Xeon06_ I merged a branch into master and PUSHED, and I shouldn't have. Is there any way to undo it?14:18
frogonwheels left14:21
Xeon06_ left14:21
apok joined14:21
Xeon06_ joined14:22
_ikke_ Xeon06_: !rewrite14:22
gitinfo Xeon06_: [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)14:22
duckxx joined14:23
zivester left14:23
mneorr joined14:24
zivester joined14:24
fission6 left14:26
eijk_ joined14:26
eijk left14:26
whyking_ left14:27
dkannan left14:27
zokko guys, how can i remove(delete) some branch ?14:27
tktiddle joined14:27
_ikke_ zokko: git branch -d <name>14:27
tktiddle if i delete some files locally will git delete them from the repo too?14:28
jmd left14:28
_ikke_ tktiddle: Not unless you commit it14:28
cmn tktiddle: see what git status says14:29
JohnBat26 left14:29
tktiddle so i can delete a file then do "git commit -am 'deleted a file'" ? and when i push it th file will be deleted on the server as well?14:30
zivester left14:30
cbreak-work tktiddle: no14:31
git stores history.14:31
d2dchat joined14:31
cbreak-work pushing only pushes new commits, new snapshots.14:31
the file will still be in the old ones.14:31
cmn deleting stuff from the history is the opposite of what you want to do with git14:32
or any VCS14:32
tktiddle OK but it will no longer show on the head rith? aI don't have to use "rm" to do what I described..14:32
rockets joined14:32
zivester joined14:33
lausi left14:33
lausi joined14:33
ehsan joined14:33
savr joined14:34
zivester left14:34
savr git add .14:34
isn't adding files o.014:34
herdingcat joined14:34
lausi_ joined14:34
lausi_ left14:34
cbreak-work savr: which files is it not adding?14:34
it is only supposed to add .14:34
zivester joined14:34
savr everything frankly... I think it is the git server14:35
let me test14:35
herdingcat left14:35
cbreak-work if you want to add everything14:35
use git add -A14:35
that will add everything in the current folder14:36
DarkAR joined14:36
savr aha14:36
eph3meral joined14:37
savr including subdirectories?14:37
cbreak-work no. But files in subdirectories14:38
bigkitty joined14:38
bigkitty hi all14:38
gitinfo bigkitty: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.14:38
savr pardon?14:38
canton7 savr, git doesn't track directories14:38
savr including the files in subdirectories ?14:39
zokko how about re-initalizing some repository under gitolite?14:39
i mean, i'd love to empty current repo and fill it with new data?14:39
savr seems like it was a laggy server14:39
Xeon06_ _ikke_: I don't really care about history, I just want to "unmerge" my branch from master14:39
tty_ joined14:39
cbreak-work zokko: just make a new repository14:39
zokko cbreak-work: but i want it to have same name14:40
cbreak-work savr: git does not track directories, so it adds only files. All files, wether directly or in a subdir.14:40
_ikke_ Xeon06_: Is the merge the last thing you did? (except for the push)14:40
savr :D14:40
cbreak-work zokko: then force push new history14:40
zokko maybe there is some way to do it without deleting and creating?14:40
savr what I wanted to hear14:40
thanks14:40
smw_ left14:40
savr left14:40
Xeon06_ _ikke_: In master, yes. I then went in another branch and committed some other unrelated things before noticing my mistake14:41
_ikke_ Xeon06_: ok14:41
so if you're on master, git log -1 shows the merge?14:41
arietis joined14:42
Xeon06_ _ikke_: It shows the last commit in the branch I merged into master14:42
ISF left14:42
sbell joined14:43
dagon666 left14:44
_ikke_ Hmm?14:45
Xeon06_ _ikke_: There no message explicitely saying I merged a branch, but the latest commit in my master branch is the latest commit in the branch I merged into it14:46
tty_ left14:47
traviscj left14:48
hobbyist joined14:49
d3vic3 left14:49
ddenis how can I display a content of a merge conflict? git show on the merge shows the whole change, but I want to see only my conflict resolution14:49
d3vic3 joined14:50
Xeon06_ _ikke_: Oh yes, okay git log says merge and the two hash tags14:51
tty_ joined14:51
tty_ left14:51
pfFredd left14:52
zokko guuys14:52
juanfer left14:52
zokko ive successfully push-ed all branches. how can i push tags?14:52
juanfer joined14:52
FauxFaux I'll give you one guess.14:52
pfFredd joined14:53
tty_ joined14:54
tty_ hi. i am running gentoo linux on a web server. i want to use this server also for hosting code/etc with git. 2-3 people will access/mantain the code/etc. i have installed git and i am trying to set up multiuser access. i keep getting "Exception caught during execution of ls-remote command" when trying to import to eclipse. i have also created a new linux user but i see no need for using git? am i wrong? i've also read somewhere about using ssh keys. any14:54
on this? thanks14:54
_ikke_ Xeon06_: Is that the last commit?14:54
zokko erm?14:54
Radium joined14:54
shruggar1shruggar14:54
shruggar tty_: !gitolite14:55
gitinfo tty_: Want to host as many git repos (and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite - Documentation: http://sitaramc.github.com/gitolite/master-toc.html14:55
XOXO1 joined14:55
tfcoding joined14:55
Xeon06_ _ikke_: yep! But it's been pushed14:56
stkrzysiak joined14:56
_ikke_ Xeon06_: Well. To undo it, you can do git reset --keep HEAD^14:57
ph^ joined14:57
zokko for i in `git branch -r|awk -F "/" '{print $2}'`; do git push origin tags/$i:refs/tags/$i; done14:57
_ikke_ Xeon06_: Then git push -f to force it onto the remote14:57
zokko doesnt work, how should i push those tags? :/14:57
_ikke_ git push -f origin master14:57
thirdknife joined14:58
Sitethief left14:59
coyotebush left14:59
pyhead left14:59
marduk joined15:01
Xeon06_ left15:01
marduk left15:01
whyking_ joined15:01
bizarrobrian joined15:02
f0i left15:02
mneorr left15:02
Xeon06_ joined15:02
joaoh82 joined15:02
juanfer left15:03
juanfer joined15:03
Xeon06_ _ikke_: I don't think it worked. Now when I do git log I see all the commits from my other branch that I had merged15:03
tty_ anyone knows how to have a multiuser git server on linux? read/write access.15:04
t4nkd If I did $git checkout -b my_local origin/her_remote -- made some changes, committed those, how do I push my changes back to origin/her_remote15:04
whyking_ left15:05
FauxFaux git push origin her_remote15:05
hobbyist left15:05
t4nkd cool ty15:05
PerlJam tty_: Just use gitolite.15:06
t4nkd I had to do `git push origin origin/her_remote' -- that sounds right?15:06
FauxFaux No.15:06
t4nkd Your command resulted in 'src refspec her_remote does not match any.'15:07
PerlJam t4nkd: you needed "git push origin my_local" originally I do believe15:07
FauxFaux I really have no idea what the default settings do, do I. Apart from the fact that I clearly have no idea what I'm talking about; git push origin my_local:her_remote # will probably work, and your command will probably have done nothing. But, y'know.15:08
THE DEFAULTS ARE TERRIBLE.15:08
ShooterMG joined15:08
bizarrobrian hi guys, we are migrating our repos to a different server...is there an easy way to force everyone's remote urls to point to the new server? (outside of a dns redirect which we can't do)15:08
PerlJam bizarrobrian: tell them to update their urls15:09
t4nkd Sorry, I'm not implying that you don't know what you're talking about, really15:09
beautifulmind left15:09
hotspants joined15:09
bizarrobrian PerlJam: yea, I just didn't know if I could push it out rather than having them do it manually15:09
ShooterM_ joined15:09
sq-one joined15:09
FauxFaux t4nkd: No, I was serious. The default for what that does is being changed, because it confuses everyone (especially me). I really shouldn't answer questions about push as I changed it ages ago and have completely forgotten how to use the old way.15:09
ShooterMG left15:10
FauxFaux man git config push.default tracking15:10
gitinfo the git-config manpage is available at http://jk.gs/git-config.html15:10
t4nkd Oh, true that, well damn15:10
hobbyist joined15:10
alberto56 joined15:11
ThomasLocke left15:11
rockets left15:11
beatak joined15:11
tizzotizzo-afk15:11
tty_ left15:11
mikepack joined15:12
tizzo-afktizzo15:13
iocor left15:13
juanfer left15:13
cbreak-work left15:14
milki left15:14
milki joined15:14
qt-x joined15:15
ceej joined15:15
mklappstuhl joined15:16
dwmw2_gonedwmw215:16
chrisshattuck joined15:17
TomyLobo left15:17
juanfer joined15:17
t4nkd Well, shit, I just changed the push.default to tracking15:18
And that seemed to be fine15:18
jaimedp joined15:18
el2ro left15:18
wbednarski left15:19
Xeon06_ left15:19
digiv left15:21
ehks joined15:21
flijten left15:21
leavittx joined15:21
joaoh82 left15:22
hobbyist left15:22
pppaul left15:22
pppaul joined15:23
hyperair joined15:24
Nightfire034 joined15:26
rchavik left15:27
kenperkins joined15:28
_sundar_ left15:28
traviscj joined15:30
pmatthews left15:32
hagabaka joined15:33
hagabaka left15:33
hagabaka joined15:33
arvind_k left15:34
babilen left15:34
troydm joined15:35
troydm ok git status show following:15:36
modified: bundle/vundle (untracked content)15:36
now how do i untrack that bundle/vundle15:36
which by itself contains another repository15:36
doing git rm bundle/vundle says error: Not owner15:36
kukks joined15:37
ajaykools left15:38
tsdh left15:39
yoklov joined15:39
cakehero joined15:39
duckx joined15:40
troydm ok found it git rm --cached15:40
it helped15:40
neurodrone joined15:42
axl_ left15:42
duckxx left15:42
pppaul left15:42
juanfer left15:42
ipalaus_ left15:42
pppaul joined15:43
orkz joined15:43
Poapfel left15:44
troydm left15:44
Poapfel joined15:44
juanfer joined15:45
axl_ joined15:45
luke__ left15:47
kpreid left15:49
brngardner left15:50
_iron joined15:50
Tocacar joined15:53
macabre^macabre15:55
wbednarski joined15:56
dhruvasagar left15:57
duncanm hey offby1, it's been a long time15:57
williamcotton joined15:58
dhruvasagar joined15:59
kpreid joined15:59
joaoh82 joined16:00
digiv joined16:01
angelsl left16:01
digivdigiv|meeting16:01
juanfer left16:02
bigkitty how to install git in centos?16:02
should i build it from source?16:02
berserkr left16:02
bigkitty what is the best solution to install git for centos?16:03
FauxFaux Ask the centos people. It's trivial to build from source if you have standard libraries and perl available, though. Possible without.16:03
ziggles joined16:03
juanfer joined16:03
Zenith77 joined16:04
robotmay left16:05
pro_metedor left16:05
jaimedp left16:05
pyhead joined16:05
pro_metedor joined16:05
pro_metedor left16:05
overbythere left16:05
kevwil left16:06
thirdknife left16:07
tfcoding left16:07
spaceonline left16:07
cakehero left16:08
airborn_ joined16:09
envi_ left16:09
eeadc left16:10
nb left16:10
tizzotizzo-afk16:11
envi_ joined16:11
ShooterM_ left16:12
mishok13 left16:12
ShooterMG joined16:12
SimonNa joined16:14
XOXO1 left16:14
cccaldas_ joined16:15
glcrazy joined16:16
nb joined16:16
iocor joined16:16
psoo left16:16
pppaul left16:17
dc5ala left16:17
pppaul joined16:18
ipalaus_ joined16:18
apok left16:18
cccaldas left16:19
gavin_huang left16:20
soulcake joined16:20
mritz joined16:20
offby1 la la la16:21
duncanm: that's all I know how to say16:21
parcs` left16:22
pppaul left16:23
aristidesfl left16:24
pppaul joined16:24
mklappstuhl left16:25
macmartine joined16:25
fisted_ joined16:25
SkAzZ joined16:26
lausi left16:26
fisted left16:26
babilen joined16:26
pppaul left16:27
pppaul joined16:27
reels left16:28
Carraway joined16:28
giallu left16:28
notola joined16:28
ipalaus_ left16:28
coyotebush joined16:28
ipalaus_ joined16:30
achadwick left16:31
felgru joined16:31
master-lincoln left16:32
lausi joined16:32
pppaul left16:32
pppaul joined16:32
freeed joined16:33
williamcotton left16:33
ipalaus_ left16:33
Desproges left16:34
SegFaultAX|work joined16:34
jceb left16:35
parcs` joined16:35
apok joined16:35
troulouliou_dev joined16:36
alberto56 left16:36
noisebleed left16:36
troulouliou_dev hi "git push origin :mybranch" , is the real way to delete a remote branch on the public repo ?16:37
Araxia joined16:37
w0ng left16:37
w0ng joined16:37
FauxFaux troulouliou_dev: Or git push --delete origin mybranch, if you'd prefer.16:37
n1x joined16:37
Samual left16:38
codewrangler joined16:38
teotwaki left16:38
troulouliou_dev FauxFaux, and if i deleted a branch localy with git -d -r origin/mybranch ; is there a command to push this action ?16:39
mklappstuhl joined16:39
matthiaskrgr left16:39
troulouliou_dev git branch -d -r origin/mybranch i mean16:39
FauxFaux Don't fiddle with things inside origin/, it'll just confuse things.16:39
stkrzysiak left16:40
netiru left16:40
stkrzysiak joined16:41
yoklov left16:42
dzonder joined16:42
troulouliou_dev ok16:43
thanks FauxFaux16:43
thelazydeveloper joined16:43
pyhead left16:45
mikewintermute left16:45
Radium left16:45
Per4u3e joined16:45
Samual joined16:45
ins\ joined16:46
dreiss joined16:46
matthiaskrgr joined16:47
kpreid left16:48
usmanity joined16:49
rook2pawn joined16:49
rook2pawn i added Thumbs.db to my .gitignore and it a /img/foo/Thumbs.db still shows up in git status16:50
storrgie joined16:50
rook2pawn i then created a .gitignore_global and added Thumbs.db there, and git status still showed this file16:50
Evanlec gentlemen, whats the proper procedure for setting up a git repo where one user is desginated as "administrator" and must sign-off on commits before they're allowed to be merged ?16:50
storrgie left16:50
cortana2 rook2pawn, did you previously commit it? if so you have to tell git to stop tracking it (git rm it then git commit)16:50
Evanlec rook2pawn: if the file was being tracked before you made the .gitignore then it will still be tracked16:50
rook2pawn Evanlec: simply make that users's branch the one to go to production with or pre-production16:51
Evanlec rook2pawn: thus, you have to do what cortana2 said16:51
rook2pawn Ah ok16:51
cortana2 Evanlec, the exact procedure depends on your requirements. where i work each developer has a git repo and pushes their work out in branches, asks for a review, and i merge and push to the main repo if acceptable16:51
Evanlec rook2pawn: whats to stop someone from making commits to that branch?16:51
rook2pawn Evanlec: so what im saying is suppose you have 3 developers, one of whom has the final word16:51
Evanlec: each developer has his own branch of each other's repos16:52
Evanlec cortana2: yes thats the kind of setup I want16:52
rook2pawn when each dev makes a change, eachh other developer can pull those changes into their local branch of that developers changes16:52
cortana2 but you could have one repo for review requests and have everyone push to different branches there, rather than each developer having their own repo, for instance16:52
there are a lot of variations on this theme16:52
GodEater joined16:52
kpreid joined16:52
GodEater left16:53
GodEater joined16:53
Evanlec humm16:53
w0ng left16:53
cortana2 hm. are you asking about how you can _prevent_ another user from pushing to your main repo?16:53
Evanlec i'd prefer one repo16:53
storrgie joined16:53
rook2pawn then when the "master" dev makes teh call, he/she can pull those changes from the local branch of an approved dev's work into his own main branch16:53
Evanlec with branches for each user...16:53
cortana2: yea i guess16:53
cortana2 ok well... if you use ssh to contact your repos then it's a matter of setting up filesystem permissions so that only you can write to the main repo16:53
kevwil joined16:53
robotmay joined16:53
w0ng joined16:53
Evanlec okay, so i should use unix rights instead of gitosis or gitolite?16:54
cortana2 there's a thing called 'gitolite' which exists to make this easier... you can specify who can read/write to various repos by specifying it in a file rahter than having to screw around with the filesystem permissions manually16:54
storrgie left16:54
orkz left16:54
rook2pawn Evanlec: you could delete the branch or screw it up, it doesnt matter, the "master" dev wont have to pull that branch into his own16:54
cortana2 or is it called gitosis these days?16:54
Evanlec cortana2: how do i make it where you can see the "signed-off by: somebody" in the commit logs16:54
cortana2 ah16:54
francisfish left16:54
cortana2 i don't use that16:54
gusnan left16:54
rudi_s cortana2: !gitosis16:54
gitinfo cortana2: gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite16:54
Evanlec the "master" branch is on the server16:55
i mean16:55
cortana2 thanks rudi_s16:55
rudi_s np16:55
Evanlec thats where the repository is hosted, from a bare git repository in a repo.git dir16:55
Kaisyu joined16:55
francisfish joined16:55
rook2pawn ok, so say you have 3 developers, 1 of which is the authority, call them A, B, C where C is the "authority dev"16:55
Evanlec okay, gitolite then16:55
cortana2 Evanlec, but i think when you commit you add -s and it adds the message. perhaps you do that when you commit the merge16:55
it would imply you use --no-ff too16:55
rook2pawn A has a branch of B and C. B has a branch of A and C. C has a branch of A and B16:55
Evanlec rook2pawn: yea, that is our setup, 3 people, 2 are developers , the 3rd is company owner -- but not a programmer -- he just wants to be able to approve changes before they go live16:56
jlebrech left16:56
rook2pawn Yes, so C simply git pull origin "devA branch"16:56
aristidesfl joined16:56
pppaul left16:56
rook2pawn then the changes A made to his branch get placed on C's plate16:57
Evanlec rook2pawn: from C's local machine?16:57
rook2pawn yes16:57
then if C likes it16:57
Evanlec but then C still has to push it16:57
aristidesfl left16:57
pppaul joined16:57
Per4u3e left16:57
rook2pawn what16:57
C has to push what16:57
Mowsh joined16:57
cortana2 Evanlec, it's possible to set it up so that A can fetch from C's local repo on his/her machine16:57
Evanlec the branch16:57
err16:57
the commit, idk16:57
apok left16:58
cortana2 but i think it's more usual that C would push their work to their public repo for review16:58
troulouliou_dev is it possible to pull from origin/master to all the local branch in one command ?16:58
cortana2 this workflow is explained in the git user guide i think16:58
revagomes left16:58
Evanlec that seems kinda silly though, we dont want access to eachother's local machine, only the server16:58
apok joined16:58
rook2pawn if C likes the cahnges of A, then C can pull that branch after inspecting A on his local (C) machine16:58
_inc_ left16:58
sdeboey left16:59
Evanlec rook2pawn: C pulling branches to his local machine does not make them live on the server (web and git server)16:59
cortana2 Evanlec, see chapter 4 of http://schacon.github.com/git/user-manual.html#public-repositories16:59
macabre^ joined16:59
stkrzysiak_ joined16:59
stkrzysiak_ left16:59
macabre left16:59
francisfish left16:59
stkrzysiak left17:00
dzonder left17:00
stkrzysiak joined17:00
Evanlec cortana2: hmm, dont want this to be public17:00
rook2pawn Evanlec, that's right, obviously your deploy machine will have its own git repo that simply pulls17:00
Evanlec only accessible to users with SSH acces17:00
cortana2 Evanlec, it doesn't mean "public" like that unless you set it up like that17:01
rook2pawn and the deploy machine is linked to pull from C, and you pull that switch when you want to17:01
Evanlec rook2pawn: on the single server we have, the master repo is in a bare repo dir (project.git/), and there's a working copy clone that is the code in production (via web)17:01
cortana2 e.g., here on the server we have /srv/repos/project/integration.git (which is the main repo) and /srv/repos/project/$USER.git (which each user pushes to when they want their work to be merged). see/17:02
Evanlec cortana2: oh, each user has their own repo...hmm17:02
cortana2 filesytem permissions mean that each USER repo is only writable by the user, and the integration repo is only writable by me and the other people who review17:02
pppaul left17:02
cortana2 yeah. you could just have one repo for reviews, and users push to different branches17:02
rook2pawn the chapter you should read is book.git-scm.com/3_distributed_workflows.html17:02
Evanlec hmm17:03
cortana2 IME that requires more from users because they have to actually do their work on different branches and not step on each other's toes17:03
samba_ joined17:03
pppaul joined17:03
Evanlec well there's like I said, only 3 people right now using git on this project17:03
rook2pawn the whole point is that people get updates from other people but those updates dont go their own work, they go to a local named branch (remotes)17:03
cortana2 yeah but that's no reason not to set it up properly :)17:03
rook2pawn 3 people is PLENTY to do it this way17:03
Evanlec right17:03
cortana2 yeah. it's never too early to get your infrastructure sorted out properly17:04
Evanlec "this way" meaning seperate repos, or seperate branches for each user?17:04
rook2pawn and then after they inspect it on their own machine they can merge that result back into their own local master17:04
basically for 3 dev's we are talking about 6 total branches17:04
kadoban joined17:04
rook2pawn 4 devs (a situation i had last year) we had 12 branches17:05
Evanlec and 1 repository?17:05
rook2pawn 4 repositories.17:05
3 were forks17:05
Evanlec no, not for 417:05
rook2pawn 1 was master17:05
Evanlec for 317:05
JohnBat26 joined17:05
rook2pawn oh for 3 its 1 master, 2 forks17:05
Evanlec 3ppl you had 3 repositories on server?17:05
rook2pawn on github17:05
cakehero joined17:05
Evanlec hmm17:05
BSaboia__ joined17:05
Evanlec we'r not using github at the moment...17:05
rook2pawn basically if you have k devs, each dev has k-1 branches17:05
Evanlec i could try and pitch that but17:06
yoklov joined17:06
pfFredd left17:06
Evanlec right now its just git over ssh to our web/git/etc server17:06
cortana2 IMO that is overcomplicating it... i didn't like people pulling from each other unless they were actaully working together on the same thing17:06
rook2pawn cortana2: yes we had 48 hours in last year's node knockout with 4 devs on the same thing17:07
Evanlec yes simple is better, especially since the owner is brand new to git17:07
rook2pawn every minute counted17:07
cortana2 it results in them incorporating some other random developer's work without that work necessarily being ready17:07
rook2pawn we were on IRC and i would be like OK guys check out my branch17:07
cortana2 Evanlec, check out those two links... once you've read them then these ideas should seem much less complex17:07
Evanlec rook2pawn: development with this project is not nearly that fast paced17:07
dwmw2_gone joined17:07
rook2pawn they would checkout my branch and when the leader liked it, and then made a change, the other devs pulled from him, and by transitivity, got my changes17:07
Evanlec cortana2: k17:07
coyotebush left17:07
w0ng left17:08
rook2pawn the nice thing is that changes are trasitive, if C likes B and then C also makes his own change17:08
Evanlec rook2pawn: did these people checkout your branch over ssh? you gave them ssh access or using git daemon?17:08
rook2pawn then A pulls from C, A now has B's work17:08
dwmw2 left17:08
notola left17:08
rook2pawn no, everyone connected to github17:08
and obviously its all free17:08
Evanlec Oh right17:08
humm17:09
w0ng joined17:09
BSaboia left17:09
rook2pawn it literally took me half an hour to get this setup17:09
coyotebush joined17:09
rook2pawn git remote add and read that chapter17:09
Evanlec boss wouldnt want this on public github, but might shell out $ for private github17:09
rook2pawn yeah, i pay $8 or so for 5 private repos17:09
Evanlec rook2pawn: k17:09
rook2pawn: not bad17:09
jameswarren left17:09
TomyLobo joined17:10
tyatpi_ left17:10
rook2pawn thinking of making a 5 minute video on how to set this all up17:10
segher left17:10
jrots left17:11
w0ng left17:11
revagomes joined17:11
Evanlec rook2pawn: github docs dont explain this?17:11
brngardner joined17:12
rook2pawn they do but i think videos explain it without having to read? it just makes it easier perhaps17:12
and to also realize the sheer power this way has over every other setup17:12
Evanlec rook2pawn: yea, you should do that17:12
rook2pawn the other setups actually don't make ANY sense now , i mean, 0 sense17:13
pppaul left17:13
segher joined17:13
sq-one left17:13
Evanlec rook2pawn: is this what i should be reading/following? http://book.git-scm.com/3_distributed_workflows.html17:13
pppaul joined17:13
w0ng joined17:13
FernandoBasso joined17:13
rook2pawn yes17:13
Evanlec k17:13
rook2pawn especially the part after "small closely knit group"17:14
segher left17:14
rook2pawn that is the crux of it17:14
melvinram joined17:14
FACEFOX joined17:14
FACEFOX left17:14
segher joined17:14
rook2pawn learn git remote and its options so you can successfully see you are creating remotes that are actually hooked up and wired17:15
and git merge is essential here as well17:15
FACEFOX joined17:15
FACEFOX left17:15
LucasTizma left17:15
Evanlec rook2pawn: okay, but lets say we dont have github, how can I pull from dev B's local repo17:15
?17:15
rook2pawn i have no idea, sorry17:15
Evanlec have him run git daemon17:15
damnit17:15
melvinram I have a git repo, I made some changes and did git add . . What I actually needed to do was stash my changes, create a new branch, unstash and commit into that branch. How do I undo my git add . ?17:15
LucasTizma joined17:16
elijah joined17:16
stkrzysiak left17:16
Evanlec melvinram: git reset i think17:16
rook2pawn git reset HEAD17:16
Evanlec or that17:17
machine2 joined17:17
melvinram will that remove the changes I staged?17:17
PerlJam Evanlec: you can use local file system operations, direct ssh, or you can setup gitolite (for instance)17:17
melvinram I don't want to loose my changes.17:17
I just want it to be unstaged17:17
will git reset HEAD do that?17:18
PerlJam melvinram: just create the new branch and commit the changes already in the index to that branch17:18
ISF joined17:18
PerlJam melvinram: git checkout -b foo; git commit; # done.17:18
Evanlec PerlJam: local file system operations? I dont think that would work...17:18
PerlJam: and i dont think that dev B wants to give me SSH access to his personal machine17:19
PerlJam Evanlec: personally, I like gitolite.17:19
Evanlec PerlJam: alright i'll look into gitolite then, it solves this issue?17:19
melvinram PerlJam: I can do that? I can just stage a file in one branch and commit in a new branch?17:19
joebodo_ joined17:19
Evanlec PerlJam: yea, are you sure git will let him do that since his index is dirty?17:20
PerlJam melvinram: unless I've missed or misunderstood something, yes.17:20
alberto56 joined17:21
PerlJam melvinram: you don't stage anything "in a branch"; It's just staged for commit. Which branch you commit to can be changed by checking out the appropriate branch17:21
melvinram interesting17:21
that is pretty cool17:21
bgerber left17:21
dr_win joined17:22
cortana2 left17:22
Evanlec PerlJam: yea thats neat, i did not know one could do that17:22
PerlJam: if you have unstaged changes, it will complain if you try switch branches then won't it?17:23
segher left17:23
PerlJam Evanlec: yes.17:23
Evanlec kk17:23
PerlJam Evanlec: but that's what stash is for :)17:23
iocor left17:23
Evanlec righto17:23
duncanm offby1: heh17:23
Evanlec I usually use stash for that17:23
joebodo_ I have forked an opensource project and have made changes that the project owner would like to take. I also have personal changes that I would like to keep. How can I manage both personal and project changes. Should I rebranch my own copy and make changes there?17:23
eeadc joined17:23
Evanlec but, staging and creating new branch + commit is an alternative that I didnt know about17:23
ISF left17:24
revagomes left17:24
PerlJam Evanlec: yeah, it's common because of confusion around branches17:24
sdeboey joined17:24
Evanlec PerlJam: yea, git's lightweight branches are awesome17:24
oohahh joined17:24
frnkkpp joined17:24
PerlJam thinking things like "I'm in a branch" perpetuates the confusion.17:25
Evanlec PerlJam: I tried mercurial for a while, and realized it totally lacked lightweight branching like git and I said F this17:25
hobbyist joined17:25
Evanlec to branch in mercurial you have to make an entire copy of the tree17:25
tyatpi_ joined17:25
PerlJam yep, just like svn17:26
Evanlec which seems stupid to me, copying directories is what we did before version control systems17:26
sdeboey left17:26
PerlJam (I assume hg has the same optimization that svn has so that it doesn't *actually* copy the whoel thing)17:26
Evanlec version-control is designed to eliminate this clutter17:26
PerlJam: oh ok, so yea at least you're not wasting disk space, but still adding clutter17:26
yoklov left17:26
yoklov joined17:27
shruggar left17:27
gitinfo set mode: +v17:27
dzonder joined17:27
Evanlec I love it, our codebas is filled with index.php, index_before_JK.php, index_old.php, index_blah.php type filename copies17:27
makes me cringe17:27
mikewintermute joined17:27
Evanlec and want to cry17:27
mikewintermute left17:27
PerlJam yeah, I still can't believe people develope that way.17:28
Evanlec yea, its appauling, probably i wasnt suprised because its php ;p17:28
aristidesfl joined17:28
superdmp joined17:29
Evanlec the boss then decided he wanted to approve changes before they go live, so he made a dev/ folder and staging/ folder17:29
basically just more copies of the codebase17:29
LucasTizma left17:29
Evanlec ugh17:29
tatsuya_o left17:29
tktiddle left17:29
tvw left17:29
superdmp I have made a new branch locally, and some changes in it that I have committed; now I wish to push them to github17:29
PerlJam at least he was trying to move in the right direction even if he was a little misguided17:29
marcogmonteiro left17:30
superdmp of course github doesn't know yet about my branch17:30
tatsuya_o joined17:30
superdmp so I can't just push, can I?17:30
PerlJam superdmp: sure you can, you just have to be a little more verbose about it17:30
superdmp I have to tell git that I need a new remote branch- correct?17:30
Evanlec PerlJam: yea, i explained git to him, sent him a video and some reference material, he seems to be quite interested now thank god17:30
PerlJam superdmp: "git push -u origin branch"17:30
Vampire0_Vampire017:30
superdmp where 'branch' is the name of the new branch?17:31
gitinfo set mode: +v17:31
Evanlec superdmp: yar17:31
ntelford is there a way to revert all the commits from one branch that exist within another? i.e. "revert all intersecting commits"?17:31
superdmp fantastic, thanks all17:31
PerlJam superdmp: after that, a plain "git push" should work17:31
superdmp this must be the most immediately helpful IRC channel of all the ones I use17:32
PerlJam ntelford: that's an odd request. What happened? :)17:32
Evanlec ntelford: git doesnt really work like that, those commits aren't copied between branches (duplicated)17:32
Fullmoon left17:32
Nightfire034 left17:32
ntelford PerlJam, someone merged a branch to master that wasn't ready to be merged and we need master to be clean so we can apply hot-fixes17:32
Evanlec ntelford: commits shared by branches are simply commits before the branch was made17:32
PerlJam ntelford: was it a fast-forward merge?17:33
ntelford PerlJam, I don't believe so17:33
zivester left17:33
hobbyist left17:33
PerlJam ntelford: then you can reset master to just before the merge commit17:33
kevlarman ntelford: you can revert the merge commit17:33
but then future merges won't bring in those commits17:33
ntelford PerlJam, what about all the other merges/commits that have taken place since then?17:33
Evanlec revert or reset, either one17:33
PerlJam ntelford: if it was a fast foward merge, you can do the same thing, but you'll have to check th reflog for the right commit.17:33
ntelford hmm17:33
tatsuya_o left17:34
PerlJam ntelford: Hmm.17:34
Evanlec ntelford: oh, well in that case you'll have to cherry-pick those new commits into a temporary branch first i think17:34
kevlarman ntelford: to remerge it you'll have to revert the revert commit, then do another merge17:34
Superlokkus left17:34
PigeonFriend left17:34
Evanlec I dont know actually17:34
Superlokkus joined17:35
PerlJam ntelford: start by reverting the merge commit and see where you need to go from there.17:35
Radium joined17:35
tewecske joined17:35
pikpik joined17:36
mister_m left17:36
phishy joined17:36
LucasTizma joined17:38
berserkr joined17:38
charon ntelford et al: after reverting a merge, you'll probably want to rebase the topic (that was merged earlier) to retain your sanity. otherwise git will think the topic was already merged, and get all confused17:38
jrots joined17:39
williamcotton joined17:39
Russell^^ joined17:40
cmn see http://opensource.apple.com/source/Git/Git-26/src/git-htmldocs/howto/revert-a-faulty-merge.txt17:40
charon heh. i wanted to make a "but but but apple is evil" comment, but it's actually an email from linus.17:41
FACEFOX joined17:41
kevlarman charon: just reverting the merge before re-merging seems easier17:41
kevlarman has some really rebase-happy coworkers17:41
charon kevlarman: my point is that after the revert, git will be confused.17:41
cmn yeah, it's the first link that comes up when you ask google for the title17:41
charon trust me, or go try.17:42
kevlarman: it's different if you make the merge disappear (e.g. with reset), but reverting it does not change the effects the merge has on *topology*, which causes problems later.17:42
kevlarman charon: such as?17:42
PerlJam charon: good point17:42
charon assuming topic has not been developed since the merge, every commit in topic is now an ancestor of master17:42
pantsman joined17:43
pantsman left17:43
pantsman joined17:43
charon so a subsequent merge will think it's fully merged already, and do nothing17:43
if you throw out the assumption it gets even funkier17:43
kevlarman charon: that's what the second revert is for17:43
charon with merge trying to apply only the later half of the history17:43
kevlarman right before a second merge17:43
mysphyt joined17:43
charon kevlarman: merge only considers the heads you give it, and the merge-base. merge-base only considers the shape of history, it completely ignores reverts17:44
magnus_ left17:44
iocor joined17:44
kevlarman charon: i know17:44
arti_t joined17:45
fo_x86 left17:45
magnus_ joined17:45
kevlarman charon: so you have a bad merge, then a revert, then more work on both branches, then a revert of the original revert commit, then a second merge17:45
Evanlec charon: what do you mean by 'rebase the topic' what is the topic referring to?17:45
dr_win left17:46
charon Evanlec: the branch that was merged17:46
superdmp what is it called when I want to checkout from the remote an old version of the code, for a particular commit?17:46
dr_win joined17:46
charon kevlarman: ah, i see. ok, that would work. perhaps the history ends up being somewhat confusing, but meh.17:46
Evanlec charon: ok17:47
FauxFaux superdmp: "git checkout nameofcommit"; you'll !detach head17:47
gitinfo superdmp: [!detached] A detached HEAD occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach17:47
alexisabril left17:47
krosenbl left17:47
Kaisyu left17:47
ghvandoorn joined17:47
superdmp so pointing at a branch means pointing at the latest version of that branch? rather than just being anywhere within it?17:48
frnkkppfrnkkpp_on_drugs17:48
cbreak a branch is a label for one singular commit17:48
charon superdmp: it literally refers to the branch *name*, as opposed to a specific commit by *sha1*17:48
ntelford is it possible to have a branch that looks like it pushes to two remote branches?17:48
krosenbl joined17:48
FauxFaux ntelford: Nope.17:48
superdmp ok, thank you17:48
FreeArtMan joined17:49
mysphyt Hey, folks. My post-update hook doesn't seem to be firing on a remote repo after I push to it. It's named post-update and is readable and executable to all. Any guesses where to start looking for the problem?17:49
ntelford hmm17:49
jameswarren joined17:49
mischat left17:50
pantsman left17:50
bgerber joined17:50
ajpiano left17:51
EugeneKay mysphyt - insert an 'echo "This is the remote post-update hook"' at the top of the hook. It might be running, but exiting poorly.17:51
n3m joined17:51
dvaske left17:51
ajpiano joined17:51
rurufufuss left17:52
mercutio22 left17:52
voidx joined17:52
toothr left17:52
sdeboey joined17:52
phishy left17:52
charon superdmp: note that a branch itself is really a pointer to its tip ("newest") commit, so if HEAD points at a branch, then it can also be used to refer to that commit in contexts where a commit can be specified (i.e. almost everywhere)17:53
w0ng left17:53
mysphyt EugeneKay--ha! I left the default command in the script, and it looks like that's causing it to fail. I had my debug message right after that, assuming it would be fine. Which, of course, it wasn't.17:53
mercutio22 joined17:53
mysphyt I always seem to find I'm just a bit dumber than I expect. :P17:53
superdmp charon: cheers17:53
magnus_ left17:53
mcluskydodallas joined17:53
EugeneKay "You can try to make a thing foolproof, but they will always build a better fool"17:53
w0ng joined17:54
dstorrs joined17:54
magnus_ joined17:54
mysphyt EugeneKay Now I just have to figure out why "exec git update-server-info" kills the script--and, in fact, killed my SSH session somehow when I ran it directly.17:54
bremner exec17:55
charon mysphyt: that's because exec by definition *replaces* the calling process with the callee17:55
kpreid left17:55
mysphyt charon--as `man exec` just showed me. Again. Always just a little stupider than I'd expected. *sigh*17:55
michaelmartinez left17:55
EugeneKay :-D17:55
Nightfire034 joined17:55
lacrymology joined17:56
slide joined17:56
pppaul left17:57
magnus_ left17:57
marhaban left17:58
slide23 left17:59
pppaul joined18:00
magnus_ joined18:01
cakehero left18:01
melvinram left18:02
mercutio22 left18:03
dr_win left18:05
mercutio22 joined18:05
dr_win joined18:05
SkAzZ1 joined18:06
hyperair left18:07
fission6 joined18:07
voidx left18:07
shruggar joined18:07
stkrzysiak joined18:07
SkAzZ left18:07
stkrzysiak left18:07
jceb joined18:07
b1lly joined18:10
rockets joined18:10
dr_win left18:11
kenperkins left18:11
elijah left18:11
DerekPioneer joined18:12
voidx joined18:12
leavittx left18:13
b1lly I just created a repo on the github website and now im configuring my git thru bash, do i need to mkdir the same name as the repo name?18:13
segher joined18:13
segher left18:13
trafalgar joined18:14
trafalgar left18:14
pppaul left18:14
marcogmonteiro joined18:14
PerlJam b1lly: you mean github has all of the code?18:14
shruggar left18:14
jim0203 left18:14
b1lly nah18:14
my desktop has all of the code right now18:14
i wanna do my first commit18:15
im setting up for the first time18:15
alberto56 left18:15
jim0203 joined18:15
PerlJam b1lly: git add remote origin <URL for your github repo>; git push -u origin master18:15
cbreak (git init first)18:15
PerlJam (assuming I understand you correctly)18:15
Shusshu left18:15
pppaul joined18:15
Bartzy left18:16
b1lly lets say18:16
cbreak http://book.git-scm.com/3_getting_a_git_repository.html18:16
b1lly my files are like 10gb big right now18:16
segher joined18:16
b1lly is it gunna take forever to push that18:16
FauxFaux !large18:16
gitinfo [!large_files] Git isn't yet great at large files(larger than RAM). Look at !annex for solutions. You can find them (after gc) with: git verify-pack -v .git/objects/pack/pack-*.idx | grep blob | sort -k3nr | head | while read s x b x; do git rev-list --all --objects | grep $s | awk '{print "'"$b"'",$0;}'; done18:16
cbreak git does not work well with such filesizes18:16
arti_t left18:17
cbreak consider using something else than git, or maybe bup/git-annex18:17
xr1rr joined18:17
b1lly !annex18:18
gitinfo Storing lots of binary files in git causes repo balloon. git-annex and git-media are two solutions to work around this by keeping the blobs out of the repo. http://git-annex.branchable.com/ and https://github.com/schacon/git-media18:18
xr1rr left18:18
xr1rr joined18:18
michaelmartinez joined18:21
hyperair joined18:21
mishok13 joined18:23
oohahh I got gitgot running last night to email me daily reports of my repositories. Seems okay. Do you have a multi-repo git manager that you prefer?18:23
frnkkpp_on_drugs left18:24
frnkkpp joined18:24
FauxFaux Interesting tool. Not sure why you'd care, though; surely you either work on lots of repo at the same time all the time, at which point you use git !slave, or you work on everything independently,which git is fine for?18:24
gitinfo [!gitslave] gitslave (http://gitslave.sf.net) is useful to add subsidiary git repositories to a git superproject when you control and develop on the subprojects at more or less the same time as the superproject, and furthermore when you typically want to tag, branch, push, pull, etc. all repositories at the same time.18:24
dr_win joined18:25
syphar left18:25
oohahh Hmm, haven't set up super/sup projects before. I'll check into that.18:26
khmarbaise joined18:26
kpreid joined18:26
kenperkins joined18:26
mulinux joined18:26
Zenith77 left18:27
dhruvasagar left18:27
blacktulip left18:27
dhruvasagar joined18:27
gchristensen left18:28
gchristensen joined18:29
voidx left18:29
melvinram joined18:30
madsy joined18:30
madsy left18:30
madsy joined18:30
Destos joined18:31
xalba joined18:31
ColKurtz joined18:32
p0t4t0 joined18:32
brngardner left18:32
xr1rr left18:33
guns joined18:34
gunsGuest1159218:34
cespare joined18:34
Chaser joined18:34
Guest11592 left18:34
xalba_ joined18:35
harshpb joined18:36
shruggar joined18:38
brunosaboia__ joined18:38
alberto56 joined18:39
samba_ left18:40
xalba_ left18:41
ColKurtz left18:42
BSaboia__ left18:42
charon left18:42
charon joined18:43
diminoten joined18:43
callen joined18:43
dbgster left18:43
charon left18:43
charon joined18:43
callen I have an existing repo with some fixtures in it, and I want to switch a particular file inside this existing repo to a git-annex type thing where it stores the data but doesn't attempt to track the data18:43
master-lincoln joined18:43
callen is that possible without creating a "git annex" repo from scratch?18:44
is there a native way to tell git to pseudo-ignore a file?18:44
charon mysphyt: as they say: good judgement comes from experience, and experience comes from bad judgement. i don't see how "stupid" comes into the picture ;)18:44
Zenith77 joined18:45
harshpb left18:45
mysphyt charon: True enough--but for me, one definition of stupidity is ingenuity applied to bad judgment. I'm often not just wrong--I'm wrong in excitingly creative and unexpected ways. :)18:45
harshpb joined18:46
joebodo_ left18:46
btx94 left18:46
btx94 joined18:46
marhaban joined18:47
btx94 left18:48
ben225 joined18:48
marhaban left18:48
btx94 joined18:48
btx94 left18:48
marhaban joined18:48
freedrull joined18:49
marhaban left18:49
marhaban joined18:49
orkz joined18:49
mercutio22 left18:50
marhaban1 joined18:50
marhaban left18:50
mattalexx joined18:50
marhaban1 left18:50
marhaban joined18:51
mattalexx What's the command that will output the contents of a file as it is in the index?18:51
marhaban left18:51
jrots left18:51
marhaban joined18:51
freedrull i squashed around 80 or so commits on branch A with git rebase -i HEAD~80, now i want to rebase on branch B, but when i do, it goes through each commit i squashed as if that single commit is still the individual commits. does that make sense?18:52
txomon joined18:52
txomon left18:52
txomon joined18:52
marhaban left18:52
marhaban joined18:52
marhaban left18:53
juanfer left18:53
mcluskydodallas left18:53
marhaban joined18:53
aristidesfl1 joined18:53
guampa joined18:55
envi_ left18:55
rrn left18:55
offby1 yes.18:55
tizzo-afktizzo18:55
aristidesfl left18:55
mattalexx I'm surprised, I though that would be a common command but I can't even find it on the internet anywhere.18:56
Probably not using the correct terms18:56
jceb left18:56
mercutio22 joined18:56
dvance joined18:56
marhaban1 joined18:56
cakehero joined18:56
marhaban1 left18:57
ColKurtz joined18:57
marhaban1 joined18:57
shruggar left18:57
rrn joined18:57
marhaban1 left18:58
marhaban1 joined18:58
marhaban left18:58
Nightfire034 left18:58
offby1 mattalexx: I suspect there's some syntax for "git show".18:58
marhaban1 left18:58
marhaban joined18:59
callen does anyone know of an intelligent way to dumbly store large files in git that don't involve git-annex?18:59
dumbly meaning, I don't want it version controlled, just the contents carried along with everything else.18:59
EugeneKay yes, git-media. :-p18:59
callen and I don't want to have to purge all the history everytime I change it just to keep the repo size reasonable.18:59
SethRobertson !large-files18:59
marhaban1 joined18:59
SethRobertson !largefiles18:59
marhaban left18:59
hyperair !hugefiles19:00
EugeneKay !big19:00
gitinfo [!large_files] Git isn't yet great at large files(larger than RAM). Look at !annex for solutions. You can find them (after gc) with: git verify-pack -v .git/objects/pack/pack-*.idx | grep blob | sort -k3nr | head | while read s x b x; do git rev-list --all --objects | grep $s | awk '{print "'"$b"'",$0;}'; done19:00
juanfer joined19:00
EugeneKay !annex19:00
gitinfo Storing lots of binary files in git causes repo balloon. git-annex and git-media are two solutions to work around this by keeping the blobs out of the repo. http://git-annex.branchable.com/ and https://github.com/schacon/git-media19:00
callen dude.19:00
what did I just say.19:00
offby1 callen: when you ask "how can I store something in git, but I don't want it version controlled" ... you're asking for complexity and pain19:00
callen 18:59 < callen> does anyone know of an intelligent way to dumbly store large files in git that don't involve git-annex?19:00
mattalexx !ginormouslygiganticfile19:00
EugeneKay -annex != -media ;-)19:00
callen offby1: it's a dumb fixture.19:00
eoh joined19:00
marhaban1 left19:00
callen offby1: of sparse data.19:00
Fullmoon joined19:00
TeckniX left19:00
EugeneKay If you want a different solution feel free to write it yourself; that's what we know of.19:00
callen offby1: it really needs to NOT be version-controlled, just stored.19:00
hyperair git help media19:00
marhaban joined19:00
hyperair callen: stuff it in .gitignore19:00
alexisabril joined19:00
hyperair ¬_¬19:00
callen hyperair: it has to be stored with the rest of the repo :|19:01
hyperair then you don't want git.19:01
simple as that19:01
marhaban left19:01
offby1 callen: perhaps write a pre-commit hook that rejects commits that modify or delete it19:01
bremner so both git-annex and git media do what you want.19:01
EugeneKay callen - "I want to keep my stuff in version control but I don't want to version control it" ?19:01
bremner why not use one of them?19:01
marhaban joined19:01
callen EugeneKay: it's a dumb fixture of sparse data.19:01
EugeneKay: it's needed to make the code work.19:01
hyperair auto-download19:01
symlink19:01
callen EugeneKay: being sparse data, if any changes are made to the schema, the entire 700mb file gets invalidated and replaced.19:01
kevlarman callen: if it's sparse and uncompressed it'll diff well19:01
callen I'd rather the basic git instrument work alone.19:02
marhaban left19:02
EugeneKay callen - sounds like a job for a hook+rsync ;-)19:02
joshteam joined19:02
mulinux left19:02
callen kevlarman: no it won't.19:02
tizzotizzo-afk19:02
callen kevlarman: just trust me, it's the pathological case for git's diffing behavior.19:02
marhaban joined19:02
kevlarman callen: so it's compressed?19:02
callen I just need to the repo to hold onto the fucking file and not diff it. that's it. I tried git-annex and it's way overdone.19:02
kevlarman: I'm anything but in the mood to explain the parts that are already understood.19:02
marhaban1 joined19:03
marhaban left19:03
callen kevlarman: I'd rather explore a solution to making git forcibly never diff the file and just "hold onto it" like a blind symlink but still cart the file around19:03
hyperair callen: hang on, you want the repo to hold on to the latest version of the file, and this file may change.19:03
iamjarvo left19:03
hyperair so you don't want it to be version-controlled19:03
but shipped around with the rest of the repo19:03
callen hyperair: I want the equivalent of a purge everytime it gets replaced/changed.19:03
iamjarvo joined19:03
callen hyperair: yes.19:03
kevlarman callen: that's not possible by definition with git19:03
hyperair callen: you want make and wget. ¬_¬"19:03
aristidesfl joined19:03
marhaban1 left19:03
hyperair callen: and .gitignore.19:03
kevlarman callen: you can use git-annex or git-media to prevent people from having to download every version19:03
ColKurtz left19:03
marhaban joined19:03
kevlarman or you can store it outside git19:03
SethRobertson Or git-media, or git-annex, or a separate repo which you can rewrite every time you change something19:04
callen git-annex didn't work out, as I said. I'll take a look at git media if I can find it19:04
kevlarman (actually both of those store it outside git-media)19:04
outside git*19:04
marhaban left19:04
hyperair callen: actually what kevlarman said was a good idea. how about submodules?19:04
callen I don't want it version-controlled period19:04
gitinfo set mode: +v19:04
marhaban joined19:04
kevlarman that wasn't me19:04
SethRobertson Wasn't that me?19:04
EugeneKay !UGFWIINI19:04
callen shoving it into another repo just shifts the data explosion to a different repo.19:04
gitinfo You appear to be Using Git For What It Is Not Intended - https://www.google.com/search?q=UGFWIINI Let's step back for a minute - What are you actually trying to achieve? Are you sure git is the right tool for the job?19:04
callen EugeneKay: thank you, your desire to be as unhelpful as possible is noted.19:05
hyperair callen: put it in a submodule, commit --amend each time so that there's only ever one commit..19:05
kevlarman but yes if you really want you can stick it in a submodule that gets rebased on every change19:05
marhaban left19:05
callen EugeneKay: I would say that at this point, it's clear you have nothing to contribute and you go back to whatever you were doing before bothering me.19:05
marcogmonteiro left19:05
aristidesfl1 left19:05
ChanServ set mode: +o19:05
jrots joined19:05
EugeneKay set mode: +q19:05
marhaban joined19:05
marcogmonteiro joined19:05
EugeneKay And I'd say that you are unwilling to accept the reality of the impossibiltiy of your question.19:05
offby1 EugeneKay: that sure is an awkward trigger.19:05
freedrull so you can't squash a bunch of commits, then treat it like one commit when you're rebasing another branch onto this one? why not?19:05
EugeneKay offby1 - there's also the ! doinitrong shortcut19:06
marhaban left19:06
marhaban joined19:06
EugeneKay set mode: -o19:06
kevlarman !doinitrong19:06
gitinfo [!UGFWIINI] You appear to be Using Git For What It Is Not Intended - https://www.google.com/search?q=UGFWIINI Let's step back for a minute - What are you actually trying to achieve? Are you sure git is the right tool for the job?19:06
mcluskydodallas joined19:06
kevlarman yeah i like that one better :D19:06
offby1 freedrull: I'm not 100% sure what you're doing, but I think the answer is: no, you cannot19:06
marhaban left19:06
marhaban joined19:07
EugeneKay callen - we've given you the best info we can. It's up to you to step back and figure it out; we won't spoon feed you how to run rsync.19:07
SethRobertson freedrull: You have not provided enough information, for instance, are the commits also on the other branch?19:07
offby1 freedrull: you might be able to see how the two branches differ, then reset the second branch to the rebased one, then apply those diffs.19:07
superdmp I want to checkout a remote branch that's not currently in the local repository - I could pull then checkout the branch, but I assume there is a way of doing it one go19:07
marhaban left19:07
superdmp git pull origin <branch> ?19:07
Dreamer3 left19:07
marhaban joined19:07
cakehero left19:07
offby1 freedrull: that way both branches will now share the big squashed commit.19:07
I've never done that though19:08
Dreamer3 joined19:08
lyddonb left19:08
SethRobertson superdmp: Do not use the four argument version of fetch or pull. It will only lead to tears19:08
cmn superdmp: pull doesn't mean what you think it means19:08
superdmp cmn: that would not surprise me19:08
marhaban left19:08
marhaban1 joined19:08
SethRobertson superdmp: YOu can `git fetch origin` (if you are not up to date). Then you can `git checkout branchname` to get a local tracking branch or `git checkout origin/branchname` to get a read-only-ish remote tracking branch19:08
cmn you're looking for fetch19:08
offby1 X doesn't mean what you think it means, for a depressingly large number of possible values of X19:08
superdmp thanks again19:09
marhaban1 left19:09
marhaban joined19:09
marhaban left19:10
freedrull SethRobertson: branch A(with the squashed commits) has the squashed commit. the commits in this squashed commit have no commits on branch B. branch A originally was forked from branch B, but branch B has since added more commits not on branch A, so i want to rebase branch B onto branch A.19:10
marhaban joined19:10
skammer joined19:10
freedrull with the idea of eventually merging branch A into branch B. (if it helps, branch B is my 'development' branch and branch A is a feature branch)19:10
skammer left19:10
marhaban left19:10
SethRobertson freedrull: But basically if you have really squashed 80 unique commits previously exclusively on branch B and then want to merge B into A, or rebase B on top of A, then git will not know about the previous 80 unique commits. Period.19:10
marhaban joined19:11
snearch joined19:11
marhaban left19:11
offby1 suspects that a simple illustration would be useful right around now19:11
whitman joined19:11
marhaban joined19:11
brngardner joined19:12
SethRobertson So you want the squashed commit on top of the commits on branch B. That is fine. How many commits does `git log A..B` return?19:12
marhaban left19:12
freedrull SethRobertson: ok...but that's what i want i think? when i'm on branch a, i type git rebase B but it seems to be going through each commit like it still exists...19:12
marhaban joined19:12
freedrull offby1: haha yeah is there something i can draw on...19:12
marhaban left19:13
voidx joined19:13
marhaban joined19:13
SethRobertson freedrull: Answer the question: how many commits do you see with `git log A..B`?19:13
sq-one joined19:13
marhaban left19:13
freedrull SethRobertson: about 70....19:14
why?19:14
marhaban joined19:14
SethRobertson I thought you squashed them?19:14
Those 70 commits are going to be replayed on top of the commits on B.19:14
marhaban left19:14
freedrull these aren't the squashed commits, this shows the new commits on branch B that are not in A yet. i want to rebase B onto A so i can get these 70 commits into A and replay my work ontop of them19:14
marhaban joined19:14
SethRobertson So you want to do: `git checkout B; git rebase -p A` correct?19:15
marhaban left19:15
freedrull `git checkout A; git rebase B;`19:15
marhaban joined19:15
freedrull other way around19:15
harshpb left19:16
marhaban left19:16
SethRobertson That is what I thought, but not what you said the second time. Anyway, when you do that, the 70 commits you mention are replayed on top of all of B's commits.19:16
marhaban joined19:16
revagomes joined19:16
offby1 freedrull: semi-seriously: if you find it's hard to make your problem understood, a little shell script that reproes it would be perfec.t19:16
SethRobertson That will put A's unique commits on top of B's commits.19:16
marhaban left19:17
marhaban joined19:17
coyotebush left19:17
sdeboey left19:17
freedrull SethRobertson: ok thats what i want. i think it is working ok...19:18
hobbyist joined19:18
SethRobertson Great. Glad I could clarify your confusion.19:18
freedrull offby1: sorry next time ill try to make a readable paste. just couldn't think of a good way to explain it without drawing. but a sequence of shell commands would probably help...19:18
ColKurtz joined19:18
SethRobertson You can always use `gitk A B` and then draw arrows on top19:19
alberto56 left19:19
n3m left19:19
Targen joined19:20
kenperkins left19:20
ChanServ set mode: +o19:20
EugeneKay callen - you are asked to keep it civil, and to understand that your use case is not well served by git's object model. There are several possible solutions, the best of which do not involve /usr/bin/git.19:20
tureba left19:20
eletuchy joined19:20
EugeneKay set mode: -q19:20
n3m joined19:21
EugeneKay set mode: -o19:21
freedrull SethRobertson: ah ok...thanks i will next time19:21
marhaban left19:21
kenperkins joined19:21
dbgster joined19:21
pandeiro joined19:21
akiress left19:22
freeed left19:22
whyking_ joined19:22
estevocastro joined19:22
tureba joined19:22
Nightfire034 joined19:22
juanfer left19:22
digiv|meetingdigiv19:23
FreeArtMan left19:23
Vortex34 left19:23
lyddonb joined19:24
alberto56 joined19:24
DannyZB joined19:24
krz joined19:24
DannyZB guys : I use GitGui over mac .. how do I remove files from a branch + make sure they never get to the repository ?19:24
robotmay left19:25
xalba Hello. New to git. "git commit" and "git commit -a" should make differents commits, is it possible that in my installation "git commit" calls "git commit -a" ?19:26
m1sc DannyZB: if those files have been tracked earlier, they are in the repo. (if that's the question) http://help.github.com/remove-sensitive-data19:26
sandstrom joined19:26
sandstrom left19:26
sandstrom joined19:26
hobbyist left19:26
offby1 xalba: unlikely. However I suspect there are many cases where those two commands will do the same thing19:27
cbreak DannyZB: first step: start the terminal and navigate to the repository19:27
after that, git rm the file, enter it in .gitignore, then commit.19:27
sandstrom How can I reset the repository from a remote?19:27
cbreak this will NOT affect past history, only future19:27
and other users can of course override it19:27
sandstrom: not at all. You have to do it locally19:28
with git reset --hard or similar. Read the man page for details19:28
offby1 xalba: for example, I think if you edit a file, then run "git add" on it, then "git commit" and "git commit -a" will both commit that file19:28
troulouliou_dev left19:28
sandstrom cbreak: thanks!19:28
xalba But "git commit" shouldn't commit unstaged changes19:29
offby1 correct.19:29
bartek left19:29
offby1 "git commit -a" however will.19:29
DannyZB cbreak: thx19:30
bartek joined19:30
PerlJam xalba: Are you seeing the same effect from both versions of git commit ?19:30
toothr joined19:30
xalba I think so, I was trying "git commit" with unstaged changes to see "no changes added to commit (use "git add" and/or "git commit -a")"19:31
but it actually did commit unstaged changes19:31
offby1 xalba: !repro19:32
gitinfo xalba: Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting.19:32
offby1 or it didn't happen :)19:32
lyddonb left19:32
cbx333 joined19:33
xalba I'll try to reproduce it19:33
cbx333 left19:33
hobbyist joined19:33
offby1 that's ideal.19:34
Either you've found a bug (unlikely but possible) or you're misunderstanding something; the repro will be useful in either case.19:34
pokeswap joined19:34
juanfer joined19:34
sandstrom left19:37
aristidesfl1 joined19:37
mechanyancat joined19:37
eletuchy_ joined19:37
aristidesfl1 left19:37
mechanyancat git filter-branch --index-filter 'git rm --cached --ignore-unmatch tests/fixtures/fixture_name.json' HEAD19:37
j416 joined19:38
cybersphinx joined19:38
brunosaboia__ left19:39
mechanyancat freedrull: ^^ you led me down the right path, thank you.19:39
aristidesfl left19:40
eletuchy left19:40
alvaro_o joined19:41
alvaro_o left19:41
freedrull mechanyancat: what did i do?19:41
the_cybersphinx left19:41
mechanyancat freedrull: helped me find the vernacular needed to discover the solution to the problem.19:41
freedrull: namely, the concept of purging the file completely from history.19:42
teweWORK joined19:42
johnkpaul joined19:42
johnkpaul I've made a few commits on master that I should have been making in a branch19:42
offby1 *gasp*19:42
johnkpaul I have made a new branch from master, now how do I move the master pointer back to the original commit19:42
offby1 git reset --hard ORIGINAL-SHA19:42
easy as pi19:43
have you pushed master since you screwed up?19:43
If not, you're golden19:43
johnkpaul no19:43
I haven't19:43
cool19:43
offby1 \o/19:43
johnkpaul :)19:43
so doing that won't lose the commits that I made19:43
hobbyist left19:43
johnkpaul because I have them in a branch19:43
right? I'm still wrapping my head around how git works19:43
offby1 correct19:44
mabrand left19:44
offby1 even if you forgot to make the new branch, and then reset, those commits _still_ aren't lost, but it takes a bit of extra work to resuscitate them.19:44
oehman joined19:44
johnkpaul ah ok19:44
they're in the .git directory, but nothing is pointing to them19:44
offby1 exactly!19:44
but in reality there _is_ something pointing at them, called the "reflog".19:45
mysphyt left19:45
offby1 and it exists more or less for just that reason: so that you don't lose commits.19:45
johnkpaul oh ok, that's where I start not knowing how it works19:45
and the reflog is local to my repo, right?19:45
offby1 correct.19:45
johnkpaul so if I run a git show on a sha that no branch has access to19:46
it'll still work?19:46
offby1 actually you sound like you're more clued-in than 95% of people who describe themselves as "new to git"19:46
yes, it'll work; Try It And See™.19:46
johnkpaul ha, I will19:46
eh, I read the free book19:46
progit19:46
offby1 well, there you go.19:46
johnkpaul but I don't really use these features enough to consider myself not new19:46
robotmay joined19:46
offby1 it'll come19:46
johnkpaul svn I knew like the back of myhand19:46
yeah, definitely19:46
thanks for your help offby1!19:47
voidx left19:47
offby1 yep, I was a svn whiz too19:47
I've forgotten most of it by now though.19:47
johnkpaul yeah, I'm forgetting most of it19:47
FernandoBasso left19:47
johnkpaul except the horrors of tree conflicts19:47
because the pain is permanently burned into my head19:47
kevlarman johnkpaul: forgetting how svn works is the first step to learning git :P19:48
aspotashev joined19:48
offby1 still remembers the working copy getting hosed every so often19:48
kevlarman (you can relearn after you understand git, but i've found you can't learn git while you know svn :P)19:48
lacrymology left19:48
johnkpaul haha, well sadly at the moment I Have to use both, but much more git than svn19:49
and greatfully not git-svn19:49
kevlarman johnkpaul: git-svn is much more tolerable than svn19:49
erichynds left19:49
johnkpaul eh, I tried, I found it very difficult to deal with all of the random errors19:49
stkrzysiak joined19:49
Nightfire034 left19:50
johnkpaul although I didn't put that much time into figuring out what caused them19:50
dropdrive left19:50
gitinfo set mode: +v19:50
_Vi left19:50
pandeiro left19:51
glcrazy left19:52
CannedCorn joined19:52
glcrazy joined19:53
johnkpaul awesome, just pushed the corrected branch and master state, and it looks like I had the branch the whole time19:53
git is amazing sometimes19:53
EugeneKay Is there a way to convince git to change the executable bit without chmod-ing the file in question? Eg, windows git.19:53
OOPMan left19:53
johnkpaul windows has an equivalent of chmod, no?19:53
wereHamster EugeneKay: you mean just in the index?19:53
EugeneKay wereHamster - yes19:53
wereHamster EugeneKay: update-index, probably19:54
EugeneKay man git-update-index19:54
gitinfo the git-update-index manpage is available at http://jk.gs/git-update-index.html19:54
EugeneKay johnkpaul - tell that to `git` ;-)19:54
pandeiro joined19:54
EugeneKay wereHamster - --chmod, yup. <319:54
Davey_ joined19:54
ctrochalakis joined19:55
syphar joined19:55
enmand left19:55
xalba <offby1><gitinfo>: Perhaps I'm misunderstanding but it seems to me that "git commit" is doing the same as "git commit -a"19:56
marhaban joined19:56
offby1 xalba: without a !repro it'll be impossible for us to figure out what's going on19:56
gitinfo xalba: Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting.19:56
lonewulf` left19:57
marhaban left19:57
marhaban joined19:57
xalba sorry I don't know what a !repro is19:57
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting.19:57
marhaban left19:57
xalba I pasted it using https://gist.github.com/19:57
EugeneKay xalba - the !bot knows all19:58
gitinfo xalba: [!gitinfo] I am an IRC bot which responds to certain keywords to provide helpful(?) information to humans. Please see http://jk.gs/git/bot for more information about how to use me.19:58
marhaban joined19:58
marhaban left19:58
marhaban joined19:58
yatiohi left19:59
marhaban left19:59
marhaban joined19:59
lonewulf` joined19:59
freedrull it seems git rebase -p branch leaves you on a detached head with a new merge commit?19:59
iamjarvo left20:00
marhaban left20:00
marhaban joined20:00
marhaban left20:01
sandstrom joined20:01
sandstrom left20:01
sandstrom joined20:01
marhaban joined20:01
mercutio22 left20:01
SethRobertson freedrull: Not unless you have a conflict or were on a detached head to start with20:01
Probably you had a merge conflict20:01
rebase conflict20:01
t4nkd left20:01
traviscj left20:01
marhaban left20:01
marhaban joined20:02
jrots left20:02
marhaban left20:02
marhaban1 joined20:02
offby1 xalba: give us the URL or else we won't be able to see it.20:03
marhaban joined20:03
marhaban1 left20:03
gjoseph joined20:03
nb left20:04
marhaban left20:04
marhaban joined20:04
jrots joined20:04
marhaban left20:04
schnatta joined20:04
mcluskydodallas left20:04
xalba git://gist.github.com/2361975.git20:05
pantsman joined20:05
pantsman left20:05
pantsman joined20:05
orkz left20:05
pandeiro left20:06
nb joined20:06
gjoseph hi there20:06
gitinfo gjoseph: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.20:06
lonewulf` left20:06
gjoseph any idea why git config --get svn-remote.svn.fetch :refs/remotes/git-svn$; echo $? would return/output 1 for a given repo, and 0 for another ? In both cases, the property does not exist.20:06
if the pattern regex was invalid, it should exit with 2 according to man. if i don't pass a pattern, both exit with 020:07
OOPMan joined20:07
stkrzysiak left20:08
mcluskydodallas joined20:08
gjoseph sorry, property exists in both cases, same value, and doesn't match the pattern20:08
SethRobertson xalba: You specifically named the file you wanted to commit!20:08
Stone44 joined20:09
offby1 oh, is that it?20:09
I'm as surprised as xalba20:09
gjoseph gist coming up20:09
teknoid joined20:09
offby1 xalba: yeah, SethRobertson is right. The man page (!man git-commit) says that if you specify the file's name, it ignores the index20:10
juanfer left20:10
SethRobertson Basically that evicts everything from the index, adds the named file, recommits, and then readds things back to the index. I have a nasty suspicion that it doesn't always readd everything back to the index 100% properly, but that is another issue20:10
offby1 so that explains that20:10
kludge-a-licious20:10
Nightfire034 joined20:10
iocor left20:10
offby1 NEXT!20:10
lonewulf` joined20:11
Ryback_ left20:11
xalba aaahhh thank you!!20:11
gjoseph woops, sorry for the overlap20:12
Ard1t left20:12
gjoseph —> https://gist.github.com/236211320:12
Subodh joined20:13
marthinal left20:14
n1x left20:14
JohnBat26 left20:14
juanfer joined20:14
offby1 all hail the power of the transcript20:15
gitinfo set mode: +v20:15
Subodh I have two commits with SHA1 1234, and SHA2 of 3456. I want to git format-patch these two commits into one patch file how do I do that?20:16
Harzilein joined20:16
Harzilein hi20:16
gitinfo Harzilein: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.20:16
the_cybersphinx joined20:16
gitinfo set mode: +v20:17
Harzilein can i just get a named branch for whatever that bf6f is?: http://paste.debian.net/16291720:17
illusi joined20:17
Harzilein (git reflog | head -4)20:17
alberto56 left20:17
illusi left20:18
cbreak Harzilein: you can try git name-rev bf6f7d7340255f85997460bc80d432f742410bc620:18
Harzilein hmm...20:18
remotes/origin/master~120:18
illusi joined20:18
Harzilein so what happened there? (it's actually our production checkout, so not on a particular dev's machine)20:18
windsurf_ joined20:19
windsurf_ if i want to use git for deploying my website, i was thinking I'd ssh into my host and clone my repo but then my .git will be exposed publicly20:19
thoughts?20:19
i've tried rsync instead from local to remote but that isn't preserving permissions properly and ftp is too slow20:20
cybersphinx left20:20
bremner !web20:20
gitinfo [!website] Git is not a website deployment tool, but can sometimes play one in sufficiently simple/lax environments with a little help. One example of help is: http://toroid.org/ams/git-website-howto and another approach: https://gist.github.com/171423520:20
j416 left20:21
DannyZB left20:21
gjoseph sorry to reiterate, not sure this went through: any idea why git config --get svn-remote.svn.fetch :refs/remotes/git-svn$; echo $? would return/output 1 for a given repo, and 0 for another ? In both cases, the property does not exist. — https://gist.github.com/236211320:21
btanaka joined20:22
marcogmonteiro_ joined20:23
kevlarman gjoseph: look at your output again, it exists when it returns 020:23
Subodh left20:24
SethRobertson windsurf_: More specifically, you can either request the web server to not permit .git, or you can also ask git to checkout the working directory to another path than the one the .git repo is at20:25
marcogmonteiro left20:25
marcogmonteiro_marcogmonteiro20:25
gjoseph kevlarman: dammit. yeah i just noticed. wth was i thinking ? wonder if "at some point" it did behave differently. seems git svn create-ignore was unhappy only about the 1.1 branch20:26
(but thanks!)20:26
t4nkd joined20:26
fission6 left20:27
neersightedneersighted|AFK20:27
airborn_airborn20:27
psoo joined20:28
syphar left20:28
syphar joined20:28
robotmay left20:29
marhaban joined20:31
marhaban left20:32
marhaban joined20:32
neersighted|AFKneersighted20:33
marhaban left20:33
marhaban1 joined20:33
phishy joined20:33
phishy left20:33
marhaban1 left20:34
hobbyist joined20:36
gartenstuhl left20:36
airborn left20:36
iamjarvo joined20:37
gartenstuhl joined20:37
whitman left20:38
s3a joined20:38
hobbyist left20:38
gartenstuhl left20:39
s3a Let's say I modify an EXISTING java file and I want to commit the change, do I still use git add?20:39
or is git add just for when i created a new java file that was not in the project already?20:39
eijk_ left20:40
eijk_ joined20:40
melvinram left20:40
brentdanley_ joined20:40
bremner every change20:41
there are shortcuts like git commit -a, but in the long run, adding every change works out better20:41
felgru left20:41
stkrzysiak joined20:41
digivdigiv|afk20:42
gryzzly joined20:42
felgru joined20:42
airborn joined20:42
s3a bremner, alright. thanks :)20:43
sbell left20:43
maurer joined20:43
sbell joined20:43
maurer If I've git added a file, and don't want to stage it into this commit, how do I do that?20:43
(e.g. I have typed git add and didn't mean it, what's the "oops" command)20:43
tatsuya_o joined20:44
fling left20:44
gryzzly Hi. Is there any place where I can find documentation explaning how to perform manual merge beyond the basic example? I am getting something like "merged common ancestors" and googling for it doesnt lead to anything that looks like a trustable reference. Thansk!20:44
Stone44 left20:45
jrots left20:45
sbell left20:48
offby1 maurer: "git status" will tell you.20:48
I think it's "git reset HEAD file"20:48
gryzzly: are you saying that you're running "git merge" and getting an error?20:49
jsoa left20:50
gryzzly offby1: nope, I am doing git merge, I then get a conflict. I want to resolve the conflict manually, without running a mergetool. It's more for learning purpose and understanding, actually.20:50
airborn left20:50
mishok13 left20:50
offby1 oh that's easy20:52
just edit the files20:52
make 'em look the way you want20:52
then run "git add" on them20:52
then "git commit"20:52
that's it20:52
martinjlowm-lptp left20:53
drizzd joined20:54
gryzzly offby1: Sure :-) I'd like to understand though, what "||||||| merged common ancestors" means20:54
martinjlowm-lptp joined20:54
chrisshattuck left20:55
superdmp is there anything harder than git reset --hard? I want it to get rid of untracked files too20:55
gryzzly so, i know what it means when code is separated by "<<< HEAD // some code from HEAD here ======== // some code from merge branch here >>>> 123123hash "20:55
xalba left20:56
gjoseph superdmp, err re-clone the repo ? :D20:56
PerlJam superdmp: git clean -dxf # DANGER WILL ROBINSON20:56
gryzzly when merging files you haven't worked on on a huge project, you can't always make sense of different lines and also testing in the middle of huge merge isn't always possible as building won't work. so it would be nice to understand what git is trying to suggest20:56
Fullmoon left20:56
maurer offby1: I found it, ant i tis that command, but git status doesn't tell me.20:56
*and it is20:56
superdmp PerlJam: danger because it will delete files?20:56
Harzilein cbreak: thanks20:57
superdmp good!!20:57
Harzilein any idea how i could go reverse the order in this?: http://www.zorched.net/2008/04/14/start-a-new-branch-on-your-remote-git-repository/20:57
Sigma left20:57
robotmay joined20:57
likkabe joined20:57
windsurf_ left20:57
gjoseph left20:57
Harzilein as in, i created a branch pointing to that earlier commit, now i don't want to do new commits, just push the branch "metadata"20:57
bartek left20:58
cannonball left20:58
DCN joined20:58
Vinnie_win In git fetch upstream; git checkout master; git pull upstream master; Is the "fetch" necessary? It seems redundant.20:58
PerlJam Harzilein: git checkout SHA1; git checkout -b new_branch; git push -u origin new_branch; # assuming I understand you20:58
fahi left20:59
chronos left20:59
else- left20:59
baggles left20:59
PerlJam Harzilein: where SHA1 is the commit where you want to start the branch20:59
zorzar_ joined20:59
NimeshNeema left20:59
baggles joined20:59
fahi joined20:59
zorzar left20:59
waldvogel left20:59
jaequery left20:59
offby1 gryzzly: well, do you know, fundamentally, what a merge conflict is?20:59
jaequery joined20:59
likkabe left20:59
Harzilein PerlJam: i already have the branch. i'll try adding -u to see if that causes the new branch to get pushed21:00
Slix` joined21:00
lisbakke joined21:00
else- joined21:00
gitinfo set mode: +v21:00
lisbakke is there a way to have githooks in the repository so that when someone runs git clone they will have the githooks?21:00
PerlJam lisbakke: no21:00
offby1 lisbakke: I don't think so :-(21:00
lisbakke :(21:00
offby1 dunno why that is21:00
seems like it'd be convenient21:00
lisbakke so, remote hooks? :|21:01
PerlJam offby1: seems like it'd be a security nightmare to me.21:01
lisbakke is there a way to make a remote hook that can differentiate a git clone vs. the git clone issued by gerrit?21:01
PerlJam (but, yes, it could be convenient :)21:01
lisbakke (http://code.google.com/p/gerrit/)21:02
martinjlowm-lptp left21:02
offby1 lisbakke: my hunch is "no"21:02
PerlJam lisbakke: why?21:02
gryzzly offby1: sure, I do :-) I also used SVN and Mercurial for long enough time. I just never seen this kind of "tag" saying "merging common ancestors". It's something Git specific and I can't find documentation about it.21:02
lisbakke PearlJam: Because we want people to submit code reviews through gerrit instead of github pull requests. To do this they have to run gerrit-clone instead of git clone from the very start.21:03
lwhalen joined21:03
lwhalen hey, can someone help me recover a hosed gitolite installation?21:03
hagabaka left21:03
offby1 gryzzly: maybe I'd better make a conflict of my own, to check; my understanding was that git's conflict markers are pretty much the same as svn's21:03
lwhalen I accidentally blew away /var/gitolite/.gitolite/21:03
lisbakke PerlJam I mean :)21:03
lwhalen while I have a local copy of gitolite.conf, how can I tell the server to recompile it?21:04
Harzilein PerlJam: that worked. before/after: http://paste.debian.net/16292221:04
PerlJam lisbakke: give them a "setup" script that does the gerrit clone and sets up the hooks you need21:04
Harzilein PerlJam: thanks :)21:04
PerlJam Harzilein: pay it forward :)21:05
SethRobertson lwhalen: Without knowing the ins and outs, make a backup of what is left, reinstall, and then do what you would normally do21:05
offby1 gryzzly: ok, now: _where_ are you seeing this "merging common ancestors" message?21:05
falena left21:05
mcluskydodallas left21:05
offby1 gryzzly: here's what my little toy conflict looks like: http://ix.io/2ic21:05
lwhalen SethRobertson: will that save my repositories?21:05
sbell joined21:05
SethRobertson lwhalen: Remember the bit where I told you to make a backup? Yeah. That.21:06
lwhalen haha!21:06
lisbakke PerlJam: People are used to git clone and then submitting pull requests. A "setup" script requires that they have read some docs... if they read the docs they'd know they should be using gerrit. But I'd like a way to prevent them from making the mistake of git cloning in the first place21:06
lwhalen I have the backup, thankfully :-)21:06
subh joined21:06
SethRobertson lwhalen: sitaram will probably be on later and of course is the man if you want less drastic "help"21:06
macabre^ left21:06
cybersphinx joined21:06
lwhalen I've got two dozen cranky devs howling for my head right now21:07
I've got to get this up and running asap :-p21:07
macabre joined21:07
SethRobertson Well, then take a second backup and try to reinstall.21:07
qt-x left21:08
kevlarman lwhalen: how did you hose it?21:08
lwhalen gitolite was installed in /var/gitolite, on a /var mount21:08
DCN left21:08
PerlJam lisbakke: they have to type some command one way or another, so I don't much see the difference if it's "git clone", "gerrit clone", or "<insert your command here>"21:08
lwhalen /var filled up, so thinking I was clever I created a new LVM just for gitolite21:09
PerlJam lisbakke: Step 0: type "set-me-up" # runs gerrit clone and configures the repo21:09
the_cybersphinx left21:09
lwhalen mount /dev/vg3/git /newgit; rsync -avrt /var/gitolite/* /newgit; rm -rf /var/gitolite/*; umount /newgit; mount /dev/vg3/git /var/gitolite/21:09
rsync -avrt does NOT grab dotfiles. Much to my chagrin.21:10
subrosa joined21:10
lisbakke PerlJam: Yeah. But what I'm saying is that people go to the project and immediately git clone it, by habit, and begin working. They need to be warned, somehow, that they are wasting their time and should be running gerrit-clone.21:10
dstorrs left21:10
PerlJam lisbakke: that's what README files are for :)21:11
kevlarman lwhalen: easiest would be to reinstall gitolite from scratch, push gl-admin.git, then have all your devs repush their repositories i think21:11
tizzo-afktizzo21:11
lisbakke yeah :) it's in there. i guess if someone didn't read the README then it's their fault..21:11
kevlarman lwhalen: since they by definition have (nearly) full copies21:11
lwhalen we've got 30+ repos21:11
NimeshNeema joined21:11
snearch left21:12
kevlarman lwhalen: well, i suppose you could create a commit with no real changes in gl-admin21:12
and push that to make it rerun all the hooks21:13
eoh left21:13
eoh joined21:13
d0k left21:14
oehman left21:14
TomyLobo left21:15
lyddonb joined21:15
orkz joined21:15
dstorrs joined21:16
voidx joined21:16
khmarbaise left21:16
machine2 left21:16
arietis left21:16
psoo left21:17
lisbakke left21:17
lyddonb left21:17
tvw joined21:18
voidx left21:18
robotmay left21:19
estevocastroestevo|afk21:19
gryzzly left21:20
ignacio joined21:20
mcluskydodallas joined21:20
sandstrom left21:20
melvinram joined21:21
melvinram left21:21
machine2 joined21:22
_Vi joined21:22
lwhalen hrm21:23
on the reinstall, I'm getting:21:23
bad reponame 'CREATOR/.*' or you forgot to set $GL_WILDREPOS21:23
onicrom left21:23
w0ng left21:24
w0ng joined21:25
Maccer left21:25
webflo joined21:26
Maccer joined21:26
pantsman left21:27
ins\ left21:29
sq-one left21:31
johnkpaul left21:31
RobW joined21:31
Licenser joined21:32
Licenser aloa :)21:32
mrwalker left21:34
ghvandoorn left21:34
griotspeak joined21:34
voidx joined21:35
charon Licenser: you neatly dodged the bot's !hi autoreply21:36
gitinfo Licenser: [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice.21:36
Licenser charon thanks :)21:36
revagomes left21:36
Licenser so will you teach your bot aloa as greeting? ^^21:36
charon file it with jast as a feature request21:36
Licenser teehee21:37
Carraway left21:37
RobW left21:37
Licenser what I wanted to ask, I have a submodule and would like to update it to a new tag but I kind of don't find out how21:38
dropdrive joined21:38
Vinnie_win can I roll a commit back on both my local and remote repos with "git reset --hard HEAD^" ?21:39
EricInBNE joined21:39
krz left21:39
lyddonb joined21:39
griotspeak left21:40
krz joined21:40
alberto56 joined21:41
alberto56 left21:42
txomon|home joined21:42
txomon|home left21:42
txomon|home joined21:42
jefferai left21:43
offby1 that only does it locally.21:44
You can then do "git push -f", but: !rewrite21:44
gitinfo [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)21:44
jefferai joined21:44
John______ joined21:44
el2ro joined21:45
jim0203 left21:45
ipalaus_ joined21:45
alberto56 joined21:47
alberto56 left21:47
enmand joined21:48
Destos left21:48
kristjan joined21:49
marhaban1 joined21:50
marhaban1 left21:51
marhaban joined21:51
marhaban1 joined21:52
marhaban left21:52
koo4 left21:52
glcrazy left21:52
koo4 joined21:52
jim0203 joined21:52
iocor joined21:53
felgru left21:54
dbgster left21:54
gchristensen left21:55
John______ left21:56
marhaban1 left21:56
eoh| joined21:56
eoh left21:57
marhaban joined21:57
eoh| left21:57
voidx left21:58
eoh joined21:58
t4nkd left21:58
orkz left21:58
yhager joined21:58
voidx joined21:59
ignacio left22:00
marhaban1 joined22:01
axl__ joined22:01
marhaban left22:01
ghvandoorn joined22:01
lwhalen left22:01
axl__ left22:02
acl_ joined22:03
juanfer left22:03
axl__ joined22:03
axl_ left22:04
axl__axl_22:04
dr_win left22:04
krzkrzkrz joined22:04
dr_win joined22:05
glennpratt left22:05
SkAzZ1 left22:05
eicto left22:05
marhaban1 left22:06
krz left22:07
krzkrzkrzkrz22:07
michaelmartinez left22:08
AaronMT left22:08
fission6 joined22:08
w0ng left22:08
w0ng joined22:09
chrisgeorge left22:09
timoxley left22:09
_iron left22:10
chrisgeorge joined22:11
martinjlowm left22:11
koo4 left22:11
kermit left22:11
dv310p3r left22:12
kermit joined22:12
estevo|afk left22:12
es joined22:12
macabre left22:15
rendar left22:16
iocor left22:16
dr_win left22:16
koo3 joined22:17
dr_win joined22:17
dpino left22:18
lyddonb left22:18
Russell^^ left22:19
infogulch_ joined22:19
voidx left22:20
marcogmonteiro left22:20
tidalwav1 joined22:20
tidalwav1 Seems like there was a change in a recent Git release that prompts for a commit message when a recursive merge is made with no conflicts? Git never used to prompt for the message, how do I get back the previous behavior?22:21
koo3 left22:21
dstorrs left22:22
dstorrs joined22:24
robotmay joined22:24
w0ng left22:25
coyotebush joined22:25
w0ng joined22:26
koo3 joined22:26
CareBear\ so22:26
the_drow joined22:26
CareBear\ $ git status22:26
fatal: failed to read object d5b7e80f64e63ec67f00e417a4938b539e4bdc87: Invalid argument22:26
the_drow hi, I kinda don't get what to do with git add -i22:26
CareBear\ the_drow : p22:26
the_drow with hg record everything is simple and clear for me. I'm not much of a git user though22:26
CareBear\ the_drow : then you get to select and/or edit hunks before you add them to the index22:27
the_drow I want to select what to add to commit22:27
FauxFaux CareBear\: Filesystem has corrupted that object. Backup, move it out of the way, git fsck, pray. That, or give up and reclone.22:27
koo3 left22:27
the_drow now what do I choose? patch? update? and what do I do after that?22:27
CareBear\ FauxFaux : no clone, the object is 0 bytes22:27
the_drow : I said: p22:27
the_drow link to RTFM is also ok22:27
mastro left22:27
CareBear\ man git-add22:27
gitinfo the git-add manpage is available at http://jk.gs/git-add.html22:27
Bass10 left22:27
FauxFaux CareBear\: Yeah, 0 bytes is corrupt.22:27
CareBear\ FauxFaux : I have two 0-byte objects22:28
FauxFaux Uh oh. Still, move-and-pray?22:28
CareBear\ I renamed them22:28
bad object HEAD22:28
syphar left22:28
koo3 joined22:29
dvide joined22:29
the_drow oh for crying out loud. hg prints the diff it wants me to decide about. am I supposed to guess?22:29
still don't get it22:29
CareBear\ the_drow : choose files first22:29
the_drow : you can also do all that in the command: git add -p file.c22:29
mattalexx the_drow, git add -p22:29
CareBear\ the_drow : did you select p yet?22:29
the_drow nope22:30
Licenser left22:30
CareBear\ fourth time: select p22:30
the_drow done22:30
FauxFaux CareBear\: What did you /do/ to your filesystem? Dropbox? Virtual machine shared disc? SMB/NFS? Laptop ramdisc?22:30
CareBear\ now you get a list of files22:30
FauxFaux CareBear\: cat .git/HEAD; if it's ref: foo/bar, go look in foo/bar etc.22:30
CareBear\ FauxFaux : neither, but the filesystem was full at one point22:30
FauxFaux : it's not impossible that I tried to do a commit when there was no space free22:31
FauxFaux I very much doubt that git would have fiddled with HEAD after failing to write some objects. Maybe it has a bug, though.22:31
CareBear\ the_drow : you should get a list of files?22:31
koo3 left22:31
Dave^| left22:31
the_drow thanks. woot. s is nice. hg record doens't have that and it should :)22:31
CareBear\ the_drow : select the files you want, then it'll iterate over the hunks in each file22:31
FauxFaux : unclear, the problem seems to be a few months old (when I last poked at this repo)22:32
envi_ joined22:32
CareBear\ yes, HEAD master d5b7e80f64e63ec67f00e417a4938b539e4bdc87 which is one of the two 0 objects22:32
frnkkpp left22:32
CareBear\ how to identify commit objects?22:33
fsck22:33
FauxFaux git rev-list --all # if it'll play.22:33
CareBear\ a bunch of dangling blobs and trees22:33
about one per file22:33
the_drow ok I now have two commits, how do I merge them into one commit and tell git to repeat that on the remote?22:33
CareBear\ the_drow : git rebase -i HEAD^22:34
FauxFaux CareBear\: Completely ignore dangling output from fsck, it's irrelevant.22:34
CareBear\ the_drow : make that git rebase -i HEAD^^ actually22:34
drizzd left22:34
CannedCorn left22:34
CareBear\ the_drow : change pick for second commit to squash (if you want to combine commit messages) or fixup (if you want to use the first commit message and discard the second)22:34
koo3 joined22:34
Davey_ left22:34
CareBear\ nay, rev-list is also unhappy22:35
mikepack left22:35
CareBear\ --reverse also doesn't do it22:36
mgpcoe joined22:37
FauxFaux find .git/objscts -exec git cat-fil..22:37
(brb)22:37
CareBear\ thanks22:37
.git/objects $ ls -1 */*|git cat-file --batch22:38
07/bd35f4b3e6f189f08bdb3ad826619c429d0a2b missing22:38
the_drow thanks22:38
CareBear\ it says missing for all objects :\22:38
Sargun_Screen left22:39
kevlarman CareBear\: probably because of the /22:39
tidalwav1 anyone on my question from before?22:39
CareBear\ kevlarman : yes you're right, it needs object identifiers and not filenames22:40
sitaram SethRobertson, kevlarman: lwhalen has apparently left, but what he needed was just "gl-setup -q admin-name.pub" (using the correct pubkey), followed by "git push -f" from the most recent clone of the admin repo22:40
SethRobertson, kevlarman: he did not mention losing ~/repositories, only ~/.gitolite (because instead of "/var/gitolite/" he gave "/var/gitolite/*" to the rsync command and lost dot files)22:41
(he also needs to recreate ~/.gitolite.rc but that is not so hard for most sites)22:41
envi_ left22:41
the_drow ok now after the rebase when I push it asks me to merge with remote which I don't want. I want to overwrite with my rebase. How can it be done?22:41
brngardner left22:41
guampa left22:42
CareBear\ the_drow : please pastebin exact output from your git push command?22:42
kristjan left22:42
teweWORK left22:42
acl_ tidalwav1: try adding "--no-edit" to your git merge command (ref: http://git-blame.blogspot.com/2012/04/git-1710.html)22:43
DarkAR left22:43
the_drow CareBear\: http://pastebin.com/XBiCcsYa22:43
tewecske left22:43
iocor joined22:44
tidalwav1 acl_: Thanks very much, that explains it22:44
acl_: found it in the manpage for merge right before you told me :)22:44
acl_ tidalwav1: np :)22:44
the_drow CareBear\: -f? :P22:45
CareBear\ FauxFaux : ah no I remember now, I was working on the code, with an SSD, until the battery drained22:45
flaguy48 left22:45
jave left22:45
tidalwav1 left22:45
CareBear\ the_drow : yes, you can push -f but please see about !rewriting22:45
gitinfo [!rewriting_public_history] Rewriting public history is a very bad idea. Anyone else who may have pulled the old history will have to `git pull --rebase` and even worse things if they have tagged or branched, so you must publish your humiliation so they know what to do. You will need to `git push -f` to force the push. The server may not allow this. See receive.denyNonFastForwards (git-config)22:45
master-lincoln left22:45
FauxFaux CareBear\: Uh oh.22:45
the_drow CareBear\: if I am working alone currently, is this a non-issue?22:47
CareBear\ FauxFaux : all right, I think I've got the most recent commit. let's see22:47
the_drow : yes22:47
tyatpi_ left22:48
CareBear\ FauxFaux : reflog is empty22:48
FauxFaux You can just reset --hard to a commit.22:48
CareBear\ no thanks - then I will lose uncommitted changes22:48
the_drow awesome, thanks22:48
CareBear\ the_drow : you're welcome22:48
FauxFaux You can just reset --something to a commit, then.22:48
the_drow now I thought that git was the king of rewriting history22:49
jave joined22:49
CareBear\ the_drow : it is22:49
the_drow why it can't just repeat what I've done everywhere22:49
CareBear\ the_drow : you can, but you will get different commits22:49
the_drow : because the commit includes timestamps22:49
the_drow I mean, I get that with mercurial. I just tell everyone what I've done and expect them to do the same.22:49
eph3meral so, I've noticed that when I git pull --rebase origin master while in my feature branch22:49
and then keep working22:49
ceej left22:49
eph3meral and then master changes a little more, and then I rebase again to get the new changes22:49
I have to go through the ENTIRE rebase process starting from my original branch point, which is hell after a topic branch matures for a while22:50
is there a way around this?22:50
the_drow CareBear\: so they will be a different rev?22:50
ceej joined22:50
CareBear\ eph3meral : sync often with upstream22:50
the_drow : the commit will be different because it has a different timestamp (and presumably also a different committer)22:51
the_drow : "rev" isn't a great term in git lingo :)22:51
the_drow so, howcome it is not repeatable?22:51
CareBear\ the_drow : second time: commits include among other things timestamp and committer22:51
eletuchy joined22:51
the_drow so change the commiter?22:52
CareBear\ *no*22:52
send them their commit22:52
sorry22:52
send them *your* commit22:52
SkAzZ joined22:52
the_drow that is, push to their repository so they will push?22:52
CareBear\ push to a repository which they pull --rebase from is one way22:53
sending a patch via email is another22:53
see man git send-email22:53
gitinfo the git-send-email manpage is available at http://jk.gs/git-send-email.html22:53
CareBear\ push is slightly more reliable for a few corner cases where email doesn't work22:53
timoxley joined22:53
bremner yeah, sending 8 bit patches with git-send-email is chancy22:54
the_drow ok, got it. I think. Why not just keep the committer and the timestamp?22:54
dzonder left22:54
CareBear\ bremner : git am can not take commits which have patch-looking content in the commit message22:54
the_drow : define keep?22:55
eletuchy_ left22:55
the_drow that is that the changeset will have the same timestamp and commiter but it will be a different changeset22:55
CareBear\ changeset is also not a git term22:56
lyddonb joined22:56
CareBear\ the_drow : I don't understand your question I'm afraid22:57
brngardner joined22:57
the_drow too tired to phrase it22:57
2:00 am here22:57
time for bed I guess.22:57
lonewulf` left22:57
the_drow I'll come back tomorrow. promise.22:57
ttyl22:57
Superlokkus left22:58
CareBear\ the_drow : git considers that two people working on the same file and changing the same parts of it and committing it independently should lead to a conflict22:58
the_drow oh right22:58
CareBear\ there is actually an exception to this22:58
the_drow oh?22:58
CareBear\ when doing rebase, if a local commit is identical *in contents* to a commit fetched from the remote, then the local commit will be discarded22:59
(and the fetched commit used)22:59
the_drow nice22:59
CareBear\ (it will then have been applied *before* all local commits)22:59
fission6 left23:00
lonewulf` joined23:00
hotwings joined23:00
kaen joined23:01
kaen left23:01
kaen joined23:01
the_drow git is powerful, but it is kinda dangerous. it's the reason we choose hg at work. and for ppl who have worked only with svn or worse, with sourcesafe it's a progress23:01
neersighted left23:01
the_drow anyway23:01
CareBear\ it's really difficult to lose data with git23:01
the_drow I'm kinda crashing here.23:01
cime left23:01
the_drow I'll be back23:01
eph3meral CareBear\, what do you mean by "sync" ?23:01
the_drow promise :)23:01
eph3meral CareBear\, when you say "sync often with upstream"23:01
isn't that the purpose of git pull --rebase origin master?23:02
CareBear\ the_crow : commits can appear to be lost, but any unused commits get stored for some 90 days before they are garbage collected23:02
eph3meral to sync my current branch with master?23:02
hotwings hi.. how would i download the 10 newest commits, each into their own directory? i cant find anything to tell git to 'clone commit hash <id>' like you can do with mercurial for example (using hg clone -r <revision #>)23:02
neersighted joined23:02
CareBear\ eph3meral : another way to say sync: get your commits into upstream as quickly as possible23:03
hotwings : every clone has every commit23:03
apok_ joined23:03
eph3meral CareBear\, ahh, well... way to avoid actually answering the question, but thanks for trying, drink coke, play again23:04
CareBear\ (unless git clone is otherwise instructed)23:04
v0n joined23:04
CareBear\ eph3meral : the point is that if your branch is very long then yes you do have to handle conflicts over and over again23:04
hotwings err.. so i would download a fresh clone.. then reverse the latest commit.. copy the dir, reverse the next one, copy the dir, etc etc ?23:04
CareBear\ hotwings : lord no23:05
hotwings : why do you want separate directories?23:05
coyotebush left23:05
welly joined23:05
hotwings something broke and im trying to figure out which commit did the breaking23:05
CareBear\ hotwings : let's start there. I sense an XY problem. you want X and think Y is how to do it, so you ask for Y. but Y is not the best way to get X.23:05
hotwings : for this you should use git bisect23:05
indeed, XY problem23:05
hotwings : check out man git-bisect but there is also good info about bisect in !book23:06
gitinfo the git-bisect manpage is available at http://jk.gs/git-bisect.html23:06
hotwings i believe one of the last 10 commits caused the break, i just dont know any way to test each of the last 10 commits23:06
CareBear\ !book23:06
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !gitt !vcbe and !parable23:06
apok left23:06
apok_apok23:06
CareBear\ if you can't positively test for the error how can you isolate it?23:06
if you *can* test for the error automatically, then you just have to give a few git commands and then git will find the breaking commit for you23:07
it is pretty kick ass23:07
hotwings i can test for the error23:07
CareBear\ perfect23:07
SkAzZ left23:07
eph3meral CareBear\, that's only when rebasing, if I were to do a regular merge from master in to my topic branch, that wouldn't be the case... right?23:08
hotwings the break is in an output plugin for VDR.. so i start vdr -> test for break.. if its broken, i want to try the previous commit.. recompile, start vdr -> check , and so on23:08
chrisgeorge left23:08
CareBear\ hotwings : http://progit.org/book/ch6-5.html scroll down to Binary search23:08
duckx left23:09
CareBear\ eph3meral : possibly, I'm unsure, I don't do much merging23:09
eph3meral : I do believe that git "remembers" merge conflict resolutions under some circumstances23:09
madewokherd joined23:09
CareBear\ eph3meral : perhaps check out man git-rerere although I don't remember exactly what it does :)23:10
gitinfo the git-rerere manpage is available at http://jk.gs/git-rerere.html23:10
Nightfire034 left23:10
CareBear\ hotwings : you can't automate the test? ok, then just go through bisect manually23:10
hotwings : please read the documentation now23:10
s3a left23:10
kevwil left23:11
tatsuya_o left23:11
schnatta left23:11
eph3meral CareBear\, nice, now *that* seems to answer the question, thanks :)23:11
tatsuya_o joined23:12
smax joined23:12
smax git rebase --abort # Didn't restore my branch to the way it was before running git rebase master23:12
I don't want to resolve the conflicts myself23:12
CareBear\ smax : then who will do it?23:12
hotwings no, the test cant be automated because i have to see if the output plugin is working or not (ie: black screen only, or video is working)23:12
CareBear\ hotwings : you can do it manually. did you check out the docs?23:13
smax don't worry about it.23:13
how do I restore to a particular commit23:13
CareBear\ smax : what happened when you did rebase --abort?23:13
macmartine left23:13
smax Stuff not worked.23:14
how do I restore to a particular commit23:14
CareBear\ wrong23:14
please put the output from git in a pastebin23:14
robotmay_ joined23:14
smax it's not git, it's the project.23:14
robotmay left23:14
hotwings yes ive read it just now but i dont see how to compile <commit hash> inbetween each test23:14
ph^ left23:14
tarepanda26 joined23:14
CareBear\ hotwings : use your code23:14
hotwings : if you don't need to compile it then do whatever else to test it23:15
hotwings : you only need to name a known good and a known bad commit23:15
stkrzysiak left23:15
smax ffs23:15
it's a simple question.23:15
CareBear\ smax : it's possibly an XY question23:16
hotwings im not sure what code you mean.. the vdr plugin code (vdr-softhddevice) that im trying to test the last 10 commits of or?23:16
CareBear\ smax : I want to understand what happened with your rebase23:16
smax the hell should I know.23:16
CareBear\ smax : "Stuff not worked." doesn't tell me, output from git could23:16
eph3meral smax, git reset --hard SOMECOMMITHASHGOESHERE23:16
i believe23:16
ryden joined23:16
smax eph3meral: thank you.23:16
sheesh.23:16
eph3meral smax, git reset --hard HEAD && git clean -d -f23:16
CareBear\ eph3meral : do you know the XY axiom?23:16
eph3meral the second command may be dangerous if you have files you have .gitignore'd but don't want deleted23:16
CareBear\ hotwings : are you sure that the error is within th elast 10 commits?23:17
AaronMT joined23:17
ryden Hi, is it possible to have a repository with some submodules and use all of them as if it'd be a single repository?23:17
CareBear\ ryden : short answer no not really23:17
ryden Awww.23:17
hotwings CareBear\ - about 95% certain, yes23:17
flaguy48 joined23:17
CareBear\ hotwings : no use. must be 100%23:17
mritz left23:17
CareBear\ hotwings : find the first good commit23:17
ryden Thanks CareBear\23:17
CareBear\ ryden : what aspects are important to you?23:18
hotwings : it's perfectly fine if the known good commit is actually pretty old23:18
ryden CareBear\, what do you mean?23:18
lunks joined23:18
soulcake left23:18
CareBear\ hotwings : since it's a binary search some hundred commits will not make a big difference in the number of iterations needed23:19
hotwings CareBear\ - definitely within the last 15.. i believe within the last 10.. but last 15 im 100% sure23:19
CareBear\ ryden : you probably had some particular aspects of git repositories in mind when you asked the question, but the question is very very general, so the answer must be no. but if you specify what you had in mind perhaps the answer will be yes.23:19
lunks Hi, I'm using git-svn and for some reason the svn tags are not being translated as tags, but rather branches. Is there something I should do or did I do something wrong? My config file: http://pastie.org/377120423:20
ajpiano left23:20
ryden CareBear\, I have some code that is shared between multiple applications, and also some code that some developers might not see.23:20
CareBear\ hotwings : great! git checkout master && git bisect start && git bisect bad && git bisect good HEAD~1523:20
hotwings CareBear\ - ok, and i do that after i do `git clone git://projects.vdr-developer.org/vdr-plugin-softhddevice.git` right?23:20
tarepanda26 left23:20
CareBear\ hotwings : no23:21
hotwings : did you read the man page?23:21
hotwings i read the "binary search" section you recommended23:21
CareBear\ hotwings : after git bisect good HEAD~15 you test. if works, run git bisect good. if not works, run git bisect bad.23:21
hotwings : before that I linked to man git-bisect23:21
gitinfo the git-bisect manpage is available at http://jk.gs/git-bisect.html23:21
smax git reset --hard HEAD && git clean -d -f # fucked my branch up. thanks. You're lucky I backed it up to a new branch.23:21
smax left23:21
CareBear\ smax : this is also completely typical for an XY problem23:22
hotwings and the plugin binary _doesnt_ need to be recompiled at all? that seems really strange23:22
CareBear\ hotwings : of course it does. you run git bisect inside your repo where the bug will exist.23:22
eph3meral how do I add -y / --no-prompt to my ~/.gitconfig23:22
i don't see any docs on this23:22
CareBear\ hotwings : if you need to clone that vdr-plugin-softhddevice.git for something else then go ahead23:22
eph3meral i see it in the git-mergetool man page, but there's in information on what the setting is called in .gitconfig23:22
eicto joined23:22
v0n left23:23
master-lincoln joined23:23
WillMarshall joined23:23
ajpiano joined23:23
aspotashev left23:23
superdmp left23:24
Element9 left23:24
eph3meral also, my google searches are coming up a bit dry23:24
CareBear\ smax : you asked a straightforward question about how to do something and eph3meral answered exactly how to do it. you can *NOT* blame eph3meral for you having asked what turned out to be the wrong question. XY problem: you want to do X and think Y is the way to do it, so you ask for help with Y. but Y is actually not the right way to do X. please ask about X.23:24
eph3meral lots of *close* results23:24
not quite what I want23:24
CareBear\ eph3meral : see if there's a config option mentioned in the text for the command line option23:25
eph3meral : if not, I don't think there's a way to configure it. but you can make an alias which includes it, using git alias23:25
thomas_b left23:26
hgb left23:26
robotmay joined23:26
marhaban joined23:26
marhaban left23:27
marhaban joined23:27
soulcake joined23:27
gerard0 left23:28
dzonder joined23:28
marhaban left23:28
jweinberg left23:28
marhaban1 joined23:28
jweinberg joined23:28
gitinfo set mode: +v23:28
marhaban1 left23:28
jweinberg I have a local repository that I want to push into a directory onto a remote repository, how do I do that while preserving history?23:28
robotmay_ left23:28
marhaban joined23:29
CareBear\ no can do23:29
thiago git is not a deployment tool23:29
CareBear\ a repository is a repository23:29
kevwil joined23:29
thiago you can push to a repository, but git will not update anything because of the push23:29
robotmay_ joined23:29
thiago if you want to do that, you can write a script or use one of the many existing ones23:29
marhaban left23:29
marhaban1 joined23:29
CareBear\ I like http://joemaller.com/990/23:30
jweinberg I'm not trying to deploy, this is the remote I want to make it live on23:30
robotmay_ left23:30
marhaban1 left23:30
hotwings CareBear\ - thanks for your help. im going to see if i can fumble through this and figure out which commit caused this breakage. i guess i just have to recompile the plugin after each 'git bisect [good|bad]'23:30
swappoke joined23:31
es left23:31
robotmay_ joined23:31
marhaban joined23:31
MestreLion joined23:31
estevocastro joined23:31
CareBear\ hotwings : yes exactly, you have to recompile, but if the Makefiles are decent they should only compile what actually changed between each step23:31
thiago jweinberg: then remote repositories don't have directories23:31
robotmay left23:31
robotma__ joined23:31
marhaban1 joined23:32
marhaban left23:32
mklappstuhl left23:32
robotma__ left23:32
CareBear\ jweinberg : the closest you can come is to work remotely and: create a subdirectory in the repo, add the repo you want as a submodule, commit, git submodule init && git submodule update23:32
robotmay_ left23:32
CareBear\ jweinberg : but you'll still not be able to push into it. see joemaller.com/990 for one way to get around that23:32
marhaban1 left23:32
hotwings CareBear\ - i use ccache here so that should happen. but either way the plugin is very small and compiles in a matter of seconds anyways23:33
marhaban joined23:33
robotmay joined23:33
CareBear\ hotwings : so you should find the problem quickly. great!23:33
eijk_ left23:33
eletuchy_ joined23:33
hotwings CareBear\ - yup.. just need to wait for others to finish watching their movie so i can take the tv over and test :)23:33
marhaban left23:33
pokeswap left23:33
marhaban1 joined23:33
codewrangler left23:34
lunks I can't get this tag thing with git-svn :/23:34
MestreLion I have this scenario: upstream/master----A1---A2 (A2 is a "linear extension" of A1). Now master have moved and I want to rebase both A1 and A2 to the new master, as upstream/master(new)------A1'----A2'. Is this possible in a single command?23:35
lunks Could it be that the tags are wrong in the svn server itself?23:35
unclepiss joined23:35
eletuchy left23:35
Unclemantis left23:36
CareBear\ MestreLion : do you have A1 and A2 on a separate branch locally?23:36
lunks left23:36
sbell left23:36
CareBear\ MestreLion : and is your remote called upstream or origin?23:36
MestreLion CareBear\: yes, A1 and A2 are branches23:36
CareBear\ they are separate branches?23:36
sbell joined23:36
MestreLion CareBear\: upstream23:36
n1x joined23:37
ketas left23:37
maestrojed joined23:37
MestreLion CareBear\: define "separate" ? yes, they are different branches, but A1 is a direct ancestor of A223:37
CareBear\ if they are different branches you need one command per branch23:37
git rebase upstream/master A1 && git rebase A1 A223:38
iocor left23:38
marhaban1 left23:38
neurodrone left23:38
coyotebush joined23:38
MestreLion humm, no need of --onto ?23:38
cccaldas_ left23:38
blackmatrix_ny joined23:39
hgb joined23:39
MestreLion yes, of course not...23:39
that's simple enough, thank you CareBear\23:40
unclepiss left23:40
CareBear\ MestreLion : you're welcome23:40
Guest87934 joined23:40
sbell left23:41
ldlework left23:41
alexisabril left23:41
Unclemantis joined23:41
UnclemantisGuest2828023:42
ldlework joined23:42
maestrojed I am trying to revert one file that was part of a previous commit. "git checkout 765ef0e -- folder/file.php" I get no error, no message. Doesn't seem like the file reverted. Is my command wrong?23:44
brngardner left23:44
rockets left23:44
tizzotizzo-afk23:44
thomas_b joined23:44
CareBear\ maestrojed : the term revert only applies to commits, and means creating a new commit which negates the changes of the reverted commits. you checked out a file from a previous commit, and if there is no error then you get no error message.23:45
eph3meral left23:45
CareBear\ meastrojed : confirm using git status and git diff23:45
superdmp joined23:45
maurer left23:45
maestrojed CareBear ok, no doubt my terminology is off :). I would be fine with this all being a new commit. I just want my old file back. Git status shows no modified files, nothing staged, etc.23:46
dhruvasagar left23:47
gdoteof joined23:47
ehsan left23:47
CareBear\ meastrojed : are you sure that 765ef0e has your previous state of the file?23:47
maestrojed : perhaps 765ef0e is the commit that changed the file (incorrectly) to it's current state?23:48
maestrojed : that would explain why git status shows no changes23:48
maestrojed : try git checkout 765ef0e^ dir/file23:48
rchavik joined23:49
rchavik left23:49
rchavik joined23:49
spyro left23:49
maestrojed CareBear\ thats makes sense, I think you are right23:49
spyro joined23:49
Slix` left23:49
dhruvasagar joined23:50
mister_m joined23:53
rrn left23:53
acl_ left23:53
envi_ joined23:54
blackmatrix_ny left23:54
d2dchat left23:55
kenperkins left23:56
soulcake left23:56
jweinberg http://www.nomachetejuggling.com/2011/09/12/moving-one-git-repo-into-another-as-subdirectory/ is what23:56
is what I was looking for23:56
may have phrased it poorly I guess23:57
kpreid left23:57
n1x left23:57
rrn joined23:58
envi_ left23:59

Logs Search ←Prev date Next date→ Channels Documentation