IRCloggy #git 2013-08-02

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2013-08-02

linkonu joined00:00
mckendricks joined00:01
linkonu left00:02
michaelarestad joined00:03
jon_r joined00:04
emergion joined00:04
sraf left00:04
sraf joined00:04
dreiss joined00:05
guzzlefry joined00:06
sgambino left00:06
enr left00:06
z8z joined00:06
chrisgeorge joined00:06
_Roden_ left00:06
guzzlefry How can I grab a diff between what's in origin and my current working copy? I've tried doing git fetch origin master && git diff HEAD...origin; with no luck.00:06
LBV_User there is some way I can get only the name of current branch?00:06
guzzlefry LBV_User, git branch?00:06
doener joined00:07
LBV_User guzzlefry: it lists all...00:07
guzzlefry LBV_User, quick and dirty way: git branch | grep \*00:07
There's probably a better one.00:07
LBV_User that is, I'm writing a cmake command, and I need to run it on windows too, so I cannot afford for string manipulation commands from bash/sh...00:07
michaelarestad left00:08
yshh joined00:08
hellome left00:09
saustin If, say, a team was to want to track something like a hundred projects using Eclipse and EGit, would they create a repository per project? or a repository for all projects?00:09
infogulch left00:09
nathancahill joined00:09
LBV_User saustin: save yourself from headaches.... 1 repo per project and submodule everybody00:10
guzzlefry LBV_User: I'm not seeing anything, which is odd. You'd think that would be in there. You can read over man git branch to check after me if you want to be sure.00:10
gitinfo LBV_User: the git-branch manpage is available at http://jk.gs/git-branch.html00:10
saustin LBV_User thanks :)00:10
kevlarman LBV_User: submodules avoiding headaches? this is news to me :P00:10
LBV_User kevlarman: I've been using submodules just as a convenience... add all projects to a superproject helps to fetch everybody at once00:11
ncd|leeN left00:11
infogulch joined00:12
Balliad left00:12
LBV_User guzzlefry: I've searched man pages... tried many commands... but it didn't found anything that would work without grep and friends00:12
kermit joined00:13
aberrant left00:13
trungqtran joined00:14
nathancahill left00:15
konundra left00:15
kevlarman guzzlefry: first of all, !four, second of all git fetch;git diff origin/master00:16
gitinfo guzzlefry: [!fetchfour] We recommend against using 'git fetch/pull <remote> <refspec>' (i.e. with branch argument), because it doesn't update the <remote>/<branch> ref. The easy way to fetch things properly is to get everything: 'git fetch' or 'git pull' are sufficient if you have one remote; otherwise we recommend 'git fetch <remote>' (plus 'git merge <remote>/<branch>' if you wanted to pull/merge).00:16
kevlarman LBV_User: git symbolic-ref HEAD00:16
simesy left00:16
emergion left00:17
LuxuryMode joined00:18
LBV_User kevlarman: :D --short will come in handy also :D thanks00:19
SebanK joined00:19
kevlarman LBV_User: if it's newer than 1.4.2, i have no idea it exists :P00:19
enr joined00:20
LBV_User I'm using 1.8.3.3... :P00:20
kevlarman i'm on 1.8.1.2, doesn't stop me from being oblivious to all features introduced in the middle00:20
except @{u}00:21
i love @{u}00:21
guzzlefry kevlarman: thanks, that worked.00:21
LBV_User that CMakeLists will never be the same now :D00:21
kevlarman guzzlefry: if you specify 2 commits, you get a diff between them, if you specify 1, you get a diff against the working copy (and .../.. don't actually do anything as far as diff is concerned)00:22
sriracha left00:22
jaeckel joined00:22
sriracha joined00:22
goshawk joined00:23
LBV_User there is a way to count how many commits existed between the last tag and last commit?00:24
enr left00:24
LBV_User (I'm starting to think it is easy to put the sha1 in the final binary)00:24
ntus1017 left00:24
emergion joined00:25
kevlarman LBV_User: git describe00:26
Bruno_ left00:26
BSaboia joined00:26
jefflyne left00:26
AAA_awright left00:28
michaelarestad joined00:29
Trieste_zzz left00:30
Kabaka left00:30
umib0zu left00:32
groglogic joined00:32
Kabaka joined00:33
BJfreeman left00:33
iliketurtles left00:34
emergion left00:34
fridim_ joined00:35
jefflyne joined00:35
chrob left00:35
cads joined00:35
yshh left00:36
yshh joined00:36
pr0ton left00:37
Trieste_zzz joined00:37
janauzzz joined00:39
joelpitt_ joined00:39
joelpitt_ left00:39
joelpitt_ joined00:39
yshh left00:41
janaus_ left00:42
joelpittet left00:42
tplaner left00:43
Fritz7 left00:43
Pio joined00:43
Fritz7 joined00:43
boombatower joined00:44
devth left00:44
nilg` left00:44
tplaner joined00:44
crash\ left00:45
normanrichards left00:45
trungqtran left00:45
hyperair left00:46
pr0ton joined00:47
DonRichie left00:47
ology joined00:47
madewokherd joined00:47
Fritz7 left00:48
DonRichie joined00:48
trungqtran joined00:48
PeterBooker left00:49
hellome joined00:49
AaronMT left00:49
crash\ joined00:49
ntus1017 joined00:50
nbouscal joined00:51
hachque joined00:53
Fritz7 joined00:53
SebanK Hello everybody. At my student assistant job we use Gitlab to host the projects managed by Git. I was asked to find out if it is possible to display the different projects at the projects page in Gitlab in some specific order, not just one below the other. With specific order I mean sth like this http://pastebin.com/PJJ3Edga00:54
ntus1017 left00:54
Liir left00:54
SebanK Does someone of you know if and how this is possible?00:54
danecando joined00:55
JosephSilber joined00:55
hemanth joined00:55
ojacobson left00:56
guzzlefry left00:58
Fritz7 left00:58
hachque left00:59
rednaks left00:59
hachque joined00:59
yshh joined01:00
harish_ left01:00
goshawk left01:00
pitzips left01:00
LBV_User SebanK: never used it, but I guess you'll need some Ruby coding...01:01
Suprano joined01:01
k_sze[work] joined01:01
sampiero left01:02
Vinnie_win left01:02
Fritz7 joined01:02
LBV_User or maybe you can use separated repositories for each group...01:02
weiyang joined01:02
Marenz left01:04
z8z left01:05
thiago left01:05
Fritz7 left01:06
Fritz7 joined01:06
Davey joined01:06
LuxuryMode left01:07
michaelarestad left01:08
kermit left01:08
Vampire0 joined01:09
SebanK LBV_User: thanks for the help. I don't know if anyone in the team is familiar with ruby, most are electrical engineers or sth similar. In the link I posted 'Document 1', 'Document 2', 'Git' and the '...' would be repositories. On the gitlab server, every team has a gitlab group wherein their repos are stored. Now we would like to display them in a clearer way01:09
Fritz7 left01:09
M4renz joined01:10
z8z joined01:11
mckendricks left01:13
kini joined01:13
stkrzysiak joined01:13
Kyzz left01:14
Fritz7 joined01:14
Suprano left01:14
LBV_User SebanK: the "git solution" I can think by now is submodules, but I don't think Gitlab will hide submodules and show only superprojects... this way, I still think you will need do some ruby code... (it is supposed to be easy)...01:15
hyperair joined01:18
Fritz7 left01:18
dhruvasagar left01:18
Fritz7 joined01:19
groglogic left01:19
ology left01:19
enr joined01:20
GT4066 joined01:21
emergion joined01:21
enr left01:22
Mamoru left01:22
Fritz7 left01:23
Goplat joined01:24
chrisgeorge left01:26
nick22 left01:28
SebanK LBV_User: Using ruby, to put it simple I would have to rewrite the part of gitlab that lists the projects from 'put them one below the other' to 'sort them in the structure I want'. Is that what you mean?01:28
crash\ left01:28
michaelarestad joined01:29
LBV_User SebanK: yes... I don't think there is any other way you can say to Gitlab that project A and B are related and should be shown inside SomeGroup...01:29
CheckDavid left01:30
Fritz7 joined01:30
crash\ joined01:30
voiceofgrog joined01:31
luc_ joined01:31
zbcm left01:32
troulouliou_dev joined01:32
troulouliou_dev hi i wan to create a branch that will never be merged against master, is itpossible to localy delete master01:32
and point head to that branch locally01:33
carbohydrate left01:33
troulouliou_dev even if the server is not aware of this ?01:33
LBV_User troulouliou_dev: if you just don't push that branch, it will remain only local...01:34
Fritz7 left01:34
dhruvasagar joined01:34
troulouliou_dev LBV_User, but i want to psh it01:34
LBV_User, i want to use it like a second fork on github01:35
Fritz7 joined01:35
troulouliou_dev as github don't allow to fork a repo twice01:35
simesy joined01:35
troulouliou_dev i don't plan to pr from this branch too01:35
deryni What's wrong with just branching normally? Or do you want to make it impossible to merge?01:36
xpirator joined01:36
tmcmahon joined01:36
emergion left01:36
iliketurtles joined01:36
harish_ joined01:37
SebanK LBV_User: Ok. I will have to look into this. Thank you!01:37
jfoy left01:38
troulouliou_dev deryni, yes i m creating a fork of a project01:38
i have a master , normal clone; that i m using for pull request01:38
daito joined01:38
warlock_mza left01:39
pr0ton left01:39
troulouliou_dev and then i want the second fork that i will work on01:39
LBV_User SebanK: ;)01:39
janauzzz left01:39
troulouliou_dev hard to explain ;(01:39
Fritz7 left01:39
janauzzz joined01:39
warlock_mza joined01:40
troulouliou_dev but basically i think that repointing head is the solution01:40
jhulten left01:40
Fritz7 joined01:40
deryni I'm not sure I see why your "second fork" isn't just a second branch.01:41
hemanth left01:41
dhruvasagar left01:42
Fritz7 left01:44
Fritz7 joined01:46
Dougie187 joined01:46
xrfang left01:47
maslowbeer left01:48
SebanK left01:48
umib0zu joined01:48
umib0zu left01:49
iliketurtles left01:49
Goplat left01:50
mckendricks joined01:50
tplaner left01:51
troulouliou_dev left01:51
tplaner joined01:52
lavaman joined01:52
modInfo3 joined01:52
iliketurtles joined01:52
Goplat joined01:53
DolpheenDream joined01:56
kermit joined01:57
harish_ left01:57
Nicholas_Rishel joined01:58
bklane_ joined01:59
hahuang61 left01:59
insejn_ joined01:59
insejn left01:59
insejn_insejn01:59
SebanKr joined02:00
BitPuffin left02:01
sgambino joined02:02
bklane left02:02
tmcmahon left02:03
kukks left02:04
dsdeiz joined02:04
zbcm joined02:06
dreiss left02:06
trusktr left02:07
trungqtran left02:07
xwl joined02:08
normanrichards joined02:09
cha1tanya joined02:09
xwl hi, is there a way to git log a branch’s file only?02:09
joshsmith left02:09
EugeneKay xwl - man git-log, see how to use !dashes02:10
gitinfo xwl: Use a double-dash(--) to separate refs or arguments from file paths. This is especially useful when dealing with ambiguous names. Ex: `git checkout origin -- master` will check out the file "master" from branch "origin"02:10
xwl: the git-log manpage is available at http://jk.gs/git-log.html02:10
HelloComputer15 left02:11
xwl ah, thanks02:11
daito left02:12
thiago joined02:12
daito joined02:13
tplaner left02:15
loteriety left02:15
SebanKr I have another question: What is the differnece between the tools listed under 1.5 and 1.6? https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools02:15
Fritz7 left02:16
AndChat|157044 joined02:16
xwl left02:16
aartist left02:16
daito left02:17
Fritz7 joined02:17
FreezingCold joined02:19
daito joined02:20
deryni The web interfaces and acl tools?02:20
enr joined02:21
EugeneKay Well02:21
simesy left02:21
EugeneKay Web interfaces provide an interface for your web browser02:21
And the acl tools don't.02:21
devth joined02:21
EugeneKay !gitolite is the best one of the latter to use02:21
gitinfo Gitolite is a tool to host git repos on a server. It features fine-grained access control, custom hooks, and can be installed without root. Download: https://github.com/sitaramc/gitolite Docs: http://gitolite.com/gitolite/02:21
Nicholas_Rishel left02:22
m0viefreak left02:23
HelloComputer15 joined02:24
SebanKr ok thanks. but doesn't scm manager use the browser too? I don't get for example the difference between scm manager and gitlab. and gitolite sounda like gitlab, too.02:24
Fritz7 left02:24
harish_ joined02:24
Nicholas_Rishel joined02:24
Fritz7 joined02:25
enr left02:25
deryni gitolite does acls. web interfaces give you a web interface to a repo. Some of the fancier web interfaces are also git repo management tools (and so do acls and such).02:25
Fritz7 left02:25
EugeneKay gitolite is an acl layer, with builtin functionality for SSH key management02:25
Fritz7 joined02:25
deryni But gitweb and cgit, for example, are just web interfaces to repos.02:25
mribeirodantasvuln02:26
EugeneKay That's all it does, and it does it excellently.02:26
web interfaces tend to be written and ruby(and thus, a br0grammer's shitfest)02:26
Including gitlab02:26
vulnmribeirodantas02:26
shinnya left02:26
mribeirodantasvuln02:26
vulnmribeirodantas02:27
michaelarestad left02:27
EugeneKay (cgit and gitweb no, but they have no features to speak of)02:29
Sir_Rai joined02:29
SamB EugeneKay: what, browsing code with pretty colors isn't a feature anymore?02:29
EugeneKay I want gifs02:30
SebanKr i see. thanks guys02:30
bklane_ left02:32
bklane joined02:32
nkambonkambo-on-holida02:32
sarcasticsimba joined02:33
sarcasticsimbavigs02:33
cads left02:33
LBV_User left02:33
hwrd|work left02:33
nbouscal left02:35
meLon left02:35
meLon joined02:36
frgtn left02:36
nbouscal joined02:36
michaelarestad joined02:37
nbouscal left02:37
macabre joined02:37
damccull joined02:39
Vinnie_win joined02:39
joelpitt_ left02:40
damccull left02:41
Aww left02:42
Kabaka left02:42
kevlarman left02:43
echo-area joined02:43
Kabaka joined02:43
HelloComputer16 joined02:43
HelloComputer16 left02:44
Jeaye joined02:45
HelloComputer15 left02:45
Jeaye In an interactive rebase, I've renamed my commits in the buffer where I choose my actions (all of which are reword). Is there a way I can just have git take those new commit names isntead of ignoring the changes and prompting me for each one?02:46
joshsmith joined02:46
joshsmith left02:48
joshsmith joined02:49
bmac joined02:49
Pengoo joined02:49
hahuang61 joined02:49
warlock_mza left02:50
simesy joined02:50
cha1tanya left02:51
frgtn joined02:52
Kyzz joined02:52
michaelarestad left02:53
xpirator left02:53
frgtn left02:53
DolpheenDream left02:53
hahuang61 left02:55
cha1tanya joined02:55
dreiss joined02:56
Gooder` joined02:57
kadoban joined02:59
z8z left03:00
Gooder left03:00
devth left03:00
yacks left03:01
shuaib left03:04
carlos-huang joined03:04
breck7 left03:06
sgambino left03:08
SebanKr There are just sooo many git tools out there. :/ Let's say I have a lot of repos, but the server they are stored on doesn't enable me to see them all in an organized way. Is there some kind of front-end, that allows me to sort and catagorize the repos? The server in use runs gitlab.03:08
deryni Jeaye: Not that I know of (and the man page seems to indicate that they are just for convenience). That wouldn't let you specify long commit messages if it did work either.03:10
Unless you were categorizing based on data contained in git that isn't something that really needs to know anything about git.03:11
Fritz7 left03:12
Fritz7 joined03:12
yacks joined03:12
Fritz7 left03:14
Fritz7 joined03:15
xwl joined03:17
AndChat|157044 left03:17
IanSmithers joined03:19
IanSmithers Gentlemen.03:19
I want to push local staged changes to a remote branch of my defining. I've done it before but I've forgotten the syntax as it was a while ago.03:19
Is it something like: git push origin myname:myfeature?03:20
enr joined03:21
Aww_ joined03:21
Aww_Aww03:21
loteriety joined03:23
hugo_dc left03:24
SebanK joined03:24
SebanKr left03:24
deryni You want to push a branch you created locally to the remote?03:24
IanSmithers No not a local branch, just local staged changes to a new custom branch on the remote for someone else to grab should they wish.03:25
bitkiller left03:25
SebanK I had a disconnect. can someone have a look and tell me if someone replied to my question at x:08?03:26
gusnan left03:26
SebanK *from x:0803:26
enr left03:26
devth joined03:28
Dougie187 left03:28
mandelbr0t joined03:29
deryni IanSmithers: Local changes to an existing branch pushed to a new branch name? 'git push $remote $branch:$newname' I think.03:31
SebanK: The organize one?03:31
Davey left03:31
SebanK yes =)03:32
nbouscal joined03:32
bklane left03:33
IanSmithers So git push origin master:newname then. That looks familiar. thanks deryni03:33
deryni I commented that I don't see why that needs to be a git tool at all (unless you want to organize them based on data stored in the repos).03:33
alfplayer left03:36
michaelarestad joined03:36
jon_r left03:36
hellopat left03:36
iateadonut left03:37
ArokhArokh[Off]03:38
SebanK deryni: thanks! they should be organized by task (i guess task fits, I'm not a native english speaker =) ). e.g. one group for writing latex documents, one group for developing software x, one group for help files/how tos and so on. It does not have to be a git tool, but I thought maybe there is some tool that can list repos hosted on a gitlab server. but any other suggestion is welcomed too, of course. thanks again03:41
deryni Repos are just directories. You could write a static html page with links to the gitlab entry points for the repos if you wanted to.03:42
IanSmithers deryni If there is an existing remote branch of the name I specify, my changes just be added to it as another commit right?03:42
xpirator joined03:43
deryni IanSmithers: Not if your changes aren't a fast-forward of that commit, no.03:43
IanSmithers A fast-forward is what exactly?03:43
My changes are new additions to that branch in this case.03:44
milki IanSmithers: !fast03:44
gitinfo IanSmithers: [!ff] A fast-forward merge occurs when you merge a commit which is a descendant of !HEAD. No new commit is created, instead the branch is simply moved forward. See http://sandofsky.com/images/fast_forward.pdf03:44
IanSmithers Yeah so in this case it's a fast-forward commit yes.03:45
deryni Why didn't you just checkout that branch for your work then?03:45
Davey joined03:46
IanSmithers Because I'm on master, and want to keep my work updated with what's on master, but, add new things I don't want to wreck the integrity of master with.03:46
Which is what branching is for right? Working on new potentially unstable or prototype work whilst not interfering with the main work.03:46
milki IanSmithers: learn to !rebase03:46
gitinfo IanSmithers: [!mergerebase] @!merge_or_rebase03:46
preflex left03:47
IanSmithers Yeah of course I rebase.03:47
milki then its all good03:47
preflex_ joined03:47
IanSmithers I'm not talking about getting the work from master, I'm talking about pushing my work to a custom remote branch so it isn't part of the live build.03:47
deryni Right. My question was why not checkout that branch, then do the work, then push rather than do the work on master, push to a different name and then need to reset your local master back to upstream master.03:48
preflex_preflex03:48
deryni I'm assuming you reset after the push or I'm not sure how you could keep working on master.03:48
IanSmithers Well I don't need to reset my local master, whether I have the changes or not isn't of consequence. I just don't want those changes in master is all. So I just push them to a branch as I go.03:50
I mean 6 of 1 really it seems.03:50
deryni If you push to a branch and then keep working your next changes are still on top of those first changes.03:51
SebanK deryni: thanks a lot. I will look into this03:52
IanSmithers Ah OK deryni well then I will reset.03:52
It's OK.03:52
rchavik joined03:55
guampa left03:56
cha1tanya left03:57
danecando left03:58
bmac left03:58
AndChat|157044 joined03:59
xwl left03:59
SebanK left04:00
JosephSilber left04:01
DolpheenDream joined04:02
the_cybersphinx left04:03
rgenito joined04:04
rgenito hello everyone! i just pulled the recent changes of a branch, and a developer committed a branch that we want to COMPLETELY remove04:04
bmac joined04:05
austin joined04:05
rgenito so i did "git revert HEAD^" to revert the commit04:06
and when i saw the commit message, i realized it was reverting the previous to last commit -.-04:06
milki probably04:06
rgenito doing ":q!" in vim didn't cancel the revert ;( ... now how do i remove that "revert"?04:06
milki rgenito: !fixup04:06
gitinfo rgenito: So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!04:06
devth left04:06
joeyh left04:08
alvaro_o left04:08
rgenito oh neato...thanks milki:)04:08
so now i want to remove the revert, AND i want to remove the commit before that (from the developer) .... so, please help me out here... i'm all nervous since this isn't my territory =| is this what i want? git reset --hard HEAD~204:08
?04:08
btw, this link is awesome @_@04:09
deryni Assuming you have no local changes I believe that is what you would want. Yes.04:11
IanSmithers left04:12
rasto joined04:13
CodeShark joined04:13
DolpheenDream left04:13
rgenito deryni thanks...i'm still reading to make sure. but ya, i'm pretty set that's it...thanks:)04:14
iliketurtles left04:14
jon_r joined04:14
iliketurtles joined04:16
breck7 joined04:17
Guest91483 left04:18
simesy left04:18
motox left04:19
parcs_ left04:19
Fissure joined04:20
Noldorin left04:20
Orbitrix joined04:20
Orbitrix left04:20
Orbitrix joined04:21
ktosiek left04:21
rgenito deryni / milki so i did "git reset --hard HEAD" instead, and got the message "HEAD is now at 0894b78 Revert "broken login reverted to working version"" ... now when i do "git log" i still see the commit all the way at the top04:21
"git reset --hard HEAD" didn't remove that last commit like i expected....is there something else i'm looking for?04:21
or do i need to do something else (like git push) in order to remove the commit?04:21
breck7 left04:22
Nicholas_Rishel_ joined04:22
enr joined04:22
aspect I normally merge from develop to beta - now I've just committed a single patch on beta that I want develop to share - how do I best do this without risk of pulling other commits from beta?04:22
ktosiek joined04:22
aspect is this a cherry-pick?04:23
deryni rgenito: You are already at HEAD. Resetting to HEAD isn't going to to anything.04:24
Nicholas_Rishel left04:24
simesy joined04:25
trusktr joined04:25
rgenito ahh04:25
deryni, what am i looking for then?04:26
hoschi joined04:26
rgenito ...am i looking to revert the revert AND the previous commit as well?04:26
i guess i could just do "git revert HEAD^" twice in a row... and this would revert the correct commit as well as the accidental revert :D04:26
carlos-huang left04:26
johndo aspect: yes04:26
enr left04:27
AndChat|157044 the cherry-pick from..to wont continue if there is conflict, even after resolved?04:27
johndo rgenito: but be aware that reset is only to fix local commits which hasn't been pushed to a public or shared repository04:27
AndChat|157044xwl04:28
rgenito oh wait04:29
so, since i did "git reset HEAD", this should have removed my local commits, right?04:29
daito left04:29
deryni git revert reverts the commit you name.04:30
git reset resets HEAD to the commit you name.04:30
SamB I don't think "git reset HEAD" does much?04:30
deryni git revert adds a new commit04:30
daito joined04:30
deryni git reset does not.04:30
You want, as you said in the first place, to reset to the commit two before head.04:30
You cannot revert and remove commits.04:30
rgenito earlier, i pulled the recent changes of a branch, and a developer committed a branch that we want to COMPLETELY remove04:30
so i did "git revert HEAD^" to revert the commit. and when i saw the commit message, i realized it was reverting the previous to last commit -.-04:31
do you have any guidance on how i can solve the problem i created?04:31
johndo rgenito: so if you haven't pushed that last commit you can "undo" it by git reset HEAD~04:32
rgenito the "git revert HEAD^" commit happened even when i exited the editor and left no commit message... which i didn't expect04:32
johndo thank you! @_@04:32
johndo rgenito: but you cannot undo a commit made by a different developer that way04:32
deryni You can if you force the push (and synchronize everyone around that change).04:32
rgenito: Do you see why that revert you tried was wrong?04:33
rgenito sweet, thanks johndo ... git reset HEAD~ is exactly what i wanted04:33
deryni yes, i should've done git revert HEAD04:33
johndo s/cannot/should not/ :)04:33
Tommy[D]_ joined04:34
daito left04:34
xwl left04:35
mutbuerger joined04:35
xwl joined04:35
h0bbit joined04:35
deryni johndo: Heh. Sure.04:35
yacks left04:36
Tommy[D] left04:37
dex_ joined04:38
Katafalkas left04:38
Nikoli joined04:39
AndChat|157044 joined04:39
Nikoli_ left04:39
nilg joined04:39
austin left04:39
AndChat-157044 joined04:40
m104 joined04:40
xwl left04:40
AndChat|157044 left04:43
tjbiddle left04:44
tpollard left04:45
BSaboia left04:46
Huevos joined04:46
dhruvasagar joined04:47
nrogers64 joined04:48
Orbitrix left04:49
nrogers64 Hey guys, I'm trying to come up with the simplest way to view how a single file was modified in a past commit. I came up with a command, but it doesn't seem very elegant: git diff hash123~1..hash123 -- [path]04:50
acharlieh joined04:51
saintcajetan left04:52
Huevos left04:53
simesy left04:53
deryni git show hash -- [path]04:53
saintcajetan joined04:54
NimeshNeema left04:55
chriswk left04:55
beawesomeinstead joined04:57
Nicholas_Rishel_ left04:57
chriswk joined04:57
jab416171 joined04:58
heidar left04:58
ziddey left05:00
daito joined05:00
madewokherd left05:01
beautifulmind joined05:02
trusktr left05:02
vipzrx joined05:02
Nicholas_Rishel joined05:03
w0ng left05:04
beautifulmind left05:05
shuaib joined05:06
simesy joined05:07
sqlnoob joined05:07
sqlnoob left05:08
gmdaas joined05:08
sqlnoob joined05:08
daito left05:09
mandelbr0t left05:09
joshsmith left05:09
nrogers64 deryni: Thank you!05:09
beautifulmind joined05:09
PaulCapestany left05:10
vigs left05:11
Nicholas_Rishel left05:13
nrogers64 left05:14
Orbitrix joined05:14
Orbitrix left05:14
Orbitrix joined05:14
Nikoli_ joined05:18
Nikoli left05:19
trusktr joined05:19
glosoli joined05:21
cha1tanya joined05:21
enr joined05:22
maslowbeer joined05:24
daito joined05:25
mribeirodantas left05:26
simesy_ joined05:26
Fritz7 left05:27
Nikoli joined05:27
enr left05:27
vid401t left05:27
Cromulent joined05:28
xwl joined05:28
Nikoli_ left05:28
simesy left05:28
AndChat|157044 joined05:29
simesy_ left05:29
xwl left05:29
tjbiddle joined05:29
AndChat-157044 left05:30
bduc joined05:33
ThomasLocke joined05:35
nicedice left05:35
Cromulent left05:35
edwardly joined05:36
simesy joined05:39
hyperair left05:40
nbouscal left05:40
hahuang61 joined05:41
jayfk joined05:50
dex_ left05:50
akurilin left05:51
mishok13 joined05:51
kcj joined05:52
shruggar joined05:53
arvind_khadri joined05:54
rbento joined05:55
iliketurtles left05:55
Nikoli_ joined05:56
stliu joined05:56
jaimef left05:57
Nikoli left05:58
m104 left05:58
fridim_ left05:58
iliketurtles joined05:59
tjbiddle left05:59
bodom joined05:59
xwl joined06:00
AndChat|157044 left06:00
ewnd9 joined06:00
_________ joined06:01
glosoli left06:02
glosoli joined06:03
Caritade joined06:05
papegaaij joined06:05
chovy joined06:06
chovy is there an equivalent of 'svn info' ?06:06
luto git info? :D06:07
what does svn info do?06:07
chovy git info isn't a command.06:07
GeertV joined06:07
chovy svn info tells me where the repo is06:07
joki left06:07
luto like on which server?06:07
chovy yeah06:07
luto git can list remotes: git remote -v06:08
but there may be more than on server in that list :)06:08
depending on your local config06:08
chriswk left06:08
akitada left06:09
Toro left06:09
Sieben left06:10
hackygolucky_ left06:10
glosoli left06:10
pantsman joined06:10
beawesomeinstead left06:11
GameGamer43 left06:12
zOOd joined06:12
marthinal joined06:13
joki- joined06:13
Destos joined06:13
Cromulent joined06:14
shruggar left06:14
rath joined06:14
jab416171 left06:14
cbreak-work joined06:14
shennyg left06:15
joki-joki06:16
beawesomeinstead joined06:16
hahuang61 left06:17
akitada joined06:17
johnlcox joined06:17
zOOd left06:17
soee joined06:18
zOOd joined06:18
scottrowe_ left06:19
dhruvasagar left06:19
Sieben joined06:19
AWinterm_ joined06:19
shennyg joined06:19
trusktr left06:20
Destos left06:20
crane left06:22
zbcm left06:23
SergeyPenkin joined06:24
mckendricks left06:27
rudak joined06:28
jon_r left06:29
scorphus left06:29
Sigma joined06:29
ewnd9 left06:29
jaimef joined06:29
Marenz joined06:30
pduin joined06:31
_________ left06:31
pantsman left06:31
fRAiLtY- joined06:32
jnewt joined06:32
M4renz left06:32
breck7 joined06:33
Liska joined06:33
Amandil joined06:34
Liska left06:34
Guest___ joined06:34
jnewt stashed a few changes i'm thinking of making, continued working on branch. popped stash later, got conflict. did git reset -- file now i have the <<<<<updated upstream and ==== littered trhoughout the file. how do i get back to the file in the form that i stashed it?06:35
tallest_red left06:35
tallest_red joined06:35
deryni What does git status say about the file?06:36
jnewt modified, not staged for commit06:37
osse jnewt: git checkout refs/stash -- file06:37
but the conflicts were likely for a good reason, so be careful06:38
deryni Yeah. I would probably have suggested 'stash branch' or something.06:38
train_or joined06:39
mishok13 left06:39
jnewt deryni, that would have been the way to go.06:39
huoxito left06:40
deryni The stash entry should still be there. pop doesn't remove the entry if there's a conflict.06:40
jnewt deryni: yup, got it.06:40
psoo joined06:42
breck7 left06:42
rob_w joined06:42
noyb joined06:43
v0apihgt34 joined06:44
harish_ left06:44
Cromulent left06:45
v1apihgt34 joined06:45
v1apihgt34 left06:46
arvind_khadri left06:46
iliketurtles left06:47
arvind_khadri joined06:47
arvind_khadri left06:48
enr joined06:48
arvind_khadri joined06:48
ewnd9 joined06:50
dhruvasagar joined06:51
homer91 left06:51
train_or left06:51
nilg left06:51
Jeaye left06:51
frgtn joined06:53
vince_prignano joined06:54
ec joined06:54
heidar joined06:55
threesome joined06:56
jayfk left06:56
dytrivedi joined06:57
iliketurtles joined06:58
frgtn left06:58
Guest___ left06:59
vince_prignano left06:59
dimm joined07:00
xwl left07:00
dimm hello07:00
gitinfo dimm: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.07:00
xwl joined07:00
vince_prignano joined07:00
Gu_______ joined07:02
dimm what can i do if i need work with cyrillic symbols in folder name?07:02
mishok13 joined07:02
normanrichards left07:02
michaelarestad left07:02
netiul left07:03
NimeshNeema joined07:04
jayfk joined07:04
tkil dimm -- filenames should be "just bytes" to git (other than "/" and "\0").07:04
are you running into difficulty?07:04
sidus joined07:04
michaelarestad joined07:05
michaelarestad left07:05
jacobat joined07:06
netiul joined07:06
dimm tkil: my project has some amount of folders with cyrillic symbols, they are pulled fine. But running pre-commit hook has trouble. I see that digits is a bytes from folder name, but i don't know how i can solve this =/ http://paste.org.ru/?dbb9y007:08
bmac left07:08
milki dimm: post your pre-commit hook?07:09
tkil and check for LANG= and similar nasties...07:09
zOOd left07:10
koda joined07:10
psoo left07:10
psoo joined07:10
gua_ould joined07:11
zOOd joined07:11
dimm pre-commit - http://paste.org.ru/?mvhizg setcommithash.pl - http://paste.org.ru/?l10iit07:11
tkil: is $LANG working when git client is on windows (and git server is on windows)07:11
tkil: ?07:12
tkil i was afraid you'd say that one end or the other is on windows...07:12
dimm, i don't know. windows has the issue that the filesystem is case-preserving but not case-sensitive, and that can cause issues.07:12
harobed_ joined07:12
tkil windows FS also tends to use code pages, which can make things ugly (vs "just bytes" utf8). but i've never actually worked in such a realm, so i can't say for sure.07:13
lb1a joined07:13
milki also, windows uses utf16 rather than utf807:14
tkil $search = 'C.o.m.m.i.t.....R.e.v.i.s.i.o.n.:.'; // speaking of utf16...07:14
tkil gets a bad case of the heebie-jeebies07:14
zoresvit joined07:14
AWinterm_ left07:15
tkil dimm -- anyway, i don't see those error strings in the sample scripts you've posted.07:15
so i suspect we're still missing a step.07:15
regardless, what you'll want to do is test the precommit hook in a more controlled setting, and possibly also find a way to dump what environment it's being run within ($ENV{LANG} at the least, probably also pwd and friends.)07:16
beautifulmind left07:16
enr left07:19
maxmanders joined07:20
bdavenport left07:20
kewah joined07:21
enr joined07:21
hahuang61 joined07:22
iliketurtles left07:22
enr left07:23
iliketurtles joined07:24
enr joined07:24
Balliad joined07:24
arvind_khadri left07:24
arvind_khadri joined07:26
SuperDMP joined07:27
vince_prignano left07:30
Arokh[Off]Arokh07:32
zero7 joined07:33
Sigma left07:35
Gu_______ left07:35
cilly joined07:35
michaelarestad joined07:35
billy_ran_away left07:36
Plummer joined07:37
billy_ran_away joined07:37
Asenar joined07:38
cilly left07:38
arand joined07:38
simesy left07:38
daito left07:38
daito joined07:39
Sigma joined07:39
dfanjul joined07:40
billy_ran_away left07:43
_iron joined07:43
daito left07:44
billy_ran_away joined07:44
Anders_J joined07:45
h0bbit left07:45
michaelarestad left07:45
Sieben left07:45
thiago left07:46
harish_ joined07:46
h0bbit joined07:47
iliketurtles left07:48
valgrind joined07:48
rgenito left07:48
noyb left07:49
mutbuerger left07:50
mklappstuhl joined07:50
GT4066 left07:50
mutbuerger joined07:50
mutbuerger left07:53
mutbuerger joined07:53
ferdev left07:53
mutbuerger left07:54
mutbuerger joined07:54
dytrivedi left07:54
NimeshNeema left07:56
p1ng joined07:57
joooooo joined07:58
LimeBlast joined07:58
xwl left08:01
Sigma left08:01
xwl joined08:01
daito joined08:01
Sigma joined08:01
Sigma left08:02
achadwick joined08:03
ferdev joined08:05
chuckf left08:05
gebi joined08:05
konadr joined08:05
chuckf joined08:06
hackygolucky_ joined08:06
konadr morning all, is gitifier a commonly used tool? I'm just wondering how safe it is08:06
chriswk joined08:06
HeN joined08:06
Toro joined08:06
Goplat left08:06
multi_io joined08:07
scalability-junk joined08:07
ferdev left08:07
OliverJAsh joined08:07
selckin looks harmless why are you worried08:08
jast never heard of it08:08
xerxas joined08:08
PeterBooker joined08:08
crane_work joined08:08
tatsuya_o joined08:08
jayfk left08:08
Davey left08:08
jast sounds inefficient, though08:09
I mean, automatically fetching full updates for all repos every so many minutes?08:09
selckin well hopefull its smart to do incremental08:09
jast suppose one of the updates contains a few hundred megabytes worth of data...08:09
ferdev joined08:09
boombatower left08:09
jast bit much to fetch all of that for a little popup :)08:09
selckin seems rather useless, but if it floats your boat08:10
tkil jast -- should be easy enough to fetch just the remote refs, no?08:10
tkil skims harder.08:10
jast not if you want the actual commit messages08:10
the refs are just commit IDs08:10
Naeblis joined08:10
GameGamer43 joined08:10
SuperDMP left08:10
jast the protocol doesn't support fetching the history without the actual files08:10
tkil hm... one can get just those objects, too, tho, no?08:10
michaelarestad joined08:11
SuperDMP joined08:11
jab416171 joined08:11
tkil and if you're pinging every 60s, it'd be rare that hundreds of MB of data would show up magically, i'd think.08:11
phluks joined08:11
tkil i'm more irked that growl went payware with one of the recent updates. (not that i use it much, but now i need to set aside some time to *uninstall* the pos, because it's now asking for money.08:12
Sigma joined08:12
ecube left08:13
jast if you're pinging every 60s and you're monitoring 50 repositories, you'll probably be busy fetching talking to git servers nonstop08:13
w0ng joined08:13
kadoban left08:13
_rgn joined08:13
jast (at work I use ~150 repositories)08:13
w0ng left08:14
w0ng joined08:14
jkremser joined08:15
jkremser left08:15
jkremser joined08:15
michaelarestad left08:15
konadr it's quite handy as I dont have email alerts for the repo yet though. Only reason I'm worried is that it's private code not a github it's attached too08:16
SuperDMP left08:16
konadr is there any alternatives08:16
scottrowe_ joined08:16
noname001 joined08:16
konadr s/is/are/needcoffee08:16
Sonderblade joined08:17
nicoulaj joined08:18
AndChat|157044 joined08:19
xwl left08:19
dhruvasagar left08:20
arand left08:20
konadr oh also I havent installed growl, just the standard system notifications08:20
p1ng left08:20
ec left08:22
heidar left08:22
p1ng joined08:22
p1ng left08:22
OliverJAsh left08:23
_rgn left08:23
howlymowly joined08:23
zero7 left08:24
valgrind left08:24
rurufufuss joined08:25
cbreak-work usually, polling is dumb.08:25
hackygolucky_ left08:25
Toro left08:25
tkil cbreak -- true.08:25
HeN left08:25
valgrind joined08:25
HeN joined08:26
shennyg left08:26
scalability-junk left08:26
diegoviola joined08:27
Guest___ joined08:27
shennyg joined08:27
guns joined08:27
diegoviola hi08:27
tkil cbreak -- but there's also "i don't have admin rights to the far end, and never will, and pinging it every 300s or 60s or whatever is the best i can do."08:28
sh4rm4 what's a good strategy for dealing with this situation: you add 2 features, one of which depends on the other, but you should do it in separate branches, so you can make clean pull requests08:28
Gooder`` joined08:29
cbreak-work tkil: nah08:29
you could just ask when ever you need to know08:29
tkil cbreak -- yeah, but what if "when i need to know" is "when a collaborator checks something in"?08:30
cbreak-work tkil: spyware on their machines08:30
that's the only way to be sure08:30
sh4rm4 if you base branch2 on branch1, your pull request for branch2 will include stuff from branch108:30
tkil cbreak -- http://suptg.thisisnotatrueending.com/archive/18205767/images/1330912219544.gif08:31
jayfk joined08:31
Gooder` left08:31
trusktr joined08:31
tkil goes back to trying to figure out where an update is getting dropped...08:32
Guest___ left08:32
konadr So I guess I have to wait until we setup e-mail alerts then right? Hmm08:32
alkino joined08:33
arvind_khadri left08:33
arvind_khadri joined08:33
jefflyne left08:33
harish_ left08:34
ecube joined08:34
tkil konadr -- if the gitifier thing works fine, then just use it.08:35
xwl joined08:35
xwl left08:35
tkil seems harmless, and the code is on github if you're paranoid (or so it seems)08:35
on the other hand, if your machine is often offline, or if you have tons of remote repos, or if your repos are prone to getting hundreds of MB dumped in them ... you might occasionally get caught out.08:36
tradeoff as you see fit.08:36
v0apihgt34 left08:37
cizra left08:37
marhaban joined08:37
v0apihgt37 joined08:37
konadr thanks tkil, i've just had a quick look at the code, but nothing springs out as immediately terrible, i will see how it goes08:37
AndChat|157044 left08:37
tkil as much as cbreak and the rest of us are coming up with doomsday scenarios, even naive "git fetch" would be fine on most sane repos every 60s or so.08:38
daito left08:38
tkil perfect vs. good, etc.08:38
Guest___ joined08:38
daito joined08:39
konadr :) thanks08:39
bodom left08:40
tkil having said *that*, cbreak's assertion that "notifications are better than polling" is true 99% of the time, and you should do your best to evolve your workplace to that idea.08:41
ideal even.08:41
egh34wz746w joined08:41
v0apihgt37 left08:41
konadr ya we hope to have a mail server setup soon :) that will hopefully solve our issues08:42
cbreak-work you don't have to use mail08:42
you can do anything you want in a hook08:42
I have mine post messages to Jira08:42
konadr ohh shiny08:43
on that note, is there any dashboard tool that just displays all the commits going on?08:43
daito left08:43
mutbuerger left08:44
Orbitrix left08:45
cbreak-work dashboard?08:46
Piggy_ joined08:46
hackygolucky_ joined08:46
Guest___ left08:47
ewnd9 left08:47
konadr just a handy web frontend that can display commits, like a twittery kind of thing really, just to give others visibility of commits for display on large screens08:47
jakie joined08:47
Edgan joined08:48
ewnd9 joined08:48
p1ng joined08:48
boblee left08:49
FreezingCold left08:49
arand joined08:49
jakie hi All during a git pull I got 'CONFLICT (content): Merge conflict' on one of my files and automatic merge failed. The merged content is difficult to correct and I wanted to see my HEAD file that I committed. How do I do that?08:50
frgtn joined08:50
aChatir joined08:50
harish_ joined08:51
loteriety left08:51
boblee joined08:51
scalability-junk joined08:51
jakie svn kept 2or3 revisions of the file to help with the merge but I don't see those kind of files in git08:52
I would really appretiate some help08:52
maslowbeer left08:53
tkil jakie -- git show HEAD:path/to/file ?08:54
nkuttler joined08:55
jakie tkil, let me try that08:55
dhruvasagar joined08:55
cbreak-work jakie: use a merge tool, like git mergetool08:55
canton7 jakie, there's some archaic syntax... base: `git show :1:file`, ours: `git show :2:file`, theirs: `git show :3:file`08:55
cbreak-work it will offer you usually a three way view08:55
canton7 there's also man git mergetool08:55
gitinfo the git-mergetool manpage is available at http://jk.gs/git-mergetool.html08:55
canton7 which opens a graphical 3-way merge tool of your choice08:55
jakie, there's also 'git checkout --ours/--theirs file' to replace the merged file with one from either side of the merge08:57
sgambino joined08:57
eijk_ joined08:58
Element9 joined08:59
cbreak-work you should not use that to look at stuff, only to do some kind of one side resolution09:00
valgrind left09:00
jakie canton7, git checkout --ours was exactly what I wanted thank your so much. somehow I am not confortable with the 'git mergetool' gui.09:00
Thanks all09:01
w0ng left09:01
Gooder``` joined09:02
St_Marx left09:02
Cassiel left09:03
Guest___ joined09:03
gmdaas left09:03
mikecmpbll joined09:04
gmdaas joined09:04
Gooder`` left09:05
jnewt left09:05
jnewt joined09:06
jargon left09:06
St_Marx joined09:06
cbreak-work jakie: the gui is not from git09:07
jakie: you can chose which external program you use09:07
sh4rm4 is there a way to merge or cherrypick a commit without whitespace changes ?09:07
cbreak-work sh4rm4: you can manually remove the whitespace changes again09:08
sh4rm4 cbreak, how ?09:08
weiyang left09:08
cbreak-work sh4rm4: after the cherry-pick, git checkout -p HEAD~ && git commit09:08
Guest___ left09:08
ij joined09:09
yacks joined09:10
sh4rm4 cbreak, that puts me into git add --patch mode09:10
rbelouin joined09:11
tkil sh4rm4 -- well, the git rule is to apply deltas perfectly (without complaint) or not at all.09:11
nkuttler left09:11
sh4rm4 it shows entire hunks to be merged09:11
tkil if an incoming patch / branch has whitespace damage, you are best off fixing that WS damage in that branch.09:11
so that you can do a clean merge.09:11
michaelarestad joined09:11
sh4rm4 i want to remove all whitespace changes09:11
not damage09:12
because its a 5000 line commit, of which 4900 are whitespace noise09:12
valgrind joined09:12
tkil sh4rm4 -- uhg. take your dev out back and slap them around a bit...09:12
having said that, some games with "diff -b" and raw "patch" (*not* git apply), might be in order.09:13
cbreak-work sh4rm4: you have to use that mode to remove the whitespace changes again09:13
sh4rm4 actually what i want to merge is exactly what gitk shows when i click "hide whitespace changes"09:13
tkil cbreak -- handling chunks of 30 lines with added \r on the end, not very helpful.09:13
cbreak-work tkil: it's quite easy09:13
TomyLobo joined09:13
jargon joined09:13
cbreak-work answer yes if it's a whitespace change, answer no if it's a change with content09:13
tkil cbreak -- the issue is, i guarantee that it's mixed.09:14
cbreak-work :/09:14
committer been dumb?09:14
sh4rm4 yes, its mixed09:14
tkil so you have 50 lines with the 25th line having a valid change.09:14
sh4rm4 -- again, step outside the git box, or play games on a throw-away branch.09:14
take whatever mode gives you the reduced patch ... then force apply that patch.09:14
osse sh4rm4: git show ... | git stripspace | git apply09:15
or so09:15
GeertV left09:15
tkil cbreak -- fwiw, i've been told to look into -i / -p many times, and i've always found it useless, since it's inevitably because i was lazy and mixed two different changes within 3 lines of each otehr.09:15
other.09:15
and that's on top of the insult of making me leave my one true editor for the slums of a mere terminal window. *laugh*09:15
osse ehh, never mind. apparently stripspace is for commit messages09:15
michaelarestad left09:16
jnewt left09:16
cbreak-work tkil: I found it to be the best thing in git09:16
jnewt joined09:16
tirengarfio left09:16
osse tkil: both true editord have plugins for that :)09:16
tkil cbreak -- i guess i find it remarkable that all your changes are more than 3 lines apart?09:16
Guest___ joined09:16
tkil (or whatever the context limit is for git diff)09:17
tirengarfio joined09:17
sh4rm4 i would be happy enough if gitk could export the whitespace stripped verrsion as a patch09:17
ij left09:17
cbreak-work tkil: nah. It's quite easy09:17
beautifulmind joined09:17
chovy left09:17
cbreak-work tkil: and for rare cases there's e09:17
osse sh4rm4: idea, instead of cherrypicking, take the diff against its parent and use -b09:18
tkil sh4rm4 -- again, arrange to get copies of the affected files in the two different states, then do a "diff -w" or whatever the "ignore whitespace" is, then apply that by hook or crook.09:18
beautifulmind left09:18
tkil sh4rm4 -- ideally, you'll do that as a commit in the offending branch, so the merge is still clean and shows proper attribution.09:18
abrkn\ joined09:18
tkil cbreak -- when i'm less annoyed at my embedded hardware (8ms, really, guys?), i'll try to play with it.09:19
sh4rm4 tkil, hmm, so i basically needed to undo the commit but keep the changes09:19
paul424 joined09:19
sh4rm4 so i can use git diff09:19
tkil osse -- hm, i've played with dvc (?) and git.el, tried magit once but didn't get it, etc.09:19
sh4rm4 -- no...09:19
sh4rm4 -- clone offending branch, add a commit that fixes just whitespace, then you can switch back to head and do the nice merge with fixed branch head.09:20
sh4rm4 and how would i do the whitespace fixing commit ?09:20
tkil yes, history now has "this dev was stoopid and took a nap on their space bar" commit, but who care?09:20
who cares, even.09:20
rbelouin left09:20
quackgyver joined09:21
tkil sh4rm4 -- depending on the whitespace damage, it can be as simple as cloning the offending branch, running a pretty printer on the offending files, and then committing that change.09:21
abrkn left09:21
quackgyver left09:21
quackgyver joined09:21
sh4rm4 lol that will add even more noise09:21
tkil if it's mixing \r\n with \n, then use whatever tool you like. (M-x visit-file-literally)09:21
sh4rm4 -- better one *isolated* and *explained* bit of noise.09:21
sh4rm4 too much effort09:21
tkrugg joined09:21
quackgyver Hi, I'm getting the error "you need to resolve your current index first" for changes I haven't made.09:22
tkil sh4rm4 -- or, you know, just pitch git out the window. "it compiles, ship it!"09:22
quackgyver Can I just ignore them?09:22
canton7 quackgyver, what are you doing?09:22
quackgyver I don't even know what happened.09:22
canton7: I'm trying to switch branches09:22
canton7 quackgyver, you're in the middle of a conflicted merge, I suspect09:22
quackgyver it's telling me I've made changes to files that are way outside the scope of where I work.09:22
canton7 the output of 'git status' will confirm/deny that09:22
quackgyver canton7: Yeah, exactly, but I haven't touched the files. :/09:22
canton7 did you kick off a merge recently?09:22
quackgyver What does that mean?09:23
I haven't merged anything, nah.09:23
canton7 did you type 'git merge' or 'git pull' recently?09:23
quackgyver Yeah, I pulled from the main dev branch09:23
but haven't touched these files09:23
osse tkil: hmm. then I don't know. When you use -p git can split the changes up as long as there is at least one untouched line between each hunk. For even more fine-grained stuff you need to edit the hunk manually09:23
canton7 quackgyver, right, so you *did* merge. Have you looked at the conflicts?09:24
quackgyver canton7: I didn't know a pull was considered a merge. I specifically use the "merge" command, so I thought that's what you meant.09:24
canton7 quackgyver, a pull is just a fetch followed by a merge09:24
quackgyver oh ok09:24
glosoli joined09:24
quackgyver The conflict is just telling me that a couple of files have the conflict "delete/modify"09:24
yacks left09:25
quackgyver and that theyre deleted in "head" and modified in the main branch09:25
pen joined09:25
quackgyver i dont understand what this means.09:25
canton7 so one side deleted the file, and the other side modified it. have you accidentally deleted the file(s) in question?09:25
tkil osse -- yes, that's the crux of my "at least three lines" comment. i was finding that i was often adding debugging prints right next to the line that was actually doing work, so...09:25
quackgyver no no, I'm 200% certain i haven't touched any of these files. there's just no mistaking it09:25
that's what's confusing me. im super careful about this stuff09:25
freestyl3r left09:25
quackgyver so i dont understand how this could happen :(09:26
tkil quackgyver -- pull != fetch...09:26
canton7 quackgyver, what's the output of 'git log -p -- path/to/conflicted/file'?09:26
daito joined09:27
quackgyver canton7: its just printing the entire contents of that file09:28
as committed by someone other than me09:28
many months ago09:28
no wait, a couple of days ago09:28
canton7 at the beginning of each line, is there a '+' or a '-'?09:28
quackgyver a -09:28
and one or two +++09:28
and a @@09:28
oh, thats not part of the code, i think09:29
yeah minuses09:29
canton7 only minuses?09:29
tirengarfio left09:29
tirengarfio joined09:30
enr^ joined09:30
canton7 (if so, that's the log of the deletion)09:30
TheJH left09:31
tirengarfio left09:31
quackgyver canton7: You mean something's been deleted?09:32
canton7 it would probably be useful if you pastied the output of 'git log --graph -p --all -- path/to/conflicted file', or as much of it as you're allowed to09:32
quackgyver and its conflicting because the file exists locally?09:32
Cromulent|2 joined09:32
canton7 quackgyver, yes, one side of the merge modified the file, the other side deleted it09:32
jnewt left09:32
quackgyver canton7: I haven't modified them though, that's what's so messed up09:32
canton7 quackgyver, that's why I want to see the log09:32
quackgyver can i make a pull that just overrides my changes?09:32
or conflicts?09:32
thats all i want09:32
TheJH joined09:32
canton7 you can 'git checkout --theirs path/to/file' to checkout their side09:32
(of course, if their side was the deletion, use 'git rm' instead)09:33
tirengarfio_ joined09:33
tirengarfio joined09:33
canton7 hrm, "git log --graph --name-status --all --online -- path/to/conflicted/file" would be better09:33
s/online/oneline09:33
quackgyver Ok something is really wrong.09:34
canton7 add --decorate09:34
quackgyver I removed the three files i was having issues with, did git status agian, and now instead of those three files its giving me a huge list of modifications, added files and removed files09:35
and i still cant do a pull09:35
even though i did git rm <file>09:35
Cromulent|2 left09:35
quackgyver is there a way to just pull from origin with one single command09:35
and have it just override everything09:35
tirengarfio_ left09:35
tirengarfio left09:35
canton7 quackgyver, you're still in the middle of a merge, don't forget09:35
quackgyver whatever it may be09:35
Cromulent|2 joined09:36
canton7 presumably you want to complete the merge without throwing away all of your local commits leading up to that point?09:36
quackgyver well, my local commits are in different branches09:36
im okay with overriding this one09:36
marhaban left09:36
quackgyver i just want to get the hell out of it :(09:36
canton7 git merge --abort to abort the merge09:36
the git reset --hard <remote branch> to make it the same as the remote branch09:37
tirengarfio joined09:37
canton7 make damn sure you have the right branch checked out09:37
_BJFreeman joined09:37
quackgyver is origin a common term in git?09:37
jacobat yes09:37
Jenser joined09:37
WhoKnew joined09:37
ij joined09:37
jacobat it's the default remote repository09:37
quackgyver ok so when i do this hard reset, should i do origin/branch or just branch09:37
GeertV joined09:37
enr^ left09:37
guns left09:37
Jenser left09:38
tkil quackgyver -- also, don't forget that you can reset your head (as hard as you like), then create a branch off your head, and try the merge in the branch.09:38
lpapp joined09:38
lpapp hi, remote: warning: only found copies from modified paths due to too many files.09:38
_BJFreemanBJfreeman09:38
lpapp remote: warning: you may want to set your diff.renamelimit variable to at least 4468 and retry the command.09:38
should I care?09:38
quackgyver tkil: thanks but im not proficient enough to know how to do that09:38
tkil that's a lot less stressful than worrying about corrupting your main head.09:38
lpapp should I set that stuff, and retry?09:38
I have too many files apparently that I would like to push.09:38
it is intentional though.09:38
dwmw2_gone joined09:38
paul424 left09:39
OOPMan left09:39
OliverJAsh joined09:39
OliverJAsh i have a merge conflict, and i'd like to see where exactly changes have been made on the branch i'm merging in that are causing it to conflict09:39
locally i have moved the lines of code to another file, in the other branch the lines of code have been modified09:40
canton7 quackgyver, if you're merging in the 'master' branch on the remote called 'origin', you can reset to 'origin/master'09:40
to be safe, 'git fetch' first09:40
hyperair joined09:40
shwouchk joined09:40
shwouchk Hello09:40
m0viefreak joined09:41
shwouchk When there are conflicts in git merge, how do I take just the other/my side of a file?09:41
canton7 shwouchk, git checkout --ours/--theirs path/to/file09:41
shwouchk canton7: thanks09:42
elixir joined09:42
canton7 I'm saying that command a lot today... must be one of those days09:42
michaelarestad joined09:42
quackgyver canton7: I just did git reset --hard origin/branchname09:42
to avoid confusion, should i do something at this point?09:43
iuo?09:43
canton7 iuo?09:43
so the current branch is now the same as origin/branchname09:43
Sieben joined09:43
X3NQ joined09:43
mklappstuhl left09:44
nilg joined09:45
beautifulmind joined09:46
michaelarestad left09:47
lpapp any ideas?09:47
carlos-huang joined09:48
OOPMan joined09:48
nilg left09:49
lpapp will use git config diff.renames 009:49
quackgyver canton7: In your opinion. :)09:49
Also, I don't know if it's the same.09:49
hyperair left09:49
quackgyver The problem is that I was forced into GIT without proper training or the ability to quickly comprehend the context of what I'm doing09:49
nilg joined09:49
quackgyver I have no idea how to "visualize" what is going on09:49
whaley left09:50
quackgyver So I'm just fumbling in the dark09:50
following instructions to the point, pretty much.09:50
canton7 quackgyver, 'gitk --all'09:50
tkil quackgyver -- nice belts-and-suspenders approach: do a deep recursive copy of your entire repo before trying something you aren't comfortable with.09:50
uwjesq quackgyver: Maybe read the wikipedia article?09:50
canton7 !book, !bottomup09:50
gitinfo There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable09:50
'Git from the bottom up' starts with explaining the building blocks of git and proceeds to tell you how they fit together. http://ftp.newartisans.com/pub/git.from.bottom.up.pdf09:50
lpapp left09:51
canton7 but yeah, get very comfortable with the output of gitk09:51
that's your repo visualisation09:51
quackgyver canton7: hm, it didnt recognize gitk :o09:51
tkil quackgyver -- that is, if your repo lives in my_crazy_git_repo, then you can do: cd .. ; cp -a my_crazy_git_repo backup_of_my_crazy_git_repo09:51
canton7 what OS?09:51
quackgyver tkil: What do you mean? What does that entail?09:51
tkil then you can go into the backup and do whatever you like.09:51
quackgyver tkil: Oh, thanks for the clarification09:51
That is really useful09:51
tkil the original is untouched.09:51
dytrivedi joined09:52
tkil git provides faster and easier ways to do almost all that, but if one doesn't grok / trust git, that isn't useful.09:52
equiv on windows would be ... copy /s main_repo backup_of_repo09:52
i think, it's been a while.09:52
copy /s /y prolly09:53
dunno.09:53
quackgyver uwjesq: "Maybe read the wikipedia article." Cool, here's one for you: http://en.wikipedia.org/wiki/Dissocial_personality_disorder#Dissocial_personality_disorder09:53
Especially regarding point 1.09:53
canton7: Is that considered the best possible book you could pick up on the subject?09:53
I've been reading stuff online mostly09:53
but it's not coming to me fast enough.09:53
You think this is better?09:53
mklappstuhl joined09:53
tkil quackgyver -- please, relax. from personal experience, i can appreciate that it's not obvious / intuitive for all mindsets.09:53
quackgyver -- if others are curt, just disregard and move on.09:54
tkrugg left09:54
babilen joined09:54
canton7 quackgyver, it's generally regarded as the best resource09:55
tkil quackgyver -- from our POV, if you're thrust into a role w/o training, is that the fault of the software, the fault of the support infrastructure for that [free!] software, or a failure on the part of your management?09:55
uwjesq breathes out.09:55
jon_r joined09:55
tkil quackgyver -- finally, consider playing around with a "throw-away" repo, so you can learn w/o worrying about screwing with important content.09:55
canton7 "git from the bottom up" is a lot shorter, but covers the basic internals, which will help you a lot09:55
tkil and yes, the free online books will help.09:55
dwmw2_gone left09:55
rita40in joined09:56
tkil but you can't learn while being worried about protecting the crown jewels. if that's an issue, stop for 4 or 8 hours and play around with some throwaway content.09:56
shruggar joined09:56
uwjesq tkil: Hey, reading is not spoon feeding. *insult* *insult* *another insult* :-D09:56
rita40in left09:56
tkil uwjesq -- NO, YOU'RE WRONG!!!!!!09:57
uwjesq tkil: :-)09:57
tkil uwjesq -- prost. :)09:57
dwmw2_gone joined09:57
frgtn left09:57
the_cybersphinx joined09:57
vipzrx left09:57
BitPuffin joined09:59
quackgyver tkil: I'm not blaming git nor you guys. On the contrary, I appreciate your help and the fact that #git seems more constructive than most freenode chans I've been to, but there's always a small number of people who seem to use opportunities like these to drop backhanded suggestions as if to insinuate that what you're dealing with should be simple enough that09:59
you should be able to pick it up from a commonly used reference.09:59
If calling people out on this is against the rules then I apologize, but if not then I see nothing wrong.09:59
But that's an aside, and I'm relaxed. :)09:59
dhruvasagar left10:00
tkil fair enough.10:00
uwjesq quackgyver: Sorry I made you consider reading something.10:00
quackgyver See what I mean?10:00
People like these are just toxic.10:00
Anyway, ignoring him/her.10:00
tkil so, if you're still ucomfortable with git, please do try to take a few minutes / few hours and just *play around*.10:00
if there's not time for that, there's not time for doing it right in the first place, and the best you can do is duck and cover.10:01
quackgyver tkil: Yeah, I actually purchased a Linode server yesterday with the intention of installing and testing out git. :)10:01
But that'll take time.10:01
and problems will occur along the way.10:01
tkil quackgyver -- *shrug* it's a 2-way street, both provocation and reaction, and different POVs.10:01
quackgyver And this is one of those problems. :)10:01
p1ng left10:01
tkil quackgyver -- think about something you're skilled at. if someone came along and asked you for detailed help that existed in a FAQ or similar, would you parrot the faq, or would you point them at it?10:02
NimeshNeema joined10:02
tkil the pointng might have been somewhat undiplomatic, but it was still a pointer.10:02
and take it all in context that you're being asked to drive an expensive car on a crowded freeway without much practice.10:02
(that is, being asked to drive git on core IP / "crown jewels" without appropriate chance to learn the ropes.)10:03
we don't throw unexperienced drivers on the autobahn, your mgmt shouldn't expect unexperienced gits [heh] to navigate flawlessly.10:03
marhaban joined10:04
quackgyver tkil: Honestly? I'd do everything I could to help them, because I know that certain things don't come so easily to certain people, depending on their mindset or psychology. I'd never dismiss their question by pointing them to - what to them might be - a convoluted reference. Wikipedia is not exactly intuitive, because it's often used as a playground for10:04
people who want to showcase their ability to formulate excessively complex sentences, so it can actually be very hard to get anything worthwhile out of a technical reference article.10:04
tkil quackgyver -- also also wik, at this hour, there are probably more non-native-USA-english-speaking folks than otherwise on this channel, so there's *that* filter to accomodate as well.10:04
harish_ left10:04
Cromulent|2 left10:04
tkil quackgyver -- right, but you still won't parrot the whole thing: you'll probe and respond. what makes sense to them? what doesn't? what have you tried? what did you expect? what did you actually get? what are you trying to accomplish? how close did you get?10:05
gerard0 left10:05
nitrodex left10:05
jast linking people to so-called personality disorders isn't a terribly constructive way of arguing :}10:05
ncd|leeN joined10:05
tkil quackgyver -- i have to agree with jast -- was it better to send a [very lightly veiled] "you're an asshole" message, or should you just have moved on?10:06
quackgyver tkil: I've risked my position by sending feedback up the chain of command about stuff like this, and sometimes going directly to the board if it's a big enough issue.10:06
I'm doing everything I can here.10:06
But at the end of the day it's not my call.10:06
tkil quackgyver -- and, if you ignore the bits that annoy / offend you, i think we've given you more options.10:06
dex_ joined10:06
luke-jr_ joined10:06
tkil my suggestion for out-of-git copying, quite a few links to read, etc.10:06
mikecmpbll left10:06
beawesomeinstead left10:06
kcj left10:07
whowantstolivefo left10:07
WakiMiko left10:07
Luke-Jr left10:07
canton7 you've got links to, imo, the two best git resources. between them they taught me git10:07
quackgyver jast / tkil: It was my way of jokingly telling him that what he's doing is actually rude and not very informative. He doesn't know my circumstnaces yet dismissively points me to a non-intuitive reference doc. I know nothing of him, and points him to a personality disorder.10:07
HedgeMage left10:07
markovh left10:07
tkil quackgyver -- yet you create a negative vortex. next time, just walk past it. :)10:07
Nothing4You left10:08
JSharpe left10:08
tkil anyway. back to ground truth: what state are you trying to reach? what's getting in your way?10:08
canton7 also, !lol10:08
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all10:08
Droolio joined10:08
jast personally I do distinguish between straightforward personal attacks and assumptions of ignorance not phrased in an inflammatory way... YMMV10:08
tkil jast -- that's only because you're a jerk. ;->10:08
canton7 (if you don't have gitk, but I'd recommend getting it)10:09
jast possibly :)10:09
hahuang61 left10:09
tkil jast -- sorry. i've had ... a bit ... of wine, and i just discovered i spent 3 hours tracking down 8ms of error. so.10:09
KernelPanicMK2 left10:09
Mekkis joined10:09
torbjorn joined10:11
jast tkil: I am reminded of http://www.ibiblio.org/harris/500milemail.html10:11
Lulzon joined10:11
canton7 haha, classic one10:11
sonOfRa joined10:12
quackgyver tkil: I didn't drop that comment to protect my ego. I did it because I feel bad that every tech channel on fnode has a handful of people who poke every new user to see if they can get a reaction, and then proceed to bully that person out of the chan if they discover that said person doesn't have thick enough skin. I apologized if what I said was against the10:12
rules, but if not, then I feel like these people should at least be called out on their poor behavior.10:12
midnightmagic joined10:12
quackgyver And I didn't intend for this to become such a big deal.10:12
epsylon joined10:13
jast us #gits don't usually try to get rid of people, it's against the spirit of the whole thing10:13
quackgyver Or for it to become a source of negativity. :)10:13
jast: Yeah. I already said that I was glad to see that #git appears to be way more constructive than most fnode chans. :)10:13
michaelarestad joined10:13
hahuang61 joined10:13
tkil jast -- yeah, we just stick them in the .gitignore file. :)10:13
quackgyver lol10:13
Anyway, no ill-intend from my side, so nvm it all.10:14
HedgeMage joined10:14
jast we do often get people who know essentially nothing, though, and _lots_ of them... explaining all the details over and over each time is incredibly tedious10:14
markovh joined10:14
jast so personally I'd much rather point someone towards a decent starting point and answer any questions that may come up while they read it10:14
tkil quackgyver -- ok, so, let's review. where are you now? where do you want to be? what did you try to do to get there? where did you actually end up?10:14
gmdaas2 joined10:14
canton7 next time, why not call him out politely, one of us will probably have a quiet chat with him on the side, with the thread of the mute hammer if that isn't constructive :P10:14
chuckharmston left10:14
egh34wz746w left10:14
canton7 *threat10:14
dex_ left10:14
gmdaas left10:15
tkil canton7 -- that's crazy talk!10:15
egh34wz746w joined10:15
jast oh noes, not the evil mute hammer!@10:15
BiggFREE joined10:15
tkil jast -- remember, the worst thing about censorship is XXX XXXXXX XXX XXXX XXXXXXX!10:15
canton7 the vil mute hammer of death, doom, and destruction!10:15
jakob joined10:15
canton7 *evil10:15
and muting...10:15
egh34wz746w left10:15
quackgyver jast: Not that I'm trying to tell you what to do, but my personal opinion is "help or ignore." Some people - myself included - have a really hard time with certain technologies or certain approaches to learning. Documentation doesn't help a person like me. It's not just laziness, and I need to just ask questions in a certain way to be able to understand it.10:15
ameoba left10:15
quackgyver canton7: I didn't know you did things like that. Thanks for informing. I will keep that in mind for the future.10:16
canton7 by all means ask away - that's what we're here for :P10:16
ecube left10:16
roflin joined10:16
hyperair joined10:17
quackgyver tkil: Okay so, I'm currently in the branch that I previously couldn't leave due to the conflict caused by a modification that - for some strange reason - occured on my side, in contrast to a deletion of the same file being made on origin. I did a hard reset with git reset --hard origin/branch10:17
and now I'm just trying to ask you guys/gals what to do next, just so i dont mess anything up10:17
jast the mysterious changes are probably related to automatic line ending normalization10:17
tkil stares at "couldn't leave"...10:17
jast at least that's the most common cause by far10:18
quackgyver tkil: couldnt switch branch due to merge conflict10:18
michaelarestad left10:18
jast well, the reset destroyed anything you have that isn't already in the remote. just continue normally.10:18
xpirator left10:18
canton7 we aborted the merge, used reset to make your local branch match the remote one (you said you didn't have any commits on the local one)10:18
now, what did you want to do?10:18
AeroNotix joined10:18
AeroNotix killll meeeeeee http://i.imgur.com/7wadpNc.png10:18
WakiMiko joined10:19
ecube joined10:19
selckin joined10:19
uwjesq AeroNotix: sfw?10:19
canton7 it is10:19
_rgn joined10:20
ec joined10:20
heidar joined10:20
uwjesq AeroNotix: :-) One commit for everything.10:20
zero7 joined10:20
egh34wz746w joined10:21
egh34wz746w left10:21
tkil uwjesq -- and in the darkness bind them?10:21
uwjesq tkil: lol.10:21
quackgyver jast: Are you 100% sure that the specific command I used made my local branch an exact copy of the remote one?10:21
kewah left10:21
quackgyver and that it wont affect any other branches?10:21
AeroNotix I LITERALLY WANT TO KIL10:21
KILL10:21
canton7 quackgyver, it won't affect your other branches because reset only affects the current branch10:21
quackgyver Ok. :)10:21
sidus left10:21
canton7 quackgyver, have a look at the output of !lol10:22
gitinfo quackgyver: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all10:22
uwjesq AeroNotix: I think you can still split that commit into smaller ones that make sense.10:22
egh34wz746w joined10:22
quackgyver gitinfo: thanks. :)10:22
gitinfo quackgyver: you're welcome, but please note that I'm a bot. I'm not programmed to care.10:22
quackgyver unless youre a bot10:22
AeroNotix uwjesq: probably, but such an amateur10:22
quackgyver haha10:22
egh34wz746w left10:22
quackgyver who triggered gitinfo to tell me that?10:22
canton7 that's one of its features10:22
iveqy AeroNotix: good luck doing a bisect that ends on that commit...10:22
quackgyver: canton710:23
canton7 thanks, gitinfo10:23
gitinfo canton7: you're welcome, but please note that I'm a bot. I'm not programmed to care.10:23
AeroNotix good luck doing anything10:23
bjornars1 joined10:23
quackgyver Ah10:23
gitinfo: thanks for nothing10:23
gitinfo quackgyver: you're welcome, but please note that I'm a bot. I'm not programmed to care.10:23
Toro joined10:23
alkino left10:23
jast it's automatic10:23
quackgyver :)10:23
egh34wz746w joined10:23
egh34wz746w left10:23
quackgyver That's pretty impressive. He came off as human.10:23
Nothing4You joined10:23
iveqy quackgyver: if I understand you correctly you've trouble with reading documentation. Please consider listen to a !talk, I recommend Jessica Kerrs10:23
gitinfo quackgyver: [!talks] Some good video talks about Git: [yt] http://goo.gl/z72s (Linus Torvalds: History&Concepts); [yt] http://goo.gl/R9H2q (Scott Chacon: Git basics, live examples); http://vimeo.com/35778382 (Randal Schwartz: Git basics, descriptional); http://vimeo.com/46010208 (Jesica Kerr: Git basics, descriptional)10:23
tkil gitinfo, botsnack.10:23
z8z joined10:23
jast that was the general idea :)10:23
tkil .... lame.10:23
uwjesq AeroNotix: You can use this horrible error for good by using it in your company how to not do it.10:23
FreezingCold joined10:24
jast !botsnack10:24
gitinfo Om nom nom10:24
canton7 for a long while, jast and the bot were one and the same10:24
very confusing10:24
jast :}10:24
uwjesq uwjesq: As an example I mean.10:24
AAA_awright_ joined10:24
mechanicalduck joined10:24
jast and then I buckled down and wrote something that isn't irssi scripts.10:24
AeroNotix uwjesq: I've just quit10:24
uwjesq: literally just handed my notice in10:24
quackgyver iveqy: My problem is mostly that most references use terminology that is interchangeable and vague to someone who is not familiar with what they are reading, and which only has a specific meaning to those who are. This makes me think that reference aren't good learning sources, but rather references for people who are halfway into the language already.10:24
_Qman joined10:24
tkil AeroNotix -- just in time for these "good bye" cards: http://www.despair.com/mistakes.html10:25
quackgyver If a talk is more suitable, then I'll check them out10:25
jast quackgyver: the only potential difference left between your branch and the upstream is untracked files littering your working tree10:25
quackgyver thanks for that suggestion10:25
AeroNotix tkil: oh god, that's so fitting10:25
dvor joined10:25
tirengarfio left10:25
canton7 quackgyver, random stuff on the web generally isn't good. The !docs we've collected are10:25
gitinfo quackgyver: [!doc] A list of useful documentation of all kinds is here: http://git-scm.com/documentation -- or try the wiki at http://git.wiki.kernel.org/. Also try typing "!book" "!cs" "!bottomup" "!parable" "!best_practices" or "!vcbe" or "!designers" here in IRC. !book is probably the most helpful.10:25
tkil quackgyver -- and don't be afraid to do the "outside of git" deep copy then experiment.10:25
sidus joined10:25
jast quackgyver: we have different things we can recommend depending on how you like to learn something10:25
tirengarfio joined10:25
chuckharmston joined10:26
jast for instance, one that is geared towards computer scientists10:26
tkil quackgyver -- after getting shut down on the git mailing list (because extra diagnostics == regression, of course!), that was my main crutch.10:26
jast another that is more geared towards hackers10:26
etc.10:26
WhoKnew left10:26
uwjesq AeroNotix: Realy?10:26
AAA_awright_AAA_awright10:26
AeroNotix uwjesq: yes, really10:26
iveqy quackgyver: references is not a good learning point. I totally agree with you, however introductions and tutorials is. !book is good and when you've read that you'll be halfway in and able to understand the man pages. However Jesica really shows you the design difference in thinking to other version control system10:27
gitinfo quackgyver: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable10:27
AeroNotix I'm not working with people like that, uwjesq10:27
jast if the demotivationals are "so fitting", something is wrong :P10:27
quackgyver jast: That's a really nice, approach. I find that most people can be devided into two learning styles where one side prefers to push through sources, ignoring unfamiliar information and memorizing as much as possible until they get a sense of context, and the other side wants to understand and visualze what they're doing on a more abstract level so that they10:27
can extrapolate from that in order to understand unfamiliar concepts.10:27
tirengarfio left10:27
AeroNotix jast: did you see the image I linked to?10:27
quackgyver I belong to the latter group, and I find that it's hard to get ahold of good resources for that approach. :)10:27
AeroNotix It was *extremely* fitting10:27
aard_ joined10:27
mikecmpbll joined10:27
quackgyver I've met other people like me who has had the same complain.10:27
complaint*10:27
jast AeroNotix: my condolences10:28
AeroNotix indeed10:28
uwjesq AeroNotix: Good ridance.10:28
AeroNotix uwjesq: to me?10:28
jast for a rather more abstract introduction to git, check out !gcs10:28
gitinfo [!concepts] "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://gitolite.com/gcs/10:28
quackgyver Anyway, I'm not rejecting your suggestions. I've added them to my to-do list.10:28
tirengarfio joined10:28
quackgyver And will check them out.10:28
uwjesq AeroNotix: Yes.10:28
Edogaa joined10:28
tirengarfio_ joined10:28
AeroNotix why?10:28
quackgyver jast: Cool, thanks. :)10:28
jast aaaand... lunch break!10:29
tirengarfio left10:29
tirengarfio_ left10:29
uwjesq AeroNotix: Who wants to work at a place where they allow such commits.10:29
eqyiel joined10:29
AeroNotix uwjesq: sorry, are you not a native english speaker?10:29
diegoviola left10:30
egh34wz746w joined10:30
uwjesq AeroNotix: Yes. How would I have said it properly?10:30
AeroNotix hmm, well, the phrase "Good Riddance to <name>" means "fuck <name>" in layman's terms10:30
so I thought you were saying "Fuck AeroNotix"10:30
tirengarfio joined10:31
tirengarfio left10:31
uwjesq AeroNotix: I though you say it when you throw away something very useless.10:31
AeroNotix You can, but then I asked "To Me?" and you said "Yes"10:31
infogulch left10:31
tirengarfio joined10:31
AeroNotix I presume you thought I was asking "Were you directing that phrase at me" instead of "about me"10:31
dhruvasagar joined10:31
uwjesq AeroNotix: Yes.10:31
AeroNotix :)10:32
egh34wz746w left10:32
egh34wz746w joined10:32
egh34wz746w left10:33
jcromartie joined10:33
egh34wz746w joined10:34
egh34wz746w left10:34
mechanicalduck left10:35
egh34wz746w joined10:37
egh34wz746w left10:38
yshh left10:38
hahuang61 left10:38
insejn_ joined10:38
insejn left10:38
insejn_insejn10:38
egh34wz746w joined10:39
ij left10:40
BJfreeman left10:40
egh34wz746w left10:40
khushildep joined10:40
egh34wz746w joined10:40
sampiero joined10:41
sidus left10:41
dfanjul left10:41
egh34wz746w left10:42
frgtn joined10:42
egh34wz746w joined10:43
egh34wz746w left10:43
tirengarfio left10:43
m0ltar joined10:43
tirengarfio joined10:44
michaelarestad joined10:44
k_sze[work] left10:45
Iszak joined10:45
Iszak left10:45
beautifulmind left10:45
Iszak joined10:46
egh34wz746w joined10:46
Iszak left10:46
dimm must i restart something after edit /etc/gitconfig ?10:47
Iszak joined10:47
Iszak left10:47
sgambino left10:47
sgambino joined10:48
yacks joined10:48
Iszak joined10:48
nilg left10:48
Iszak left10:48
r0bby joined10:48
CodeShar_ joined10:48
z8z left10:48
Progster_ joined10:48
CodeShark left10:48
shwouchk dimm: no10:48
Kyzz_ joined10:48
michaelarestad left10:48
shwouchk dimm: wait, on a client or on a server?10:49
BiggFREE left10:49
ctin joined10:50
Kyzz left10:50
robbyoconnor left10:50
Progster left10:50
JSharpe joined10:50
AAA_awright Should still be no10:51
infogulch joined10:52
freestyl3r joined10:52
s0undt3ch left10:53
pen left10:53
gerard0 joined10:53
carlos-huang left10:54
s0undt3ch_ joined10:54
nilg joined10:54
harish joined10:54
Woet joined10:54
luc_ left10:56
echo-area left10:56
cads joined10:57
pdx joined10:57
aard_ left10:59
z8z joined10:59
z8z left11:00
egh34wz746w left11:01
egh34wz746w joined11:01
ewnd9 left11:02
dhruvasagar left11:03
w0ng joined11:03
egh34wz746w left11:03
egh34wz746w joined11:03
ewnd9 joined11:03
w0ng left11:03
w0ng joined11:03
hahuang61 joined11:04
egh34wz746w left11:04
egh34wz746w joined11:04
egh34wz746w left11:05
glosoli left11:06
nova_ joined11:07
denver joined11:07
elixir_ joined11:08
ecube left11:09
Ivo joined11:09
spaceonline joined11:11
daito left11:11
elixir left11:11
daito joined11:12
hahuang61 left11:12
m0ltar left11:12
Guest67126 joined11:13
elixir_ left11:13
TheJH left11:13
troulouliou_dev joined11:13
mechanicalduck joined11:13
WhoKnew joined11:14
TheJH joined11:14
egh34wz746w joined11:15
michaelarestad joined11:15
infogulch left11:15
egh34wz746w left11:15
mklappstuhl left11:15
dreiss left11:16
daito left11:16
egh34wz746w joined11:16
pen joined11:17
elixir_ joined11:17
m0viefreak left11:17
sgambino_ joined11:17
CodeShark joined11:18
egh34wz746w left11:18
infogulch joined11:18
squeakytoy|w joined11:18
trusktr left11:18
Dreamer3 left11:18
r0bby left11:18
sgambino left11:18
sgambino_sgambino11:18
r0bby_ joined11:18
egh34wz746w joined11:18
Kyzz joined11:19
Progster joined11:19
Caritade left11:19
michaelarestad left11:19
egh34wz746w left11:19
CodeShar_ left11:20
harish left11:20
egh34wz746w joined11:20
Progster_ left11:20
Kyzz_ left11:20
Dreamer3 joined11:21
insejn left11:22
hyperair left11:22
insejn joined11:22
squeakytoy|w Hey all. I wonder if you guys could give me some advice. I am thinking of creating a git repository-proxy-ish between TFS and Git. Long story short, I need someone kind of a Continuous Integration solution, that basically.. for each commit that goes into a certain repository, it should execute a command line (which does the TFS-push).11:22
What is the easiest way to put up such a system, in windows?11:23
Tacker use jenkins11:23
squeakytoy|w Seems a bit overkill, since now I need a servlet container as well.11:24
Tacker its easy to set up and straight forward11:24
squeakytoy|w what servlet container you suggest?11:24
egh34wz746w left11:25
Tacker I dont know of any11:25
muep but wouldn't some kinf of a push hook in the git repository work fine for that?11:25
squeakytoy|w how can you then say its easy and straight forward, if you actually dont know how11:25
Tacker Whenever one of our developers pushes to the repo, jenkins publishs a build to testflight and the people on the dev team can download the build11:25
its very nice11:25
squeakytoy|w muep, hm, a hook for each user, or can you create a hook once someone pushes into the main one? hm11:25
egh34wz746w joined11:26
muep squeakytoy|w: my impression is that the hook could be just in the shared repository11:26
ctin left11:26
squeakytoy|w I am more thinking about creating a simple node.js that does git log on the main repository, and if the top commit has changed, execute a command11:27
Guest___ left11:29
h0bbit left11:31
mechasr left11:31
dhruvasagar joined11:34
Guest67126 left11:35
mechanicalduck left11:36
Tacker sure you could spend all this time trying to create your own solution, or you could just use stuff thats already available to you ;)11:37
abrkn joined11:37
emergion joined11:37
ecube_ joined11:38
dfanjul joined11:39
Celelibi left11:39
abrkn\ left11:40
marthinal left11:40
marhaban left11:41
zhost joined11:42
whowantstolivefo joined11:42
bmac joined11:45
Weiss left11:45
Weiss joined11:45
whaley joined11:45
michaelarestad joined11:46
elixir_ left11:47
deuterium left11:47
rednaks joined11:48
elixir_ joined11:48
yshh joined11:48
WhoKnew left11:48
cbreak-work why bother with any of that?11:48
dimm tkil: i solve my trouble via quotepath = false11:49
tkil: after set this parameter cyrillica symbols display fine11:49
s/i solve/we solve/11:50
;-)11:50
bmac left11:50
yshh left11:50
yshh_ joined11:50
michaelarestad left11:50
BitPuffin left11:51
sgambino left11:53
tinti joined11:54
flaguy48 left11:55
Guest___ joined11:56
hyperair joined11:56
fRAiLtY- left11:57
zhost left11:57
rednaks_ joined11:58
Cromulent joined11:58
shuaib left11:59
rednaks left12:00
tritech joined12:00
tritech hi there12:01
gitinfo tritech: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.12:01
chuckharmston left12:01
tritech if u have done a git add, git commit on a branch and then do a git push,12:01
ecube_ecube12:01
armin joined12:02
beautifulmind joined12:02
tritech switch to master branch and do a git merge12:02
iveqy How do I do a shallow clone from a specific commit?12:02
frogonwheels tritech: get merge <branch-you-just-left> presumably?12:02
tritech should u see that merge action appear on the master branch so that u could do a pull request?12:02
frogonwheels iveqy: !shallow12:02
gitinfo iveqy: Shallow clones give you only a specified number of commit's depth. It sounds nice, but really it causes all sorts of problems if you are trying to do anything non-trivial so avoid using where-ever possible. Anybody caught doing shallow clones should be beaten viciously with their own head.12:02
frogonwheels tritech: pull request?12:03
zhost joined12:03
cbreak-work iveqy: you can not chose the commit12:03
frogonwheels tritech: oh. !github possibly?12:03
gitinfo tritech: Feel free to ask us about Github-specific features (Forks, Pull Requests, Wikis, etc), but there are no guarantees. There is a #github channel, which might help too (again, no guarantees)12:03
cbreak-work iveqy: it'll always start at a branch tip12:03
armin hi, is there any way to tell a remote about other remotes? like, i have a git server that holds some repos that i just have on my "local" gerrit server in case github is down or so, can i define a github remote and save it in the gerrit one here?12:03
iveqy frogonwheels: I know that12:03
Nikoli_Nikoli12:03
tritech ok gitinfo12:03
chuckharmston joined12:03
hemanth joined12:03
iveqy cbreak-work: I was afraid of that. It must be possible to change that.12:03
tritech: !gitinfo12:03
gitinfo tritech: 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:03
cbreak-work armin: yes, if you have access to the remote, with git remote add12:03
iveqy: I doubt that.12:04
armin cbreak-work: that will only add it to my local checkout of my workstation, not on the repo of the git server here in the company, right?12:04
cbreak-work iveqy: the protocol is extremely streamlined to be efficient12:04
tritech anyone for my question?12:04
jantman joined12:04
cbreak-work tritech: what's a merge action?12:04
tritech: what pull request?12:04
frogonwheels tritech: as soon as you started talking about 'pull request' I was assuming github. Hence, I pointed you at github12:04
cbreak-work I assume e-mail containing the words "please pull"12:05
tritech hi frogonwheels12:05
jantman is there a relatively simple way (bash?) to determine what branch the current is cut from? i.e. what branch I was on when I did `git checkout -b foo` to get the current branch?12:05
tritech i'm trying to find out if i should b able to do a pull request12:05
iveqy tritech: remember, github is not a part of git and therefore the "github way" is just one of many ways to use git12:05
frogonwheels tritech: 'pull request' is not a 'git' term, therefore you will have to define it. if you mean from github. ...12:06
iveqy cbreak-work: I know the protocol is simple, byt it shouldn't be too much work AFAIK. Seems like I need to investigate some more12:06
tritech so should i be asking this question on the github channel?12:06
frogonwheels tritech: well assuming your are talking about a pull request on github, yes.12:07
iveqy tritech: if you're using github, yes12:07
audiotek joined12:08
Cromulent left12:08
cbreak-work jantman: maybe git rev-parse --symbolic-full-name @{u}12:09
jantman: but that might not work most of the time12:09
sriracha left12:09
iveqy jantman: not actually. You can get things like the relation between two branches, or the commit you branched from, but not exactly which branch you branched from (since a branch is a pointer to a commit and that branch-pointer can have moved (or even that commit might have plenty branch-pointers to it)12:09
zhost left12:09
zhost joined12:09
jantman iveqy: right. so I guess the commit I branched from is what I want, and then I can do some relatively project-specific bash-fu to find what branch...12:10
cbreak-work jantman: if you want to guess, do a git merge-base with all other branches12:10
jantman: then calculate the number of commits from the merge base to your tip12:10
jantman: pick the one with the least commits, and then do a git branch --contains12:10
jantman cbreak-work: yeah....12:11
cbreak-work jantman: the branches you will see are all branches that contain that commit12:11
so all are possible candidates12:11
jantman: from then on: guess.12:11
p1ng joined12:11
cbreak-work easy :)12:11
tritech how do u git rid of a commit that u did say 2 days ago?12:12
fragles left12:12
iveqy jantman: what cbreak-work said, with the exception that if a branch has been rebased so that it no longer uses that commit, you won't find it. However you'll be screwed anyway12:12
cbreak-work tritech: history rewriting. Did you push it already? Then you might be stuck with revert.12:12
iveqy tritech: git rebase -i12:12
moritz 12:12
tritech yes it has already been pushed12:12
iveqy tritech: !revert !public12:12
gitinfo tritech: That's a rather ambiguous question... options: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard uncommitted changes in the working tree [git reset --hard]; c) undo committing [git reset --soft HEAD^]; d) restore staged versions of files [git checkout -p]; e) move the current branch to a different point(possibly losing commits)[git reset --hard $COMMIT]?12:12
tritech: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to). If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum12:12
jantman ok. well, thanks all12:12
jantman left12:12
konundra joined12:13
Guest___ left12:13
kewah joined12:14
deuterium joined12:14
devoldmx joined12:14
mechanicalduck joined12:14
beawesomeinstead joined12:14
anonymuse joined12:14
alkino joined12:14
pduin left12:15
breakingthings joined12:15
Sebo1 joined12:16
devoldmx3 left12:16
michaelarestad joined12:16
mikecmpbll left12:16
IrishPrime joined12:18
marthinal joined12:20
cads2 joined12:20
tizzo-afktizzo12:21
michaelarestad left12:21
valgrind left12:21
mikecmpbll joined12:23
D9 left12:24
bklane joined12:25
nevyn left12:26
nevyn joined12:27
freeed joined12:27
ejnahc left12:28
ejnahc joined12:29
noyb joined12:30
guampa joined12:30
devoldmx3 joined12:31
kukks joined12:31
kukks left12:31
kukks joined12:31
zhost left12:31
f8lnicnamedeth012:31
mechasr joined12:31
devoldmx left12:31
masak given a commit SHA-1 and an absolute path, what's the speediest way to get the blog SHA-1 for the file at that commit?12:31
howlymowly left12:32
nevyn left12:32
cbreak-work masak: git cat-file -p SHA:path12:32
grawity git rev-parse $commit:$path12:32
nevyn joined12:32
cbreak-work masak: path must be relative to the repository root12:32
masak thank you.12:33
grawity cbreak's command returns the blob's contents12:33
masak right, that's what I meant by 'absolute'.12:33
WhoKnew joined12:33
kontoo joined12:33
cbreak-work true12:33
masak there's no real good word for 'relative to repository root' :)12:33
grawity I guess the meaning of 'absolute' is relative :D12:33
masak yup.12:33
valgrind joined12:34
kontoo anyone here using "A successful Git branching model" or a modified version of it and has some experience?12:34
iveqy kontoo: !anyone12:34
gitinfo kontoo: Usually, it does not help to ask for someone specific to help you. Without knowing your specific problem, nobody knows if they can be of assistance. Please ask your questions and wait until somebody speaks up.12:34
kontoo it makes no sense to ask if no one is using it12:34
lb1a !just_ask12:34
gitinfo You can just ask your question. If anybody knows the answer, they will answer soon (most of the time)12:34
noyb left12:35
zhost joined12:35
devoldmx3 left12:35
jast it makes no sense to answer if I don't even know whether I'll be able to answer your specific question :P12:35
mechanicalduck left12:35
mechanicalduck joined12:36
iveqy kontoo: There's 999 persons here. Git branching the way you describe is pretty populair. So the answer is yes, there's a couple of hundreds of people here that have that experience12:36
jast (and that's how a deadlock works, ladies and gentlemen)12:36
uwjesq jast: :-)12:36
andref_dias joined12:37
rbento left12:37
Orbitrix joined12:38
Orbitrix left12:38
dwmw2_gonedwmw212:38
Orbitrix joined12:38
mechanicalduck_ joined12:39
zhost left12:39
kontoo how to handle the case that you don't want the steps you made in a release branch to be merged back into development? example: development version is configured to use some specific includes and ports; in the release branch one would change this to the production values and bumb the version. you obviously want that changes in the master branch but not in the development branch. the solution i have come up with is: merge release-* back to master but not to12:39
development (simple… duh) but the problem comes when i branch off master for a hotfix. merging this hotfix branch back to master and development is a requirement, but i override the settings in development with production (master branch) values. is cherry pick the actual hotfix content the solution here?12:39
osse quackgyver: I didn't see it mentioned so I figured I would: when it comes to technobabble I recommned perusing man gitglossary. It's more or less exactly what it says on the tin, a Git glossary :) I certainly wish I had known about that sooner. Look up words as you need them,12:39
gitinfo quackgyver: the gitglossary manpage is available at http://jk.gs/gitglossary.html12:39
kontoo there you go, assuming you know the branching model12:40
quackgyver osse: Thanks, adding that to my list of things to read. Really appreciate it. :)12:40
sidus joined12:40
dpac|awaydpac12:41
jast kontoo: ideally, site-specific configuration is kept out of the normal development history12:41
see also !configfiles12:41
gitinfo It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas12:41
devoldmx joined12:41
kesha joined12:41
kontoo jast: not possible in that case12:41
jast have you even followed the link?12:42
mechanicalduck left12:42
tizzotizzo-afk12:42
mechanicalduck_mechanicalduck12:42
kontoo part of the project is a web-gui, i.e. javascript. the settings have to be in the javascript12:42
jast yes, that's great. and at what point is that incompatible with ALL of the suggestions in the page the bot linked to?12:42
osse quackgyver: it's nice to be aware of that one. It explains stuff like "HEAD" and "tree" etc. Of course some definitions refer to others12:43
quackgyver osse: Yeah, that's exactly the kind of stuff I'd love to be able to quickly wrap my head around in terms of just visualizing their contexts12:43
when it comes up12:44
jast I suppose I should overhaul my cheat sheet12:44
it's been four or five years now...12:44
iveqy kontoo: you could just keep those settings in a commit and branch of from below that commit when you're doing your quickfixes12:44
_goTAN joined12:44
kontoo jast: looked through that site, nothing new for me. that approaches aren't working in my case12:44
elixir_ left12:45
quackgyver kontoo: A suggestion. When someone tells you a solution, you need to tell them why it will not work before you ask another question.12:45
Otherwise people cannot understand your situation.12:45
kontoo iveqy: what do you mean by branching off from below?12:45
jast kontoo: well, as long as I don't know what exactly makes it not work in your case, I can come up with a million ideas and chances are they won't work either...12:45
kontoo quackgyver: thanks for that valuable tip12:46
quackgyver kontoo: No problem. :)12:46
iveqy kontoo: instead of having your quickfix branch to start from RELEASE let it start from RELEASE~12:46
kontoo quackgyver: i stated already why it isn't working, maybe change your tip to "if a person wants to enforce his solutions that aren't working for you -- as you reasoned earlier -- repeat your point again"12:47
devoldmx3 joined12:47
michaelarestad joined12:47
jast stops paying attention12:47
quackgyver kontoo: You only explain it sometimes, not always.12:47
kontoo: You need to be very careful about your questions.12:47
iveqy kontoo: your reason was that your code was in javascript? Or did I miss something?12:47
quackgyver kontoo: Otherwise things get complicated. :)12:48
kontoo: Do your best to tell what you need, what your situation is and why all the help you get will not work.12:48
devoldmx left12:48
kontoo iveqy: hmm i don't quite get what you mean12:48
but let me explain it again12:48
soee left12:48
jast in unrelated news, it's disturbingly warm12:48
iveqy jast: siting on a rock by the sea, it's pretty okay =), too bad I've to study physics instead of float around in the sea.12:49
jast sitting in an office building :(12:50
tmcmahon joined12:50
mklappstuhl joined12:50
ewnd9 left12:50
tizzo-afktizzo12:51
quackgyver kontoo: You cannot say "i dont understand." You need to be specific. For example: "im new to git. i dont understand what your solution means" or "i understand your solution, but not how it relates to my problem?"12:51
You need to help people understand you. :/12:51
iveqy jast: =(. Last year I worked in a really hot office, good news was that they installed a brand new aircondition. The installation was finished when the autumn began12:51
quackgyver Just take off your pants.12:51
elixir_ joined12:51
quackgyver It's the path of least resistance.12:51
kontoo iveqy: project is split into client (website) and server. the client is configured to use uncompressed javascript files (a <script> tag that needs to be changed for production) and an url for the server, which has to be in the javascript(!!!). so a release/xxx branch (which purpose is to prepare a development snapshot for release) would change the <script> tag, the url and the version number.12:51
jast and shirt, right12:51
michaelarestad left12:52
cbreak-work kontoo: that sounds rather idiotic12:52
kontoo: how about doing that at the deployment stage?12:52
TheBrainWork joined12:52
aChatir left12:52
Gooder``` left12:52
cbreak-work (or build stage if you have that)12:53
iveqy kontoo: !deploy12:53
gitinfo kontoo: Git is not a deployment tool, but you can build one around it(in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/the-list-and-irc/deploy.html12:53
kontoo cbreak-work: how would that work?12:53
cbreak-work kontoo: you have scripts that make your source code into something that runs on the server, by configuring things12:54
like "Compiling"12:54
e3r98gh35t joined12:54
kontoo or more specific: how to change settings in html / js files in the deploy / build step12:54
e3r98gh35t left12:54
cbreak-work sed12:54
or awk12:54
or perl12:54
quackgyver jast: Just the pants.12:54
I'm a duck.12:54
e3r98gh35t joined12:54
e3r98gh35t left12:54
quackgyver Not a neanderthal.12:54
iveqy kontoo: however I find the best way of doing this is to always have the correct deploy values set up in the code and alter my development and test enviroments to fit the deploy enviroment. However in more complex scenarios (when we just don't talk about a URL that can be put in your hosts-file) listen to cbreak-work12:54
alkino left12:55
kontoo cbreak-work: so your approach would be (for example) to wrap the important parts in the html / js with like "<!-- ##BUILD-URL-START## -->" and "<!-- ##BUILD-URL-END##-->" and sed that in the deploy script12:56
cbreak-work: ?12:56
guess that would work12:56
cbreak-work kontoo: I'd use a single marker12:56
kontoo: git archive can do some things with marker replacement12:56
but a proper script would be more flexible12:57
kontoo cbreak-work: yeah i used git archive before to insert the tag hash12:57
cbreak-work kontoo: also, of course a user configurable config file would be best, with a template for users if needed12:57
tizzotizzo-afk12:57
kontoo cbreak-work: but the development version shall have the development entries, not some placeholder12:57
cads left12:57
cbreak-work they can just build it too.12:57
agile left12:57
emergion left12:58
kontoo cbreak-work: there is no building on the client site, it's static html12:58
cbreak-work: see the problem? :P12:58
cbreak-work you can build static html12:58
alkino joined12:58
cbreak-work that's what tools like cgi-bins, or other more modern things do12:58
kontoo dunno, but again, your sed + deploy script seems like a good solution12:58
tmcmahon left12:58
kontoo still wondering how you stand towards my cherry pick the actual change and merge it back to development approach12:58
schemanic joined12:59
cbreak-work messing with history for something meaningless such as configuration is dumb.12:59
masak is there any way to get *only* the --stat information out of git-show or git-diff?12:59
cbreak-work masak: git diff --stat? :)12:59
schemanic left12:59
masak cbreak-work: d'oh! :)13:00
works fine.13:00
kontoo iveqy: just read your message. yeah i would prefer that too, but the production server proxies websockets through nginx so the url changes and i'm not willing to enforce a equal setup on my / other developers machines13:01
dfanjul left13:01
Amandil left13:02
LadyRainicorn joined13:02
kevwil joined13:02
frew I changed the location of a submodule and now pulls give errors because they can't find the head the submodule is supposed to be at; what's the command to fix my submodules?'13:05
marhaban joined13:06
iveqy frew: !repro , we need to know what you mean with "changed the location". (also, this will be possible to do automatic in git 1 - 2 versions from now)13:06
gitinfo frew: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting.13:06
frew oh sorry, that was indeed vague13:07
the submodule is checked out in the same place, but the remote repo it points to was changed13:07
iveqy frew: was changed where? it .gitmodules?13:07
frew I can't exactly give you a transcript, all I did was cd into the submodule, made a commit, pushed it to my own fork, and then edited .gitmodules to point at my forl13:08
fork*13:08
iveqy: right.13:08
iveqy frew: man git submodule try git submodule sync13:08
gitinfo frew: the git-submodule manpage is available at http://jk.gs/git-submodule.html13:08
frew ok13:08
I usually do git submodule update --init13:09
troker joined13:09
m8 joined13:09
iveqy frew: that's' not the same thing at all, please read the man page13:09
frew I know they aren't the same13:09
I am just telling you waht I normally do13:09
ffio joined13:09
sgambino joined13:09
sgambino left13:09
sgambino joined13:10
frew ok, so I need to start doing this more regularly13:12
mitz left13:12
squeakytoy|w left13:13
mitz joined13:13
troulouliou_dev is it possible to have a svn submodules ?13:13
e3r98gh35t joined13:14
sriracha joined13:14
normanrichards joined13:15
arvind_khadri left13:15
dfanjul joined13:15
Seveas joined13:15
iveqy troulouliou_dev: yes and no, you can't have svn submodules but your submodules can use git-svn13:16
cbreak-work submodules can't really use git svn :/13:16
axl_ joined13:16
rednaks_ left13:16
jcromartie left13:16
troulouliou_dev iveqy, and can i have a submodule in a non root path ex : ./lib/core/test/mysubmodules ?13:17
iveqy cbreak-work: why not?13:17
frew jfkdls; somehow I lost my commits to the submodule13:17
thanks guys13:17
sync is a good command to know13:17
cbreak-work iveqy: because they are not a valid remote you can git clone from13:17
iveqy: and git svn clone might not give you the same hashes13:17
jon_r left13:17
e3r98gh35t left13:18
michaelarestad joined13:18
e3r98gh35t joined13:18
iveqy troulouliou_dev: non root path? as in not the root of your superproject? In that case it's yes13:18
SergeyPenkin left13:18
freestyl3r left13:19
troulouliou_dev iveqy, ok13:19
e3r98gh35t left13:19
e3r98gh35t joined13:19
natechan joined13:19
iveqy cbreak-work: Hmm you're right about that is isn't distributeable to use a submodule with git-svn13:20
cbreak-work: you can still use submodules though13:20
e3r98gh35t left13:20
iveqy howver the best way is of course to have git-mirror of the svn archive13:20
LimeBlast left13:20
Brivelt joined13:21
axl_ left13:21
Nitrodex joined13:21
Cerise joined13:21
Christi123 joined13:22
NitrodexGuest9312713:22
Thra11 joined13:22
michaelarestad left13:23
hellopat joined13:24
GeertV left13:24
cannonball joined13:25
LimeBlast joined13:25
darchitect joined13:25
GeertV joined13:25
Destos joined13:25
frew wow I am retarded, I was ssh'ing into the wrong machine to find the lost commits13:25
frew needs more sleep13:25
Milossh joined13:25
ewnd9 joined13:25
gusnan joined13:26
tatsuya_o left13:27
devoldmx3 left13:28
aChatir joined13:28
flaguy48 joined13:28
darchitect left13:29
GeertV left13:29
oliveiraev joined13:30
byprdct left13:30
harish joined13:31
frew ok, so the code is correctly pushed (https://github.com/frioux/awesome-utils/commit/797c300) the super repo has the right commit ref (https://github.com/frioux/dotfiles/commit/cb263df8) I ran git submodule sync to fix the remote urls, ran git submodule update, but it still isn't correctly checking out that repo (full commands and output here:13:31
http://paste.scsys.co.uk/264721?tx=on&ln=on&tidy=on&hl=on&submit=Format+it!)13:31
anyway, I'll just manually handle it for now13:31
but ideas are welcome13:31
danecando joined13:32
trungqtran joined13:33
kesha left13:33
kesha_ joined13:33
carlos-huang joined13:34
iveqy frew: looks like all submodules are up to date13:34
Christi123 left13:34
frew when I manually fix it git status shows the submodule has new commits, for some reason13:35
Christi123 joined13:35
beautifulmind left13:35
frew oh I'm sorry13:35
somehow13:35
in the next commit I rolled back the submodule13:35
well that explains everything13:36
acharlieh left13:38
glosoli joined13:39
frew thanks for your help and patience iveqy13:39
mike_af joined13:40
hahuang61 joined13:40
aartist joined13:40
Kingsy joined13:41
ruslan_osmanov joined13:41
Kingsy I am trying to do a git pull origin master on a clean git repo and it says error: Untracked working tree file /path/to/file.php would be overwritten by merge.13:41
ruslan_osmanov hi, git pull/clone/fetch stalls on "select" syscall. Could you help me please?13:42
Kingsy an no files from the pull are getting checked out.. whats wrong?13:42
phluks left13:42
mfulz joined13:42
crane_work left13:43
hemanth left13:43
Kingsy ohh I see13:43
nm13:43
cbreak-work sounds like your repo isn't clean :)13:43
lb1a yeah, call the cleaners13:44
Kingsy yep :P there was a hidden file I didnt see13:44
thanks13:44
ruslan_osmanov what about my issue?13:44
rabellamy joined13:45
nicnamedeth0f8l13:46
rchavik left13:47
ruslan_osmanov 'git clone -vvv git@myrepo...': http://bpaste.net/show/119525/13:47
carlos-huang left13:47
normanrichards left13:47
hahuang61 left13:47
m8 left13:48
carlos-huang joined13:48
BitPuffin joined13:49
cbreak-work ruslan_osmanov: select is used for pseudo async file/socket IO13:49
michaelarestad joined13:49
tizzo-afktizzo13:49
leen^| joined13:49
mechanicalduck left13:50
nbouscal joined13:50
ArokhArokh[Off]13:50
ryez left13:50
rabellamy left13:50
ruslan_osmanov cbreak-work, well, I guessed it. However, it's still weird. Who makes my connection to stop, ISP, the remote repo server, remote firewall...13:50
just stalls, it's irritating13:50
Arokh[Off]Arokh13:52
shamrock joined13:52
ncd|leeN left13:52
shamrockGuest3963213:52
ToothlessGear joined13:53
Guest39632 left13:53
bitkiller joined13:53
rgr joined13:53
michaelarestad left13:53
r0bby_ left13:55
ruslan_osmanov left13:55
r0bby_ joined13:55
rob_w left13:55
HenryG joined13:55
netiul left13:56
kesha_ left13:56
nicholasruunu joined13:57
dougsland joined13:58
dougsland left13:58
dougsland joined13:58
Christi123 left13:59
Christi123 joined14:00
JSharpe_ joined14:00
cads2 left14:00
mribeirodantas joined14:01
huoxito joined14:01
dimm shwouchk: see your message now, sorry... i was asked about both: client and server :-)14:02
bye, all!14:02
dimm left14:02
Brivelt left14:04
JSharpe left14:04
TeckniX joined14:05
Brivelt joined14:05
mishok13 left14:06
mechanicalduck joined14:07
tang^ joined14:07
Cromulent joined14:08
michaelarestad joined14:08
kontoo left14:09
loteriety joined14:10
rgr left14:11
jakie left14:11
JosephSilber joined14:11
WhoKnew left14:12
v0n joined14:12
normanrichards joined14:13
parcs_ joined14:13
parcs_ left14:14
albel727 left14:14
parcs joined14:14
Brivelt left14:15
tang^ left14:20
LBV_User joined14:20
Cromulent left14:21
Davey joined14:21
rgr joined14:22
BitPuffin left14:22
akitada left14:22
stliu left14:23
pen left14:23
johnlcox left14:23
mikecmpbll left14:23
nevyn left14:23
mikecmpbll joined14:24
mckendricks joined14:24
nevyn joined14:24
rue joined14:24
rgr left14:25
pen joined14:26
gauthierm I'm ahead of origin by 1 commit. After I run git pull it says I'm ahead by 12 commits. Is that normal?14:26
tmcmahon joined14:27
train_or joined14:27
tang^ joined14:28
rgr joined14:28
tmcmahon left14:29
uwjesq gauthierm: Do you have multiple remotes?14:29
tritech left14:30
harish left14:30
gauthierm uwjesq: yes, but only one that is tracking for the branch14:31
kewah left14:32
papegaaij_ joined14:32
uwjesq gauthierm: What do you mean by tracking? Do you mean you push this particular branch only to the same remote?14:32
yacks left14:33
papegaaij left14:33
train_or left14:33
sqlnoob left14:33
jwmann joined14:33
psoo left14:34
Dougie187 joined14:35
gauthierm The branch has a particular remote branch set as upstream.14:35
nevyn left14:35
hoschi left14:35
nevyn joined14:35
devth joined14:37
mckendricks left14:37
kewah joined14:37
ThomasLocke left14:38
crane_work joined14:39
joshsmith joined14:39
Cromulent joined14:39
Sigma left14:40
train_or joined14:40
acharlieh joined14:41
|Freeman| joined14:41
Sonderblade left14:42
cagedwisdom left14:42
mutbuerger joined14:42
rgr left14:42
enr left14:43
hahuang61 joined14:44
aldodelgado joined14:44
Nicholas_Rishel joined14:45
boombatower joined14:45
jacobat left14:46
astro73\work joined14:48
lb1a left14:48
andref_dias left14:48
_Qman left14:49
rednaks joined14:50
astro73\work Is there a way to run filter-branch on a list of files, or excluding directories?14:50
i've pulled out a bunch of directories through repeated copy/filter-branch, and now I want everything else14:50
rudak left14:51
papegaaij_ left14:51
hahuang61 left14:51
rudak joined14:52
shwouchk left14:52
dhruvasagar left14:52
nbouscal left14:53
rgr joined14:53
kermit left14:53
cads joined14:53
tjbiddle joined14:54
boblee If I am running scp command in a post-receive hook what user is it running under?14:54
kermit joined14:54
moritz boblee: the one that the user logged in as for the push14:55
boblee moritz: so it's running that command from the client, basically?14:55
jast boblee: if the push happens via SSH, the user account used with SSH14:55
moritz (if the push was via ssh; and if not, the user that the receiving daemon runs)14:55
boblee: well, the client has some kind of URL, like user@host:directory14:56
and that 'user' from before the '@' is the user name that the post-receive hook is run as14:56
boblee I would rather not due user@host and instead just host if it in fact uses the client username that pushed the update14:56
pitzips joined14:57
Nicholas_Rishel left14:58
lavaman left14:58
m8 joined14:58
carlos-huang left14:59
dhruvasagar joined15:00
rgr left15:00
boblee goes to try some tests15:00
aartist left15:01
troulouliou_dev hi how can i add an empty folder and gitignore all its content ?15:02
FernandoBasso joined15:02
AeroNotix left15:03
cha1tanya left15:03
osse troulouliou_dev: git cannot track empty directories, but you can put a .gitignore inside it.15:03
in your case that could simply say '*'15:03
troulouliou_dev osse, just thanks15:03
Nicholas_Rishel joined15:04
kewah left15:04
M_____ left15:04
TheJH left15:05
mribeirodantas left15:05
jefflyne joined15:05
boblee moritz: jast: doesn't appear that the scp command is run from the client.15:05
bklane Hey I did a git pull and got this https://gist.github.com/blklane/a899e56a3e5d07a49481 unsure exactly how to fix15:05
jast boblee: that's because it isn't.15:05
the command runs on the server15:05
during the push15:05
TheJH joined15:05
jast the push happens via ssh15:05
boblee yes I push via ssh15:06
bklane I want to update to the last commit while also merging to that and pushing my commit15:06
jast thus the hook as run as the user the ssh client uses15:06
adamwathan joined15:06
jast i.e. if you push to foo@host, the hook runs as user foo15:06
albel727 joined15:06
Cromulent left15:06
Fritz7 joined15:06
osse bklane: have you run git pull twice?15:06
bklane osse: no, should i?15:07
osse bklane: definitely not.15:07
normanrichards left15:07
jast the error suggests that you ran pull (or am/merge/rebase) at an earlier time and never properly finished15:07
osse bklane: but it seems you had uncommited changes at the time you ran it15:07
Wizecoder joined15:07
bklane osse: its my front-end designer and ive never seen those, so thats what causes it?15:08
cbreak-work left15:08
adamwathan sort of a noob question I suppose, but is it possible to squash commits only for once branch while keeping that history on a different branch? say i do a bunch of work on a development branch and want to squash those together when i push to the master branch so the master branch goes straight from A > D without commits B and C in the history, but I want to keep the full history on my development branch15:08
tritech joined15:08
cmn bklane: you're already in the middle of a mrege15:08
rath left15:09
osse adamwathan: sounds to me like you want a regular merge15:09
johnlcox joined15:09
osse adamwathan: it's perfectly possible for A to be D's parent in the history15:09
Droolio left15:09
bklane cnn: osse: so i changed the files with MERGE and that stuff by going in, now how do i know i fixed everything?15:09
adamwathan so if I do a git merge dev, the master branch wont know anything about the intermediate history?15:10
cmn you look at the files15:10
verysoftoiletppr joined15:10
adamwathan the specific scenario is we have a repository where our client can view the codebase but we want to keep that repository as clean as possible (just pushing a full iteration at a time) while maintaining a more detailed history in our own repository15:10
and where the client doesn't have any way to see anything besides the per iteration commits15:11
nicknisi joined15:11
osse adamwathan: that's not possible with git15:11
moritz huh?15:11
git merge --squash seems to do what adamwathan wants, unless I misunderstood15:11
the full history is still on the original branch15:11
osse ahh, yes that could work15:11
cmn bklane: once there are no more conflict markers and the files look like you think they should, stage the changes and commit your merge15:12
aChatir left15:12
tallest_red left15:12
moritz but branch master only sees one commit15:12
babilen left15:12
tallest_red joined15:13
adamwathan ah ok git merge --squash looks promising. that won't squash the commits on the branch im merging from correct? so I'll still have a full history on the original branch, and the branch that performed the merge just gets those commits all squashed into one applied on top of it?15:13
enr joined15:13
osse yes15:13
moritz adamwathan: correct15:14
adamwathan great, thanks moritz and osse going to play with it now15:15
moritz adamwathan: and !backup before playing :-)15:15
gitinfo adamwathan: Worried about your data while trying out stuff in your repo? To back up commit history on all branches/tags: `git clone --mirror`. To backup everything, including work tree and staging area: `tar cf repo-backup.tar repodir`. Or do your experiment in a throwaway clone instead. See also http://sethrobertson.github.com/GitBestPractices/#backups15:15
lavaman joined15:16
dfanjul left15:17
dpacdpac|away15:17
danecando left15:17
bklane thank you cmn and osse15:17
_iron left15:18
Sir_Rai left15:19
jefflyne left15:20
enr left15:21
aard_ joined15:21
ecube left15:22
sampiero left15:23
ewnd9 left15:24
ewnd9 joined15:24
normanrichards joined15:25
ecube joined15:25
Balliad left15:26
Fritz7 left15:26
ISF joined15:26
gua_ould left15:29
JosephSilber left15:30
aard_ left15:30
simesy joined15:30
vince_prignano joined15:31
aard_ joined15:31
vince_prignano left15:31
groglogic joined15:31
vince_prignano joined15:33
nicedice joined15:35
rkunde joined15:35
kewah joined15:36
kewah left15:37
jkremser left15:37
rudak left15:37
WhoKnew joined15:37
Katafalkas joined15:39
nevyn left15:40
P1x3lF1r3_ left15:40
[1]tritech joined15:40
sferry joined15:41
sferry left15:41
sferry joined15:41
tritech left15:41
nevyn joined15:41
rohan32|afkrohan3215:41
tritech joined15:41
adamwathan is it possible to checkout a new branch with none of the history of the branch it is branching from?15:42
osse adamwathan: --orphan15:42
adamwathan great thanks again osse15:42
trungqtran left15:43
[1]tritech left15:45
ojacobson joined15:45
fridim_ joined15:45
rkunde left15:46
sampiero joined15:46
rkunde joined15:46
mutbuerger left15:47
barneybook left15:47
dhruvasagar left15:48
nova_ left15:48
hahuang61 joined15:48
|Freeman| left15:49
rabellamy joined15:49
shinnya joined15:49
nova_ joined15:49
Shusshu joined15:49
Wizecoder left15:50
Shusshu left15:50
ericweic63amg joined15:51
dhruvasagar joined15:52
mechasr left15:52
Dougie187 left15:52
jargon left15:53
WhoKnew left15:53
kesha_ joined15:53
P1x3lF1r3_ joined15:55
aberrant joined15:55
elixir_ left15:55
_elixir joined15:55
sampiero left15:56
sampiero joined15:56
sgambino_ joined15:56
hahuang61 left15:56
rabellamy left15:57
rath joined15:58
sampiero left15:58
Wizecoder joined15:58
Milossh left15:58
Destos left15:58
sampiero joined15:59
duch_kazatel joined15:59
mikecmpbll left16:00
sgambino left16:00
sgambino_sgambino16:00
babilen joined16:01
rosco_y joined16:01
gebi left16:02
ecube left16:02
Milossh joined16:03
rosco_y I have a file that became corrupted recently--how do I restore it to a prior versions?16:03
Christi123 left16:03
valgrind left16:03
osse rosco_y: git checkout <commit> -- <file>16:03
Piggy_ left16:04
rosco_y osse: thank you again!16:04
ecube joined16:04
mechasr joined16:05
WhoKnew joined16:07
ericweic63amg left16:07
mklappstuhl left16:09
osse np16:09
LadyRainicorn left16:09
LadyRainicorn joined16:09
achadwick left16:10
mklappstuhl joined16:10
Destos joined16:11
Asenar left16:15
jwmann left16:15
jefflyne joined16:16
jwmann joined16:16
Guest___ joined16:16
salamanderrake left16:16
zerorez joined16:16
konundra left16:17
_BJFreeman joined16:18
enr joined16:18
_BJFreemanBJfreeman16:18
dc5ala joined16:20
akitada joined16:20
salamanderrake joined16:20
Plummer left16:21
revyd joined16:21
nicholasruunu left16:22
noname001 left16:23
enr left16:23
onethfour left16:23
konadr left16:24
goshawk joined16:24
Christi123 joined16:25
jnavila joined16:25
rudak joined16:25
jrex left16:25
Destos left16:25
cenuij joined16:26
Liir joined16:27
FernandoBasso left16:27
mechasr left16:27
WhoKnew left16:30
DolphinDream left16:30
jrex joined16:31
Guest___ left16:32
markalanevans left16:32
LadyRainicorn left16:33
simesy left16:33
Destos joined16:34
m8 left16:34
deuterium left16:34
DolphinDream joined16:34
kadoban joined16:35
tjbiddle left16:36
devoldmx3 joined16:38
devoldmx3 left16:38
onethfour joined16:39
devoldmx joined16:39
plasticboy joined16:39
mechasr joined16:40
mechasrchasr16:41
chasrmechasr16:41
hyperair left16:42
rudak left16:42
devoldmx3 joined16:43
cofeineSunshine joined16:43
michaelarestad left16:43
mechanicalduck left16:44
devoldmx27 joined16:44
iAsterisk joined16:44
drizzd joined16:45
mechanicalduck joined16:45
crane_work left16:45
devoldmx left16:45
w0ng left16:46
Fritz7 joined16:47
devoldmx3 left16:47
sferry left16:47
sferry joined16:48
devoldmx joined16:49
Norrin trying to figure out a workflow that supports the following:16:50
if I have changes that I want to keep out of master....16:50
maxmanders left16:50
Norrin but are required for any form of testing whatsoever….16:50
PerlJam ... don't put them in master ;)16:50
skorgon lol16:50
ErKa joined16:50
luto branch!16:50
duch_kazatel create a new branch that you merge with master.16:50
drizzd left16:50
duch_kazatel rather - that you merge master into on occasion16:51
Norrin what type of branch setup could i use to develop features with the needed testing coe, but then merge the features into master easily16:51
?16:51
skorgon why would you keep things that are required out of master?16:51
that workflow seems broken by design16:51
mechanicalduck left16:51
Norrin they are private keys, on an open source project, so master excludes the keks16:52
keys*16:52
seems like i may have stumped the crowd16:53
arand Sounds iffy to keep them in vcs at all.16:53
PerlJam Norrin: so ... they shouldn't show up in *any* branch, should they?16:53
devoldmx27 left16:53
skorgon yeah, i think i'd try to check in some dummy keys so everything works and think about deployment with real keys later16:53
duch_kazatel sounds like you need to either create an excluded config file, or .gitignore them.16:53
*and .gitignore16:54
Noldorin joined16:54
noname001 joined16:54
Norrin PerlJam, well no branch that is public16:55
alkino left16:55
Norrin duch_kazatel, that sounds like i t might work16:56
was using git stash initially… but that evidentability gets combined in stashes with other changes.16:56
hahuang61 joined16:56
duch_kazatel that's not what stash is for :(16:57
mechanicalduck joined16:57
cmn that's the only real place where the stash is useful above doing saner things16:57
shruggar left16:58
devoldmx left16:58
rudak joined16:59
staodd left16:59
iliketurtles joined16:59
cigarshark joined16:59
jayfk left16:59
Christi123 left17:00
X3NQ left17:01
hahuang61 left17:02
Christi123 joined17:02
kesha_ left17:02
SuperLag left17:03
jerius joined17:04
kesha_ joined17:04
vince_prignano left17:04
jnavila left17:04
khushildep left17:05
donmichelangelo joined17:05
aChatir joined17:06
Christi123 left17:06
kesha_ left17:06
Christi123 joined17:07
kesha_ joined17:07
worstadmin left17:07
JSharpe_ left17:07
smooki joined17:09
smooki hi guys17:09
gitinfo smooki: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.17:09
jperry left17:09
luto gitinfo: you are not guys, you are bot. Shut up.17:09
_________ joined17:09
michaelarestad joined17:10
smooki I need to know how I can save my work (maybe to a different branch) then checkout to my last commit, is thatpossible ?17:10
donmichelangelo left17:10
luto stash, maybe?17:10
!stash17:10
!stashing17:10
!stashes17:10
arand left17:10
luto meh.17:10
smooki stash, ok let see that17:10
jperry joined17:10
PerlJam luto: first you tell the bot to shut up, then you try to make it talk. Make up your mind! ;)17:10
newbie joined17:10
luto PerlJam :D17:10
smooki :)17:10
PerlJam smooki: you can always save your work to a branch if you need to.17:11
smooki gitinfo: !stash17:11
newbieGuest3488517:11
luto !help17:11
gitinfo What do you need help with? Something with git? Tell us what's going on, and please be specific. For information on how to abuse me (I'm a bot!), see http://jk.gs/git/bot . Please be gentle.17:11
smooki PerlJam: well I would prefer that17:11
luto hmm.17:11
ferdev left17:11
maasdesigner1 joined17:11
hyperair joined17:11
iliketurtles left17:11
luto is there really no !stash? :-/17:11
yacks joined17:11
smooki git branch 'newbranch' without commit ?17:12
jerius left17:12
Sonderblade joined17:13
PerlJam smooki: to be clear ... you have local changes that have not yet been committed and you want to commit them to sa new branch?17:13
tjbiddle joined17:13
causasui left17:14
PerlJam smooki: if that's the case, you can do "git checkout -b new-branch", then commit your changes, then "git checkout old-branch" to get back where you were without those changes17:14
smooki ok thanks17:14
crane joined17:14
Dougie187 joined17:14
trungqtran joined17:14
smooki I wanted to be sure :D17:14
PerlJam smooki: See !float17:14
gitinfo smooki: If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution.17:14
kevwil left17:15
smooki hmmm17:15
ok17:15
never done patch etc so I prefer to backup by hand17:15
trungqtran left17:16
smooki I need to practice more17:16
maasdesigner1maasdesigner17:16
JakePee left17:16
trungqtran joined17:16
verysoftoiletppr left17:17
Norrin slip of the mind….17:18
anonymuse left17:18
Norrin think i just reminded though17:18
(moving HEAD backwards in time)17:19
reset & rebase17:19
aldodelgado left17:19
sampiero left17:19
meLon left17:19
worstadmin joined17:20
Mode-M joined17:21
iliketurtles joined17:21
dreiss joined17:22
michaelarestad left17:23
jason237 left17:23
michaelarestad joined17:24
kesha__ joined17:25
Norrin duch_kazatel, hmm it's not paying attention to the gitignore. probably because the files are part of tracking?17:25
rnsanchez joined17:26
Norrin I see what you meant now. can't have them in tracking17:26
nicknisi left17:26
michaela_ joined17:26
ferdev joined17:27
aChatir left17:27
michaelarestad left17:28
kesha_ left17:28
kesha__ left17:30
milki is there a way to specify which config files to read or which ones to ignore? i have a test for my hooks, but allows config to disable them. turns out the user's global configs disabled them so the tests failed unexpectadly17:30
OOPMan left17:30
milki unexpectedly?17:30
normanrichards left17:30
milki that looks better17:30
train_or left17:30
Cromulent|2 joined17:31
deuterium joined17:33
geekbri joined17:33
LuxuryMode joined17:33
cmn you can specify --system, --global or --local17:35
LuxuryMode So I deleted a file and put a new one it in its place (happened to be some png) and after I committed and tried pushing git said everything was up to date..but the remote definitely has the old asset17:35
train_or joined17:35
cmn check that you really included the file in the commit and that you're pushing the right branch17:36
mfulz left17:36
Cromulent|2 left17:36
mfulz joined17:36
smooki left17:36
PaulCapestany joined17:37
LuxuryMode cmn, hmm i actually dont see the commit now17:37
whats the right way to replace an asset like this?17:37
as far as git goes17:37
cmn the same way as every other modification17:38
milki cmn: can i do that while running other git commands?17:38
well17:38
cmn milki: no, that's just for git-config17:38
milki i should just @!tias17:38
cmn: i thought so17:39
LuxuryMode cmn, in my file system just replace the file?17:39
Wizecoder left17:39
konundra joined17:39
cmn LuxuryMode: yes17:39
LuxuryMode git didnt seem to detect any change when i first did that17:39
h0bbit joined17:39
LuxuryMode so i git rm'd it and then added it17:39
maxmanders joined17:39
LuxuryMode git then detected it17:39
LekeFly joined17:39
LuxuryMode i then added and committed17:39
but dont see the commit17:39
cmn that won't change what git "detects"17:39
maslowbeer joined17:39
milki cmn: i think my only solution would be just to have a local gitconfig for my tmprepo that overrides the users gitconfig17:39
LuxuryMode looks like i needed to commit the git rm before adding...17:40
works now17:40
cbreak LuxuryMode: no17:40
cmn that won't change it17:40
LuxuryMode dunno what happened or where im confused17:40
cbreak you don't need to git rm in the first place17:41
just change, git add the change, commit, push, done17:41
cmn this is exactly the same as every other single modification you've done to your repo17:41
LuxuryMode cbreak, tried that but it didnt work17:41
cbreak LuxuryMode: of course it worked!17:41
LuxuryMode maybe i did something else wrong17:41
whatever, works now17:41
thought that it should work the way you said17:41
mustve just screwed something up17:41
oh well17:41
thiago joined17:43
Element9 left17:44
Sigma joined17:44
simesy joined17:44
hwrd|work joined17:45
LekeFly left17:45
aberrant left17:46
JakePee joined17:46
mechanicalduck left17:46
pen left17:46
arand joined17:47
mdhopkin_ joined17:48
maxmanders left17:48
_________ left17:49
simesy left17:49
nevyn left17:49
LBV_User why git status is saying I'm ahead 1 commit, but when I git push everything is up-to-date?17:49
jayfk joined17:49
maxmanders joined17:49
_________ joined17:49
nevyn joined17:50
mechanicalduck joined17:50
fobban left17:51
Christi123 left17:51
Christi123 joined17:52
gvr01 joined17:52
cbreak LBV_User: because you don't push where it compares you with? or because you didn't fetch to make sure your view of the remote is correct?17:52
fobban joined17:52
fobban left17:53
kesha__ joined17:53
fobban joined17:53
_goTAN left17:54
LBV_User cbreak: how can I get what it is using to compare?17:54
yacks left17:54
cbreak look at the configured upstream in git branch -vv17:54
LBV_User oh, now it seems to be ok...17:56
maybe when I git push origin myBuggyBranch it updated the refs?17:56
kesha__ left17:57
hahuang61 joined17:58
Christi123 left17:59
rickruby joined18:00
astro73\work left18:00
nkambo-on-holidankambo18:01
aldodelgado joined18:02
johnnyfuchs joined18:02
pr0ton joined18:03
hahuang61 left18:03
_________ left18:04
Mamoru joined18:04
infynyxx joined18:04
Katafalkas left18:04
johnnyfuchs So I'm having trouble with git diff and git status, I can commit, merge, list branches, etc. But git diff and git status don't show any tracked files or changes.18:05
My .git/config is pretty bare18:05
https://gist.github.com/anonymous/92e9529fc3001ac761f118:05
(well, apart from private repo info)18:06
Anyone ever run into this or have any thoughts?18:06
LBV_User dont you have ignore rules?18:06
johnnyfuchs yeah, but none of the files apply18:07
I checked .gitignore and some exclude file command18:07
dsdeiz_ joined18:07
EugeneKay `git status` doesn't show tracked files18:08
dsdeiz left18:08
EugeneKay If it's tracked and unchanged, it's clean. Why do you want to be spammed with that info?18:08
dvor left18:08
johnnyfuchs I don't, I'm changing files that were (are?) tracked, but the changes aren't showing up in diff or stat18:09
sorry, I meant "tracked and modified", not just tracked18:09
git ls-files shows the files i'm changing, but not any modifications18:10
EugeneKay Did you `git add` the files?18:10
The default behaviour of `git diff` checks work-tree against index. For index vs last commit("staged to be commited"), add --cached. For work-tree vs last commit, add HEAD.18:12
johnnyfuchs I did, new info though: running `git update-index --no-assume-unchanged [file_path]` now shows up in git diff18:12
marhaban left18:12
agile joined18:13
johnnyfuchs ah yeah, you called it on the index. The work-tree index must have been out-of-date or something? Can that happen?18:13
danecando joined18:13
EugeneKay No, not really. Methinks you just misunderstood the output18:13
danecando left18:14
johnnyfuchs maybe so :/18:14
but now `git diff` responds to changes in that file18:14
mattis_ joined18:14
johnnyfuchs but not others18:14
EugeneKay !repro18:14
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting.18:14
bbloom joined18:15
johnnyfuchs got it18:15
danecando joined18:15
koda left18:15
danecando left18:16
shuaib joined18:16
mattis_ how do i delete everything in a branch and replace it with files in another branch?18:16
EugeneKay Delete the branch entirely and recreate it where you want it(possibly a history !rewrite); or get the contents of another branch and make a new commit?18:17
gitinfo [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to). If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum18:17
mklappstuhl left18:17
nathancahill joined18:18
axl_ joined18:18
enr joined18:19
shuaib left18:19
guzzlefry joined18:19
guzzlefry Hello18:19
How does Git detect changes in binary files? I've changed an image but Git doesn't seem to notice.18:20
troulouliou_dev left18:20
maxmanders left18:20
m8 joined18:20
mechanicalduck left18:20
cmn the same way as every other file; the contents have changed18:21
double-check you are changing the file you are changing, and check what status says about it18:21
EugeneKay (my understanding is that ) git does a `stat` check to see if the mtime has changed. If so, it hash-objects the file(basically a SHA1) and checks against what exists i nthe index18:22
g00s joined18:22
EugeneKay You can run `git diff -- path/to/file.jpg` to force the latter to occur, which should update `git status` output as well18:22
maxmanders joined18:22
mechanicalduck joined18:22
ffio_ joined18:23
enr left18:23
h0bbit left18:24
ffio left18:24
kesha__ joined18:24
_iron joined18:25
guzzlefry oh okay, it seems this server just has really really aggressive image caching. :/18:25
EugeneKay Cache harder, not smarter18:25
jkyle left18:25
g00s hi, noob question about git diff. regardless of form (wd vs index, wd vs commit, index vs commit, commit vs commit) i see 1st line printed "diff --git a/file1 b/file1" …. but i don't understand what a and b are. i t would be more intuitive if it said 'diff --git index/file1 <commit>/file1'. how should i think about a and b ?18:26
luto EugeneKay: it can happen that `git diff` changes stuff? o.O18:26
_elixir left18:26
EugeneKay Not in the worktree, no.18:27
luto yea, in .git18:27
EugeneKay strace it if you want specifics ;-)18:27
luto I would never except a command named `diff` to write anything anywhere..18:27
jsec left18:27
w0ng joined18:27
EugeneKay I'm pretty sure it generates at least two temp files for `diff` to work against18:27
Plouj- joined18:28
Plouj- hi18:28
gitinfo Plouj-: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.18:28
dsdeiz joined18:28
luto well.. temp files18:28
johnnyfuchs EugeneKay: Thanks for the help! Checking out a different branch then jumping back in seemed to fix the issue. I must've been dabbling in commands that are too far over my head. :)18:29
Plouj- How can I clone a remote into a bare repo such that doing 'git branch -r' in the resulting repo would show origin/* branches rather than just setting up remote tracking branches?18:29
dsdeiz_ left18:29
ffio_ left18:29
kesha__ left18:30
EugeneKay write(1, "diff --git a/self b/self\nnew fil"..., 69) = 6918:30
I don't see anything else being written18:31
Wizecoder joined18:31
EugeneKay shrugs18:31
EugeneKay Digging around in internals is a PITA18:31
Wizecoder left18:31
Sigma left18:31
sriracha left18:32
michaela_ left18:32
hahuang61 joined18:32
motto joined18:33
rabellamy joined18:33
m8 left18:34
michaelarestad joined18:35
rabellamy left18:36
g00s left18:36
ecube left18:37
_elixir joined18:37
breakingthings left18:38
michaelarestad left18:38
cbreak C++ looks so much cleaner.18:38
kukks left18:39
mattis_ left18:39
ecube joined18:39
infynyxx left18:40
johnnyfuchs left18:40
kukks joined18:40
kukks left18:40
kukks joined18:40
CheckDavid joined18:40
EugeneKay "EugeneKay is right because EugeneKay is always right."18:42
Derp18:42
marhaban joined18:44
dc5ala left18:45
alvaro_o joined18:45
hoschi joined18:45
mfulz left18:45
Nicholas_Rishel left18:46
infynyxx joined18:47
marhaban left18:49
tty1 left18:49
keller left18:49
luke-jr_Luke-Jr18:54
groglogic left18:54
breakingthings joined18:54
m8 joined18:54
fobban left18:54
_iron left18:55
CheckDavid left18:55
adamwathan left18:56
sq-one joined18:56
motto left18:56
_goTAN joined18:57
_goTAN left18:57
fobban joined18:57
trusktr joined18:58
octaviordz joined18:58
octaviordz Hi room19:00
gitinfo octaviordz: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.19:00
covi I am doing git rebase -i master and I see a bunch of commits. How can I squash all commits into the last one? (i.e. use all commits, but use the commit message of the last commit?) What 'verbs' should I put in front of the commits?19:02
osse covi: squash19:02
covi: at the bottom of the text file there's a legend19:02
covi osse: yeah but I don't quite understand. Do I put 'squash' in front of all commits but the last one?19:02
bfig joined19:03
frgtn left19:03
bfig hello, is there a way to run gitk as if there was some particular branch checked out? I want to find out whether some commits in one branch are merged to master at some point or not19:03
covi osse: the legend says 'meld into the previous commit' for squash, but it seems like what I want is to meld into the next commit..19:03
osse covi: then you put 'squah' in front of the next one instead19:04
covi: a commit with 'squash' in front is squashed into the one above it19:04
aartist joined19:04
srcerer joined19:04
tty1_ joined19:04
abrkn\ joined19:05
VoidAtValhalla joined19:05
rue left19:05
octaviordz I'm using git-svn, I created a svn/tag by "git svn tag -m "x" tagname... and git basically now shows all my commits twice (in different branch) wondering if that is an known issue, and if there is a way to fix it19:05
zhost joined19:05
covi osse: ok, what do i put for the rest of the commits then? I want to use them, but discard their commit messages.19:05
txwikinger2 joined19:05
txwikinger2 left19:05
txwikinger2 joined19:05
gsvolt_ joined19:05
covi osse: the legend mentions 'fixup', but it says 'like squash', which kind of confuses me.19:05
marhaban joined19:06
Nikoli_ joined19:06
mutbuerger joined19:06
sr78ger joined19:06
Fritz77 joined19:06
Fritz77 left19:06
osse covi: put squash on all of them19:06
Dreamer3__ joined19:06
Fritz77 joined19:06
johnnyfuchs joined19:06
jargan joined19:06
Fritz77 left19:06
csgeek joined19:07
acharlie_ joined19:07
sriracha joined19:07
tuvxy joined19:07
MacWinner left19:07
deryni_ joined19:08
troker_ joined19:08
zacts_ joined19:08
osse covi: ahh, I see what you mean. When you squash you are asked to edit the commit message of the new "supercommit". Initially the buffer will contain all commit messages merged into one. But if you use fixup that commit's message is thrown away19:08
bklane left19:09
covi osse: ok, can i use more than one verb before a commit?19:09
ecube left19:09
maasdesigner1 joined19:09
ciaranm_ joined19:09
ciaranm_ left19:09
ciaranm_ joined19:09
osse not afaik19:09
what are you trying to do ?19:10
ecube joined19:10
bfig hello, is there a way to run gitk as if there was some particular branch checked out? I want to find out whether some commits in one branch are merged to master at some point or not19:10
covi never mind ;) thanks19:10
grawity bfig: gitk yourbranch19:10
bfig great! thanks :D19:10
grawity it is a history viewer, it does not particularly care about which part of history is checked out19:10
bfig: `gitk --all` too.19:10
jsec joined19:11
dav2d joined19:11
covi OK now git says 'cannot apply SHA...' for one of the commits during rebasing. How can I see more info on the issues to start fixing it?19:11
michaelarestad joined19:11
chuckf_ joined19:11
Someguy1234 joined19:12
covi nvm, git status.19:12
bfig niceee19:12
kesroesw1yth joined19:12
bfig :))19:12
jdav_gon` joined19:12
bfig this makes everything sooo much easier :D19:12
johnnyfuchs left19:12
ciaranm left19:13
vals_ joined19:13
ciaranm_ciaranm19:13
insejn_ joined19:13
mechanicalduck_ joined19:13
drager_ joined19:13
Fritz77 joined19:14
bambams_ joined19:14
bambams_ left19:14
bambams_ joined19:14
iliketurtles left19:14
Thra11_ joined19:15
tg left19:15
tg` joined19:15
g00s joined19:15
bklane joined19:16
normanrichards joined19:16
tg`tg19:16
Fritz7 left19:17
Fritz77fritz719:17
Dougie187 left19:17
rfoust_ joined19:17
LBV_User Makefile dont get rules to update files generated with configure_file, right?!19:18
cbreak LBV_User: what?19:19
g00s left19:19
cbreak you aimed at some other channel but slipped? :)19:19
kesha__ joined19:19
LBV_User sure...19:19
wrong channel19:19
trusktr_ joined19:19
LBV_User sorry :)19:19
trusktr left19:20
mechanicalduck left19:20
thiago left19:20
maasdesigner left19:20
rednaks left19:20
acharlieh left19:20
Thra11 left19:20
Seveas left19:20
troker left19:20
Sebo1 left19:20
abrkn left19:20
insejn left19:20
Dreamer3 left19:20
zero7 left19:20
midnightmagic left19:20
sonOfRa left19:20
torbjorn left19:20
Sieben left19:20
Naeblis left19:20
jab416171 left19:20
chuckf left19:20
Nikoli left19:20
rfoust left19:20
Chaser left19:20
bambams left19:20
kesroesweyth left19:20
drager left19:20
zacts left19:20
adamm left19:20
txwikinger left19:20
Olipro left19:20
Plouj- left19:20
Someguy123 left19:20
tango_ left19:20
deryni left19:20
jdav_gone left19:20
Werring left19:20
jast left19:20
asedeno left19:20
tizzo left19:20
dr_lepper left19:20
Arokh left19:20
SicoWork left19:20
samir left19:20
Someguy1234Someguy12319:20
Dreamer3__Dreamer319:20
jarganjast19:20
insejn_insejn19:20
pr0ton left19:21
kesha__ left19:21
octaviordz left19:22
Chaser joined19:23
rednaks joined19:23
hwrd|work left19:24
Sebo joined19:24
kesha joined19:24
trusktr_ left19:25
covi If I am on branch A, and I want to rebase my commits onto local master, shoud I use 'git rebase -i --onto master A' or some other command?19:25
PeterBooker left19:25
nicoulaj_ joined19:25
nicoulaj_ left19:25
iliketurtles joined19:26
osse covi: no need for --onto in most cases19:26
Olipro joined19:26
audiotek left19:26
covi osse: more info: I haven't published A, and A is checked out from master.19:26
denver left19:27
covi osse: so only 'git rebase -i master' (while I'm on A)?19:27
vals_tango_19:27
osse yes19:27
covi osse: will try, thanks19:27
train_or left19:27
scorphus joined19:27
cbreak leave away the -i19:28
osse covi: one possibility is is to rebase A "onto itself" for the interactive stuff. e.g. git rebase -i HEAD~519:28
sr78ger left19:28
osse and then do a regular rebase when you are done19:28
pandeiro joined19:28
michael_mbp joined19:28
Plouj joined19:29
maasdesigner1 left19:30
adamwathan joined19:30
BSaboia joined19:31
dvor joined19:31
cerra_morto joined19:31
aartist left19:31
aberrant joined19:31
covi During rebasing I tried to resolve some conflicts, then use 'git add' to mark them as resolved. However, I observed that as the rebase finished, some changes in my local commits are lost (in those marked-as-resolved files).19:32
quimes joined19:32
covi Is it incorrect to use add?19:32
zhost_ joined19:32
zhost left19:33
Olipro left19:33
dvor left19:35
z8z joined19:35
dvide joined19:36
Naeblis joined19:37
WhoKnew joined19:38
cbreak covi: no.19:38
WhoKnew left19:38
cbreak covi: you likely resolved incorrectly19:38
covi: git diff HEAD before you rebase --continue or commit19:39
rath left19:39
scorphus left19:39
scorphus joined19:39
rudak left19:40
Olipro joined19:40
torbjorn joined19:40
Werring joined19:40
thiago joined19:40
Seveas joined19:40
midnightmagic joined19:40
sonOfRa joined19:40
adamm joined19:40
asedeno joined19:40
SicoWork joined19:40
GodEater joined19:40
Nevik joined19:40
rudak1 joined19:40
p1ng left19:40
noname001 left19:40
Olipro left19:41
cerra_mortoguara19:41
worstadmin left19:41
vince_prignano joined19:42
p1ng joined19:43
Olipro joined19:43
noname001 joined19:43
noname001 left19:44
rudak1 left19:44
napping joined19:44
etherfreak joined19:46
IrishPrime left19:46
gtmanfred left19:47
CheckDavid joined19:47
mencito joined19:47
Mode-M left19:47
infynyxx left19:48
Cromulent|2 joined19:48
guara left19:48
_iron joined19:48
TheJH left19:48
ecube left19:49
sferry left19:49
zhost_ left19:49
juliohm joined19:49
gtmanfred joined19:49
mechanicalduck_mechanicalduck19:49
TheJH joined19:50
shruggar joined19:50
geekbri left19:51
noname001 joined19:51
ecube joined19:52
Komorebi joined19:52
sriracha left19:53
worstadmin joined19:53
yacks joined19:54
jayfk left19:55
marthinal left19:55
xrq joined19:56
Liir left19:56
nbouscal joined19:57
infynyxx joined19:57
axl_ left19:57
dav2ddav1d19:57
koda joined19:59
asakura left19:59
ameoba joined20:00
PeterBooker joined20:01
Komorebi left20:02
oliveiraev left20:02
SJr left20:03
BJfreeman left20:03
asakura joined20:04
Mamoru_ joined20:05
BSaboia left20:05
BSaboia joined20:05
devoldmx joined20:06
nbouscal left20:07
mike_af left20:08
mike_af joined20:08
rickruby left20:09
Mamoru left20:09
mechanicalduck hi20:10
so I used git branch -b 1.1.0 to switch to branch 1.1.0.20:11
was that right?20:11
I want the working dir to be branch 1.1.020:11
worstadmin left20:11
cbreak git branch -b?20:11
what's tat supposed to do?20:11
you mean git checkout -b?20:11
jaeckel left20:11
cbreak to create a new branch 1.1.0 from current HEAD and switch to it?20:12
jaeckel joined20:12
tang^ left20:12
infynyxx left20:12
covi cbreak: what do you mean by resolved incorrectly?20:13
Cromulent|2 left20:13
mike_af left20:13
covi cbreak: what is HEAD during rebasing?20:14
cbreak covi: if there are things missing then someone removed them20:14
cbreak looks at covi20:14
mike_af joined20:14
cbreak you're the prime suspect!20:14
hwrd|work joined20:14
cbreak covi: HEAD is the current commit20:14
covi cbreak: nope, the missing things are unpublished, private, and I made those changes20:14
cbreak covi: that is exactly why you are the prime suspect20:14
covi cbreak: if I did a git rebase --abort, I can see those changes20:14
SamB covi: rebase is tricky :-(20:15
cbreak covi: who did the conflict resolution?20:15
SamB I remember the conflicts looking a bit backwards in rebase situations20:15
cbreak spill it! where were you between git rebase <newbase> and git rebase --continue?!!20:15
Liir joined20:16
cbreak SamB: because you "merge" the other way around20:16
russt_ left20:16
SamB I still find it kind of confusing20:17
ewnd9 left20:18
Davey left20:20
mechanicalduck left20:20
worstadmin joined20:22
JosephSilber joined20:23
bgerber left20:23
z8z left20:23
jayfk joined20:24
mechanicalduck joined20:24
|Freeman| joined20:24
z8z joined20:24
z8z left20:25
mike_af left20:26
mike_af joined20:26
mike_af left20:27
mike_af joined20:27
pitzips left20:30
pr0ton joined20:31
devoldmx left20:31
michaelarestad left20:31
pr0ton left20:31
michaelarestad joined20:32
iliketurtles any of you use kaleidoscope.app as your mergetool?20:32
i am using 1.8.3.4, and when i type git mergetool or git difftool it opens kaleidoscope, but no window opens inside the app ):20:32
tmz joined20:32
jkyle joined20:33
pr0ton joined20:33
jkyle I have a sha I'm looking for. if I do git show <sha> I get a diff. But if I do: git --contains <sha>, I don't get any hits20:34
git branch --contains, rather20:34
PerlJam jkyle: maybe that commit isn't on a branch?20:36
michaelarestad left20:36
napping jkyle: does the diff mention a branch or anything? I think it's just a diff against the parent, nothing to do with branches20:36
Octalot joined20:37
v0n left20:39
Liir left20:40
Collin_ joined20:41
Collin_ Is it possible to make git perform some action on a pull? i.e. pull another repository20:41
jkyle napping: it doesn't mention a branch, but I don't think the other commits do either (did a git show <sha1> on a commit in the current branches history)20:42
bgerber joined20:43
napping yeah, I mean that git show giving you a diff doesn't imply the commit is reachable from branches20:43
groglogic joined20:43
tatsuya_o joined20:43
jkyle napping: how can I find out where it's located/reachable from?20:43
infynyxx joined20:43
SamB Collin_: maybe just define a new alias command that does the thing you want done?20:43
aberrant left20:43
docwhat I'm just curious, why isn't 'core.autocrlf=input' the default configuration?20:43
jkyle I'm doing a pull req, this sha is referenced in a submodule change...I'm verifiying it's referencing an existing sha20:44
Collin_ SamB: Sorry, I have the caveat that I need this to happen for anyone who clones the repo20:44
jkyle like, where is it if not in a branch/tag20:44
SamB Collin_: did you want them to clone some other repository *instead*?20:44
if so, it's a pity git doesn't have an MOTD feature20:44
Rylai joined20:44
Collin_ I have two tightly related repositories that should be a single repo20:45
If one is pulled, the other should also be pulled20:45
napping does git branch --contains find tags?20:45
Rylai Collin_: submodules?20:45
gmac no20:45
Collin_ Submodules are so bad that they dont' deserve to be called a feature20:45
gmac git tag --contains does20:46
Collin_ But yeah, they don't do that20:46
onethfour what file do i edit aliases?20:46
fobban left20:46
jkyle k, not there either20:46
e66 left20:46
napping jkyle: it might also be retained as a ref that's not a branch or tag (or maybe even just not quite GC'd yet)20:46
jkyle if it's not in a branch and not in a tag, where might it be?20:46
fobban joined20:47
e66 joined20:47
infynyxx left20:48
shrodikan joined20:48
shrodikan Hello all20:49
gitinfo shrodikan: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.20:49
jkyle what I want to protect against is a submodule sha being referenced that doesn't exist upstream...so I have to verify it's reachable.20:49
kvalle joined20:49
kvalle left20:49
napping can you run git gc upstream and see if the sha still exists?20:49
or do you want a way to check automatically?20:49
jkyle I can figure out automated ways later, probably just in our build server when it gets finished.20:50
train_or joined20:50
napping how did you get the sha in the first place?20:50
nathancahill left20:51
jkyle it's referenced as the submodule sha in a parent project20:51
mechanicalduck left20:51
napping is it referenced in the child project?20:51
jkyle so I wasn going to find the branch and verify it exists upstream20:51
dsdeiz left20:51
shrodikan So I stashed quickly (I use git-extensions), switched to a different branch and came back + applied my stash and did some more work. Now my local master is ahead of origin/master (visual representation here http://i.imgur.com/4ONfbGY.png?1). I don't know how I get back in synch with origin/master20:52
if that makes sense20:52
jkyle I can show it with "git show sha" in the child project, but I can't actually find where it is...which is someone important.20:52
napping what's in .git/refs in the child project?20:52
jkyle is somewhat* important20:52
quimes left20:52
jkyle lessee20:52
nathancahill joined20:52
napping also .git/packed-refs20:53
Dougie187 joined20:53
jkyle yeah, there's some hits in refs20:53
mechanicalduck joined20:53
napping how did you check?20:53
LBV_User how can I get only the sha1 from the current commit?20:53
jkyle it's in package-refs too20:53
napping I just know you can put all sorts of directory structure under refs, but not how to see if a commit is reachable from them20:54
hahuang61 left20:54
napping or is it actually named by one of those?20:54
jkyle napping: grep'd20:54
napping ah, so it is literally some ref20:54
which?20:54
jkyle I'm seeing stuff like this: .git/FETCH_HEAD:96906e76e4544bcc4cf4676ec4bb248d7d3be27enot-for-mergebranch 'feature/BD-135-pao12' of20:54
and20:54
.git/info/refs:96906e76e4544bcc4cf4676ec4bb248d7d3be27erefs/remotes/origin/feature/BD-137-pao1120:55
troker_ left20:55
DoniRS joined20:55
pr0ton left20:56
napping is that in the parent or child? Either way, those don't sound like enough to be sure it's retained20:56
jkyle child20:57
freeed left20:57
pr0ton joined20:57
Sebo left20:57
jkyle there's gotta be a way to find out where a sha is coming from20:58
just did a fresh clone, it's still in there.20:58
Sebo joined20:58
TheBrainWork left20:58
napping oh, that's a clone of the child?20:59
Davey joined20:59
Sebo left20:59
jkyle just now, made a clone. yeah20:59
infynyxx joined20:59
napping .git/info is some kind of cache of .git/refs, I think20:59
but it sounds like you have a refs/feature/BD-137-pao11 on the server20:59
Sebo1 joined21:00
iamtakingiteasy joined21:00
gvr01 left21:00
konundra left21:00
zacts_ left21:00
spaceonline left21:01
rickruby joined21:01
PeterBooker left21:01
[1]tritech joined21:01
justinabrahms joined21:02
tritech left21:02
[1]tritechtritech21:02
zacts joined21:02
jkyle I give up, here's to hoping things don't break upstream :P21:02
trungqtran left21:02
justinabrahms hey guys. A VCS tool I was using discarded my commit before it was written out due to git pre-commit hook failing (yay!). Is there a way to find things that were once added to stash but since "pop"ed?21:03
jkyle feature/blahblah is just a branch. so I don't know why, if it's there, git branch --contains doesn't show it21:03
ColKurtz joined21:03
shrodikan left21:03
gmac try git branch -a --contains?21:03
parcs left21:04
ojacobson left21:04
Guest34885 left21:04
covi cbreak: i did the resolution21:04
jkyle nice!21:04
did it21:04
johndo justinabrahms: shouldn't your changes still be staged when the commit failed?21:04
gmac jkyle: awesome21:04
noyb joined21:05
justinabrahms johndo: they should be, but they are not.21:05
bug in my IDE (what joy!)21:05
ojacobson joined21:05
DolphinDream left21:06
rickruby left21:06
troker joined21:07
LuxuryMode left21:07
breakingthings left21:08
aldodelgado left21:08
napping jkyle: If you were working in a clone, the branches would come down as remote-tracking branches.21:09
cbreak covi: yes. You probably accidentally removed things21:09
napping and I was misreading that ref, guess everything under remotes is a branch21:09
nilg left21:09
cbreak covi: you can try again if you want21:09
rohan32rohan32|afk21:09
mechanicalduck left21:10
hwrd|work left21:11
mechanicalduck joined21:11
marhaban left21:11
mribeirodantas joined21:11
milki can remote names contain /?21:11
milki tries21:11
marhaban joined21:11
milki omg21:12
it can21:12
that sucks21:12
SuperDMP joined21:12
milki its not easy to parse out the remote name from a branch ref without knowing remote names then...21:13
rohan32|afkrohan3221:13
Sieben joined21:14
comps milki: the point is that you should not be parsing a remote name from a branch ref21:14
there's git-remote for that21:14
zero7 joined21:14
milki git clone --branch cant handle branch names with the remote name in it21:14
as far as i can tell21:14
though this is only what someone said21:15
i should try it...21:15
comps ehrm21:15
Spyro left21:15
covi cbreak: let's say I have three commits: A, B, C to rebase, in that order. In C I have a function, but after rebasing (and resolving conflicts in the process -- i am pretty sure I just take whatever is in HEAD and delete whatever is theirs in the process) that function is gone.21:15
jab416171 joined21:15
iliketurtles left21:15
verysoftoiletppr joined21:16
milki fatal: Remote branch origin/master not found in upstream origin21:16
comps: ^21:16
cbreak covi: theirs is C21:16
parcs joined21:16
cbreak covi: HEAD is the thing you rebase on21:16
maslowbeer left21:16
cbreak if you have X, Y, A, B, C, and there's now X, Y, Z, and you rebase A, B, C onto it21:17
then the first step will be X, Y, Z, A'21:17
if that is conflict free that is21:17
then X, Y, Z, A', B'21:17
then, if you get a conflict with C, HEAD points to B'21:17
and theirs is C21:18
covi: see also !cs21:18
gitinfo covi: "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup21:18
cagedwisdom joined21:18
johndo covi: try merge.conflictstyle = diff321:18
ISF left21:18
johndo that helped me a lot when resolving conflicts manually21:18
comps milki: well it works for me21:18
git version 1.7.2.521:19
grampajoe joined21:19
zerorez left21:19
jrex left21:19
_iron left21:19
enr joined21:20
johndo covi: (and to understand the merging better)21:20
aberrant joined21:20
Spyro joined21:20
axl_ joined21:20
hahuang61 joined21:20
shruggar left21:20
rabellamy joined21:21
SHyx0rmZ joined21:21
comps milki: http://pastebin.com/dMDMNLkn21:23
milki: it works even if I rename "del1" to "origin" and try to clone it to ie. del321:23
milki thats because its a real branch name now...21:24
comps so?21:24
enr left21:24
milki im not trying to clone a branch named origin/master21:25
im trying to clone a branch names master21:25
comps I was just trying to prove that this statement is false:21:25
23:14 < milki> git clone --branch cant handle branch names with the remote name in it21:25
milki and it is mistaken to tack on a remote name21:25
grampajoe left21:25
milki o ok21:26
that wasnt clear21:26
Pengoo left21:26
Nicholas_Rishel joined21:26
Pengoo joined21:26
comps I still don't get what your issue is :)21:27
sq-one left21:27
infynyxx left21:27
milki i thought it was obvious if the branch existed and i mentioned that in --branch21:27
rohan32rohan32|afk21:27
hellopat left21:27
infynyxx joined21:27
milki if i have a branchref that isnt a sha or just the branch name, clone --branch cant handle it21:28
and i dont believe there are any utilities that can parse out the real branch name without the git repo21:28
ColKurtz left21:28
dytrivedi left21:28
hahuang61 left21:29
milki it might be able to infer from the git ls-remote listing, but im not sure if that is sufficient/accurate in all cases21:29
comps uh .. come again? ... it's called --branch because it operates on branches ... if you try to give it a tag, it will use just HEAD (default, ie. master) - "Remote branch wootag not found in upstream origin, using HEAD instead"21:30
Collin_ Any idea why my post-merge hook isn't running? It's content is just '#!/bin/sh \ echo test'21:30
milki is it executable?21:30
comps milki: still not sure what you mean by "real branch" .. is there some "unreal" branch?21:31
milki comps: how can you tell if origin/branch is the branch name or if branch is the branch name?21:31
mechanicalduck left21:31
comps milki: just from the string itself, you can't ... you need to take context into account21:31
milki if its impossible, then i think thats the answer then21:32
jrex joined21:32
maxmanders left21:32
comps milki: git-clone uses two arguments by default, argv[1] for source, argv[2] for destination ... if you specify --branch, it reads (via getopt()) an additiona argument for the --branch option, which is a branch name, regardless of any slashes21:33
mechanicalduck joined21:33
comps so it's still git-clone --branch <branchname> <source> <destination>21:33
ie. git-clone --branch origin/master origin master is perfectly fine :)21:34
ojacobson left21:34
covi cbreak: thanks21:35
johndo: thanks21:35
nicedice left21:35
nicedice joined21:36
Vampire0 left21:36
pr0ton left21:36
jkyle left21:36
devoldmx joined21:37
mutbuerger left21:38
HedgeMage left21:38
_elixir left21:39
g00s joined21:40
Vampire0 joined21:40
adamwathan left21:40
axl_ left21:41
maslowbeer joined21:42
michaelarestad joined21:42
scorphus left21:43
g00s hi, in "diff --git a/Rakefile b/Rakefile" … what are "a" and "b" ?21:43
saintcajetan left21:43
FernandoBasso joined21:43
infynyxx left21:43
babilen left21:43
train_or left21:43
_elixir joined21:46
sriracha joined21:46
hwrd|work joined21:47
babilen joined21:47
michaelarestad left21:47
pr0ton joined21:47
HedgeMage joined21:48
rudak joined21:49
rudak left21:49
adamwathan joined21:49
mattis_ joined21:50
infynyxx joined21:50
hoschi left21:50
troker left21:51
Katafalkas joined21:51
danman joined21:53
freestyl3r joined21:54
akurilin joined21:54
Katafalkas left21:54
mike_af left21:55
Balliad joined21:55
devoldmx left21:55
loteriety left21:56
train_or joined21:57
infynyxx left21:58
rudak joined21:58
rudak left21:58
adamwathan left22:00
nicoulaj left22:01
rickruby joined22:01
jefflyne left22:02
trusktr_ joined22:02
Destos left22:02
grawity they're directory names – although they almost never get used22:02
onethfour is there a way to run a command while checking out a branch?22:03
mechanicalduck left22:03
onethfour or immediately after22:03
natechan left22:03
grawity g00s: almost all patches are applied with -p1, that is, with the first path component being stripped, because even before Git and similar programs, people would create diffs by running `diff -r -u someproject-original/ someproject-updated/`22:03
jefflyne joined22:04
grawity onethfour: `man githooks`, look for post-checkout22:04
gitinfo onethfour: the githooks manpage is available at http://jk.gs/githooks.html22:04
mechanicalduck joined22:04
onethfour just found it22:05
jnavila joined22:06
kermit left22:06
LBV_User left22:06
Thra11_ left22:07
rickruby left22:07
jefflyne left22:07
aard_ left22:09
g00s grawity ok, thanks. i am confused though. of the various ways one can call git diff (wd/index, wd/commit, index/commit, commit/commit, etc) … when i see "--- a/file1" and "+++ b/file1" i'm still not sure how to discern which file is from the wd/index/commit22:09
kermit joined22:10
grawity g00s: try enabling the diff.mnemonicPrefix config option22:11
(see `man git config`)22:11
gitinfo the git-config manpage is available at http://jk.gs/git-config.html22:11
g00s grawity awesome! thats exactly what i was looking for, thanks !22:12
jrex left22:12
devoldmx joined22:13
Thra11_ joined22:14
JorgeRuiz joined22:14
devth left22:15
onethfour is there such thing as a machine-wide post-checkout hook?22:16
rather than repo-based22:16
osse onethfour: the one you write that you symlink all the others too :)22:16
Dougie187 left22:17
onethfour that could get messy22:17
osse why?22:17
onethfour there are other machine-wide global options, why not hooks?22:17
too dangerous?22:17
longbeach joined22:18
jnavila left22:19
osse I suppose it could be because options are inert, while hooks can be run willy-nilly22:19
Thra11_ left22:19
zipper_ joined22:20
g00s left22:20
zipper_ left22:20
redrocket left22:21
mattis_ left22:22
jcao219 joined22:23
tatsuya_o left22:24
harobed_ left22:24
kesha left22:24
ColKurtz joined22:25
VoidAtValhalla left22:25
Spyro left22:25
jcao219 left22:26
Spyro joined22:26
rnsanchez left22:26
oriba joined22:27
tatsuya_o joined22:27
whaley left22:28
e66 left22:28
tatsuya_o left22:28
Octalot left22:30
juvenal joined22:30
mechanicalduck left22:30
whaley joined22:31
Balliad left22:31
jnavila joined22:32
jon_r joined22:32
fritz7 left22:35
jerrad joined22:35
jerrad left22:36
jerrad joined22:36
Underbyte left22:37
marhaban left22:37
train_or left22:37
DoniRS left22:38
boombatower left22:38
_elixir left22:39
hellome left22:40
dreiss left22:41
jefflyne joined22:41
hellome joined22:41
bambams_bambams22:42
Mamoru_Mamoru22:44
noname001 left22:46
Brivelt joined22:47
grampajoe joined22:47
Sacs joined22:47
jon_r left22:48
mechanicalduck joined22:48
earny joined22:49
devoldmx left22:51
maslowbeer what is the easiest way to git pull which overwrites any staged commits or anything local that may be diverged? i.e., i just want to git pull over everything I have locally with no merge.22:51
devoldmx joined22:52
osse maslowbeer: git fetch; git reset --hard origin/master22:53
SuperDMP left22:53
mechanicalduck left22:54
osse or any remote-name/branch-name22:54
pdx left22:55
maslowbeer osse, right so in my case I want to pull origin/release-v8 over my local version. so git fetch; git reset --hard origin/release-v822:55
right?22:55
osse yep22:55
maslowbeer cool thx22:55
napping left22:55
maslowbeer that won't reset or otherwise touch my other branches tho right?22:56
osse nope22:56
only the current one22:56
maslowbeer cool22:56
sidus left22:56
osse which in principle doesn't have to be release-v822:56
so make sure it is22:56
maslowbeer right good point22:56
noyb left22:57
devoldmx left22:57
aChatir joined22:57
jjb123 joined22:57
Brivelt left22:58
kesroesw1yth left22:58
kesroesw1yth joined22:58
Sacs left22:59
Joshi3s` joined23:00
groglogic left23:00
rohan32|afkrohan3223:00
jnavila_ joined23:01
jnavila left23:01
jnavila_jnavila23:01
tty1_ left23:01
jjb123 Hey everyone, is there a way to interactively rebase the entire current branch? I know I can do "git rebase -i HEAD~4", but can I do the entire branch so I don't have to count commits?23:01
breck7 joined23:02
duch_kazatel have you pushed the branch somewhere else?23:02
rickruby joined23:02
jjb123 Nope, it's a local feature branch. I want to clean up the history before merging it into my develop branch (which is pushed).23:02
duch_kazatel aaaah23:03
you can rebase against another branch.23:03
johndo jjb123: rebase it against the development branch, if it's based from that23:03
s/based/branched/23:03
jjb123 johndo: Can I use --no-ff when doing that? I like to have merge commits so I can keep the branch history.23:04
osse jjb123: git rebase -i $(git merge-base HEAD master)23:04
or so23:04
let git do the counting23:04
freestyl3r left23:04
TeckniX left23:04
osse I guess s/master/develop/ in your case23:05
jjb123 osse: Cool, thanks. I assume I would replace master with develop if that's what I branched from?23:05
ah yeah nvm23:05
michaelarestad joined23:06
rickruby left23:07
sriracha left23:07
mtk left23:07
vince_prignano left23:08
harobed joined23:08
sriracha joined23:08
kadoban left23:09
jnavila left23:09
harobed left23:10
devoldmx joined23:11
ErKa left23:12
nova_ left23:13
b1101 joined23:14
mtk joined23:14
revyd left23:15
m8 left23:15
jayfk left23:16
devoldmx left23:18
b1101 I have my php, sql code on a server on which I have no permisssion to install git. Can git still copy files to it in any way ?23:18
enr joined23:21
cannonball left23:22
osse b1101: git archive --format=tar | ssh server 'cd /var/www; tar -xf '23:23
oops23:23
tar -xf -23:23
mdhopkin_ left23:23
juliohm left23:24
eijk_ left23:24
jon_r joined23:24
melee left23:25
dytrivedi joined23:25
enr left23:25
hahuang61 joined23:25
danman left23:26
Nicholas_Rishel left23:26
tango_ left23:27
b1101 so it would archive it, send it over and extract it ?23:27
rabellamy left23:27
osse yep23:27
b1101 cool23:27
thx23:27
osse that will send whatever commit you specify it to send23:28
but it'll send the whole thing though23:28
b1101 that's fine23:28
for now anyway.23:28
tango_ joined23:28
osse and convince the ultra bosses to install git23:28
then you could use hooks on the receiving end to make things easier23:29
bbloom left23:33
BSaboia left23:33
jon_r left23:34
acharlie_ left23:34
D4N3 joined23:34
devoldmx joined23:36
tjbiddle left23:36
hahuang61 left23:37
egh34wz746w left23:38
jjb123 left23:38
SHyx0rmZ left23:39
breck7 left23:40
jon_r joined23:42
tjbiddle joined23:44
leen^| left23:44
tjbiddle left23:44
joooooo left23:44
rednaks left23:45
jon_r left23:47
g0bl1n joined23:51
g0bl1n left23:51
g0bl1n joined23:51
grampajoe left23:54
tjbiddle joined23:57
JosephSilber left23:57
aChatir left23:59

Logs Search ←Prev date Next date→ Channels Documentation