| 2011-03-28 |
|
steven
| cirwin: so you're saying, implementing `git merge` (even a basic, rudimentary version which deals with trivial-cases) is non-trivial and difficult? | 00:01 |
|
cirwin
| it's certainly non-trivial. Given that it's been solved so many times, a basic version probably isn't difficult, but solving it right certainly is. | 00:03 |
| ← Chillance left | 00:03 |
| → SirFunk joined | 00:03 |
|
cirwin
| you could try playing with operational transforms, they're a fun way to start | 00:04 |
|
steven
| i was hoping i could just shell out to `merge` :) | 00:04 |
|
cirwin
| zsh: command not found: merge :) | 00:04 |
|
| if it exists, sure | 00:04 |
|
steven
| it certainly exists, but i cant figure out where it comes from | 00:05 |
|
| comes default on os x i guess. or maybe it was installed with dev tools | 00:05 |
|
| dunno | 00:05 |
|
cirwin
| writing merge drivers is probably more fun than re-implementing git | 00:06 |
| → tgunr joined | 00:08 |
| → g0bl1n joined | 00:10 |
| ← tjholowaychuk left | 00:10 |
| → __sorin_1 joined | 00:11 |
| ← TiBook left | 00:14 |
| Fuu` → Fuu | 00:23 |
| → TiBook joined | 00:23 |
| ← oriba left | 00:25 |
| → cutmail joined | 00:27 |
| → mattyb joined | 00:27 |
| → dAnjou_ joined | 00:34 |
| ← dAnjou left | 00:37 |
| → jtshs256 joined | 00:37 |
| dAnjou_ → dAnjou | 00:37 |
| ← __sorin_1 left | 00:38 |
| → __sorin_1 joined | 00:38 |
| ← ping-pong left | 00:39 |
| ← jtshs256 left | 00:39 |
| ← __sorin_1 left | 00:41 |
| → __sorin_1 joined | 00:42 |
| → shepherd joined | 00:47 |
| ← shepherd left | 00:47 |
| → shepherd joined | 00:47 |
| → ping-pong joined | 00:47 |
| ← __sorin_1 left | 00:47 |
| → bjtitus joined | 00:51 |
| ← erichammond left | 00:53 |
| → shepherd_ joined | 00:54 |
| ← hyperair left | 00:55 |
| ← shepherd left | 00:57 |
| → xiangfu joined | 00:57 |
| → msponge joined | 00:59 |
| ← msponge left | 00:59 |
| ← cutmail left | 01:00 |
| → marcamilly joined | 01:00 |
| → nazgul101 joined | 01:01 |
| → snover joined | 01:02 |
| → __sorin_1 joined | 01:02 |
| → alkavan_ joined | 01:03 |
|
snover
| Is there a git merge flag that allows you to selectively choose changes to merge in, like git add -p? I’ve read the man page for merge and didn’t see anything like that immediately. | 01:03 |
| → Remixman joined | 01:03 |
|
bob2
| merge merges whole branches | 01:03 |
| ← nazgul102 left | 01:04 |
| → zorzar_ joined | 01:04 |
| → cutmail joined | 01:04 |
|
snover
| so…is that a no? | 01:05 |
|
_null
| github lists the command "git remote add origin [email@hidden.address] - but when i enter that command into my shell it says that the -u switch doesn't exist | 01:06 |
| ← zorzar left | 01:06 |
|
_null
| oh my bad, i meant git push -u origin master | 01:07 |
|
snover
| _null: get a newer version of git :) | 01:07 |
|
bob2
| -u is reasonably new | 01:07 |
|
_null
| *sigh* shared hosts! | 01:07 |
| ← mattyb left | 01:07 |
|
_null
| i'll send in a ticket to my host and ask them if they'd consider upgrading their fleet. if not then it's not an essential feature i suppose | 01:08 |
|
snover
| it’s mostly just a convenience | 01:08 |
|
bob2
| heh | 01:08 |
|
_null
| i'm stilly fairly new to git so i'm still learning the basics | 01:08 |
| ← theoros left | 01:08 |
| ← __sorin_1 left | 01:09 |
| → ymasory joined | 01:09 |
| → theoros joined | 01:09 |
| → lee__ joined | 01:09 |
|
snover
| _null: -u just adds upstream tracking references automatically; you should be able to add those with git remote | 01:10 |
| ← ymasory left | 01:10 |
| → ymasory joined | 01:10 |
| → cpugeniusmv joined | 01:10 |
|
_null
| okay :) | 01:10 |
| ← shepherd_ left | 01:11 |
| ← ymasory left | 01:11 |
| → ymasory joined | 01:11 |
| ← ymasory left | 01:11 |
| → TESTBROTEST joined | 01:12 |
| ← lee__ left | 01:12 |
| ← TESTBROTEST left | 01:12 |
| → lee__ joined | 01:12 |
| ← lee__ left | 01:13 |
| → erichammond joined | 01:18 |
| ← juvenal left | 01:18 |
| → juvenal joined | 01:18 |
| ← alkavan_ left | 01:19 |
| ← gretch left | 01:23 |
| → ptl joined | 01:24 |
| ← ptl left | 01:24 |
| → ptl joined | 01:24 |
| → smokex joined | 01:26 |
| ← adaptee left | 01:28 |
| ← larsl left | 01:29 |
| → rayners joined | 01:29 |
| → msponge joined | 01:32 |
| → boombatower joined | 01:33 |
| ← boombatower left | 01:33 |
| → boombatower joined | 01:33 |
|
steven
| cirwin: re-implementing (the basics of) git is fun in the same way writing a linked-list for the first time in C is fun | 01:33 |
|
| <3 | 01:33 |
| ← snover left | 01:33 |
| ← rayners left | 01:36 |
|
| avdg is tending to agree | 01:37 |
|
cirwin
| bleargh the basics of git is far too big to be able to do properly, that would just annoy me :p | 01:38 |
|
| I have implemented a few linked lists, 'tis true | 01:38 |
|
avdg
| just the sorting of the tree is currently something I need more information though | 01:38 |
|
TiBook
| linked-lists in C *are* fun. And easy. | 01:38 |
|
avdg
| I'm not programming in c :p | 01:39 |
| ← sftp left | 01:40 |
| → rayners joined | 01:42 |
| ← urkud left | 01:43 |
| → jason237 joined | 01:44 |
| → panike joined | 01:47 |
| ← panike left | 01:49 |
| → panike joined | 01:50 |
| → michael joined | 01:52 |
| michael → Guest15518 | 01:52 |
| → michael_lf joined | 01:52 |
| → __sorin_1 joined | 01:53 |
| ← g0bl1n left | 01:54 |
| ← gebi left | 01:55 |
| → vitor-br_ joined | 01:55 |
| ← vitor-br left | 01:55 |
| ← panike left | 01:56 |
| ← __sorin_1 left | 01:57 |
| → __sorin_1 joined | 01:58 |
| ← cutmail left | 01:58 |
| → panike joined | 02:00 |
| → cutmail joined | 02:01 |
| ← __sorin_1 left | 02:01 |
| → gebi joined | 02:01 |
| ← nchaimov left | 02:02 |
| → alester joined | 02:03 |
| → smolyn joined | 02:03 |
| ← engla left | 02:03 |
| → gretch joined | 02:04 |
| → nchaimov joined | 02:04 |
| ← panike left | 02:04 |
| ← rustico left | 02:05 |
| ← smolyn left | 02:06 |
| ← flaguy48 left | 02:07 |
| ← cutmail left | 02:08 |
| ← Bass10 left | 02:13 |
| → cutmail joined | 02:14 |
| ← cutmail left | 02:14 |
| → cutmail joined | 02:15 |
| ← owst left | 02:15 |
| → dvaske joined | 02:15 |
| → tyteen4a03 joined | 02:15 |
| ← kukks left | 02:15 |
| → tanuki joined | 02:16 |
|
tanuki
| Is there any way to take the last N commits in a given branch and move them to a new branch? | 02:17 |
| ← wilmoore left | 02:17 |
|
tanuki
| Basically, I've realized that the last commit I made, and the changes I've made since that last commit, might not be a wise idea and probably should be in their own branch. | 02:17 |
| → wilmoore joined | 02:17 |
|
avdg
| tanuki: cherry-pick? | 02:18 |
|
cirwin
| tanuki git branch <new branch name>; git reset <where you want this one to be>; git checkout <new branch name> | 02:18 |
| ← guireisc left | 02:19 |
| ← avdg left | 02:19 |
| ← dvaske left | 02:19 |
| → bindaas joined | 02:20 |
| → Schmallon joined | 02:21 |
| → blaenk joined | 02:21 |
| → intripoon joined | 02:23 |
| → Yuuhi``` joined | 02:24 |
| ← Yuuhi`` left | 02:26 |
| ← intripoon_ left | 02:26 |
| ← sagsousuke left | 02:29 |
| → WakiMiko joined | 02:30 |
| ← Elfe left | 02:31 |
| → Elfe_ joined | 02:31 |
| → dvaske joined | 02:32 |
| ← jungejason left | 02:33 |
| → hyperair joined | 02:34 |
| ← WakiMiko_ left | 02:34 |
| ← javaanse_jongens left | 02:34 |
| ← TiBook left | 02:36 |
| → G__81 joined | 02:38 |
| → javaanse_jongens joined | 02:39 |
|
G__81
| i have made a change in my linux kernel code and have committed the same in my git branch and have taken a patch too now i need to delete that and recreate a patch how do i delete the changes that i committed into my repo | 02:40 |
|
| is that possible ? | 02:41 |
| → bdiu joined | 02:41 |
| → dr_ick joined | 02:43 |
|
SethRobertson
| G__81: have you pushed? (seems unlikely) | 02:44 |
| → smolyn joined | 02:44 |
| ← blaenk left | 02:44 |
| → pgib joined | 02:44 |
|
pgib
| is there a way to get diff to show a diff of /all/ changes; I mean, staged, not updated, and untracked? | 02:45 |
| ← Remixman left | 02:45 |
|
G__81
| SethRobertson, No i have pulled the kernel repo and i have just committed the changes and i used git format-patch and git send-email and sent the patches too.Now i need to revert those changes and recreate an other patch | 02:45 |
|
| SethRobertson, Since i am gonna create an other patch i don't want the older stuff in my branch so i need to create a new patch. | 02:46 |
|
| I did the following git reset HEAD <File_Name> | 02:47 |
|
| but i still see the commit ? | 02:47 |
|
cirwin
| pgib: git diff HEAD | 02:47 |
| → makubi_ joined | 02:47 |
|
SethRobertson
| G__81: git reset HEAD SHA | 02:47 |
|
cirwin
| of git diff --cached | 02:47 |
|
| not sure exactly what you're asking for, man git-diff :) | 02:47 |
|
jast
| the 'git-diff' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-diff.html [automatic message] | 02:47 |
|
SethRobertson
| G__81: If you use gitk, right mouse on a commit and you can see the a reset branch to here option | 02:47 |
|
| G__81: Read the man git-reset option to see what --soft --hard --mixed etc option you might want | 02:48 |
|
jast
| G__81: the 'git-reset' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-reset.html [automatic message] | 02:48 |
|
SethRobertson
| probably --soft | 02:48 |
| → jsick3 joined | 02:48 |
|
pgib
| yeah I did man git-diff ;) basically, if you do 'git status' it shows changes in 3 categories: staged, changed by not updated, and untracked. I was looking for a diff of all that data. | 02:48 |
|
jast
| the 'git-diff' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-diff.html [automatic message] | 02:48 |
|
pgib
| I guess I can just commit everything in 3 commits, take the diff across that and then roll them back out | 02:49 |
|
SethRobertson
| git diff HEAD | 02:49 |
|
| Well, not untracked | 02:49 |
|
pgib
| see, I started working on something and realized I'm doing it wrong, and it is easier for me just to rewrite the feature while looking at the old diffs. I have stuff I haven't committed yet, and stuff that is untracked. I was avoiding clumping that together, but I can just make a junk-commit just to please the diff | 02:51 |
| → jutaro1 joined | 02:52 |
|
pgib
| I suppose i can also just look at those files, no real reason for a diff now that I think about it ;) | 02:52 |
| ← jutaro left | 02:53 |
|
G__81
| SethRobertson, I did the following and it solved the problem git reset --hard HEAD~2 | 02:54 |
| → msponge_ joined | 02:54 |
|
G__81
| | 02:54 |
|
| SethRobertson, My Repo is now set to the old Head. Is that right ? | 02:54 |
|
| I had 2 commits and i wanted to remove them so that now if i make a git format-patch i wanted it to be out of the base changes | 02:55 |
|
SethRobertson
| It is set to *a* old head. Only you can judge if it is the correct one | 02:55 |
| ← bdiu left | 02:55 |
|
SethRobertson
| Yes, if you added two that removed two | 02:55 |
|
G__81
| Yeah coz now i need to resend the patch and i need to make a diff from the original version | 02:56 |
|
SethRobertson
| If you plan on doing this a lot, you might want to investigate stacked git and/or quilt or one of the other patch systems on top of git | 02:56 |
| ← msponge left | 02:56 |
| msponge_ → msponge | 02:56 |
|
G__81
| SethRobertson, Ok thanks will do that too but now since my commits are removed its just nothing but the original version of the code so i could still use git pull to fetch the latest changes from the repo and that would still continue to work right ? | 02:57 |
|
SethRobertson
| You could do that without resetting. | 02:58 |
| → ymasory joined | 02:58 |
|
G__81
| yeah coz now i did a git pull it says already up to date i am not sure whether there are any changes that got in | 02:59 |
| ← p4tux left | 02:59 |
|
SethRobertson
| You can look at the reflog. It would tell you. | 02:59 |
|
| If you did a `git pull --rebase` it would update the branch and leave your changes at the end, as if you reset, pulled, and the reapplied them. | 03:00 |
| ← dkasak left | 03:00 |
|
G__81
| oh ok thanks | 03:01 |
| → TheUni joined | 03:02 |
| ← erichammond left | 03:02 |
| → mikepack joined | 03:02 |
|
Davey
| Has anyone seen an expansion of the NVIE branching model that accounts for multiple concurrent stable versions? | 03:04 |
| ← msponge left | 03:04 |
|
G__81
| SethRobertson, I am sorry to bother you on this how do i make sure that my repo is ok coz i have a small doubt. Though its pointing to the right commit which was the original but yesterday's changes are not though i see some mails saying "Changes Applied" in the ML i am not sure whether those were pushed in by the kernel guys and whether my repo is unable to pull it | 03:07 |
|
| is there some way where i can cross verify them ? | 03:07 |
|
SethRobertson
| dif against @{upstream} | 03:08 |
|
Davey
| if you have commit shas, what about git branch --contains sha | 03:08 |
|
| ? | 03:08 |
|
SethRobertson
| `git fetch` first if you are paranoid. `git remote update` as well if you are ultra paranoid | 03:09 |
|
tbranyen
| i am paranoid about being paranoid | 03:09 |
| ← sterlo left | 03:09 |
| → sdboyer joined | 03:10 |
|
G__81
| SethRobertson, its still the same tried git getch and git remote update the git log still shows the original commit i safely assume that there are no changes pushed in hopefully | 03:10 |
|
SethRobertson
| BTW, just because someone committed your changes doesn't mean a maintainer did, and a maintainer committed your changes doesn't mean that Linus did. It is a process | 03:10 |
|
| G__81 I was talking about git diff. Run git-log against origin/<branchname> | 03:11 |
|
| Or use `gitk --all --date-order` | 03:11 |
| ← dstanek left | 03:12 |
| → babbos joined | 03:12 |
|
babbos
| i need to do a 'pull' from a python script... do i have to change my working directory to the git repo i want to pull to? | 03:13 |
|
G__81
| SethRobertson, yeah it still shows the same thing so i feel it should be safe and right | 03:14 |
|
babbos
| is there a way i can have the path to the repo i want to pull to? | 03:14 |
|
SethRobertson
| babbos: man git. Among other things, $GIT_DIR | 03:14 |
|
jast
| babbos: the 'git' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git.html [automatic message] | 03:14 |
| → rustico joined | 03:14 |
| ← sdboyer left | 03:14 |
| → blaenk joined | 03:17 |
|
babbos
| trying it on a directory back from the git repo: git --git-dir=./myrepo pull ~/git/myrepo.git/ master | 03:17 |
|
blaenk
| I forget, is there a way to 'export' a repository? | 03:17 |
|
babbos
| won't work: fatal: not a git repository './myrepo' | 03:17 |
|
SethRobertson
| git archive | 03:17 |
|
| blaenk | 03:18 |
|
blaenk
| that is 'clone' a repository without it being under git versioning (I guess no .git/ ) | 03:18 |
|
| oh thanks SethRobertson | 03:18 |
|
bob2
| babbos: what is that meant to do | 03:18 |
|
babbos
| blaenk http://stackoverflow.com/questions/160608/how-to-do-a-git-export-like-svn-export | 03:18 |
|
blaenk
| thank you babbos | 03:18 |
|
babbos
| as i said, i am working through a python script that runs in an irelevant to my repo directory... from there i want to do a 'pull' command | 03:18 |
|
| so i need to 'pull' without my working directory being the repo i want to pull to... | 03:19 |
|
SethRobertson
| babbos: You might need to set --work-tree as well | 03:19 |
| ← kd4joa left | 03:19 |
|
babbos
| just tried that indeed | 03:19 |
|
| nope | 03:19 |
|
SethRobertson
| Though `cd foo && git bar` seems to be pretty easy | 03:20 |
|
babbos
| check it for yourself | 03:20 |
|
frogonwheels
| babbos: without looking too closely, possibly look at man git-fetch and man git-archive | 03:20 |
|
jast
| babbos: the 'git-fetch' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-fetch.html [automatic message] | 03:20 |
|
bob2
| subprocess.Popen takes a cwd arg anyway | 03:20 |
|
| so no need to chdir | 03:20 |
| ← freedrull left | 03:20 |
|
SethRobertson
| babbos: I just tried with both git-dir and work-tree set and it worked | 03:21 |
|
| Remember git-dir needs to be ..../.git | 03:21 |
|
babbos
| seth thanks, i must be doing something wrong then... rechecking | 03:21 |
| ← dv310p3r left | 03:21 |
|
babbos
| ohhh | 03:21 |
|
| that was it | 03:21 |
|
| :) | 03:21 |
|
| didn't catch the /.git detail, now it works! thank you Seth!! | 03:22 |
| ← vitor-br_ left | 03:23 |
| → seivan joined | 03:23 |
| ← gebi left | 03:24 |
|
SethRobertson
| Why don't they put spam checking on the git mailing list. It isn't that challenging | 03:24 |
| → Boggle joined | 03:25 |
| → noahcampbell joined | 03:26 |
| ← smolyn left | 03:26 |
| → leo2007 joined | 03:27 |
| → amondracorp joined | 03:29 |
| → cutmail_ joined | 03:31 |
| ← cutmail left | 03:32 |
| → helgikrs joined | 03:37 |
| ← ajt left | 03:37 |
| → deekayen joined | 03:38 |
| → warthog9 joined | 03:40 |
| → Error404NotFound joined | 03:40 |
| ← Error404NotFound left | 03:40 |
| → Error404NotFound joined | 03:40 |
| → jungejason joined | 03:41 |
| ← deekayen left | 03:41 |
| ← arunce left | 03:45 |
| ← maestrojed left | 03:47 |
| ← babbos left | 03:47 |
| ← Modius left | 03:47 |
| ← rustico left | 03:49 |
| ← unreal left | 03:53 |
| → unreal joined | 03:53 |
| → RichardBronosky joined | 03:58 |
| → towski joined | 03:59 |
| → Bonkers joined | 03:59 |
|
Bonkers
| is there a shorter way to do "git pull <remote> <branch>:<branch>" to pull down a remote branch that doesn't yet exist locally? | 03:59 |
| → bdiu joined | 04:00 |
| ← dr_ick left | 04:01 |
| ← cutmail_ left | 04:02 |
| ← Twey left | 04:02 |
|
cirwin
| Bonkers: git fetch gets all branches, then git checkout <branch> will do the right thing (on modern git) | 04:03 |
| → ratmice_ joined | 04:04 |
| ← Laggg left | 04:04 |
| ← cpugeniusmv left | 04:05 |
|
Bonkers
| is 1.7.4.1 modern? what exactly are you checkout out? refs/remotes/<remote>/<branch> leaves a detached HEAD, and git checkout <branch> just says no such branch | 04:05 |
| ← noahcampbell left | 04:05 |
|
Bonkers
| fetch only gets the tracking branches | 04:05 |
| ← OOPMan left | 04:05 |
| ← sunblush left | 04:06 |
| ← rayners left | 04:06 |
| → cutmail joined | 04:07 |
| → Modius joined | 04:07 |
| → koo6 joined | 04:10 |
| → Theravadan joined | 04:10 |
| ← javaanse_jongens left | 04:10 |
| ← unreal left | 04:11 |
|
cirwin
| git fetch with no arguments gets all the remote branches for me. git checkout <branch> detects the presence of a remote branch with the same name and checks it out with a new local branch | 04:11 |
| → djbpython1 joined | 04:12 |
|
cirwin
| 1.7.4.1 is the same version I'm using | 04:12 |
|
| maybe it only works for origin | 04:12 |
|
Bonkers
| oh, it's likely because I have two remote branches by the given name | 04:13 |
|
| I wonder by "git pull <remote> <branch>" doesn't automatically create a local branch | 04:14 |
|
djbpython1
| Hi all, I need some hand holding, or a link to a guide. I have a local git repo, I'd like to clone it on my shared hosting server (which is already set up for git), what do I need to do that? | 04:14 |
| ← cutmail left | 04:14 |
|
Bonkers
| git clone <ssh_path> | 04:14 |
|
cirwin
| djbpython1: you need a git server that your shared hosting server can access — either set up dynamic DNS so it can access your local computer, or push via github | 04:14 |
| → cutmail joined | 04:15 |
| → unreal joined | 04:15 |
|
djbpython1
| cirwin: yes, it is set up to be a git server, I think I need the push option | 04:15 |
|
cirwin
| what does "be a git server" mean? | 04:15 |
|
djbpython1
| but i can't just say 'git push my.server.com' | 04:16 |
|
cirwin
| you can do that too, but first you need to do "git init" on my.server.com | 04:16 |
|
Bonkers
| djbpython1, you can, but you probably do'nt want to | 04:16 |
| → TiBook joined | 04:16 |
|
djbpython1
| cirwin: I am supposedly able to push to it via ssh/http | 04:16 |
|
Bonkers
| are you just trying to deploy it? | 04:16 |
| ← G__81 left | 04:17 |
|
Bonkers
| what's your goal here? | 04:17 |
|
djbpython1
| nope, I'm trying to have a place to put my code so my other computer can clone the repo | 04:17 |
|
| so the two of them can push and pull between my server | 04:17 |
| ← dvaske left | 04:17 |
|
Bonkers
| central repo? you'll want to create a bare repo on the server | 04:17 |
|
| then push to it | 04:17 |
| → tgunr_ joined | 04:18 |
|
Bonkers
| then add the server as a remote to both local repos | 04:18 |
|
| you'll likely want to read up and google this stuff since you'll be much happier if you actually understand all of this | 04:19 |
|
djbpython1
| ok, ill have to google this more, but nothing solid was coming up | 04:19 |
|
Bonkers
| it's not really all that complicated | 04:19 |
|
| hopefully 'bare repository' will lead you in the right direction | 04:19 |
| ← tgunr left | 04:19 |
|
Bonkers
| and possibly consider using github since it's pretty much pure awesomeness | 04:19 |
|
djbpython1
| like i'd expect this guide to point me in the right direction -> http://www.kernel.org/pub/software/scm/git/docs/everyday.html | 04:20 |
|
| but it starts talking about origins and motherships and kind of confuses me | 04:21 |
| → dr_ick joined | 04:22 |
| → OOPMan joined | 04:23 |
|
Bonkers
| that's likely not the most helpful of guides... | 04:24 |
|
| pretty terse | 04:24 |
|
| I actually learned from the oreilly git book | 04:24 |
| ← xxneolithicxx left | 04:24 |
|
Bonkers
| totally worth it in my opinion, but you can likely find a middle ground between that kernel.org guide and the oreilly book | 04:24 |
|
| to get you going, on the server do: | 04:25 |
|
| mkdir foo.git; cd foo.git; git init --bare | 04:25 |
|
| then in the local repo: | 04:25 |
|
| git remote add origin <ssh_path_to_foo.git> | 04:25 |
|
djbpython1
| what does origin mean? | 04:26 |
|
Bonkers
| origin can be anything | 04:26 |
|
| just a name | 04:26 |
|
| but normally if there's a sole remote in a repo, it's called origin | 04:26 |
|
djbpython1
| ah | 04:26 |
|
Bonkers
| now I'm not quite sure how to push all local branches to the server, you can certainly push individual ones with | 04:27 |
|
| git push origin <branch>:<branch> | 04:27 |
|
| just 'git push origin' may push all local ones, but I'm not sure | 04:27 |
|
| then to get the repo on the other machine, it's much easier, just: git clone <ssh_path> | 04:27 |
|
| that will automatically pull down everythign and setup the remote | 04:28 |
| ← wilmoore left | 04:28 |
| → shiba_yu36 joined | 04:28 |
| → zoo-zed joined | 04:28 |
| ← zoo-zed left | 04:29 |
| → kushal joined | 04:29 |
| → wilmoore joined | 04:30 |
|
Bonkers
| did that get you somewhere? | 04:30 |
| → __sorin__ joined | 04:30 |
| ← ratmice_ left | 04:30 |
|
kushal
| I have few patches created using "git format-patch" command , now I want to apply those patches and also want to make sure that the original author's name and commit message should stay the same, how can I do that ? | 04:31 |
| → aalex joined | 04:31 |
|
frogonwheels
| kushal: man git-am | 04:31 |
|
jast
| kushal: the 'git-am' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-am.html [automatic message] | 04:31 |
| → __sorin_1 joined | 04:32 |
|
frogonwheels
| kushal: isn't it obvious from the name? :) not. | 04:32 |
|
kushal
| frogonwheels, jast I already read that, I am confused as I am having the patches as in files not in a mailbox | 04:32 |
|
Bonkers
| heh, well the git format-patch page does mention git-am | 04:32 |
|
frogonwheels
| kushal: just specify the files. it works. | 04:33 |
|
| kushal: for eg: git am *.patch | 04:33 |
| ← __sorin_1 left | 04:33 |
|
kushal
| frogonwheels, ok, trying again | 04:33 |
|
djbpython1
| Bonkers: think im just going to set up a repo on unfuddle | 04:33 |
|
frogonwheels
| kushal: the default format for format-patch is one that is accepted by am basically. | 04:33 |
|
| s/am/'am'/ | 04:33 |
|
Bonkers
| djbpython1, won't be any easier, but unfuddle isn't a bad choice, github has some much cooler features though | 04:34 |
| ← dAnjou left | 04:35 |
| ← amondracorp left | 04:35 |
| → dAnjou joined | 04:35 |
|
djbpython1
| cant beat it on price | 04:36 |
|
Bonkers
| ya, definitely | 04:36 |
|
| github is free for public repos though | 04:36 |
| → EugeneKay joined | 04:36 |
|
djbpython1
| indeed | 04:36 |
| → __sorin_1 joined | 04:36 |
|
EugeneKay
| Out of a perverse curiousity, what is the largest known git repository, in GB / files tracked? | 04:37 |
| → harshu joined | 04:37 |
|
kushal
| frogonwheels, worked this time, thanks :) | 04:38 |
| → jsquared joined | 04:40 |
|
nevyn
| EugeneKay: kde4? | 04:41 |
|
EugeneKay
| How big? :-p | 04:41 |
| ← xiangfu left | 04:42 |
|
EugeneKay
| I'm closing in on an hour for "git add ." on my eBooks dir, just wondering if I'm setting a record here. | 04:43 |
| → sdboyer joined | 04:45 |
| ← __sorin__ left | 04:45 |
| ← __sorin_1 left | 04:45 |
| → iszak joined | 04:45 |
|
iszak
| So I want to host a private repository which isn't accessed via SSH, I want credential authentication, what are my options? | 04:46 |
|
bob2
| why not ssh | 04:46 |
|
iszak
| security | 04:46 |
|
EugeneKay
| Not using ssh for security reasons is...... backwards. | 04:47 |
|
bob2
| hahaha | 04:48 |
|
iszak
| not using git over ssh for security reasons | 04:49 |
|
| I have nothing against using SSH in general, just not using it with git | 04:49 |
|
EugeneKay
| What are you trying to accomplish? | 04:50 |
|
bob2
| what security issues do you forsee? | 04:50 |
|
iszak
| bob2, rm -fr /bin | 04:50 |
|
| I want them to push to a server all their code changes. | 04:50 |
|
EugeneKay
| Not to be rude, but lrn2sysadmin | 04:50 |
| → KKA joined | 04:50 |
|
bob2
| iszak: uh, no | 04:50 |
|
| iszak: obviously you don't have people comitting as root | 04:50 |
|
tbranyen
| could probably easily chroot jail an ssh user | 04:50 |
|
| and only allow access to the git binary | 04:51 |
|
iszak
| bob2, right I know, it's a pull system, but the user won't always be online so I can pull their code | 04:51 |
|
bob2
| so what on earth are you talking about | 04:51 |
|
tbranyen
| wait did i just say easily xD | 04:51 |
|
bob2
| in what way do you think git over ssh is exploitable | 04:51 |
|
EugeneKay
| lol chroot easy | 04:51 |
|
iszak
| yeah I looked into chroot, seemed difficult. | 04:51 |
|
EugeneKay
| I have yet to figure out why there is no easy chroot environment create script | 04:51 |
|
iszak
| then I looked into rssh, but it doesn't support git commands, there's a patch tho | 04:51 |
|
EugeneKay
| (for x distros) | 04:51 |
|
tbranyen
| iszak: i've gotten it working a couple of times, but i've had to use a guide to get it just right every time | 04:52 |
|
| EugeneKay: Arch Linux has a few decent guides | 04:52 |
|
iszak
| tbranyen, link to guide? | 04:52 |
|
bob2
| right, so you're imagining issues | 04:52 |
|
| you probably want git and gitolite | 04:52 |
|
tbranyen
| iszak: I haven't done it since last year, but all I did was Google for it | 04:52 |
| ← ymasory left | 04:52 |
|
EugeneKay
| tbranyen - guides != "yum install user-chroot && user-chroot eugenekay" | 04:52 |
|
tbranyen
| I should probably bookmark stuff | 04:52 |
|
EugeneKay
| ;-) | 04:52 |
|
tbranyen
| EugeneKay: welp, sometimes getting your hands dirty is a good thing | 04:53 |
|
iszak
| I don't use yum anyway ;) | 04:53 |
|
EugeneKay
| tbranyen - I know that - but it would be a good gesture. I mean, it's 2011. | 04:53 |
|
iszak
| gitosis seems to be a solution. | 04:54 |
|
tbranyen
| Agreed, sudoing a user takes minimal effort | 04:54 |
|
| why not jailing | 04:54 |
|
iszak
| despite being SSH, it seems secure | 04:54 |
|
bob2
| lol | 04:55 |
|
EugeneKay
| iszak - what about ssh is insecure? User having a shell on the target box? | 04:55 |
|
| Don't blame the protocol, blame the environment. ;-) | 04:55 |
|
clever
| ssh can be setup to run git and only git | 04:55 |
| → khmarbaise joined | 04:56 |
|
hyperair
| sb levelclear -level clientcrap,crap,joins,parts,quits,nicks,clientnotice | 04:57 |
| ← jsick3 left | 04:57 |
|
bob2
| heh | 04:57 |
| ← harv left | 04:57 |
|
bob2
| hyperair: / | 04:57 |
|
hyperair
| bob2: yeah =( | 04:58 |
| ← RichardBronosky left | 04:58 |
| → ThomasLocke joined | 04:59 |
| ← dAnjou left | 04:59 |
| → dAnjou joined | 04:59 |
|
iszak
| EugeneKay, it seems to be satisfied with gitosis | 05:00 |
| ← boombatower left | 05:00 |
| ← jfkw left | 05:00 |
| ← leo2007 left | 05:01 |
| → urkud joined | 05:02 |
| → dvaske joined | 05:04 |
| ← khmarbaise left | 05:04 |
| → txh joined | 05:05 |
| → dAnjou_ joined | 05:06 |
| ← Tv left | 05:06 |
| ← dAnjou left | 05:09 |
| dAnjou_ → dAnjou | 05:09 |
| → roop joined | 05:11 |
| → liorkesos joined | 05:11 |
| ← Schmallon left | 05:13 |
| → excess^ joined | 05:15 |
| ← shiba_yu36 left | 05:17 |
| → HG` joined | 05:18 |
| ← fairuz left | 05:18 |
| → Engin joined | 05:18 |
| ← monokrome left | 05:19 |
| → shiba_yu36 joined | 05:20 |
| ← HG` left | 05:20 |
| → ExtraSpice joined | 05:20 |
| → aminpy joined | 05:20 |
| → ajt joined | 05:21 |
| → paja joined | 05:21 |
| → EricF joined | 05:28 |
| → Bombe joined | 05:28 |
| ← robotarmy left | 05:29 |
| ← urkud left | 05:31 |
| ← liorkesos left | 05:32 |
| ← Bombe left | 05:32 |
| ← cirwin left | 05:33 |
| → shine-neko joined | 05:34 |
| → doener joined | 05:35 |
| ← towski left | 05:36 |
| ← bdiu left | 05:38 |
| → j0ran joined | 05:38 |
| → Soliton joined | 05:39 |
| ← Yuffster left | 05:40 |
| ← Bonkers left | 05:42 |
| → dkannan joined | 05:42 |
|
EugeneKay
| fatal: confused by unstable object source data for 8e70af58cdbb989ad3c0170f23b1474f3478a465 | 05:44 |
|
| :-/ | 05:44 |
| ← iszak left | 05:44 |
| → towski joined | 05:44 |
| ← Engin left | 05:45 |
| → javaanse_jongens joined | 05:46 |
| ← MattDiPasquale left | 05:46 |
| → Engin joined | 05:46 |
|
karstensrage
| do you guys do anything with WIP code ? | 05:48 |
|
| like a sandbox repo or something | 05:49 |
| ← TiBook left | 05:50 |
|
doener
| karstensrage: like anything else, it gets its branch. No need for a separate repo | 05:50 |
| → milli joined | 05:51 |
| → LongBeach joined | 05:51 |
|
karstensrage
| fr'doener, no i mean like code that not even in a repo, like testing stuff out or investigating some new thing | 05:52 |
| → MattDiPasquale joined | 05:52 |
|
doener
| karstensrage: a whole new project then? If I work for more than, say, 15 minutes on it, it gets a repo | 05:53 |
| → Bombe joined | 05:53 |
| → TrineLocke joined | 05:53 |
|
doener
| karstensrage: there are basically no downsides to running "git init" ;-) | 05:54 |
|
karstensrage
| hmmm fr'doener ok, maybe thats the ticket | 05:54 |
| → Laggg joined | 05:55 |
| ← towski left | 05:56 |
|
karstensrage
| git init sandbox it is :) | 05:56 |
| ← slide left | 05:56 |
|
Laggg
| what are some cool git repos? | 05:57 |
|
karstensrage
| define 'cool' | 05:57 |
| → xiangfu joined | 05:58 |
| ← bauruine left | 05:59 |
| ← ISF left | 06:00 |
| → Twey joined | 06:01 |
| → airborn joined | 06:02 |
| → bauruine joined | 06:02 |
| ← bauruine left | 06:02 |
| ← xiangfu left | 06:03 |
| → slide joined | 06:03 |
| ← djbpython1 left | 06:03 |
| ← Laggg left | 06:04 |
| → _ollie joined | 06:05 |
| ← dAnjou left | 06:05 |
| ← Bombe left | 06:06 |
| → liorkesos joined | 06:07 |
| ← ericdc left | 06:07 |
| ← _ollie left | 06:07 |
| → dAnjou joined | 06:07 |
| → evaryont joined | 06:07 |
| → ericdc joined | 06:07 |
|
evaryont
| anyone know what is going on? When I execute git from the command line, I get the following error: "git: exec format error: hub" (with return code 126) | 06:08 |
| → Tasser joined | 06:09 |
| → elb0w joined | 06:09 |
| ← Octalot left | 06:09 |
|
evaryont
| oh, my bad, my bad... I was stupid. my git wrapper script was moved to a different folder. silly me. (eeps) | 06:10 |
| → lxsameer joined | 06:10 |
|
lxsameer
| i have a remotes/origin/HEAD, what does it means? | 06:10 |
| ← doener left | 06:12 |
| → thiago_home joined | 06:12 |
| → joel_falcou joined | 06:13 |
| ← liorkesos left | 06:14 |
| → cbreak_work joined | 06:14 |
| → fr0sty joined | 06:15 |
| ← troyt left | 06:16 |
| → troyt joined | 06:16 |
| → xiangfu joined | 06:16 |
| ← tgunr_ left | 06:17 |
| → Laggg joined | 06:19 |
| ← TrineLocke left | 06:21 |
| → ice799 joined | 06:21 |
| → TrineLocke joined | 06:21 |
| ← EugeneKay left | 06:22 |
| → kronos joined | 06:23 |
| ← phantomcircuit left | 06:26 |
| → bauruine joined | 06:27 |
| → urkud joined | 06:29 |
| → dannas joined | 06:29 |
| ← dr_ick left | 06:29 |
| ← LouisJB left | 06:31 |
| ← excess^ left | 06:31 |
| → hynek joined | 06:33 |
| → guardian joined | 06:34 |
| → EnginA joined | 06:34 |
| → shruggar joined | 06:35 |
| ← etnt left | 06:35 |
| ← project2501b left | 06:35 |
| ← roop left | 06:36 |
| ← Engin left | 06:36 |
| → nicoulaj joined | 06:37 |
| → matjas joined | 06:37 |
| → ph^ joined | 06:38 |
| ← dAnjou left | 06:38 |
| → dAnjou joined | 06:38 |
| ← slide left | 06:39 |
| → Bombe joined | 06:41 |
| ← Zenith77 left | 06:42 |
| → mklappstuhl joined | 06:42 |
| ← EricF left | 06:42 |
| ← ormaaj left | 06:43 |
| → tvw joined | 06:43 |
| → larsmoil joined | 06:45 |
| → giallu joined | 06:46 |
| ← madewokherd left | 06:47 |
| → fairuz joined | 06:47 |
| → mastroDani joined | 06:48 |
| → ormaaj joined | 06:48 |
| → rue joined | 06:50 |
| → slide joined | 06:52 |
| → jhoepken joined | 06:52 |
| → Engin joined | 06:52 |
| ← larsmoil left | 06:53 |
| ← dAnjou left | 06:53 |
| → larsmoil joined | 06:53 |
| ← mosno left | 06:53 |
| ← airborn left | 06:53 |
| ← dvaske left | 06:53 |
| → dAnjou joined | 06:54 |
| ← EnginA left | 06:55 |
| ← kronos left | 06:55 |
| → skoop joined | 06:56 |
| ← infid left | 06:56 |
| ← tvw left | 06:57 |
| → resmo_ joined | 06:58 |
| → infid joined | 06:58 |
| → radarek joined | 06:58 |
| → henry_ept joined | 06:59 |
| ← paja left | 06:59 |
| ← bjtitus left | 07:01 |
| → roop joined | 07:01 |
| ← dAnjou left | 07:02 |
| → dAnjou joined | 07:04 |
| ← xerora left | 07:05 |
| → teweWork joined | 07:05 |
| ← jungejason left | 07:06 |
| ← shennyg left | 07:08 |
| ← teweWork left | 07:08 |
| ← dreiss left | 07:10 |
| → teweWork joined | 07:11 |
| ← qwester left | 07:14 |
| ← dannas left | 07:14 |
| → shennyg joined | 07:14 |
| ← OOPMan left | 07:16 |
| → paja joined | 07:17 |
| → dvaske joined | 07:17 |
| → workmad3 joined | 07:18 |
|
fairuz
| hi | 07:18 |
|
| how to reset to previous commit? | 07:18 |
| → crashanddie joined | 07:18 |
| ← crashanddie left | 07:18 |
| → crashanddie joined | 07:18 |
|
thiago_home
| by reset, do you really mean what git reset does? | 07:18 |
| → OOPMan joined | 07:20 |
|
fairuz
| thiago_home: i mean how to reset to previous commit, btw i found it.. git reset --hard HEAD .. thanks | 07:20 |
|
| my other question..we have git diff to make patches..do we have git patch to apply the patches or we can just use normal patch command | 07:21 |
|
thiago_home
| git apply | 07:22 |
|
| to make patches, use git format-patch | 07:22 |
|
| to apply, use git am | 07:22 |
| ChanServ set mode: +v | 07:22 |
|
henry_ept
| Hello. | 07:22 |
|
| I have questions | 07:23 |
|
thiago_home
| we might have answers | 07:23 |
|
henry_ept
| I tried to compile git 1.7.4.2 myself on Mac OS X 10.6.7, but I failed. | 07:23 |
|
| I think config.mak.autogen is not included in Makefile. | 07:23 |
| ← mastroDani left | 07:23 |
|
fairuz
| thiago_home: thanks. what are difference between git diff and git format-patch? | 07:23 |
|
henry_ept
| What's wrong? | 07:23 |
|
| configure --> http://pastebin.com/VnBGPgB5 | 07:23 |
| ← evaryont left | 07:23 |
|
henry_ept
| config.mak.autogen --> http://pastebin.com/0SH9ZLTV | 07:23 |
|
| I fixed Makefile manually, L309 'CC = gcc' --> 'CC = /usr/bin/gcc' | 07:23 |
|
| then compiled successfully | 07:23 |
|
thiago_home
| fairuz: git diff just produces a diff of any two things | 07:23 |
|
| fairuz: git format-patch creates a patch out of a commit | 07:24 |
|
crashanddie
| henry_ept, you don't have gcc in your path on OSX? | 07:24 |
| ← Bombe left | 07:24 |
|
thiago_home
| fisted_: it includes the commit message | 07:24 |
| → jds_ joined | 07:24 |
|
fairuz
| thiago_home: but git diff HEAD -- > my.patch will also create a patch ? | 07:24 |
|
thiago_home
| fairuz: yes | 07:25 |
|
marcamilly
| ok when I am looking at a diff on the command line, how do i read this now ? I am actually looking at the diff of a git flow | 07:25 |
|
thiago_home
| fairuz: but it won't include the commit message (because there is no commit) | 07:25 |
| → drake01 joined | 07:25 |
|
henry_ept
| crashanddie: I use gcc compiled myself. | 07:25 |
| → empity joined | 07:25 |
|
fairuz
| thiago_home: ah ok...i got it now..thanks | 07:25 |
|
thiago_home
| marcamilly: explain | 07:25 |
|
crashanddie
| henry_ept, why, exactly? Probably off topic, but still. | 07:25 |
|
henry_ept
| but when compile git, i want(need) to use /usr/bin/gcc | 07:25 |
|
marcamilly
| when I do git flow feature diff edit_comments, and I am on the develop branch, am I looking at a diff between the develop & edit_comments branch thiago_home ? | 07:26 |
|
thiago_home
| marcamilly: I have no idea what git flow is | 07:26 |
|
henry_ept
| apple's gcc very old, so i use gcc 4.6.0 | 07:26 |
|
thiago_home
| no such command on 1.7.3.2 | 07:26 |
|
marcamilly
| ooh thiago_home https://github.com/nvie/gitflow | 07:26 |
| → mishok13 joined | 07:27 |
|
marcamilly
| it's pretty kewl for managing your workflow on a project | 07:27 |
| → opalka joined | 07:27 |
| ← dvaske left | 07:27 |
|
marcamilly
| thiago_home: it was modeled off of this post: http://nvie.com/posts/a-successful-git-branching-model/ | 07:27 |
| → robert_david joined | 07:28 |
| → Bombe joined | 07:28 |
|
marcamilly
| so my question might be moot then ? | 07:28 |
|
henry_ept
| However, When I use gcc 4.6.0 compiled myself, I failed to compile git. I need to use /usr/bin/gcc | 07:28 |
|
thiago_home
| henry_ept: and /usr/bin isn't on your $PATH? | 07:29 |
|
| marcamilly: no, it's just that I have no clue what your question means. | 07:29 |
| ← smokex left | 07:29 |
|
thiago_home
| marcamilly: so I can't answer. | 07:29 |
|
marcamilly
| ok...hrmm | 07:29 |
|
| anyone else in here familiar with git flow ? | 07:29 |
|
henry_ept
| So i set 'CC=/usr/bin/gcc ./configure ....' | 07:29 |
| → psoo joined | 07:30 |
|
henry_ept
| thiago_home: /usr/bin is in my PATH | 07:30 |
|
thiago_home
| henry_ept: then why do you need to set the compiler's absolute path? | 07:30 |
|
| henry_ept: do you have another gcc? | 07:30 |
| ← Theravadan left | 07:30 |
|
henry_ept
| thiago_home: yes. i usaully use $HOME/local/gcc46/bin/gcc | 07:31 |
|
marcamilly
| thiago_home: this is what my diff looks like: https://gist.github.com/890112 | 07:32 |
|
| and am trying to figure out which is why | 07:32 |
| → dreiss joined | 07:32 |
|
marcamilly
| how do I know which branch is which ? | 07:32 |
|
| or is this a diff of changes on one branch ? | 07:32 |
|
henry_ept
| gcc --> http://pastebin.com/2KEhWu4a | 07:33 |
| ← mklappstuhl left | 07:34 |
| → lhunath joined | 07:34 |
| → leo2007 joined | 07:35 |
|
lhunath
| I've got a patch file generated by git format-patch -M which contains a rename like, --- a/file1 b/file2, but git-am fails to apply this saying: fatal: git apply: bad git-diff - inconsistent old filename on line 109 | 07:35 |
| ← urkud left | 07:36 |
|
thiago_home
| marcamilly: a is the first branch, b is the second branch | 07:36 |
| → henrikbjorn joined | 07:36 |
| → troessner joined | 07:37 |
|
marcamilly
| thiago_home: hrmm....ok.....so if I am on branch 'develop' and I execute a git command to basically show me the diff and I specify another branch...does that mean that the branch I am currently on becomes 'a', and the one I specified becomes 'b' ? | 07:37 |
| ← MattDiPasquale left | 07:38 |
|
thiago_home
| marcamilly: git diff => diffs the working tree to the index | 07:38 |
|
| marcamilly: git diff --cached => diffs the index to HEAD | 07:38 |
|
| marcamilly: git diff $commit => diffs the working tree to $commit (a is the working tree, b is $commit) | 07:38 |
|
| marcamilly: git diff $commit1 $commit2 => diffs one commit to the other | 07:39 |
|
marcamilly
| hrmm....interesting | 07:39 |
|
| well what i did was git flow feature <name> diff | 07:39 |
|
| but you aren't familiar with git flow...sooo... | 07:39 |
|
| :( | 07:40 |
|
henry_ept
| Makefile L1196 '-include config.mak.autogen' but 'CC = gcc' yet. | 07:41 |
| ← fairuz left | 07:41 |
| ← dAnjou left | 07:41 |
| → dAnjou joined | 07:42 |
| → liorkesos joined | 07:42 |
| → meandi2 joined | 07:43 |
|
henry_ept
| If true, CC should be /usr/bin/gcc(i will set) here? | 07:43 |
| ← helvete left | 07:43 |
| ← meandi left | 07:43 |
|
thiago_home
| henry_ept: why don't you just set the PATH to contain only one gcc, the one you want? | 07:43 |
| → MattDiPasquale joined | 07:44 |
| → L42y joined | 07:44 |
| → dvaske joined | 07:44 |
| ← MattDiPasquale left | 07:45 |
| → mastroDani joined | 07:46 |
| ← aminpy left | 07:47 |
| → MattDiPasquale joined | 07:47 |
| ← dkannan left | 07:47 |
| → dkannan joined | 07:48 |
| ← blueyed left | 07:48 |
| → davzie joined | 07:49 |
| ← mastroDani left | 07:50 |
|
henry_ept
| thiago_home: It's messy to rewrite $PATH setting only for compiling git :p | 07:50 |
|
| And if succeed to compile, make install to $HOME because config.mak,autogen is not included, in which prefix = $HOME/local | 07:50 |
| ← notbrent left | 07:50 |
| → mabrand joined | 07:50 |
| → eijk joined | 07:51 |
| ← thiago_home left | 07:51 |
| → mastroDani joined | 07:51 |
| ← meandi2 left | 07:52 |
| → meandi joined | 07:52 |
| ← shruggar left | 07:55 |
| ← drake01 left | 07:57 |
| → tatsuya joined | 07:58 |
| ← tyteen4a03 left | 07:59 |
| ← Laggg left | 07:59 |
| → mklappstuhl joined | 08:00 |
| → dAnjou_ joined | 08:00 |
| → dpino joined | 08:02 |
| ← dAnjou left | 08:03 |
| ← theoros left | 08:04 |
| → nonnooo joined | 08:04 |
| → fairuz joined | 08:05 |
| → savetheinternet joined | 08:06 |
| dAnjou_ → dAnjou | 08:06 |
| ← dvaske left | 08:06 |
|
savetheinternet
| i'm a bit of a git noob, and need some help making a download with the git tagging thing | 08:06 |
|
| anyone here? | 08:06 |
| ← Error404NotFound left | 08:06 |
|
savetheinternet
| i created the 'tag' thing. http://pastie.org/private/ars4n7as26q25yqd8xpg but then what do I do? | 08:06 |
|
fairuz
| Hi, if I replace a file with other file with a same name. Do git detect it as delete and add or just content modify? | 08:06 |
|
savetheinternet
| i was reading http://gitref.org/branching/#tag | 08:06 |
|
| do i need to make a commit? | 08:06 |
|
fairuz
| savetheinternet: afaik, a tag is already a commit | 08:07 |
|
| just it has name | 08:07 |
|
savetheinternet
| how do I "push" it then? | 08:07 |
|
| i'm trying to use the github download tagging thing | 08:07 |
|
| >There aren't any downloads yet. You can create some by uploading files using form above or tagging a point in your repository. | 08:07 |
|
thiago
| savetheinternet: what are you trying to do? | 08:07 |
| → tyteen4a03 joined | 08:07 |
|
thiago
| you want to push your tag? | 08:07 |
|
savetheinternet
| yes | 08:07 |
|
| i want to make downloads like this: https://github.com/openmelody/melody/downloads | 08:08 |
|
thiago
| git push remotename tagname | 08:08 |
| → PigeonFriend joined | 08:08 |
|
fairuz
| savetheinternet: something like git push origin mytag | 08:08 |
| → dc5ala joined | 08:08 |
|
savetheinternet
| much love. | 08:09 |
|
| thank you | 08:09 |
|
fairuz
| thiago: any idea about my question? :D | 08:09 |
| ← roop left | 08:10 |
|
thiago
| fairuz: git does content detection | 08:10 |
|
fairuz
| thiago: ok | 08:10 |
|
marcamilly
| is there anyway to manually go through the differences between two branches and merge some of the changes from one branch into the other ? | 08:11 |
|
thiago
| fairuz: if you delete a file and re-add with different content, Git may or may not detect a rewrite | 08:11 |
|
| it can detect a rewrite even without a delete+add | 08:11 |
| → MikeChelen joined | 08:11 |
|
marcamilly
| i would imagine that a GUI would make this process easier...is there a gui for OS X that would make it easier ? | 08:11 |
| ← L42y left | 08:11 |
| ← dAnjou left | 08:11 |
|
MikeChelen
| how do you push changes to .git/info/exclude to the remote repo? | 08:12 |
| → dAnjou joined | 08:12 |
|
marcamilly
| btw thiago do the - and + mean anything in the diff view ? or does it just show the lines for a & b respectively ? or does it mean lines deleted and added ? | 08:13 |
| → aminpy joined | 08:14 |
|
fairuz
| marcamilly: + means the lines are addes - lines are removed | 08:15 |
|
marcamilly
| ok fairuz thanks | 08:15 |
|
thiago
| marcamilly: no, just standard diff meaning | 08:16 |
| ← mastroDani left | 08:18 |
| ← dAnjou left | 08:19 |
| → Error404NotFound joined | 08:19 |
| → dAnjou joined | 08:20 |
|
jaeckel
| MikeChelen: info/exclude is only for the local repository! you need to add a .gitignore, c.f. man git-ignore | 08:22 |
|
fairuz
| thiago: i suppose git format-patch -k -1 will do diff between master and a commit before that? | 08:23 |
|
thiago
| fairuz: provided you have master checked out | 08:23 |
|
fairuz
| thiago: yup, thanks | 08:23 |
| → TrahDivad joined | 08:25 |
|
TrahDivad
| Hi ppl | 08:25 |
| ← dAnjou left | 08:26 |
|
TrahDivad
| How can I local changes I have made that haven't even been staged? | 08:26 |
|
| How how can I delete | 08:26 |
|
thiago
| TrahDivad: your sentence is missing a verb | 08:26 |
|
TrahDivad
| I meant | 08:26 |
|
thiago
| ah | 08:26 |
|
bob2
| git checkout filename # obliterate local changes to filename | 08:26 |
|
henry_ept
| thiago: btw, does configure and Makefile work well in your enviroment? | 08:26 |
|
thiago
| henry_ept: never tried | 08:26 |
|
TrahDivad
| bob2: How would I do it for all local changes? | 08:27 |
|
| for all files even | 08:27 |
|
thiago
| henry_ept: I don't use configure | 08:27 |
|
bob2
| don't provide a filename | 08:27 |
|
| maybe also -f | 08:27 |
|
TrahDivad
| bob2 Thanks :) I'll give it a try | 08:27 |
| → dAnjou joined | 08:27 |
|
henry_ept
| thiago: ok :) | 08:27 |
|
thiago
| TrahDivad: git status. It will tell you. | 08:27 |
| ← savetheinternet left | 08:28 |
| ← robert_david left | 08:28 |
|
TrahDivad
| thiago: You're right, git status does indeed tell me. :S | 08:28 |
|
marcamilly
| thiago: there anyway to selectfully accept some changes commited to a branch, via a merge to another branch ? | 08:29 |
|
| i.e. branch b has say 10 changes that I want in branch a | 08:29 |
|
thiago
| marcamilly: no | 08:29 |
|
marcamilly
| but it also has 15 changes that I dont want | 08:29 |
|
thiago
| marcamilly: merge merges everything | 08:29 |
|
| marcamilly: it's all-or-nothing | 08:29 |
| → erichammond joined | 08:30 |
|
marcamilly
| so no way at all to get them individually ? | 08:30 |
|
thiago
| marcamilly: if you didn't want those changes, they should have been in separate branches | 08:30 |
|
marcamilly
| :| | 08:30 |
| → robert_david joined | 08:30 |
|
thiago
| marcamilly: you can cherry-pick each individually | 08:30 |
|
| it's not the same thing | 08:30 |
|
marcamilly
| ok, will do that | 08:30 |
|
thiago
| we use selective cherry-picking for release branches | 08:31 |
|
| small, hotfixes before a release | 08:31 |
|
| we use merges for everything else | 08:31 |
| ← dAnjou left | 08:32 |
| → dAnjou joined | 08:32 |
| → mjt joined | 08:33 |
| ← Nonpython left | 08:34 |
| → bentob0x joined | 08:34 |
| → spuz joined | 08:34 |
| ← jds left | 08:34 |
| → Nonpython joined | 08:35 |
|
lxsameer
| i my remote repo has a HEAD, what does that mean ? what is wrong ? | 08:37 |
|
thiago
| nothing is wrong | 08:37 |
|
| when you clone a repository, you get the HEAD checked out | 08:37 |
| → LouisJB joined | 08:38 |
| → saschagehlich joined | 08:39 |
| → achadwick joined | 08:40 |
| ← spuz left | 08:41 |
| ← dreiss left | 08:41 |
| → dannas joined | 08:41 |
|
fairuz
| thiago: i got an error while trying to do git am. I suppose I have to resolve it manually? | 08:42 |
|
| or is there any tool to help? :D | 08:42 |
|
thiago
| fairuz: do you mean a conflict? | 08:42 |
| → mastroDani joined | 08:42 |
|
fairuz
| thiago: i think so | 08:43 |
|
| error: patch failed: arch/arm/include/asm/pmu.h:22 | 08:43 |
|
| error: arch/arm/include/asm/pmu.h: patch does not apply | 08:43 |
|
Guest26955
| hey all | 08:43 |
| Guest26955 → cbx33 | 08:43 |
|
cbx33
| Mornin | 08:43 |
|
| so guys - a question - how does git reset --merge differ from git merge --abort | 08:44 |
| ← dAnjou left | 08:44 |
| → dAnjou joined | 08:44 |
|
fairuz
| thiago: it even dont show me which line the conflict occured | 08:44 |
|
| :( | 08:45 |
|
thiago
| fairuz: it doesn't. Use the standard patching tools to fix it | 08:45 |
|
fairuz
| thiago: ok | 08:45 |
| ← Spockz left | 08:48 |
| → JohnBat26 joined | 08:48 |
| → tvw joined | 08:50 |
| → rumith_ joined | 08:51 |
| → Saur joined | 08:51 |
| ← dAnjou left | 08:52 |
| ← Saur left | 08:52 |
| → dAnjou joined | 08:53 |
| ← AAA_awright left | 08:54 |
| ← rumith_ left | 08:54 |
| ← lhunath left | 08:55 |
| → AAA_awright joined | 08:55 |
| ← synisma left | 08:56 |
| → MacGyverNL_ joined | 08:57 |
| ← MacGyverNL_ left | 08:57 |
| ← dAnjou left | 08:59 |
| → dAnjou joined | 09:00 |
| ← tsbtmn left | 09:00 |
| → mastroWork joined | 09:01 |
| → tsbtmn joined | 09:02 |
| ← tsbtmn left | 09:02 |
| → tsbtmn joined | 09:02 |
|
Boggle
| yesterday I created a GitHub account and successfully loaded up an Xcode project into a new repository... since then I have modified the Xcode project. How do I upload the new project? Exactly the same way as I did in the first place? ie here ... http://help.github.com/create-a-repo/ | 09:03 |
|
| ? | 09:03 |
|
| how about if I am happy to just erase everything and copy the new one over? | 09:04 |
|
| I don't need an old version and a new version, ... | 09:04 |
| → logankoester joined | 09:04 |
| ← mastroDani left | 09:05 |
| ← dAnjou left | 09:06 |
| → dAnjou joined | 09:06 |
| ← JohnBat26 left | 09:07 |
| → Spockz joined | 09:09 |
| ← st-5426 left | 09:10 |
| ← dAnjou left | 09:10 |
| → dvaske joined | 09:11 |
|
f00li5h
| Boggle: you'll want to commit your changes, then push the repo | 09:11 |
| → koltroll joined | 09:12 |
| → CareBear\ joined | 09:12 |
|
CareBear\
| hi all! | 09:12 |
|
| I'm writing a pre-receive hook that should detect rebase. | 09:13 |
| → mikelangelo joined | 09:13 |
|
CareBear\
| what's an easy/efficient way to determine if the old commit exists in the history of the new commit? | 09:13 |
| → dAnjou joined | 09:14 |
|
thiago
| git log -1 $newcommit..$oldcommit. If you get no output, it exists in the history. If you get any output, it doesn't exist in the history. | 09:15 |
| ← dkannan left | 09:15 |
|
CareBear\
| thiago : of course! thanks for the hint. :) | 09:16 |
|
| oh no I misread that - not what I first thought it did | 09:17 |
|
| but works perfectly | 09:17 |
|
| thanks! | 09:17 |
| ← blaenk left | 09:18 |
| ← dAnjou left | 09:18 |
| → eschnou joined | 09:18 |
| ← opalka left | 09:18 |
| → opalka joined | 09:18 |
| ← opalka left | 09:18 |
| → opalka joined | 09:18 |
|
fairuz
| Hi, how to delete a remote branch? deleting in local and pushing to remote doesn't solve it | 09:19 |
|
tango_
| fairuz: push remotename :branchname | 09:19 |
| ← davzie left | 09:20 |
| → dAnjou joined | 09:20 |
|
fairuz
| tango_: a weird command to delete a branch :D thanks | 09:21 |
| → dkannan joined | 09:21 |
|
jaeckel
| use git extras' "git delete-branch" :> | 09:24 |
| ← dAnjou left | 09:25 |
| → dAnjou joined | 09:25 |
| ← frerich left | 09:28 |
| ← marcamilly left | 09:28 |
| → harv joined | 09:28 |
| ← dvaske left | 09:30 |
| ← siprbaum left | 09:30 |
| → siprbaum joined | 09:30 |
| → mastro joined | 09:30 |
| → frerich joined | 09:31 |
| ← frerich left | 09:31 |
| → frerich joined | 09:31 |
| → nevyn^ joined | 09:31 |
| ← mikepack left | 09:31 |
| → thierryp joined | 09:34 |
| ← mastroWork left | 09:35 |
| → xiong joined | 09:36 |
| ← mabrand left | 09:39 |
| ← dc5ala left | 09:39 |
| ← mklappstuhl left | 09:39 |
| ← dAnjou left | 09:41 |
| → dAnjou joined | 09:42 |
|
fairuz
| if I have c1 -> c2 -> c3 -> c4 , where i'm now at c4..Can i go back to c2 and reapply c4? | 09:42 |
|
| Actually I just want to get rid of modification made in c3 | 09:43 |
|
tango_
| fairuz: did you push your history already? | 09:43 |
|
| if not, git rebase -i c1 and delete c3 from the chain of reapplied commits | 09:43 |
| → dvaske joined | 09:44 |
|
fairuz
| tango_: what do you mean by push history? push to remote? | 09:44 |
|
tango_
| yeah | 09:44 |
|
fairuz
| tango_: it's only a local repo, so no remote | 09:44 |
|
tango_
| excellent | 09:44 |
|
| then git rebase is what you want, look up the man for further info | 09:44 |
|
fairuz
| tango_: ok thanks | 09:45 |
|
tango_
| np | 09:45 |
|
fairuz
| tango_: but if we delete c3, do git smart enough to chain c1 with c4? | 09:45 |
|
| or i understand it wrong | 09:45 |
|
tango_
| if you only delete c3, you will have c1 -> c2 -> c4 | 09:45 |
|
| without the c3 changes | 09:45 |
| → d0k_ joined | 09:47 |
| ← txh left | 09:47 |
|
fairuz
| tango_: so the rebase will make c1 -> c2 -> (2 branch here c4 and c3)..so i just delete the c3 to get only c1 -> c2 -> c4? | 09:48 |
|
tango_
| no, the rebase will just plot c4 on top of c2 | 09:48 |
|
| plop | 09:49 |
|
| fairuz: read the rebase manpage | 09:49 |
|
| fairuz: man git-rebase | 09:49 |
|
jast
| fairuz: the 'git-rebase' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html [automatic message] | 09:49 |
|
fairuz
| tango_: ok thanks | 09:49 |
| → hellovetica joined | 09:52 |
| → ereslibre joined | 09:53 |
| ← ereslibre left | 09:53 |
| → ereslibre joined | 09:53 |
| ← dAnjou left | 09:54 |
| → dAnjou joined | 09:54 |
| ← hellovetica left | 09:55 |
| → shruggar joined | 09:57 |
| ← aminpy left | 09:57 |
|
shruggar
| how can I find the original id of the "current" commit during git-filter-branch? | 09:57 |
| ← mastro left | 09:58 |
| → aminpy joined | 09:58 |
|
shruggar
| I am trying to remove all commits which match a list of IDs (as git rebase -i does when you delete a line) | 09:59 |
| → st-8616 joined | 09:59 |
| ← nd__ left | 10:00 |
| ← tsbtmn left | 10:00 |
| ← st-8616 left | 10:00 |
| ← cutmail left | 10:01 |
| → st-8670 joined | 10:02 |
| → mastro joined | 10:03 |
| ← st-8670 left | 10:03 |
| → rendar joined | 10:03 |
| ← wilmoore left | 10:04 |
| → nd__ joined | 10:04 |
| → xudifsd joined | 10:05 |
| → quazi_farhan joined | 10:06 |
| ← genjin left | 10:07 |
| → tsbtmn joined | 10:07 |
| ← tsbtmn left | 10:07 |
| → tsbtmn joined | 10:07 |
| → larsl joined | 10:08 |
| ← tatsuya left | 10:08 |
| ← dannas left | 10:10 |
|
xudifsd
| Hi,there, GSOC's homepage says that mentor org will may have a template for student's application, but i can't find it in git, where is it? | 10:10 |
| ← tsbtmn left | 10:12 |
|
thiago
| orgs don't have to have a template | 10:12 |
| ← dAnjou left | 10:13 |
|
xudifsd
| oh, this means git don't have it right? | 10:13 |
|
thiago
| no | 10:14 |
|
| I don't know if git has it or not | 10:14 |
| → spaceonline joined | 10:15 |
|
xudifsd
| eh, thanks anyway. | 10:17 |
| ← henrikbjorn left | 10:18 |
| → tsbtmn joined | 10:18 |
| ← tsbtmn left | 10:18 |
| → tsbtmn joined | 10:18 |
| → davzie joined | 10:19 |
| ← thierryp left | 10:19 |
|
xudifsd
| btw, should application submit to org or google? | 10:19 |
|
thiago
| you submit the application on the web interface | 10:20 |
|
| there's only one interface to do it | 10:20 |
| ← teweWork left | 10:20 |
|
thiago
| but you should contact the organisation and talk to them | 10:20 |
| ← resmo_ left | 10:20 |
| → resmo_ joined | 10:21 |
| ← ph^ left | 10:22 |
|
xudifsd
| i see | 10:22 |
| → ph^ joined | 10:22 |
| ← workmad3 left | 10:24 |
| → dAnjou joined | 10:26 |
| ← hyperair left | 10:27 |
| ← Engin left | 10:28 |
| → mosno joined | 10:29 |
| ← mastro left | 10:29 |
| → st-9366 joined | 10:29 |
| → avdg joined | 10:29 |
| → vitor-br joined | 10:30 |
| ← st-9366 left | 10:30 |
| → sagsousuke joined | 10:32 |
| → minkben joined | 10:32 |
|
minkben
| if I already have a project directory with files, how do I setup a git repo locally and remotely? | 10:33 |
| → mastro joined | 10:34 |
| → gebi joined | 10:34 |
|
minkben
| or, how do I init a directory with file in it already and also tie it to a remote repo | 10:35 |
|
JPT
| hmm.. just initialize your repository, put the files in there, commit them and then clone your repository elsewhere. | 10:36 |
| → st-9471 joined | 10:37 |
|
minkben
| how? | 10:37 |
| ← st-9471 left | 10:37 |
| → st-9486 joined | 10:37 |
| ← st-9486 left | 10:38 |
| → dAnjou_ joined | 10:38 |
| ← Spockz left | 10:39 |
|
minkben
| do I have to start with an empty directory? | 10:39 |
|
avdg
| minkben: nope | 10:39 |
|
| just go to the root of your project | 10:39 |
|
| and 'git init' | 10:39 |
|
minkben
| but I want it on my server | 10:39 |
|
| I did git init --bare on the server | 10:39 |
|
avdg
| and where is your project files? | 10:39 |
|
minkben
| locally | 10:40 |
|
avdg
| and the local files are already in a repo? | 10:40 |
|
minkben
| no | 10:40 |
|
| I haven't made any repo for them yet | 10:40 |
|
avdg
| its better to create a local one | 10:40 |
|
minkben
| I don't know how to proceed | 10:40 |
|
avdg
| makes life easier | 10:40 |
| → st-9523 joined | 10:40 |
|
minkben
| I want to sync between school and home | 10:40 |
|
| so I need a remote repo | 10:40 |
|
avdg
| just create a local repo, then push it to a remote repo | 10:40 |
| ← jophish left | 10:41 |
|
minkben
| how do I push it to the remote repo | 10:41 |
| ← st-9523 left | 10:41 |
| ← dAnjou left | 10:41 |
|
avdg
| well, just start with the local repo ;-) | 10:42 |
|
minkben
| local repo done | 10:43 |
|
avdg
| how do you get access to the server ssh? | 10:43 |
|
minkben
| yeah, ssh | 10:43 |
| → st-9554 joined | 10:43 |
|
avdg
| if you know the location, you could add that remote | 10:43 |
|
minkben
| how do I do that | 10:44 |
| → simplechat joined | 10:44 |
| ← simplechat left | 10:44 |
| → simplechat joined | 10:44 |
|
avdg
| first by defining your remote | 10:44 |
|
| http://www.kernel.org/pub/software/scm/git/docs/git-remote.html <- git remote add | 10:44 |
| ← Sonderblade left | 10:45 |
|
avdg
| git remote add <name> <url> | 10:45 |
|
vdv
| how can i comment line in a .git/config? with #? | 10:45 |
|
avdg
| vdv: yes | 10:45 |
| → Sonderblade joined | 10:45 |
| ← st-9554 left | 10:45 |
| → Sonder joined | 10:45 |
| → dAnjou joined | 10:46 |
| ← dl9pf_ left | 10:47 |
| ← ereslibre left | 10:48 |
| → ereslibre joined | 10:48 |
| → dl9pf joined | 10:49 |
| ← dl9pf left | 10:49 |
| → dl9pf joined | 10:49 |
| ← dAnjou_ left | 10:50 |
| → wingo-pi joined | 10:50 |
| → evildmp joined | 10:50 |
|
minkben
| avdg, got it up and running, thanks dude! | 10:50 |
|
evildmp
| how do I abandon a commit that I haven't yet pushed? | 10:50 |
|
| I don't want to abandon the changes to the files in my working tree | 10:50 |
|
avdg
| minkben: np | 10:50 |
|
evildmp
| I just don't want to commit the changes yet | 10:51 |
|
avdg
| don't forget to push ;-) | 10:51 |
|
minkben
| g2g | 10:51 |
| ← minkben left | 10:51 |
|
vdv
| how can i remove remotes that i don't need anymore? | 10:51 |
|
evildmp
| is: git revert HEAD what I need to do? | 10:51 |
|
avdg
| vdv: try git remote -d | 10:51 |
|
| evildmp: try "git rebase -i" | 10:52 |
| → st-9779 joined | 10:52 |
| ← st-9779 left | 10:52 |
|
avdg
| *git rebase -i <commit where on top you want to rebase> | 10:52 |
| → urkud joined | 10:54 |
| → dr_win joined | 10:55 |
| → sweetpi joined | 10:56 |
| → st-9828 joined | 10:57 |
| ← st-9828 left | 11:01 |
| → Vampire0 joined | 11:01 |
| ← Vampire0 left | 11:01 |
| → Vampire0 joined | 11:01 |
| → st-9894 joined | 11:02 |
| ← st-9894 left | 11:02 |
| ← dvaske left | 11:03 |
| → st-9915 joined | 11:03 |
| ← dAnjou left | 11:03 |
| → dAnjou joined | 11:03 |
| ← st-9915 left | 11:04 |
| → st-9929 joined | 11:04 |
| ← st-9929 left | 11:05 |
| ← dAnjou left | 11:07 |
| ← urkud left | 11:07 |
| → st-10005 joined | 11:08 |
| → Spockz joined | 11:09 |
| ← st-10005 left | 11:13 |
| → dAnjou joined | 11:13 |
| → t3rm1n4l joined | 11:13 |
| ← EricInBNE left | 11:14 |
| → sebersole joined | 11:14 |
| → st-10046 joined | 11:15 |
| ← st-10046 left | 11:15 |
| ← muep_ left | 11:16 |
| → st-10058 joined | 11:16 |
| ← st-10058 left | 11:16 |
| ← bottiger left | 11:16 |
| ← leo2007 left | 11:16 |
| → urkud joined | 11:17 |
| → elyob joined | 11:18 |
| ← mastro left | 11:19 |
| → st-10104 joined | 11:20 |
| → muep_ joined | 11:21 |
| → roop joined | 11:23 |
| → flaguy48 joined | 11:23 |
| → owst joined | 11:25 |
| ← ptl left | 11:25 |
|
wingo-pi
| http://wingolog.org/archives/2011/03/28/git-brunch1 | 11:26 |
| → nicomen joined | 11:26 |
| → ptl joined | 11:26 |
|
nicomen
| I'm setting up gitweb as a subdir on my apache server, but I keep getting an error that HEAD doesn't point to a valid ref when doing a checkout. the rewrites on the server as supposedly invoking gitweb.cgi as gitweb.cgi/<project>/HEAD but it outputs an html page -- what am I doing wrong? | 11:27 |
| → g0bl1n joined | 11:27 |
|
thiago
| nicomen: nothing | 11:27 |
|
| are you sure it's an error? It should say "warning" | 11:28 |
|
nicomen
| warning: remote HEAD refers to nonexistent ref, unable to checkout. | 11:28 |
|
thiago
| so it's not an error | 11:28 |
|
nicomen
| the HEAD file contains: ref: refs/heads/master | 11:29 |
|
| is gitweb supposed to passthru the access to that file without invoking the cgi script? | 11:29 |
|
thiago
| gitweb has nothing to do with cloning | 11:30 |
|
| are there any commits in branch master? | 11:30 |
| ← IceW left | 11:30 |
|
nicomen
| how do I check that? | 11:30 |
| → Gulug joined | 11:30 |
| ← michael_lf left | 11:31 |
|
nicomen
| (what I'm trying to do is let a repo be accesible thru http for git command line btw.) | 11:31 |
| ← Guest15518 left | 11:31 |
|
nicomen
| it works june fine by using ssh:// as the protocl and path to the repository on the box | 11:31 |
| → cutmail joined | 11:32 |
| ← roop left | 11:33 |
| ← dkannan left | 11:35 |
| ← st-10104 left | 11:36 |
| → q0rban joined | 11:36 |
| → etnt joined | 11:37 |
| ← sweetpi left | 11:38 |
| → dkannan joined | 11:39 |
| → chernjie joined | 11:41 |
| ← chernjie left | 11:42 |
| → mintux1 joined | 11:43 |
| ← dAnjou left | 11:43 |
| → dAnjou joined | 11:44 |
| → foocraft joined | 11:45 |
| ← lxsameer left | 11:47 |
| ← javaanse_jongens left | 11:48 |
| → hbf joined | 11:49 |
| ← gebi left | 11:50 |
| → uncaught_excepti joined | 11:50 |
| ← dyer left | 11:50 |
| ← shiba_yu36 left | 11:51 |
| → dyer joined | 11:52 |
| ← dyer left | 11:53 |
| ← dAnjou left | 11:54 |
| → mklappstuhl joined | 11:54 |
| → artefon joined | 11:54 |
| → dAnjou joined | 11:54 |
|
hbf
| After repacking tightly, should i do git-send-pack explicitly to the remote repo instead of push? With one repo packed/compressed better than the other, how does git push/fetch decide which repo's packing to (mostly) retain? | 11:56 |
|
thiago
| it retains the current pack | 11:57 |
|
jast
| you can't replace existing objects on the wire | 11:57 |
|
| if you want to have things repacked on the remote, repack them on the remote | 11:58 |
|
hbf
| ok. so repack before push/send-pack merely affects the amount of network traffic? | 11:58 |
|
jast
| it might | 11:58 |
| → simenbrekken joined | 11:58 |
|
hbf
| ok. thanks. | 11:59 |
|
jast
| but since push generates a thin pack on the fly anyway... chances are it makes no difference | 11:59 |
| ← mr_daniel left | 12:00 |
|
hbf
| by default anyway, i notice push has default --thin and send-pack not. | 12:01 |
| → mr_daniel joined | 12:01 |
| → ph^_ joined | 12:02 |
|
jast
| without --thin it just means that the pack generated on the fly won't use deltas | 12:02 |
|
| which is pretty much always a bad idea | 12:02 |
| ← ph^ left | 12:03 |
|
quazi_farhan
| let us just say, i cloned a repo at my local drive and there has been some update at the server. how can i update my local version? i mean which command? | 12:03 |
| → workmad3 joined | 12:04 |
|
jast
| quazi_farhan: generally, git pull (which will merge the upstream changes with your locally committed changes, if any) | 12:04 |
|
quazi_farhan
| jast, thank you... | 12:05 |
| ← Error404NotFound left | 12:05 |
| ← Spockz left | 12:05 |
|
hbf
| jast, thanks again. | 12:06 |
| ← mosno left | 12:06 |
| ← dAnjou left | 12:07 |
| → engla joined | 12:08 |
| ← engla left | 12:08 |
| → engla joined | 12:08 |
| → blueyed joined | 12:09 |
| → dAnjou joined | 12:10 |
| → Error404NotFound joined | 12:11 |
| → rseifert joined | 12:12 |
| → mastroDani joined | 12:13 |
| → leandrosansilva_ joined | 12:13 |
| → leandrosansilva joined | 12:13 |
| ← dAnjou left | 12:13 |
| ← leandrosansilva left | 12:13 |
| → gebi joined | 12:14 |
| → dAnjou joined | 12:15 |
| → leo2007 joined | 12:15 |
| → Err404NotFound joined | 12:16 |
| ← Error404NotFound left | 12:16 |
| ← leandrosansilva_ left | 12:16 |
| ← urkud left | 12:17 |
| → leandrosansilva joined | 12:17 |
| ← leandrosansilva left | 12:17 |
| ← rseifert left | 12:18 |
| ← SirFunk left | 12:18 |
| ← hobodave left | 12:18 |
| → rseifert joined | 12:18 |
| ← jds_ left | 12:18 |
| → mrevd joined | 12:19 |
| ← dkannan left | 12:19 |
| → nona joined | 12:19 |
| ← uncaught_excepti left | 12:20 |
| → johnpipi joined | 12:20 |
|
johnpipi
| how can i push a local tag i made to the remote bare repo's master? | 12:21 |
|
| is that possible? | 12:21 |
| → urkud joined | 12:21 |
| ChanServ set mode: +v | 12:22 |
|
johnpipi
| how can i push a local tag i made to the remote bare repo's master? | 12:22 |
|
| is that possible? | 12:22 |
| ← kushal left | 12:22 |
| → durarara joined | 12:23 |
| ← durarara left | 12:23 |
|
hbf
| i'm new at this, but i suppose push <remote name> refs/tags/<tag name> | 12:23 |
| → thrope joined | 12:23 |
|
johnpipi
| let me try that | 12:23 |
|
| what i am trying to do is deploy to multiple servers with git | 12:23 |
|
thrope
| I wonder if someone could help me - I am trying to apply a commit from one repository to another. | 12:24 |
|
| I am trying to merge too different lines of development done outside git | 12:24 |
|
| on the first one I have 3 commits, on the second I have the same first commit and then a different second commit | 12:24 |
|
| I have branched the first repo to where they were in common, and now I would liek to somehow apply the same changes | 12:24 |
|
| I tried git-format-patch and then git-am but it fails saying patch won't apply | 12:25 |
|
| is there any other way to do it? | 12:25 |
| → bottiger joined | 12:26 |
| → dyer joined | 12:26 |
| ← dyer left | 12:26 |
| → dyer joined | 12:26 |
|
hbf
| add one repo as a 'remote' to the other with 'git remote', and pull the devel branch from there. then use git merge or rebase to join the development histories into a single branch. | 12:26 |
| ← nona left | 12:27 |
|
thrope
| previous rebase directory /home/robince/src/MatlabAPI_20091219/.git/rebase-apply still exists but mbox given. | 12:27 |
| → tstclair joined | 12:27 |
|
bottiger
| How do I move a submodule into another folder. Just doing "git mv submodule new_folder/" gives me a "fatal: source directory is empty ..." error | 12:27 |
|
thrope
| how do I use git remote? | 12:28 |
|
| I tried git remote add largerem ../MatlabAPI_temp | 12:28 |
|
hbf
| thrope: don't know what that mbox given means mut maybe you tried rebase and failed, and need to clean up with git rebase --abort? | 12:28 |
| ← t3rm1n4l left | 12:28 |
|
thrope
| it says No rebase in progress | 12:28 |
|
| I definitely havent run a rebase myself | 12:28 |
| ← mintux1 left | 12:28 |
|
thrope
| but I am on a (no branch) becuase I checked out an earlier commit | 12:29 |
|
avdg
| try git rebase —abort | 12:29 |
|
hbf
| huh. i don't know what that error message means then, i'm new at git myself. for remote, see example in 'man git-remote'. Or gittutorial & gitworkflows, if you havent' read those yet | 12:29 |
|
jast
| the 'git-remote' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-remote.html [automatic message] | 12:29 |
|
thrope
| it gives that error - "no rebase in progress" | 12:29 |
| → sunblush joined | 12:32 |
| ← meandi left | 12:33 |
| → sftp joined | 12:33 |
| ← dAnjou left | 12:33 |
| → Frtecek joined | 12:34 |
| → meandi joined | 12:34 |
| → dAnjou joined | 12:34 |
|
avdg
| thrope: what does "git rebase status" say? | 12:34 |
|
| oh nvm | 12:35 |
|
| avdg confused | 12:35 |
|
thrope
| it says "fatal: Needed a single revision" | 12:35 |
|
| invalid upstream status | 12:35 |
| ← rseifert left | 12:35 |
|
thrope
| anyway I am trying to add it as a remote now | 12:36 |
|
avdg
| remote? | 12:36 |
|
| so you push it to an other repo right? | 12:36 |
|
thrope
| now I have the two things I want to merge in different branches on the same repo | 12:37 |
|
| so things are looking up i think | 12:37 |
|
avdg
| well, merge it locally and push the changes to the repo you want | 12:37 |
| → DiGitalX joined | 12:37 |
| ← sagsousuke left | 12:38 |
| → teweWork joined | 12:38 |
|
thrope
| yeah it worked now | 12:38 |
|
| thanks for the help | 12:38 |
| → tatsuya joined | 12:39 |
|
johnpipi
| i was trying to follow this http://toroid.org/ams/git-website-howto | 12:40 |
| → drake01 joined | 12:40 |
| → SimonP86_ joined | 12:40 |
|
johnpipi
| but instead of "git push mysite" to push the master i want to push a tag to the remote and via the post-receive checkout into right dir | 12:41 |
| → SimonP86__ joined | 12:42 |
| → mastroWork joined | 12:43 |
| ← SimonP86 left | 12:44 |
| → nona joined | 12:44 |
| ← foocraft left | 12:44 |
| → nigewhite joined | 12:45 |
| ← pgib left | 12:45 |
| ← SimonP86_ left | 12:45 |
| ← Boggle left | 12:46 |
|
nigewhite
| If I accidentally make some edits on my master branch how can I "transfer" those changes to a new branch that I create? | 12:46 |
| ← ph^_ left | 12:46 |
| → unvs joined | 12:47 |
| ← mastroDani left | 12:47 |
|
unvs
| noobie question: what does it mean to publish a tag? does it push my local tag to the remote? | 12:47 |
| → ph^ joined | 12:48 |
|
rudi_s
| nigewhite: git branch newbranch and then git reset to remove them from the master branch (unless you've already pushed the changes!). | 12:49 |
| ← dyer left | 12:49 |
|
rudi_s
| unvs: AFAIK Yes. | 12:49 |
|
nigewhite
| I haven't committed them, just edited the files on disk. | 12:49 |
|
rudi_s
| nigewhite: Oh. Then just git checkout -b newbranch | 12:50 |
| → dyer joined | 12:50 |
| ← dyer left | 12:50 |
| → dyer joined | 12:50 |
|
nigewhite
| OK, I'll try. It's still scary to me though because I don't know what each command physically does, so I'm petrified of losing work. | 12:50 |
| → dannas joined | 12:51 |
|
rudi_s
| nigewhite: git stash save backup; git stash apply (after git adding new files). | 12:51 |
|
| That way you at least have the changes stored somewhere (git stash list to see your stashed changes). | 12:51 |
|
| Or just add it to the current branch and "move" it later. | 12:51 |
| ← larsmoil left | 12:52 |
|
nigewhite
| git stash save backup. | 12:52 |
| → Boggle joined | 12:52 |
|
nigewhite
| Is the "backup" bit significant? | 12:52 |
|
rudi_s
| nigewhite: No, it's just a name. | 12:52 |
|
| man git-stash for more information. | 12:52 |
|
jast
| the 'git-stash' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-stash.html [automatic message] | 12:52 |
|
jsquared
| nigewhite: everything after "save" is a name you give to the stash. | 12:52 |
| → Vampire0_ joined | 12:53 |
| ← Vampire0 left | 12:53 |
|
nigewhite
| Thanks. The commands are so wordy that I never know with examples given which bit is just an extra bit of command and which is some identifier used by the command. | 12:53 |
|
| Ah, the manpage. I tried that before I came here. | 12:53 |
|
| The sentences do not mean anything in english. | 12:54 |
|
nicomen
| hm, it seems I end up with shortlog as action (and HEAD ends up as refname in some regexp) so it doesn't actually output the file when going to /git/project/HEAD | 12:54 |
|
| thiago: ^ | 12:54 |
| ← SimonP86__ left | 12:54 |
|
rudi_s
| nigewhite: It takes a while to get used to man pages - but there are good manuals for git, progit for example. | 12:54 |
|
nigewhite
| THanks, I'll google that. | 12:55 |
|
rudi_s
| np | 12:55 |
| → SimonP86 joined | 12:56 |
| → ericbarnes joined | 12:57 |
|
johnpipi
| is it possible to push a local tag like v4.0.0 to a remote bare repo master? | 12:57 |
|
jaeckel
| you want to push only this single tag? | 12:58 |
|
johnpipi
| yeah | 12:58 |
|
jaeckel
| so not git push --tags | 12:58 |
|
johnpipi
| overwrite master on remote | 12:58 |
|
jaeckel
| :) | 12:58 |
|
johnpipi
| i just want to push out the tag then post-receive will move files to right location | 12:59 |
|
| on the server | 12:59 |
|
| to deploy basically | 12:59 |
|
nicomen
| ok, seems like it is indeed supposed to serve files without going thru gitweb | 12:59 |
|
jaeckel
| then do git push --tags | 12:59 |
|
| this should push the tag to the remote | 12:59 |
|
johnpipi
| my post-receive has this | 13:00 |
|
| GIT_WORK_TREE=/home/mysite/public_html git checkout -f | 13:00 |
| → bartek joined | 13:00 |
|
johnpipi
| so if i push to the remote server it will update the live files | 13:00 |
|
| but i want to be able to push over any tag | 13:01 |
|
| not just master | 13:01 |
| ← cutmail left | 13:01 |
| ← bartek left | 13:01 |
|
rudi_s
| johnpipi: Why not just use rsync? AFAIK git shouldn't be used as deployment tool. | 13:02 |
| → bartek joined | 13:02 |
|
jaeckel
| johnpipi: you're following http://toroid.org/ams/git-website-howto ? | 13:02 |
|
crashanddie
| erhm... "shouldn't"? | 13:02 |
|
johnpipi
| yes | 13:02 |
|
crashanddie
| says whom? | 13:02 |
|
johnpipi
| it works good and can deploy to multiple servers | 13:03 |
|
| i guess i could make a bash script to rsync to all servers | 13:03 |
|
| 4 webservers | 13:03 |
|
rudi_s
| crashanddie: Many people in this channel for example. | 13:03 |
| → IslandUsurper joined | 13:04 |
| → dv310p3r joined | 13:04 |
|
crashanddie
| and for what reasons, exactly? | 13:04 |
|
rudi_s
| rsync is simpler and faster than git (and you don't push the whole history to the server which might cause problems). | 13:04 |
|
| crashanddie: For example if you're not careful you give everybody access to your complete history. | 13:04 |
|
| And git wasn't designed for it. | 13:04 |
|
crashanddie
| wait, what? | 13:04 |
|
rudi_s
| crashanddie: ? | 13:05 |
|
crashanddie
| "Git wasn't designed to give everybody access to your complete history?" | 13:05 |
|
rudi_s
| crashanddie: Git wasn't designed to be used as deployment tool. | 13:05 |
|
crashanddie
| I thought that was *exactly* what Git was designed for. | 13:05 |
|
johnpipi
| well my git isn't push to public folders | 13:05 |
|
| thats what the checkout is for | 13:05 |
|
| no .git stuff in the live | 13:05 |
|
jaeckel
| rudi_s: that's why he uses post-receive hooks as described in http://toroid.org/ams/git-website-howto | 13:05 |
|
rudi_s
| crashanddie: It is - but not if you have a web server and push the history (including passwords in configuration files for example) to the web server and everybody can read the .git directory. | 13:05 |
|
johnpipi
| it works but only could make it do master | 13:05 |
|
| but im a git noob | 13:05 |
|
rudi_s
| jaeckel: Yeah, but why use git for that? rsync is just a single line, and faster, and simpler. | 13:06 |
|
jaeckel
| because you can? | 13:06 |
|
johnpipi
| one reason i can do | 13:06 |
|
| git push all-servers | 13:06 |
|
| done | 13:06 |
|
rudi_s
| jaeckel: Hehe, good point. | 13:06 |
|
jaeckel
| :) | 13:07 |
| → liorkesos_ joined | 13:07 |
|
johnpipi
| rsync i have to write a for loop 3 lines of code | 13:07 |
|
| ha | 13:07 |
|
crashanddie
| I'd also argue that if all the tools that are available to a linux dev had always been "used as designed", we wouldn't be very far... | 13:07 |
|
johnpipi
| or one i guess u could | 13:07 |
|
CareBear\
| johnpipi : so you want the latest received ref to be published? | 13:08 |
| ← liorkesos left | 13:08 |
|
crashanddie
| not at all, he just wants to publish other branches than master | 13:09 |
| ← mklappstuhl left | 13:09 |
| → henrikbjorn joined | 13:09 |
|
johnpipi
| well i guess in most cases yes, but what i wanted to be able to do is this | 13:09 |
|
CareBear\
| well, that's what I'm asking - what should be published when? | 13:09 |
|
johnpipi
| git push all-servers v4.0:master | 13:09 |
|
| or whatever the syntax is | 13:09 |
| ← liorkesos_ left | 13:09 |
|
CareBear\
| you want to be able to publish a given tag or branch | 13:10 |
|
| right? | 13:10 |
|
johnpipi
| so tag v4.0 is pushed to the remote master and then post-receive is ran | 13:10 |
|
CareBear\
| well | 13:10 |
|
johnpipi
| yeah | 13:10 |
| ← LouisJB left | 13:10 |
| ← urkud left | 13:10 |
|
johnpipi
| remote repo is a bare init repo | 13:10 |
|
CareBear\
| yep | 13:10 |
|
johnpipi
| that is never used except to push stuff and make live | 13:10 |
|
CareBear\
| so here's what I'd suggest | 13:10 |
|
| ok | 13:10 |
|
| do you have changes in live btw? | 13:10 |
| ← tomprince left | 13:10 |
|
CareBear\
| that need to go back the same way? | 13:10 |
|
johnpipi
| nope | 13:10 |
|
CareBear\
| (but in reverse) | 13:10 |
|
johnpipi
| just one way | 13:11 |
|
CareBear\
| ok, that helps | 13:11 |
|
johnpipi
| out to live | 13:11 |
|
CareBear\
| I'd suggest: | 13:11 |
|
johnpipi
| thats it | 13:11 |
|
| to deploy | 13:11 |
|
CareBear\
| you keep the bare repo | 13:11 |
|
| but you let it have all the same tags and branches that work repos have | 13:11 |
| → thierryp joined | 13:11 |
|
CareBear\
| overwriting master every time you push is not problem free | 13:11 |
|
| and not so clean | 13:11 |
|
| do you ever want to push something that does *not* get published right then and there? | 13:12 |
|
johnpipi
| no everytime i push will be to make something live | 13:12 |
|
CareBear\
| perfect | 13:12 |
|
johnpipi
| is it better to nuke the remote first then do it or something | 13:13 |
|
Pieter
| yeah, nuke it from orbit | 13:13 |
|
CareBear\
| then just push branches, and in the post-receive hook the last parameter is the branch name that was updated | 13:13 |
|
Pieter
| it's the only way to be sure | 13:13 |
|
CareBear\
| disagree | 13:13 |
|
| so there are two steps to this; | 13:13 |
|
johnpipi
| so what is the syntax on my dev box to push it over | 13:14 |
| → durarara joined | 13:14 |
|
durarara
| hello | 13:14 |
|
johnpipi
| a tag | 13:14 |
|
CareBear\
| 1. getting the stuff you want to publish into the bare repo | 13:14 |
|
johnpipi
| and overwrite master | 13:14 |
|
| with the tag | 13:14 |
|
CareBear\
| 2. getting it out to the live environment again | 13:14 |
|
| johnpipi : git push v4.0 | 13:14 |
|
| for example | 13:14 |
|
| which is equivalent to git push v4.0:v4.0 | 13:14 |
|
fr0sty_
| johnpipi: git push <remote> t<agname>:master | 13:14 |
|
CareBear\
| ie. push the local branch called v4.0 to a branch with the same name in the bare repo | 13:14 |
|
fr0sty_
| err, <tagname>:<master> | 13:15 |
| → Fullmoon joined | 13:15 |
|
johnpipi
| let me try it out | 13:15 |
|
CareBear\
| I would suggest not using master as a special key word. it doesn't have to be | 13:15 |
|
| johnpipi : for my step 1. above I think keeping 1:1 branch names is a good idea | 13:15 |
|
| johnpipi : how are you currently doing my step 2.? git export in the post-receive hook? | 13:16 |
|
johnpipi
| my post-receive looks like this | 13:16 |
|
| GIT_WORK_TREE=/home/mysite/public_html git checkout -f | 13:17 |
| → drubies|mbp joined | 13:17 |
|
CareBear\
| johnpipi : okey. so public_html is also a repo, but one with a worktree? | 13:18 |
|
johnpipi
| nope | 13:18 |
| ← juvenal left | 13:18 |
|
johnpipi
| the repo is not in a public dir | 13:18 |
|
CareBear\
| ahh no just checked out there sorry yes | 13:18 |
|
| hm | 13:18 |
| → juvenal joined | 13:18 |
|
johnpipi
| /home/git/mysite.git | 13:18 |
| ← ormaaj left | 13:18 |
|
CareBear\
| if this works it's a really good approach - but I would just add the branch name on the end | 13:18 |
|
| mysite.git is what you push into, right? | 13:19 |
|
johnpipi
| is it better to make a branch instead of a tag | 13:19 |
|
| then try to push that over | 13:19 |
|
| or is that the same thing | 13:19 |
|
CareBear\
| it's not the same thing, both should work equally well to push over, which to use depends on your project work methodology more than anything else | 13:20 |
| → jacobat joined | 13:20 |
|
CareBear\
| let me test one thing | 13:20 |
|
jacobat
| Howdy, I'm trying to run git instaweb on a server of mine, but when I hit the server I get a 404 back - any ideas why? | 13:20 |
|
| I'm using webrick as httpd | 13:21 |
|
bremner
| jacobat: check the default port in man git-instaweb | 13:21 |
|
jast
| jacobat: the 'git-instaweb' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-instaweb.html [automatic message] | 13:21 |
| → StephenGWills joined | 13:22 |
|
jacobat
| bremner: The default port is 1234, that's the port I'm hitting | 13:22 |
|
bremner
| oh,ok | 13:22 |
|
jacobat
| bremner: I can see the request in the acces.log file | 13:22 |
| ← xudifsd left | 13:23 |
|
CareBear\
| johnpipi : I think you just need to adjust your post-receive a little, and things should work well. try this: GIT_WORK_TREE=/tmp/y git checkout -f "${3}" | 13:23 |
| → alberto56 joined | 13:23 |
|
jacobat
| Here's the relevant part of the log http://pastie.org/1726279 | 13:23 |
|
johnpipi
| what does the $3 do | 13:24 |
| → Ryback_ joined | 13:24 |
| ← Ryback_ left | 13:24 |
| → Ryback_ joined | 13:24 |
|
johnpipi
| what value will be in there | 13:24 |
|
CareBear\
| johnpipi : "ref-name", so it will be e.g. refs/heads/master if you push master, or refs/heads/v4.0 if you push a v4.0 branch, or ref/tags/mar28 if you push a tag | 13:24 |
| ← sunblush left | 13:25 |
|
johnpipi
| sweet! | 13:25 |
| → el_bucket joined | 13:25 |
|
johnpipi
| thanks let me tinker with it for a few be back and report | 13:25 |
|
CareBear\
| sure! note it's the ref-name on the *bare* repo, not the ref name of the repo you pushed from | 13:25 |
|
| this is why I think it's a good idea to keep things 1:1 between work repo and the bare repo | 13:26 |
|
johnpipi
| k good point thanks | 13:26 |
|
bremner
| jacobat: can you try with a different http server? | 13:26 |
| → mitzi_ joined | 13:26 |
|
jacobat
| bremner: I haven't been able to get apache to serve it, I can give it another try | 13:26 |
| → ormaaj joined | 13:27 |
| ← sftp left | 13:28 |
| → larsmoil joined | 13:28 |
| ← tatsuya left | 13:29 |
| ← mitzi_ left | 13:29 |
| ← paja left | 13:29 |
| ← gebi left | 13:30 |
|
hbf
| How do I compare two repos to verify that their contents are identical? | 13:30 |
| → mitzi_ joined | 13:30 |
| ← mitzi_ left | 13:30 |
| ← bentob0x left | 13:30 |
|
CareBear\
| hbf : that's a complicated question.. :) what do you want to compare more precisely? | 13:31 |
| ← Frtecek left | 13:31 |
| → rseifert joined | 13:31 |
| ← dAnjou left | 13:31 |
| ← rseifert left | 13:31 |
| → dAnjou joined | 13:31 |
|
jacobat
| bremner: I think I found it, I'm missing the gitweb installation... doh... thanks | 13:32 |
| → sftp joined | 13:32 |
| → rseifert joined | 13:32 |
| → Bass10 joined | 13:32 |
|
bremner
| ok ;) | 13:32 |
| ← ph^ left | 13:32 |
| → wtffff joined | 13:32 |
|
rudi_s
| hbf: Run git fsck --full and then compare the sha1 of master, if it's the same, the repos (should be) the same. | 13:32 |
|
| jacobat will go and bang head against wall | 13:33 |
|
hbf
| I want to (a) run a test filter-branch and check that it doesn't change anything before doing the real thing, and (b) after filereing for real, check that the repo I cloned hasn't changed before I push the rewritten repo | 13:33 |
|
| rudi_s, thanks | 13:33 |
| ← wtffff left | 13:33 |
|
rudi_s
| hbf: But that won't work if you rewrite the history. | 13:33 |
|
| It only checks if the repos are really the same. | 13:33 |
|
fr0sty_
| hbf: filter branch changes things (that's kind of the point)... | 13:33 |
| → Vampire0 joined | 13:33 |
|
hbf
| yes, that's why I want to run a no-op filter first just to see that I haven't messed up | 13:33 |
| → mitziyahu joined | 13:34 |
|
mitziyahu
| hello | 13:34 |
|
fr0sty_
| hbf: then just compare the SHAs from the branch tips. | 13:34 |
| → EricInBNE joined | 13:34 |
|
mitziyahu
| oh finally | 13:34 |
| ← Vampire0_ left | 13:34 |
|
hbf
| right | 13:34 |
| ← mastroWork left | 13:34 |
|
mitziyahu
| im setting up a new repo, and cant figure out how to add files to it from a local dir.... all manuals i read had pull from some github or w/e | 13:35 |
|
CareBear\
| copy files into repo, git add, git commit | 13:35 |
|
rudi_s
| mitziyahu: Also try the progit book, it's really good. | 13:36 |
|
mitziyahu
| im too lazy to read a whole book :o | 13:36 |
|
rudi_s
| mitziyahu: Then don't. | 13:36 |
|
mitziyahu
| thank you for allowing me ;p | 13:36 |
|
CareBear\
| mitziyahu : then stay ignorant, and expect not to get much help here either. | 13:36 |
|
| consider hiring a consultant to help you.. | 13:37 |
| ← harshu left | 13:37 |
| → _Vi joined | 13:38 |
| → Vampire0_ joined | 13:38 |
|
mitziyahu
| lol | 13:39 |
|
jaeckel
| CareBear\: +1 | 13:39 |
| ← Vampire0 left | 13:39 |
|
cbreak_work
| mitziyahu: man gittutorial | 13:39 |
|
jast
| mitziyahu: the 'gittutorial' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html [automatic message] | 13:39 |
| Vampire0_ → Vampire0 | 13:39 |
| → mklappstuhl joined | 13:39 |
| → nothingHappens_ joined | 13:39 |
| → mastroWork joined | 13:39 |
|
mitziyahu
| thanks | 13:40 |
| → LiamH joined | 13:40 |
|
cbreak_work
| http://git-scm.com/documentation | 13:40 |
| → jimmy1980 joined | 13:41 |
| d0k_ → d0k | 13:41 |
|
CareBear\
| johnpipi : does it seem to work as you would like? | 13:41 |
| ← wingo-pi left | 13:42 |
| → v0n joined | 13:42 |
|
johnpipi
| CareBear\ : was just eating dinner going to test it now | 13:42 |
|
| :) | 13:42 |
|
CareBear\
| aha! | 13:42 |
|
| sorry to disturb the meal :) | 13:43 |
|
johnpipi
| its cool all done ;) | 13:43 |
| ← Swimming_bird left | 13:43 |
| → petrux joined | 13:45 |
| ← aminpy left | 13:45 |
|
johnpipi
| when i do the push do i want to do git push all-sites <tagname>:master or <tagname>:<tagname> | 13:46 |
| → panike joined | 13:46 |
|
johnnywengluu
| i cloned a git repo from github but i can only see the master branch (git branch) | 13:46 |
|
johnpipi
| with the $3 will it checkout the tag im pushing | 13:46 |
|
johnnywengluu
| why arent the other branches fetched? | 13:46 |
|
CareBear\
| johnpipi : yes | 13:46 |
| → dkannan joined | 13:46 |
|
CareBear\
| johnpipi : push all-servers tag | 13:47 |
|
johnnywengluu
| anyone? | 13:47 |
|
CareBear\
| johnpipi : which is equivalent to push all-servers tag:tag | 13:47 |
|
| johnnywengluu : I think you have to explicitly say that you want to fetch further branches. have a look at git clone --help | 13:47 |
|
johnpipi
| said this | 13:47 |
|
| remote: fatal: You are on a branch yet to be born | 13:47 |
|
| To ssh://10.0.0.76/home/git/mysite | 13:47 |
|
| * [new tag] v4.0.0 -> v4.0.0 | 13:47 |
|
CareBear\
| johnpipi : have you already pushed the commits that the tag refers to? | 13:48 |
|
| johnpipi : that would be done by pushing some branch | 13:48 |
|
johnpipi
| let me nuke the repo and try fresh | 13:48 |
|
CareBear\
| johnpipi : tags are nothing but names for a commit | 13:48 |
|
johnpipi
| the bare one | 13:48 |
|
CareBear\
| ok, but then you will need to also push some branch into it | 13:49 |
| → jsick3 joined | 13:49 |
|
johnpipi
| ok so push the master first | 13:49 |
|
jaeckel
| CareBear\: nah, when you push the tag it also pushes the commits | 13:49 |
|
CareBear\
| jaeckel : it does? ok! | 13:49 |
| ← el_bucket left | 13:49 |
|
CareBear\
| that's good! :) | 13:49 |
|
jaeckel
| CareBear\: yeah, it was a bit surprising for me as well to have sth like a detached HEAD that refers only to a tag :D | 13:50 |
|
johnnywengluu
| CareBear\: cant find anything about cloning the others | 13:50 |
| ← EricInBNE left | 13:50 |
| → sunblush joined | 13:50 |
| → kiorky joined | 13:50 |
|
CareBear\
| johnpipi : supposedly no need to push master then, but I'm a little surprised actually :) give it a go | 13:50 |
|
johnpipi
| git push all-sites +master:refs/heads/master ? | 13:51 |
|
| ? | 13:51 |
|
CareBear\
| johnnywengluu : am reading now; "creates remote-tracking branches for each branch in the cloned repository (visible using git branch -r)" so you should have tracking branches | 13:51 |
|
| johnpipi : simply git push all-sites master | 13:51 |
|
| is fine | 13:51 |
|
johnpipi
| k | 13:51 |
| → hyperair joined | 13:51 |
| ← mklappstuhl left | 13:51 |
|
kiorky
| Hi, i'm trying to build git on a snowleopard box, im getting this compilation error : http://pastebin.com/FyT1Wevd. Does anyone has an idea ? | 13:52 |
|
johnpipi
| says Everything up-to-date | 13:52 |
|
| when i do the push v4.0.0 | 13:52 |
|
| but that one is diff then master | 13:53 |
| ← watsoncj left | 13:53 |
|
CareBear\
| kiorky : the build is using the wrong compiler. make sure to use the correct --host if calling ./configure | 13:53 |
| ← MattDiPasquale left | 13:53 |
|
CareBear\
| johnpipi : --tags ? | 13:53 |
|
johnpipi
| use tags | 13:54 |
|
| k | 13:54 |
|
CareBear\
| git push --tags all-sites v4.0.0 | 13:54 |
|
| was what you ran? | 13:54 |
| → icwiener joined | 13:54 |
|
johnnywengluu
| CareBear\: thanks | 13:55 |
|
kiorky
| CareBear\: This may be more complicated, look at the compilation flags, its already explicitly set to x86_64 | 13:55 |
|
| CareBear\: (at first i ve tried without anything with the same result) | 13:55 |
|
fr0sty_
| CareBear\: that pushes all tags, which is probably not what he wants... | 13:55 |
| ← OOPMan left | 13:55 |
| → LouisJB joined | 13:55 |
| → lxsameer joined | 13:55 |
|
CareBear\
| oh | 13:56 |
|
| bleh. my bad | 13:56 |
|
fr0sty_
| and a repository doesn't need to have branches... | 13:56 |
| ← joel_falcou left | 13:56 |
|
fr0sty_
| (it usually does, but doesn't have to...) | 13:56 |
|
CareBear\
| no, but git likes it when they do :) | 13:56 |
|
kiorky
| CareBear\: i thought of mixed arch dependency libraries but donno how to tell the linker where it links to 32b ones | 13:56 |
|
fr0sty_
| true... | 13:56 |
| → cjk joined | 13:56 |
| → DaveIngram joined | 13:56 |
| → tatsuya joined | 13:56 |
|
SethRobertson
| -L/path/to/32b/ones? | 13:57 |
| → roop joined | 13:57 |
|
kiorky
| CareBear\: and i m not an osx expert, just porting a package manager to it ... | 13:57 |
| ← tatsuya left | 13:57 |
|
CareBear\
| kiorky : I'd try to get it to use another compiler than "cc" | 13:57 |
| → tatsuya joined | 13:57 |
|
CareBear\
| johnpipi : I'll test this too.. | 13:57 |
|
lxsameer
| http://dpaste.com/526297/ , what is the third entry ? | 13:57 |
|
johnpipi
| i nuked remote bare | 13:57 |
|
kiorky
| CareBear\: which one for example ? | 13:57 |
|
| CareBear\: cc links to gcc42 the one shipped with xcode | 13:58 |
|
johnpipi
| on local did git push all-sites master | 13:58 |
|
| it puts the files | 13:58 |
|
| then did git push all-sites v4.0.0 | 13:58 |
| ← cjk left | 13:58 |
|
johnpipi
| i pushed stuff over but files from v4 are there | 13:59 |
| ← xiong left | 13:59 |
|
CareBear\
| are, or are not? | 13:59 |
|
| is v4 in master, or in another branch? | 13:59 |
|
johnpipi
| then if i run the push 4.0 command again says up-to-date | 13:59 |
|
| i just did | 13:59 |
|
| git tag -a v.4.0.0 | 14:00 |
|
| v4.0.0 | 14:00 |
|
| to make the tag | 14:00 |
|
| is that wrong? | 14:00 |
|
CareBear\
| with master checked out? | 14:00 |
| → mastro joined | 14:00 |
|
johnpipi
| yes | 14:00 |
|
fr0sty_
| johnpipi: what did you expect to happen? | 14:00 |
|
CareBear\
| then v4.0.0 refers to the same thing as master, so there *is* no difference ;) | 14:00 |
| → SirFunk joined | 14:01 |
|
johnpipi
| i just put one html file in master test.html then made that tag then deleted test.html | 14:01 |
| ← dkannan left | 14:01 |
|
johnpipi
| then commited master so v4 has test.html and master doesn't | 14:01 |
|
CareBear\
| ok! | 14:01 |
|
kiorky
| CareBear\: ? | 14:01 |
| ← evildmp left | 14:02 |
|
johnpipi
| mmmm | 14:02 |
|
CareBear\
| kiorky : sorry, dunno, also no expert with macos | 14:02 |
|
johnpipi
| losing hair lol | 14:02 |
|
kiorky
| CareBear\: k | 14:02 |
|
CareBear\
| johnpipi : let me test a bit. | 14:02 |
|
johnpipi
| k thanks man | 14:02 |
| → cjk__ joined | 14:02 |
|
johnpipi
| if i do this though git push all-sites v4.0.0:master | 14:03 |
|
CareBear\
| mh yeah no | 14:03 |
|
johnpipi
| i get this | 14:03 |
|
| ! [rejected] v4.0.0 -> master (non-fast-forward) | 14:03 |
|
CareBear\
| yeah | 14:03 |
|
| it can work, but you will be overwriting master everytime, which isn't .. great | 14:03 |
|
johnpipi
| eyah | 14:04 |
|
| yeah | 14:04 |
| ← cjk__ left | 14:04 |
|
johnpipi
| not best solution | 14:04 |
|
CareBear\
| oh, hold on, maybe I made a boo-boo in that hook syntax | 14:04 |
|
| let's see | 14:04 |
| ← mastroWork left | 14:04 |
|
CareBear\
| yeah, I did | 14:05 |
|
| ah, hm. | 14:06 |
|
| unless there are actually commits to push, the hook will not run | 14:06 |
|
| another thing is I got the hook syntax wrong. | 14:07 |
| → evildmp joined | 14:07 |
|
CareBear\
| make it: #!/bin/sh read old new ref; GIT_WORK_TREE=/dir git checkout -f "${ref}" | 14:07 |
| → guireisc joined | 14:07 |
|
CareBear\
| but doing this you'll basically not be able to switch back to something that already exists on the server | 14:08 |
|
| :\ | 14:08 |
| → koliz joined | 14:08 |
| ← gretch left | 14:08 |
|
CareBear\
| hm | 14:08 |
|
johnpipi
| mmmm | 14:08 |
|
CareBear\
| ah! yes - if you create a new tag. | 14:08 |
|
| that doesn't exist before | 14:09 |
|
| then it will go back | 14:09 |
| → Vampire0_ joined | 14:09 |
| → mando joined | 14:09 |
|
johnpipi
| what is the syntax to remove a tag on remote? | 14:09 |
|
| can u do that | 14:09 |
|
CareBear\
| yes, you can | 14:09 |
|
johnpipi
| but leave live | 14:09 |
|
CareBear\
| git push all-sites :tagname | 14:09 |
|
fr0sty
| CareBear\: any ref update (creating a new one, or moving an old one) will fire the hook. | 14:09 |
|
CareBear\
| no the other way around: | 14:09 |
|
| git push all-sites tag: | 14:09 |
|
fr0sty
| Including tag deletion, btw | 14:09 |
|
CareBear\
| eh | 14:09 |
|
| no | 14:09 |
|
| right the first time! :) | 14:10 |
| ← koltroll left | 14:10 |
|
johnpipi
| k let me update my post-receive and try it | 14:10 |
| → hobodave joined | 14:10 |
|
CareBear\
| fr0sty : yes! but if the tag already has been pushed, then a new tag pushed, then the first tag can't be pushed to get the hook to run | 14:10 |
| → stepnem joined | 14:10 |
|
CareBear\
| all right, we also need to cover deletion of stuff, let's see | 14:10 |
| ← Vampire0 left | 14:10 |
| → Yuffster joined | 14:10 |
|
CareBear\
| yeah, the hook doesn't deal with deleted tags | 14:11 |
| ← meandi left | 14:12 |
| → Vampire0 joined | 14:12 |
| → sftp_ joined | 14:12 |
| → cannonball joined | 14:12 |
| → Raging_Hog joined | 14:12 |
| ← ericbarnes left | 14:12 |
| → meandi joined | 14:12 |
| ← sftp left | 14:13 |
|
CareBear\
| hmm.. | 14:13 |
|
fr0sty_
| CareBear\: which is why he should push to some common name (e.g. 'git push remote mytag:deploy) | 14:13 |
| ← teweWork left | 14:13 |
|
johnpipi
| woot it works! | 14:14 |
|
CareBear\
| mh, I dunno | 14:14 |
|
johnpipi
| thanks carebear | 14:14 |
| → Swimming_bird joined | 14:14 |
|
CareBear\
| johnpipi : yeah, my testing works too, but add one thing: | 14:14 |
|
| test "$new" = "0000000000000000000000000000000000000000" && exit 0 | 14:14 |
|
johnpipi
| just have to delete the remote first if i want to update if its the same | 14:14 |
|
CareBear\
| after the read, before the checkout | 14:14 |
|
fr0sty_
| I know you dont like the X:1 relationship but it's helpful sometimes... | 14:14 |
|
johnpipi
| what does that do? | 14:14 |
| ← Vampire0_ left | 14:14 |
|
CareBear\
| johnpipi : it avoids trying to checkout when you delete a tag | 14:14 |
|
| johnpipi : so that there is no error message, because you can't checkout a tag that has been deleted :) | 14:15 |
|
johnpipi
| yeah | 14:15 |
|
RichiH
| how well supported are binary diffs, these days? i seem to remember that git used to be quite inefficient when it came to binary data and i wonder if that's been improved | 14:15 |
|
CareBear\
| johnpipi : should work well | 14:16 |
|
johnpipi
| yeah its great one command push to all servers | 14:16 |
|
| nice | 14:16 |
| → Spockz joined | 14:16 |
|
johnpipi
| thanks a million | 14:16 |
|
CareBear\
| you're welcome | 14:16 |
|
| I'm also writing hooks :) | 14:16 |
| ← roop left | 14:17 |
| → bitkiller joined | 14:17 |
|
Boggle
| I just did: | 14:18 |
|
| PiBook:NoXIB_iAd TEMPLATE sunfish7$ git commit -a -m 'ffs cant click adBanner' | 14:18 |
|
| [master 1b3bbda] ffs cant click adBanner | 14:18 |
|
| 5 files changed, 4084 insertions(+), 3986 deletions(-) | 14:18 |
|
fairuz
| Hi, how to revert all recent changes (that not commited and not added yet) | 14:18 |
|
CareBear\
| fairuz : git checkout | 14:18 |
|
Boggle
| Does this mean it sent it to my online GH repository? | 14:18 |
|
fairuz
| CareBear\: ty | 14:18 |
|
fr0sty_
| Boggle: no | 14:18 |
|
Boggle
| or is it still local to my machine? | 14:18 |
| → TiBook joined | 14:18 |
| ← Spockz left | 14:18 |
|
karstensrage
| http://cmurphycode.posterous.com/git-102 | 14:18 |
|
fr0sty_
| commit is a local operation in git. | 14:19 |
|
karstensrage
| can someone explain to me how doing 'git reset --mixed HEAD~1' helps split one commit into two? | 14:19 |
| ← sunblush left | 14:19 |
| → Spockz joined | 14:19 |
|
Boggle
| so ' pushing ' is what gets it onto the server yes? | 14:19 |
|
fr0sty_
| only 'git push' modifies remote repositories. | 14:19 |
|
CareBear\
| Boggle : yep | 14:19 |
| → el_bucket joined | 14:19 |
| → jfkw joined | 14:19 |
|
Boggle
| The first time, I did: | 14:19 |
|
| 62 git remote add origin [email@hidden.address] | 14:19 |
|
| 63 git push origin master | 14:20 |
| ← drubies|mbp left | 14:20 |
|
Boggle
| so do I just repeat line 63? | 14:20 |
|
| and that will push my second revision onto GH servers? | 14:20 |
| → drubies|mbp joined | 14:20 |
| ← el_bucket left | 14:20 |
|
fr0sty_
| karstensrage: you can use 'git add' (maybe 'git add -p') to add only part of your changes, commit that, and repeat | 14:20 |
|
| Boggle: yes. | 14:21 |
|
Boggle
| thx | 14:21 |
|
fr0sty_
| assuming you are on branch 'master' locally. | 14:21 |
|
karstensrage
| fr'fr0sty, how do you add "part" of your changes? | 14:21 |
|
fr0sty_
| karstensrage: look up: 'git add -p' | 14:21 |
|
jacobat
| It's awesome | 14:21 |
|
fr0sty_
| allows you to add changes hunk by hunk. | 14:22 |
| ← TiBook left | 14:24 |
| ← henrikbjorn left | 14:24 |
| → teweWork joined | 14:25 |
| → tgunr joined | 14:26 |
| → sunblush joined | 14:26 |
|
karstensrage
| wow | 14:27 |
| → spearce joined | 14:27 |
|
karstensrage
| thats cool | 14:27 |
|
| karstensrage groks the power | 14:27 |
| → kukks joined | 14:28 |
|
reuss
| what's the proper way of obtaining all references to a single commit? .. just like --decorate shows with log ... | 14:29 |
| → bkosborne joined | 14:29 |
|
thiago
| reuss: the SHA-1 is enough | 14:30 |
|
reuss
| thiago: i want to test if a given sha-1 also is referenced in other ways .. | 14:30 |
| → ericbarnes joined | 14:30 |
|
karstensrage
| thanks fr'fr0sty | 14:32 |
|
reuss
| say i pushed a ref refs/my_namespace/foobar -- how do i test if $commit is referenced as refs/my_namespace/foobar ? .. (this is in the bare repository, so no need to worry about fetching the refs in the namespace) | 14:32 |
| ← DaveIngram left | 14:33 |
| ← jfelchner left | 14:33 |
| ← matjas left | 14:33 |
|
thiago
| reuss: git rev-parse refs/my_namespace/foobar | 14:33 |
|
| reuss: if it's the same SHA-1... | 14:33 |
|
panike
| window close 4 | 14:34 |
| → PabloM joined | 14:34 |
| → booginga joined | 14:34 |
| → bjtitus joined | 14:34 |
|
reuss
| thiago: oh yeah - that might work | 14:34 |
|
CareBear\
| yawn | 14:34 |
| → OOPMan joined | 14:36 |
| → ereslibre_laptop joined | 14:36 |
| ← ereslibre_laptop left | 14:36 |
| → ereslibre_laptop joined | 14:36 |
| ← sunblush left | 14:37 |
| ← shame left | 14:37 |
| → mastroWork joined | 14:37 |
| → agile joined | 14:37 |
| ← ereslibre left | 14:37 |
| → el_bucket joined | 14:38 |
| → DaveIngram joined | 14:38 |
| ← Yuffster left | 14:38 |
| ← drake01 left | 14:38 |
| → foocraft joined | 14:39 |
| ← panike left | 14:39 |
| ← mastro left | 14:40 |
| ← rseifert left | 14:40 |
|
elb0w
| git-svn, does this just allow the use of git commands on a svn repo? | 14:40 |
|
CareBear\
| in a way.. | 14:41 |
|
elb0w
| for the most part anyway | 14:41 |
|
CareBear\
| it allows a local git repo to interact with a remote svn repo | 14:41 |
|
elb0w
| ok | 14:41 |
|
jacobat
| Or converting a svn repo to a git repo | 14:41 |
| ← sdboyer left | 14:42 |
| ← nigewhite left | 14:43 |
| ← el_bucket left | 14:43 |
| ← DaveIngram left | 14:43 |
| → panike joined | 14:44 |
| → ceej joined | 14:44 |
| → deuterium joined | 14:45 |
| → krosenvold joined | 14:45 |
| ← opalka left | 14:46 |
|
steven
| does the index start off with whatever is in HEAD (assuming the user hasnt done 'git add' etc)? | 14:46 |
| → dr_ick joined | 14:46 |
| → oriba joined | 14:46 |
| → wolfe joined | 14:46 |
| ← giallu left | 14:47 |
| → DaveIngram joined | 14:47 |
| ← mastroWork left | 14:47 |
|
fr0sty_
| steven: that's my understanding. | 14:48 |
| ← johnpipi left | 14:48 |
| → johnpipi joined | 14:48 |
| → dingomanatee joined | 14:49 |
| ← dAnjou left | 14:49 |
| → dAnjou joined | 14:50 |
| → sdboyer joined | 14:51 |
| ← thierryp left | 14:51 |
| → excess^ joined | 14:51 |
| ← excess^ left | 14:51 |
| → wilmoore joined | 14:51 |
| → ^Simon^ joined | 14:52 |
| ← sdboyer left | 14:52 |
| ← wilmoore left | 14:53 |
| → mastroWork joined | 14:53 |
|
Caelum
| what was the git branch --track syntax to make a branch tracking a remote branch | 14:53 |
| → rayners joined | 14:54 |
| → alex__c2022 joined | 14:54 |
|
Caelum
| when I try to do git branch --track remote local it says fatal: Not a valid object name | 14:54 |
|
panike
| Caelum: That should be reversed---i.e., git branch --track local remote | 14:55 |
| → beatak joined | 14:56 |
|
Caelum
| panike: aha, thank you very much | 14:56 |
| ← koliz left | 14:57 |
| → dkasak joined | 14:57 |
| ← PigeonFriend left | 14:58 |
|
esc
| Caelum: if the remote-tracking-branch exists already, say origin/pu, then doing 'git checkout pu' will automatically create a local branch, and set the upstream realationship | 14:59 |
| ← bauruine left | 14:59 |
|
Caelum
| esc: that's what I usually do, but I wanted to find out the older syntax for an email in case the person has an older git | 15:00 |
| → gebi joined | 15:00 |
| → airborn joined | 15:00 |
| → gretch joined | 15:00 |
| ← mitziyahu left | 15:01 |
| ← PabloM left | 15:04 |
| → excess^ joined | 15:06 |
| → PabloM joined | 15:06 |
| ← angelsl left | 15:06 |
| → roop_ joined | 15:07 |
| ← Bass10 left | 15:07 |
| → _psychic_ joined | 15:07 |
| ← mastroWork left | 15:08 |
| ← nothingHappens_ left | 15:08 |
| ← teweWork left | 15:09 |
| ← simplechat left | 15:11 |
| → Robin_Watts joined | 15:12 |
| → mastroWork joined | 15:12 |
| → dim_ joined | 15:13 |
| ← ^Simon^ left | 15:13 |
| ← radarek left | 15:13 |
| ← cbreak_work left | 15:13 |
| ← foocraft left | 15:14 |
| ChanServ set mode: +v | 15:15 |
|
Robin_Watts
| Hi all. I hope this isn't an FAQ - I've done a web search, but couldn't find an answer... | 15:15 |
| → soc42 joined | 15:15 |
|
Robin_Watts
| We have a larg(ish) open source/commercial project that has until now been held in svn. We want to move over to using git for it. | 15:15 |
|
CrazyGir
| how would I roll a repo back to a specific point in time/commit | 15:17 |
|
| nDuff presumes Robin_Watts has read the manual for git-svn in full? | 15:17 |
|
Robin_Watts
| The only real snag we can see is the loss of 'monotonically increasing easily human readable revision numbers'. | 15:17 |
|
nDuff
| CrazyGir, git reset | 15:17 |
|
fr0sty_
| Robin_Watts: that's no loss... | 15:17 |
|
CrazyGir
| awesome, I'll go read! | 15:17 |
|
Robin_Watts
| nDuff: Yes. We are going to full blown git, not git svn. | 15:17 |
|
jaeckel
| fr0sty_: +1 | 15:17 |
|
shruggar
| Robin_Watts, do you know about "git describe" ? | 15:17 |
|
nDuff
| Robin_Watts, ...ahh, yup. If that's a showstopper for you, there's Bazaar. | 15:17 |
|
Robin_Watts
| Yes, thanks, I know about git describe. Let me finish the question... | 15:18 |
|
nDuff
| Robin_Watts, (which does a left-sort on the tree to assign revision numbers -- something that certainly could be done with git as well) | 15:18 |
| → joel_falcou joined | 15:18 |
| ← rando left | 15:18 |
| → tjholowaychuk joined | 15:18 |
|
fr0sty_
| having authoritative revision numbers in a distributed system is not practical, but do finish your question... | 15:18 |
| ← johnpipi left | 15:19 |
|
nDuff
| fr0sty, ...well, it's practical if you have a defined central-repository from which they're measured... | 15:19 |
| → alvaro_o joined | 15:19 |
| ← seivan left | 15:19 |
|
fr0sty_
| nDuff: where would you store the info? how would it be useful? | 15:19 |
|
nDuff
| fr0sty, ...if I say revno 4321 of Bazaar, everyone knows what I'm talking about | 15:19 |
|
fr0sty_
| refs/fake_revs/*** | 15:19 |
|
Robin_Watts
| In interactions with customers, many of them get snapshots from us. For us, (the developers) it's easy enough to look to see if we have a given commit included in our checkouts. For customers, it's a harder job. | 15:19 |
| → mastro joined | 15:20 |
| → bdiu joined | 15:20 |
| ← alex__c2022 left | 15:20 |
|
shruggar
| Robin_Watts: you should create an annotated tag for anything you actually release to customers | 15:20 |
|
nDuff
| fr0sty, ...and likewise, if I say 4321.3 (that's saying 4321 was a merge commit, and then I want the 3rd changeset which came in through it) | 15:20 |
| ← alvaro_o left | 15:20 |
|
Robin_Watts
| Given that we have a central 'public' repository to which only authorised developers can push, we do effectively have one 'special' repo. | 15:20 |
|
fr0sty_
| nDuff: if I create a hotfix branch from last years release (213) and make three revisions, what numbers to they get? | 15:21 |
|
Robin_Watts
| I was wondering if there was a script anywhere that we could run as a hook on that repository to tag each new commit with a revision number. | 15:21 |
|
| r1000, r1001, r1002 etc. | 15:21 |
|
fr0sty_
| Robin_Watts: just roll your own if it is important. | 15:21 |
|
nDuff
| fr0sty, the numbers are where they're merged, not where they're branched from, and IIRC are branch-local. | 15:22 |
|
Robin_Watts
| Tags are hugely lightweight in git, right? so it wouldn't be a huge burden. | 15:22 |
|
nDuff
| RobertLaptop, yes, there are hooks for that. Personally, I think it's silly. | 15:22 |
|
CrazyGir
| thanks nDuff! | 15:22 |
|
fr0sty_
| nDuff: so XXX only has context with a branchname? | 15:22 |
| ← soc42 left | 15:22 |
| → Bass10 joined | 15:22 |
|
| fr0sty_ is confusedd, and undercaffeinated (as usual)... | 15:23 |
| ← Fullmoon left | 15:23 |
|
nDuff
| fr0sty, if my memory (which is increasingly vague) is accurate, yes. I can say "4321" to a Bazaar developer and they assume it's upstream mainline unless specified otherwise. | 15:23 |
| ← mastroWork left | 15:23 |
|
jaeckel
| Robin_Watts: either you write a script (like we did) that handles the former svn revision IDs and so on, or what I've found some days ago http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html#_tt_ident_tt | 15:23 |
|
Robin_Watts
| fr0sty_: I was hoping that someone else might have already written the script (because 1) I'm lazy, and 2) they could probably arrange for merges to mention the revision numbers of parents too etc) | 15:24 |
|
| But the main reason I was asking here was to check that there wasn't some fundamental reason why this was frowned upon. | 15:25 |
| → goshawk joined | 15:25 |
|
shruggar
| well, there are a couple of fundamental reasons why it's frowned upon :) | 15:25 |
|
Robin_Watts
| jaeckel: The guy converting from svn to git has taken care of everything (sorting out rather wierd repo format out w.r.t tags and branches). This is for future work. | 15:26 |
|
| shruggar: Such as? | 15:26 |
|
jaeckel
| Robin_Watts: nah, with SVN revision IDs I wanted to say to handle $Revision$ and so on and fill in the values | 15:27 |
| ← eschnou left | 15:27 |
| → liquidproof joined | 15:28 |
| → mastroWork joined | 15:28 |
|
shruggar
| those already mentioned: an incrementing number is by nature non-distributed, while git is distributed. Using a strictly non-distributed method of referring to commits is likely to prevent you from thinking about things in a git-like manner. Also, if you auto-tag everything, you 1) can't roll back, since it's tagged. 2) will always see it in "git tag" output- most people don't like 10000 tags showing up when they run "git tag" :) | 15:28 |
|
Robin_Watts
| I can see that if were were working in a truly distributed sense, it wouldn't work - but while we will all have our own separate repos, the 'public' one is special. | 15:28 |
|
nDuff
| right, but those tags get pulled down | 15:28 |
| ← jhoepken left | 15:29 |
|
Robin_Watts
| shruggar: The public one is just that, public. Once stuff goes into that, we can't roll back anyway. | 15:29 |
|
nDuff
| so they'll be an annoyance to people who try to get a tag list | 15:29 |
|
| which is usually something with more useful data, ie. released versions | 15:29 |
|
Robin_Watts
| But yes, I take your point about the tag list. | 15:29 |
|
avdg
| shruggar: what about hg, they have incrementing numbers too | 15:29 |
| → bauruine joined | 15:30 |
|
| Robin_Watts marvels that git can't have tags that don't show up in tag lists by default. It seems more configurable than a configurable thing. | 15:30 |
| ← mastro left | 15:31 |
| ← DaveIngram left | 15:32 |
| ← psoo left | 15:32 |
| ← g0bl1n left | 15:32 |
|
fr0sty_
| Robin_Watts: refs/not_Tags/r12345 | 15:32 |
|
| refs/revs/12345, maybe | 15:32 |
|
| 'then git checkout rev/12345' | 15:33 |
| ← tyteen4a03 left | 15:33 |
| ← dAnjou left | 15:33 |
| → ryanakca joined | 15:34 |
| ← oriba left | 15:34 |
|
Robin_Watts
| fr0sty_: And that won't show up in a git tag list? Sounds ideal. | 15:34 |
|
fr0sty_
| they will not be easily searchable, but they will be there. | 15:34 |
| → dAnjou joined | 15:35 |
| → DaveIngram joined | 15:35 |
|
fr0sty_
| again, I think the whole project is lunacy, but you are free to do as you wish... | 15:35 |
| ← xiangfu left | 15:36 |
| ← mikelangelo left | 15:38 |
| → Anubisss joined | 15:38 |
| ← bkosborne left | 15:40 |
| → nadavoid joined | 15:42 |
| → bkosborne joined | 15:44 |
| → xiong joined | 15:45 |
| ← evildmp left | 15:45 |
| → paja joined | 15:45 |
| ← vitor-br left | 15:46 |
| ← DaveIngram left | 15:47 |
| ← dAnjou left | 15:47 |
| ← cantoma left | 15:47 |
| → dAnjou joined | 15:47 |
| ← bkosborne left | 15:48 |
| → hobodave_ joined | 15:49 |
| → rando joined | 15:49 |
| → smolyn joined | 15:49 |
| → cantoma joined | 15:49 |
| ← hobodave left | 15:50 |
| → sagsousuke joined | 15:51 |
| → vitor-br joined | 15:51 |
| ← petrux left | 15:52 |
| ← nibblebot left | 15:53 |
| → DaveIngram joined | 15:53 |
| → mastro joined | 15:56 |
| → kumbayo joined | 15:57 |
| ← mastro left | 15:58 |
| → evanmeagher joined | 15:58 |
| ← mastroWork left | 15:59 |
| → doener joined | 15:59 |
| → jophish joined | 16:00 |
| → __name__ joined | 16:00 |
| ← __name__ left | 16:00 |
| → __name__ joined | 16:00 |
| ← leo2007 left | 16:01 |
| ← roop_ left | 16:01 |
| ← elyob left | 16:02 |
| → mehwork_ joined | 16:02 |
| ← ereslibre_laptop left | 16:03 |
| → robotarmy joined | 16:03 |
| ← mehwork left | 16:05 |
| → rgr joined | 16:07 |
| → saysjonathan joined | 16:07 |
| ← ping-pong left | 16:07 |
| → vbar joined | 16:08 |
| ChanServ set mode: +v | 16:09 |
|
vbar
| hello? | 16:09 |
|
CareBear\
| Hi Lennart. Go ahead and ask your question. :) | 16:10 |
| ← nevyn^ left | 16:10 |
| → nevyn^ joined | 16:10 |
|
vbar
| well | 16:10 |
| ← fr0sty left | 16:11 |
|
vbar
| I have done sth to my repos such that git merge will tell Already up to date. but git pull gets the changes | 16:11 |
| ← guireisc left | 16:11 |
| ← Bass10 left | 16:11 |
| ← xiong left | 16:12 |
| → ping-pong joined | 16:12 |
| → nevyn^_ joined | 16:13 |
|
vbar
| i am using bare remote repo vbhome, for example | 16:13 |
| → thm joined | 16:13 |
| ← sagsousuke left | 16:13 |
| → kenichi joined | 16:13 |
|
vbar
| and in my working repo I normally do a git fetch vbhome and git merge vbhome/master | 16:13 |
|
thm
| can I push branches to another location so that they are remote branches there? | 16:13 |
| → _ollie joined | 16:14 |
| ← _ollie left | 16:14 |
|
CareBear\
| vbar : unless configured otherwise, pull = fetch + merge | 16:15 |
|
| thm : no | 16:15 |
|
| thm : use ssh :) | 16:15 |
|
thm
| CareBear\: how? I can't connect back and pull. | 16:15 |
|
CareBear\
| ssh host git remote add .. | 16:16 |
| → drake01 joined | 16:16 |
|
thm
| and then? | 16:16 |
| ← nevyn^ left | 16:16 |
| nevyn^_ → nevyn^ | 16:16 |
|
CareBear\
| thm : then you have added the remote tracking branches | 16:16 |
|
| thm : in the remote repo | 16:16 |
| → noahcampbell joined | 16:17 |
|
thm
| and a push will use them? | 16:17 |
| ← nevyn^ left | 16:17 |
| → gmclelland joined | 16:17 |
|
thm
| I mean a push to host | 16:17 |
|
CareBear\
| ? | 16:17 |
|
| no | 16:17 |
|
| let's try another way. please explain what you would like to achieve workflow wise? | 16:17 |
| ← evanmeagher left | 16:17 |
|
thm
| I have localhost and remotehost, and want to push from localhost to remotehost in such a way as if I had pull on remotehost from localhost. | 16:18 |
|
wereHamster
| thm: use git push | 16:19 |
|
CareBear\
| thm : push from local is equivalent to fetch on remote | 16:19 |
|
| thm : merge or rebase you will have to implement in a hook | 16:19 |
|
doener
| or fetch from the remote, merge locally and push the result | 16:20 |
| → dreiss joined | 16:20 |
|
thm
| but on remotehost it is not a bare repo. it is a repo with a workspace. so I want to avoid pushing master:master, because that would screw the workspace | 16:20 |
|
| can I push master:remote/foo/master ? | 16:20 |
| ← TrahDivad left | 16:20 |
|
CareBear\
| thm : not sure you can push into a repo with worktree at all | 16:20 |
| → HG` joined | 16:20 |
|
fr0sty_
| CareBear\: faq non-bare | 16:21 |
|
jast
| CareBear\: Pushing to non-bare repositories is discouraged: please see https://git.wiki.kernel.org/index.php/GitFaq#non-bare [automatic message] | 16:21 |
|
CareBear\
| thm : what you do is set up a bare hub repo in between | 16:21 |
|
fr0sty_
| you _can_, but shouldn't. (generally) | 16:21 |
| → EmperorGonzo joined | 16:21 |
| ← EmperorGonzo left | 16:21 |
|
thm
| aha. so the bare hub repo would also reside on remotehost, in my case. | 16:22 |
|
CareBear\
| right | 16:22 |
| → jungejason joined | 16:22 |
|
CareBear\
| http://joemaller.com/990/a-web-focused-git-workflow/ | 16:22 |
| ← rgr left | 16:22 |
|
thm
| I thought I could push to some branch and then on remotehost do a merge. | 16:23 |
|
CareBear\
| what if there's a conflict | 16:23 |
|
| you probably want to be resolving them locally | 16:23 |
| ChanServ set mode: +v | 16:23 |
|
thm
| how do I populate the hub? | 16:24 |
|
wereHamster
| what is the hub? | 16:24 |
|
CareBear\
| it is explained later in the article | 16:24 |
|
| wereHamster : a bare central repo | 16:24 |
|
| thm : you push into hub | 16:24 |
| ← SirFunk left | 16:24 |
|
gmclelland
| After forking a project(compass) in github how do I get the updates to compass into my fork? Do I then add the compass project branches as remotes and then pull down all the branches? | 16:24 |
|
wereHamster
| gmclelland: github has a kb article o that | 16:25 |
|
vbar
| I am not sure, but maybe my problem is similar to http://stackoverflow.com/questions/4176195/git-merge-x-reports-up-to-date | 16:26 |
| → towski joined | 16:26 |
|
vbar
| what are the steps to find out what the problem really is? | 16:26 |
|
gmclelland
| <wereHamster>Thanks - it looks like I can git fetch upstream, git merge upstream master | 16:27 |
|
vbar
| I cloned my bare repo into an empty folder and all changes seem to be there. | 16:27 |
| ← achadwick left | 16:28 |
|
vbar
| But if I fetch the bare repo, the changes are not even in the remote branch | 16:28 |
| → elyob joined | 16:28 |
| ← dAnjou left | 16:29 |
| ← empity left | 16:30 |
| → amerine joined | 16:30 |
| ← jsquared left | 16:30 |
| → rgr joined | 16:31 |
| → slonopotamus joined | 16:31 |
| → dAnjou joined | 16:31 |
|
vbar
| anyone has an idea ? | 16:32 |
|
wereHamster
| vbar: transcript please | 16:33 |
|
vbar
| transcript? | 16:33 |
| → mitziyahu joined | 16:34 |
|
vbar
| what do you mean exactly? | 16:34 |
| ← hbf left | 16:34 |
| → ereslibre joined | 16:34 |
| ← ereslibre left | 16:34 |
| → ereslibre joined | 16:34 |
|
mitziyahu
| i need a git tree that is also a working copy that many developers would commit to it... im looking on google for hours jumping through books. any pointers on what to search on google? | 16:34 |
|
CareBear\
| mitziyahu : why? | 16:35 |
|
mitziyahu
| cause i want all the developers to see their results in one place (apache site) after they commit | 16:35 |
|
| i think im failing at seeing the idea behind version control : | 16:36 |
|
CareBear\
| no. each developer should probably have their own repo instead. | 16:36 |
|
| see the link I just posted | 16:36 |
|
mitziyahu
| i wasnt logged in | 16:36 |
|
| what was it? | 16:36 |
|
CareBear\
| http://joemaller.com/990/a-web-focused-git-workflow/ | 16:36 |
|
gmclelland
| <wereHamster>On http://help.github.com/fork-a-repo/ it say's to git fetch upstream, and git merge upstream/master. When I try that, it tells me upstream isn't a repository. | 16:36 |
|
mitziyahu
| and each developer has their own repo, the problem is i cant put it all to a working directory in the end | 16:36 |
|
| thanks | 16:36 |
|
CareBear\
| mitziyahu : yes, you can. | 16:36 |
|
| mitziyahu : putting it all together in the end is something git is really really good at, actually | 16:37 |
|
mitziyahu
| i know | 16:37 |
|
| im just failing to do it | 16:37 |
|
CareBear\
| :) | 16:37 |
|
mitziyahu
| i think im too tired | 16:37 |
|
| let me see if i get this straigh | 16:37 |
|
CareBear\
| see that web page, it has a good explanation | 16:37 |
|
mitziyahu
| ok | 16:37 |
|
| thanks | 16:37 |
| ← robotarmy left | 16:37 |
|
mitziyahu
| i dont know why but my dev machine (which is a vm machine) keeps dying when doing an rsync / push lol | 16:39 |
| ← kpreid left | 16:39 |
| → robotarmy joined | 16:39 |
| ← drake01 left | 16:40 |
|
quentusrex
| why is it that a "git remote add --tags upstream git://the.remote.server.com/repo.git" only checks out the tags? and not the branches and the tags? | 16:40 |
| ← dAnjou left | 16:40 |
|
quentusrex
| Why does a separate remote have to be added if I want both branches and tags from a remote repo? | 16:40 |
|
CareBear\
| quentusrex : adding a remote has nothing to do with tags | 16:41 |
|
quentusrex
| CareBear\, when I add the remote with that line, then do a git fetch, only the tags are imported. | 16:41 |
|
CareBear\
| so don't use --tags | 16:41 |
| → dAnjou joined | 16:41 |
|
CareBear\
| --tags isn't a valid option to git remote add | 16:42 |
| ← doener left | 16:42 |
|
CareBear\
| in 1.6.3.3 at least | 16:42 |
|
| though that's a bit old now | 16:42 |
|
quentusrex
| CareBear\, http://www.kernel.org/pub/software/scm/git/docs/git-remote.html | 16:42 |
|
| git remote add [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror] <name> <url> | 16:42 |
| → yairgo joined | 16:42 |
|
CareBear\
| ok | 16:43 |
|
| and the page explains what --tags means | 16:43 |
|
mitziyahu
| CareBear\ i wish he would do ls -l in his dir after the directories were created lol i cant focus enough | 16:43 |
| ← btipling_ left | 16:43 |
| ← Twey left | 16:43 |
|
CareBear\
| mitziyahu : then you need to return to solving this problem when you can concentrate a bit more - or buy consulting from someone who can solve the problem for you so that you do not have to care | 16:44 |
|
quentusrex
| CareBear\, it explains that it imports every tag from the remote repo, but it does not say that it will import only the tags. And ignore any branches specified with "-t branch-name" | 16:44 |
|
CareBear\
| quentusrex : did you tell git to fetch something other than tags? | 16:44 |
| ← airborn left | 16:44 |
| ← McMAGIC-- left | 16:44 |
| → abhaythehero joined | 16:45 |
| ← kassah left | 16:45 |
|
quentusrex
| without the -t flag no branches are fetched, even with the -t flag specifying a branch, no branches are ever fetched. | 16:45 |
| → Vampire0_ joined | 16:45 |
|
quentusrex
| even though in 'git remote show upstream' it specifically states the branches will be pulled in, they never are pulled. | 16:46 |
| → dAnjou_ joined | 16:46 |
|
mitziyahu
| CareBear\ haha i did it :p i just cant copy his hook scripts | 16:46 |
| ← Vampire0 left | 16:46 |
| ← dAnjou left | 16:46 |
| dAnjou_ → dAnjou | 16:46 |
| ← LouisJB left | 16:47 |
| ← gmclelland left | 16:47 |
| → giallu joined | 16:48 |
| → Tv joined | 16:48 |
| ← iAsterisk left | 16:48 |
| ← Vampire0_ left | 16:48 |
| → airborn joined | 16:49 |
| → cjz joined | 16:49 |
| → adurity joined | 16:49 |
| → empity joined | 16:50 |
| → jajmon joined | 16:51 |
|
jajmon
| hello good sirs! | 16:51 |
| ← artefon left | 16:51 |
|
jajmon
| does git have anything against spaces in file names? | 16:52 |
|
crashanddie
| Nope | 16:53 |
| ← Sonderblade left | 16:54 |
| → alesan joined | 16:54 |
|
alesan
| hi! | 16:54 |
|
| I have made some modifications to files locally. I want to pull and I know there is going to be some changes there. | 16:55 |
|
| should I commit first or pull then commit then push? | 16:55 |
|
CareBear\
| stash | 16:55 |
|
alesan
| mh why stash? | 16:55 |
| ← shruggar left | 16:55 |
|
CareBear\
| or commit, fetch, rebase | 16:55 |
| → mikepack joined | 16:55 |
|
alesan
| fetch is...? | 16:55 |
|
CareBear\
| half of pull | 16:56 |
|
wereHamster
| git fetch | 16:56 |
|
jajmon
| so any idea why my git diff shows changes as if the entire file was added? | 16:56 |
|
wereHamster
| and commit is git commit | 16:56 |
|
| and rebase is git rebase | 16:56 |
|
CareBear\
| jajmon : line endings | 16:56 |
|
| fetch+rebase is equivalent to pull --rebase | 16:56 |
|
alesan
| so, why not simply commit and pull? | 16:56 |
|
slonopotamus
| CareBear\: your backslash is really confusing :) | 16:56 |
|
CareBear\
| because pull defaults to merge | 16:56 |
|
jajmon
| CareBear\, could you elaborate a little? | 16:57 |
|
alesan
| well I want to merge... maybe there is something that I don't get | 16:57 |
|
CareBear\
| slonopotamus : part of the reason it's there, but not so much for humans as for software. had nick since 1995. applications still can not handle it. | 16:57 |
|
wereHamster
| alesan: commit first | 16:57 |
|
CareBear\
| alesan : if you want to merge (instead of rebase) then commit + pull is perfect | 16:57 |
| → ph^ joined | 16:57 |
| ← guardian left | 16:57 |
| ← davzie left | 16:57 |
|
alesan
| I need to read the difference between merge and rebase | 16:58 |
|
CareBear\
| jajmon : if line endings in the file change then git will consider every line to have changed | 16:58 |
|
wereHamster
| alesan: yu said you have local modifications. Are they final? Is the feature implemented completely, the bug fixed? | 16:58 |
| → guardian joined | 16:58 |
|
wereHamster
| alesan: or are those changes which are half-done and you need to work o them late? | 16:58 |
|
jajmon
| i c | 16:58 |
|
| must look into my vim settings, hmpf | 16:58 |
|
alesan
| wereHamster, which bug? in any case let;s say "yes" | 16:58 |
|
CareBear\
| jajmon : because, in fact, every line *has* changed | 16:58 |
|
alesan
| no they are done | 16:58 |
|
wereHamster
| alesan: then why odn't you want to commit | 16:58 |
|
| ? | 16:58 |
| ← rando left | 17:00 |
| → radarek joined | 17:01 |
| → dajhorn joined | 17:02 |
| → McMAGIC-- joined | 17:02 |
| ← rgr left | 17:02 |
| → kassah joined | 17:02 |
| ← guardian left | 17:02 |
| → rgr joined | 17:03 |
| → artefon joined | 17:03 |
| → Vampire0_ joined | 17:04 |
| ← workmad3 left | 17:05 |
| → rando joined | 17:06 |
| → T-Pup joined | 17:06 |
| → antant joined | 17:09 |
|
antant
| Hey guys | 17:10 |
| ← Boggle left | 17:10 |
|
antant
| Hoping someone can help me sort out this 'fatal: Not a git repository (or any of the parent directories): .git' error | 17:10 |
| ← LekeFly left | 17:10 |
| → p3rg2z joined | 17:11 |
| ← p3rg2z left | 17:11 |
| ← thm left | 17:11 |
| ← resmo_ left | 17:11 |
|
vbar
| are you in the right directory? | 17:11 |
|
antant
| after I cloned it initially I renamed the folder for ease of access, but I've renamed it back now. Would that cause the error? If so how do I fix it | 17:11 |
| → superdmp joined | 17:12 |
| ← slonopotamus left | 17:12 |
| ← dreiss left | 17:12 |
|
superdmp
| i am puzzled - I have cloned https://github.com/SmileyChris/easy-thumbnails/ | 17:12 |
|
| on one of my machines I can git checkout simpler-get_thumbnail | 17:12 |
| ← rgr left | 17:12 |
|
superdmp
| on the other, I can't | 17:12 |
| → saschpe_ joined | 17:12 |
| → SirFunk joined | 17:13 |
|
superdmp
| why might this be? | 17:13 |
|
antant
| vbar: both pull and fetch failed with the same error. | 17:13 |
|
wereHamster
| superdmp: git --version | 17:13 |
| ← nothingHappens left | 17:13 |
|
wereHamster
| antant: did you cd into the cloned directory? | 17:13 |
|
antant
| nope | 17:13 |
|
superdmp
| wereHamster: the one that works is 1.7, the one that doesn't 1.5 | 17:13 |
| → jstemmer joined | 17:14 |
|
wereHamster
| superdmp: ... | 17:14 |
|
superdmp
| I guess that is my answer | 17:14 |
|
antant
| ~/Desktop/OpenELEC.tv is the cloed directory of https://github.com/OpenELEC/OpenELEC.tv.git | 17:14 |
|
| I'm in ~/Desktop | 17:14 |
|
superdmp
| apt-get upgrade | 17:15 |
|
| oops | 17:15 |
| → shruggar joined | 17:15 |
|
wereHamster
| antant: cd ~/Desktop/OpenELEC.tv | 17:15 |
| → variable joined | 17:15 |
| → rgr joined | 17:16 |
| → g0bl1n joined | 17:16 |
| → Zephyrus joined | 17:16 |
|
variable
| is there a way to normalize times of edits before I push them? (ie I want it to look like all my edits happened on a certain hour or whatever) (just for interest - no real reason) | 17:16 |
|
antant
| ah | 17:16 |
|
superdmp
| ok, a newer version of git is not available through apt-get, so that's a nuisance | 17:16 |
|
wereHamster
| variable: not without rewriting the commit | 17:16 |
|
alesan
| wereHamster, sorry, I had to eat a wafer | 17:16 |
| → LekeFly joined | 17:16 |
| → Dave^| joined | 17:16 |
|
alesan
| wereHamster, sure I want to commit, I was just asking what's the best procedure | 17:16 |
|
antant
| Cheers wereHamster. Didn't know you have to do it from inside the dir | 17:16 |
|
variable
| wereHamster: what do you mean? | 17:17 |
|
superdmp
| is there some way I can pull down the branch I need from github without upgrading git? | 17:17 |
| → dreiss joined | 17:17 |
|
wereHamster
| alesan: git commit, presumably | 17:17 |
| ← liquidproof left | 17:17 |
| ← juvenal left | 17:17 |
| → kipras joined | 17:17 |
|
wereHamster
| superdmp: fetch + checkout | 17:17 |
|
| or + merge | 17:17 |
|
antant
| It's now asking me to specify a branch. | 17:18 |
| → DR01D5 joined | 17:18 |
|
variable
| wereHamster: I'm fine with changing history - but I'm curious if there is some kind of git command to do so or if I need to go "lower level" | 17:18 |
| → systemaddict joined | 17:18 |
|
wereHamster
| variable: git rebase or filter-branch | 17:18 |
| → bran joined | 17:19 |
| → matjas joined | 17:20 |
| ← rgr left | 17:20 |
| → rgr joined | 17:21 |
| → henrikbjorn joined | 17:21 |
|
superdmp
| sorry wereHamster , I can't work out the sequence of operations to do that | 17:22 |
|
| the branch I want is https://github.com/SmileyChris/easy-thumbnails/tree/simpler-get_thumbnail | 17:22 |
| → MikhX joined | 17:23 |
| → nothingHappens joined | 17:23 |
|
superdmp
| git fetch just gets the latest updates, no? | 17:23 |
|
antant
| You would hope it would be that easy | 17:23 |
| → friskd joined | 17:24 |
| ← rgr left | 17:25 |
| → \yrlnry joined | 17:25 |
| → Titosemi joined | 17:25 |
|
CareBear\
| superdmp : yes, fetch only downloads commits that are in remote repos to your "remote tracking branches" | 17:25 |
| → rgr joined | 17:26 |
| ← saysjonathan left | 17:26 |
|
superdmp
| CareBear\: ok - but I am trying to understand the suggestion above that fetch + checkout will let me get the branch I need | 17:26 |
| ← tatsuya left | 17:27 |
| → saysjonathan joined | 17:27 |
| → texel joined | 17:27 |
| → phrearch joined | 17:27 |
|
phrearch
| hello | 17:27 |
| texel → Guest41220 | 17:27 |
| → jrmuizel joined | 17:27 |
|
phrearch
| i forked a repo on github like http://help.github.com/fork-a-repo/ , but i was wondering if i can switch to an upstream branch now | 17:27 |
| ← deadlyicon left | 17:27 |
| → LouisJB joined | 17:28 |
| → squiggy joined | 17:28 |
|
alesan
| so how was to commit only part of a file? | 17:30 |
| → iAsterisk joined | 17:30 |
| ← amerine left | 17:30 |
| → phantomcircuit joined | 17:31 |
| → slonopotamus joined | 17:31 |
| → varioust joined | 17:32 |
| ← whaley left | 17:32 |
|
wereHamster
| alesan: man git add -> -p | 17:33 |
|
jast
| alesan: the 'git' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git.html [automatic message] | 17:33 |
| ← CarlFK left | 17:33 |
| ← DarthGandalf left | 17:33 |
| → koltroll joined | 17:33 |
| → sylr joined | 17:35 |
| ← sylr left | 17:37 |
| ← radarek left | 17:37 |
| → _ollie joined | 17:38 |
| → CarlFK joined | 17:38 |
| → t3rm1n4l joined | 17:38 |
|
steven
| hello | 17:38 |
| → justin-george joined | 17:39 |
| → beyondcreed joined | 17:39 |
| ← dreiss left | 17:39 |
|
steven
| is there a way to change the message (or author) of a commit thats sevral commits ago? | 17:39 |
|
shruggar
| steven, does anyone else have a copy of that commit? | 17:39 |
| ← _ollie left | 17:39 |
| ← koltroll left | 17:40 |
| ← simenbrekken left | 17:40 |
| ← CarlFK left | 17:42 |
|
steven
| nope | 17:43 |
| → koltroll joined | 17:43 |
|
steven
| (sorry for the late reply shruggar) | 17:43 |
| → Twey joined | 17:43 |
| → cruzton joined | 17:44 |
|
shruggar
| steven: git rebase -i HEAD~(some number one or two larger than the number "ago" it was) select "edit". rebase will drop you into the history at a point where you can git commit --amend the wrong commit | 17:44 |
| ← starcoder2 left | 17:45 |
| → guardian joined | 17:45 |
| ChanServ set mode: +v | 17:45 |
|
cruzton
| shruggar: woah, i have a question relating to that very topic | 17:46 |
|
| shruggar: how can i get "reword" to also edit the commit times and author/commiter emails? | 17:46 |
| ← iAsterisk left | 17:46 |
| → Fretta joined | 17:46 |
| ← Bauer left | 17:47 |
| → amerine joined | 17:48 |
| ← jrmuizel left | 17:48 |
|
wereHamster
| cruzton: man git-commit-tree -> GIT_AUTHOR_DATE etc | 17:49 |
|
jast
| cruzton: the 'git-commit-tree' manpage can be found at http://www.kernel.org/pub/software/scm/git/docs/git-commit-tree.html [automatic message] | 17:49 |
| → WAAQLDW joined | 17:49 |
|
wereHamster
| but I still don't see the point of editing the commit times | 17:49 |
| → starcoder2 joined | 17:49 |
|
cruzton
| wereHamster: so people don't know when stuff was done? :) ill look into commit-tree, thanks | 17:50 |
| ← nicoulaj left | 17:50 |
| → mattly joined | 17:51 |
| ← Magix left | 17:51 |
| ← varioust left | 17:52 |
| ← bjtitus left | 17:52 |
| → sylr joined | 17:53 |
| → iAsterisk joined | 17:53 |
| → rcreasey joined | 17:55 |
| → Laggg joined | 17:56 |
| → Bauer joined | 17:56 |
|
rcreasey
| If I have two branches on my repo, 'master' and 'develop', and there's a symbolic-ref for HEAD pointing to master; is there a way to create another symbolic-ref to point to the 'most recent revision on the develop branch'? | 17:57 |
|
| and then tell a remote about the new symbolic-ref? | 17:57 |
| ← sylr left | 17:57 |
| → jsquared joined | 17:57 |
|
rcreasey
| I basically want to have a HEAD-like reference to the develop branch, but still keep HEAD pointing at master. | 17:57 |
| ← nonnooo left | 17:59 |
| → lessthanzero joined | 17:59 |
| ← Titosemi left | 17:59 |
| ← tvw left | 17:59 |
| ← airborn left | 18:00 |
|
alesan
| wereHamster, so I did commit | 18:01 |
| → radarek joined | 18:01 |
|
alesan
| and now I did git fetch | 18:01 |
|
| I should probably rebase now yes? | 18:01 |
| ← gebi left | 18:01 |
| → airborn joined | 18:01 |
| ← jajmon left | 18:02 |
| ← Barret1 left | 18:02 |
| → kingfishr joined | 18:03 |
| ← rgr left | 18:03 |
| ← vbar left | 18:03 |
| ← Laggg left | 18:04 |
| ← elyob left | 18:04 |
| ← t3rm1n4l left | 18:05 |
| → Laggg joined | 18:05 |
|
steven
| shruggar: will that also allow me to change the commit date? | 18:07 |
| ← lxsameer left | 18:08 |
| → lanthan joined | 18:08 |
|
shruggar
| steven, anything you can normally do with commit --amend | 18:09 |
|
steven
| oh, i dont think yo ucan chan ge the date with commit --amend | 18:09 |
| ← phantomcircuit left | 18:10 |
| ← mitziyahu left | 18:10 |
| → phantomcircuit joined | 18:10 |
| → maestrojed joined | 18:10 |
| ← Laggg left | 18:11 |
| → Laggg joined | 18:11 |
|
steven
| crap. | 18:11 |
|
| ooh, --date | 18:12 |
| ← artefon left | 18:13 |
| ← erichammond left | 18:14 |
| ← thrope left | 18:15 |
|
alesan
| so git pull detected a "conflict" while rebasing | 18:15 |
|
| it's a git pull --rebase | 18:15 |
|
| I just want the remote server version as I have not touched those files; how do I do that? | 18:15 |
| → opalka joined | 18:16 |
| ← opalka left | 18:16 |
| → opalka joined | 18:16 |
| ← MikhX left | 18:16 |
| → MikhX joined | 18:16 |
| → dreiss joined | 18:17 |
| → Mannequin joined | 18:17 |
| → bentob0x joined | 18:18 |
| ← _Vi left | 18:18 |
| → Evious joined | 18:18 |
| ← radarek left | 18:18 |
| ← Laggg left | 18:20 |
| → Chillance joined | 18:21 |
| → Titosemi joined | 18:21 |
| → Laggg joined | 18:21 |
| ← Laggg left | 18:22 |
| → Laggg joined | 18:22 |
| → mitziyahu joined | 18:22 |
| → LouisJB_ joined | 18:22 |
| ← LouisJB left | 18:23 |
| LouisJB_ → LouisJB | 18:24 |
| → eletuchy joined | 18:25 |
|
SethRobertson
| Is the best way to discover if a branch is fully merged to do a `git merge-base br1 br2` and the compare the result to the head of br1 and br2, and only complain if one or the other is not the merge base? `git cherry br2` returns SHA even though the branch is merged. | 18:25 |
| → soreau joined | 18:26 |
| → drake01 joined | 18:28 |
|
mrevd
| sethrobertson, how about git branch -a —contains featureBranch | 18:28 |
|
soreau
| Hey guys, I'm trying to figure out what commit is responsible for a certain function's args changed but I'm having some trouble. I tried git log -p -- the/file.c and / searched for the function name, but it didn't point to the correct commit. It just said ...skipping... and never showed the commit id pointing to the actual change | 18:28 |
|
systemaddict
| i just made a commit to my local repo but haven't pushed it yet - is there some way i can delete the commit, making it as though it never happened? | 18:29 |
| ← LouisJB left | 18:29 |
|
soreau
| So I can find the change in git log, but not the commit message or id to say which commit this actually happened in | 18:29 |
| → urkud joined | 18:29 |
|
CareBear\
| systemaddict : well, yes, but it's kinda messy.. can you replace it with something else instead? | 18:29 |
|
| systemaddict : then make the changes you do want, git add as usual, and then git commit --amend | 18:29 |
|
systemaddict
| that works thanks CareBear\ | 18:30 |
|
CareBear\
| soreau : git blame | 18:30 |
|
BinGOs
| git log -S perhaps | 18:30 |
| ← deuterium left | 18:31 |
| ← eletuchy left | 18:31 |
|
SethRobertson
| mrevd: Great idea. requires a grep, but still easier than the other method | 18:33 |
| → thrope_ joined | 18:33 |
| ← shine-neko left | 18:33 |
| ← koltroll left | 18:34 |
| ← jason237 left | 18:34 |
|
steven
| i totally just rebased successfully for the first time ever! | 18:34 |
|
| <3 | 18:34 |
|
soreau
| CareBear\: I don't see how git blame works | 18:34 |
|
thiago
| soreau: the syntax or how it works internally? | 18:34 |
|
soreau
| thiago: The syntax of course | 18:35 |
|
thiago
| git blame filename | 18:35 |
| → jason237 joined | 18:35 |
| ← jason237 left | 18:35 |
| ← cruzton left | 18:35 |
|
steven
| git help blame :) | 18:36 |
| → artefon joined | 18:36 |
|
soreau
| bah | 18:37 |
| ← phrearch left | 18:37 |
|
soreau
| git blame is not helping me | 18:37 |
|
| Even with -p, it doesnt show full patches | 18:37 |
|
thiago
| it's not supposed to | 18:37 |
|
soreau
| I need to know, when a certain function changed | 18:37 |
| → Bass10 joined | 18:38 |
|
thiago
| it shows when each line was changed | 18:38 |
|
CareBear\
| and the commit that changed it | 18:38 |
| → varioust joined | 18:38 |
|
soreau
| I don't understand how I'm supposed to use this information to determine when this particular function change happened | 18:39 |
| → letas joined | 18:39 |
|
soreau
| I need to know the commit id and message | 18:39 |
|
CareBear\
| it's right there | 18:39 |
|
| git blame gives the commit id | 18:39 |
| ← SirFunk left | 18:40 |
|
CareBear\
| that changed each line of the file | 18:40 |
|
| last | 18:40 |
|
soreau
| It makes no sense whatsoever | 18:40 |
| → thiago__ joined | 18:40 |
|
CareBear\
| did you try to run it? | 18:40 |
| ← mitziyahu left | 18:40 |
| Laggg → Laggg|dishes | 18:40 |
|
CareBear\
| if yes - show the line that you are interested in? | 18:40 |
|
letas
| hello folks - Stupid question: how can I push (only) commits that are meaningful to systems like github or beanstalkapp? I am kind of tired of the ever growing merges showing up | 18:40 |
|
soreau
| Yes it just gives a bunch of meaningless information | 18:41 |
|
| CareBear\: It doesn't show anything interesting at all | 18:41 |
|
| It's a bunch of jargon | 18:41 |
|
CareBear\
| pastebin the output then? | 18:41 |
|
soreau
| and it doesn't stick to the file I passes it either | 18:41 |
| ← dannas left | 18:42 |
| → dannas joined | 18:42 |
| ← artefon left | 18:42 |
|
CareBear\
| (of course also include the exact command you used, as always) | 18:42 |
|
steven
| soreau: git log -p file | 18:42 |
| ← Evious left | 18:43 |
|
soreau
| CareBear\: Look it: http://pastebin.com/Wz6t2JqV I need to know when notify_notification_new changed and broke API | 18:43 |
|
steven
| btw guys, is there a fork of git that stores timestamps of all the tree/blob info per commit, and then `touch`s the files when checking out (or cloning) to match the timestamps the files had when they were committed? | 18:43 |
|
rcreasey
| If I have two branches on my repo, 'master' and 'develop', and there's a symbolic-ref for HEAD pointing to master; is there a way to create another symbolic-ref to point to the 'most recent revision on the develop branch'? | 18:43 |
|
steven
| soreau: try the command i just gave you, i think its what you're looking for | 18:44 |
| → Evious joined | 18:44 |
|
steven
| rcreasey: 'develop' already is that. | 18:44 |
|
PabloM
| rcreasey, why do you want that? | 18:44 |
|
soreau
| steven: Yea I do that, then hit / to search for notify_notification_new and it goes to the change, but instead of showing the commit message or id, it shows ...skipping... | 18:44 |
|
CareBear\
| soreau : and which line of the file are you interested in? | 18:44 |
|
steven
| soreau: u broke it | 18:44 |
|
soreau
| ??????????????????/ | 18:44 |
|
steven
| soreau: that works for me. it shows commit info as well as diff | 18:45 |
|
soreau
| wtf | 18:45 |
|
steven
| oooooh | 18:45 |
|
| i know why. | 18:45 |
|
| you're drunk. go sober up and come back and try again :) | 18:45 |
| → maestroj_ joined | 18:45 |
|
soreau
| Since when? | 18:45 |
|
steven
| typical case of the mondays.. still hung over from sunday, amirite or amirite! | 18:45 |
|
CareBear\
| soreau : which line in the file are you interested in? | 18:45 |
|
soreau
| CareBear\: I'm trying to figure out how to answer that question | 18:46 |
| ← troessner left | 18:46 |
| ← maestrojed left | 18:46 |
|
CareBear\
| man.. | 18:46 |
|
| open the file | 18:46 |
| ← thiago__ left | 18:46 |
|
soreau
| CareBear\: Because the line number in master may have changed by now | 18:46 |
| → tizzo joined | 18:46 |
| → bytemask joined | 18:46 |
| ← harv left | 18:46 |
|
CareBear\
| you want the current line number | 18:46 |
| ← maestroj_ left | 18:46 |
|
soreau
| steven: How dare you. That is very unprofessional | 18:46 |
|
CareBear\
| this is not a professional support channel | 18:46 |
|
| this is IRC | 18:46 |
|
| :) | 18:46 |
|
soreau
| I didn't say it was | 18:47 |
|
| I just said he's being unprofessional | 18:47 |
|
CareBear\
| I'm just answering how people dare. | 18:47 |
|
steven
| soreau: hehe | 18:47 |
| → harv joined | 18:47 |
|
steven
| its true. im not being very professinoal right now. | 18:47 |
|
| he's got a point. | 18:47 |
|
CareBear\
| I agree | 18:47 |
|
soreau
| /ignore steven | 18:47 |
|
| oops | 18:47 |
|
bremner
| heh | 18:47 |
|
steven
| try harder soreau | 18:47 |
| ← Zephyrus left | 18:47 |
| ← Nickeeh left | 18:47 |
|
steven
| you gotta press down real hard on the slash key for it to work | 18:47 |
| → Nickeeh joined | 18:48 |
|
soreau
| CareBear\: It would be libnotify/notification.h:116 | 18:48 |
|
| the closest I can guess | 18:48 |
|
CareBear\
| man | 18:48 |
|
| you should not guess this | 18:48 |
|
| you say you want to find what caused a change | 18:48 |
|
| then you really must know *what* that change is | 18:48 |
|
soreau
| CareBear\: But if the file has changed, how can you track a previous change by line number? | 18:48 |
|
CareBear\
| to be effective | 18:48 |
|
| I said the *current* line number | 18:49 |
|
soreau
| Well they omitted this line | 18:49 |
|
CareBear\
| omitted? | 18:49 |
|
soreau
| so it really has no line number | 18:49 |
| → TESTBROTEST joined | 18:49 |
|
CareBear\
| you mean deleted? | 18:49 |
| → pyrony joined | 18:49 |
|
soreau
| Yes, they omitted it ie. removed it from the file | 18:49 |
| TESTBROTEST → theoros | 18:49 |
| → maestrojed joined | 18:49 |
|
soreau
| No, omitted as in nuked the line in question | 18:49 |
|
CareBear\
| omit means something else - but ok! | 18:49 |
|
| I see | 18:49 |
| ← thrope_ left | 18:49 |
|
soreau
| I'm trying to figure out when this happened | 18:49 |
|
CareBear\
| understand | 18:49 |
|
| is there some other part of the same commit that is still around? | 18:50 |
|
soreau
| So it's kinda difficult to give a line number to something that no longer exists :P | 18:50 |
|
CareBear\
| of course | 18:50 |
|
| you said it changed | 18:50 |
|
soreau
| CareBear\: I can't find the commit | 18:50 |
|
| so I do not know | 18:50 |
|
CareBear\
| you did not say that it was removed | 18:50 |
|
BinGOs
| git log -Sfunctionname #perhaps | 18:50 |
|
soreau
| Well it's an API change | 18:50 |
|
CareBear\
| change and remove are fundamentally different operations, and I was giving advice for the case of a change | 18:50 |
|
| yes | 18:50 |
| → marcamilly joined | 18:50 |
|
CareBear\
| one way would be bisect | 18:51 |
| ← maestrojed left | 18:51 |
|
CareBear\
| and let it grep | 18:51 |
|
soreau
| how cumbersome | 18:51 |
|
| surely there is a better way | 18:52 |
|
CareBear\
| might not be very cumbersome | 18:52 |
|
soreau
| BinGOs: http://pastebin.com/H0beLF9i | 18:52 |
|
CareBear\
| soreau : what are the known good and known bad commits? | 18:53 |
|
| known bad could just be master | 18:53 |
|
soreau
| CareBear\: That is the very thing I'm trying to find out | 18:53 |
|
CareBear\
| soreau : any known good is fine, it can be old | 18:53 |
|
soreau
| Well yea, i could do bad master, good 0.5.x | 18:53 |
|
CareBear\
| great | 18:53 |
|
soreau
| but that's a lot of commits to trudge through | 18:53 |
|
| I could find this out manually if I wanted already | 18:53 |
|
| I just figured there is a much easier way | 18:53 |
|
CareBear\
| no, this will be automated | 18:53 |
|
soreau
| Well I guess if you're not building the code it isn't so bad | 18:54 |
|
steven
| git is just brilliant. i really like it. | 18:54 |
|
| <3 | 18:54 |
| → mastroDani joined | 18:54 |
|
steven
| i misunderstood how git revert worked earlier and it didnt do what i wanted.. so instead i did `git checkout <sha> -- .` and committed :D | 18:55 |
|
soreau
| CareBear\: So you're suggesting 'git checkout HEAD~1 && if grep some_string some/file; then echo bingo. && exit 0; fi' or something? | 18:55 |
|
steven
| (which is what i thought git revert would do) | 18:55 |
|
| ooooh no. git revert removes that change. i get it now! | 18:55 |
|
CareBear\
| soreau : git bisect start master 0.5.x --; git bisect run grep -vq searchstring libnotify/notification.h | 18:55 |
|
steven
| i was thinking of it as "git revert-to" which is just silly of me | 18:55 |
|
soreau
| CareBear\: Can you walk me through this? Never used git bisect with grep before | 18:56 |
|
CareBear\
| soreau : git runs grep for each commit and exit status determines if commit is good or bad | 18:56 |
|
soreau
| CareBear\: 0e04cf94cbd823118e937ec9fab285a76c2e6e29 is good and master is bad | 18:57 |
|
| So how can I do it? | 18:57 |
| ← Gulug left | 18:57 |
|
CareBear\
| soreau : git bisect start master 0e04cf94c --; git bisect run grep -vq searchstring libnotify/notification.h | 18:57 |
|
| soreau tries | 18:57 |
|
CareBear\
| replace searchstring with the unique function name | 18:57 |
|
| it must not match anything but the deleted line | 18:57 |
| → thiago__ joined | 18:58 |
|
BinGOs
| soreau: I said 'git log -Sfunctionname' not 'git log -S functionname' | 18:58 |
|
CareBear\
| oh, sorry, remove the -v | 18:58 |
|
| and you can remove -q as well if you like | 18:59 |
|
| so the second command becomes git run grep searchstring ... | 18:59 |
|
soreau
| BinGOs: ok | 18:59 |
| ← _psychic_ left | 18:59 |
|
CareBear\
| if you already started the bisect I guess you'll have to restart it | 18:59 |
|
soreau
| CareBear\: Didn't work., Pointed to a version bump | 19:00 |
| ← Sonder left | 19:00 |
|
CareBear\
| the first, or without -v ? | 19:00 |
| → Sonderblade joined | 19:00 |
| → _psychic_ joined | 19:00 |
|
soreau
| CareBear\: I ran this: git bisect start master 0e04cf94c --; git bisect run grep -vq "GtkWidget *attach);" libnotify/notification.h | 19:00 |
|
| where "GtkWidget *attach);" is the string that was removed | 19:00 |
|
CareBear\
| drop -v sorry about that | 19:00 |
|
soreau
| the line, even | 19:00 |
|
CareBear\
| I confused what good and bad exit codes should be | 19:01 |
|
soreau
| BinGOs: No output | 19:01 |
|
| CareBear\: Ok, so what's correct? | 19:01 |
| → lstdgtfp joined | 19:01 |
|
CareBear\
| just -q or no option at all | 19:02 |
|
| otherwise it looked good | 19:02 |
|
| well.. | 19:02 |
|
| you may need to escape the * | 19:02 |
|
| it's a regex after al | 19:02 |
| → erichammond joined | 19:02 |
|
soreau
| It's in quotes.. | 19:02 |
|
CareBear\
| * has special meaning in regexes | 19:03 |
|
| not escape from shell | 19:03 |
| → thiago_home joined | 19:03 |
|
CareBear\
| escape in regex | 19:03 |
| ← vitor-br left | 19:03 |
|
soreau
| Well crap, now I broke it | 19:03 |
|
CareBear\
| git bisect start master 0e04cf94c --; git bisect run grep 'GtkWidget.*\*attach);' | 19:03 |
|
soreau
| git log -p <commit id> just returns | 19:03 |
|
| even though I git bisect reset | 19:04 |
| ← urkud left | 19:04 |
| → boombatower joined | 19:04 |
|
soreau
| It just hangs now | 19:04 |
|
| Bisecting: 32 revisions left to test after this (roughly 5 steps) \n [4026faf46b093d2f4207732f4019a595e08e8ada] Add tests for transient and resident \n running grep GtkWidget.*\*attach); | 19:05 |
|
CareBear\
| CPU busy? | 19:05 |
|
soreau
| and it's stuck | 19:05 |
|
| nope | 19:05 |
|
CareBear\
| may have to double escape, in case git runs the command via sh | 19:05 |
|
| which I think it does | 19:05 |
|
| git bisect start master 0e04cf94c --; git bisect run grep '"GtkWidget.*\*attach);"' | 19:05 |
|
BinGOs
| I'm doubting this thing ever existed >:) | 19:05 |
|
soreau
| That is not the problem | 19:05 |
|
| The repo or git is broken now | 19:06 |
| → thrope joined | 19:06 |
| ← mastroDani left | 19:06 |
|
soreau
| It wont run | 19:06 |
| → vitor-br joined | 19:06 |
|
CareBear\
| is this a repo available online? | 19:06 |
|
soreau
| yes | 19:06 |
|
CareBear\
| url? | 19:06 |
|
soreau
| http://git.gnome.org/browse/libnotify | 19:06 |
|
CareBear\
| let's see | 19:07 |
|
| soreau sighs | 19:07 |
|
soreau
| This should be *wai* easier | 19:07 |
|
CareBear\
| doh, sorry, the filename needs to go on the end of course :) | 19:07 |
|
soreau
| Well nofuckingwonder :P | 19:08 |
| ← Nickeeh left | 19:08 |
| Laggg|dishes → Laggg | 19:08 |
|
CareBear\
| the search string matches two lines | 19:08 |
| → Nickeeh joined | 19:08 |
|
CareBear\
| that does not work | 19:08 |
|
| it must be unique | 19:08 |
|
| what function is it? | 19:09 |
| ← jsick3 left | 19:09 |
| → alberto joined | 19:10 |
| → xerora joined | 19:10 |
| → radarek joined | 19:10 |
| ← alberto left | 19:10 |
| ← alberto56 left | 19:10 |
| → alberto joined | 19:10 |
|
CareBear\
| soreau : ? | 19:11 |
|
soreau
| CareBear\: Since you're looking into this (thanks btw) the specifics are Good http://git.gnome.org/browse/libnotify/tree/libnotify/notification.h?id=c56f4855b1038a8b74b1d44e573eb380718a5892#n79 Bad http://git.gnome.org/browse/libnotify/tree/libnotify/notification.h#n114 | 19:11 |
|
| CareBear\: It's notify_notification_new | 19:11 |
| → CarlFK joined | 19:12 |
| → jfelchner joined | 19:12 |
|
CareBear\
| ok | 19:14 |
|
| let's see then | 19:14 |
|
| the regex becomes a little tricky since all parameters are on separate lines (silly) | 19:14 |
| → amh345 joined | 19:15 |
|
amh345
| i've just mangled git. eek | 19:15 |
|
CareBear\
| soreau : git bisect start master c56f485 --; git bisect run sh -c 'sed -e "/notify_notification_new /,/);/!d" libnotify/notification.h |grep attach' | 19:16 |
|
amh345
| git push origin master ==> " ! [rejected] master -> master (non-fast-forward)" | 19:16 |
|
soreau
| CareBear\: geez :P | 19:16 |
|
CareBear\
| 27e05d0f9562a26163493d6cc1d5924b9a4ebf68 is the first bad commit | 19:16 |
|
| soreau looks | 19:17 |
| → irc2samus joined | 19:17 |
| → jsick3 joined | 19:17 |
| ← thrope left | 19:17 |
| → mattalexx joined | 19:17 |
|
CareBear\
| git log|grep notification had actually worked too, since you have good commit messages | 19:17 |
| → liquidproof joined | 19:17 |
|
irc2samus
| hello guys, can you tell me how to checkout a specific revision of a file without afecting the HEAD? | 19:17 |
|
| I'd like to run tests with previous versions of a specific file | 19:18 |
|
mattalexx
| I'm an absolute beginner at git, but I have some experience with Subversion. Anyway, I'm following this tutorial: http://squaremasher.blogspot.com/2009/12/managing-dotfiles-with-git.html | 19:18 |
|
nDuff
| irc2samus, ...uhh, HEAD _is_ "whatever you have checked out" | 19:18 |
|
CareBear\
| irc2samus : I think HEAD follows what you check out | 19:18 |
|
mattalexx
| At no point does he add the files to the commit, right? Isn't he missing something? | 19:18 |
| ← ptl left | 19:18 |
|
irc2samus
| I mean, making the file modified but not affecting the last commit | 19:18 |
|
amh345
| git merge master says it's up to date. yes im getting this " ! [rejected] master -> master (non-fast-forward)" . can anyone help with this? im completely lost. | 19:18 |
|
mattalexx
| I'm running git commit -a -m 'Bla' and getting "nothing added to commit but untracked files present (use "git add" to track)" | 19:18 |
|
soreau
| CareBear\: Ah, this is it. One of the bisects I had came up with this commit but it was so big, I didn't realize the change was there | 19:19 |
|
CareBear\
| irc2samus : git checkout never modifies commits | 19:19 |
|
nDuff
| irc2samus, ...oh, just one file, got it. | 19:19 |
|
fr0sty_
| amh345: git fetch --all then merge again | 19:19 |
| → cocoadaemon joined | 19:19 |
|
soreau
| CareBear\: ie. this works too: git bisect start master 0e04cf94c --; git bisect run grep 'GtkWidget' libnotify/notification.h | 19:19 |
|
CareBear\
| soreau : and the log message did not convince you? wow.. | 19:19 |
|
soreau
| CareBear\: Thanks for your help | 19:19 |
| → ilteris___ joined | 19:19 |
|
soreau
| CareBear\: Nope, I didn't read it :) | 19:19 |
| → jhoepken joined | 19:19 |
|
nDuff
| irc2samus, ...so, if you have the hash of the file, you can retrieve it with git show... | 19:20 |
|
amh345
| fr0sty_: git fetch --all say's fetching origin | 19:20 |
|
CareBear\
| soreau : cool! I didn't look at the file contents, so I just went with a very very reliable test | 19:20 |
|
amh345
| fr0sty_: then git merge master says already up-to-date | 19:20 |
|
CareBear\
| although a bit more complicated | 19:20 |
|
irc2samus
| nDuff: hmm and then git apply right? sounds good I'll try | 19:20 |
|
ilteris___
| hey guys, does anyone know how can I add a timestamp to my git in my terminal so it shows me how much it has been since the last commit? | 19:20 |
|
soreau
| CareBear\: I still don't completely understand what git run is doing, but I guess you could put any command there and it checks return value? | 19:20 |
|
CareBear\
| soreau : correct. there are good explanations in git bisect --help | 19:21 |
|
fr0sty_
| amh345: where are you trying to push? | 19:21 |
|
nDuff
| irc2samus, ...no need to apply if you're retrieving the blob with the file... | 19:21 |
|
amh345
| fr0sty_: im trying to push my latest changes to a remote server. but somewhere things got out of sync | 19:21 |
|
soreau
| Good ghad, not the man pages | 19:21 |
|
fr0sty_
| amh345: what command are you using to push ? | 19:22 |
| przemoc86 → przemoc | 19:22 |
|
CareBear\
| soreau : they are excellent | 19:22 |
|
amh345
| fr0sty_: totally my fault too. i accidentally recreated .git and pushed | 19:22 |
|
BinGOs
| soreau: http://git.gnome.org/browse/libnotify/commit/?id=cc13b1892f79b7d33ab8d587a14db5d848e52fa4 | 19:22 |
|
cocoadaemon
| Ola. I am starting with Git, which looks awesome. I am seeing on a tutorial --bare should be used for projects using ssh to push / pull. But I don't understand how you could have that to work : bare only takes the .git dir, right ? | 19:22 |
|
soreau
| CareBear\: not if you have reading comprehension problems :P | 19:22 |
|
amh345
| fr0sty_: git push origin master | 19:22 |
|
nDuff
| irc2samus, ...you should be able to use git ls-tree to get that blob's hash. | 19:22 |
|
fr0sty_
| amh345: oh, that is important information... | 19:22 |
|
soreau
| CareBear\: Or, if you're otherwise allergic to man pages | 19:22 |
|
fr0sty_
| (the recreating .git bit) | 19:22 |
|
irc2samus
| nDuff: but git show outputs the diff from the parent commit to the specified one right? | 19:22 |
|
fr0sty_
| try 'git push -f origin master' | 19:22 |
|
amh345
| fr0sty_: if possible. i could just start from sratch with my remote and local repos | 19:22 |
|
| fr0sty_: everything that was up there was pretty much trash anywats | 19:23 |
| ← cocoadaemon left | 19:23 |
|
nDuff
| irc2samus, git show will show a _lot_ of different things, depending on what you ask it. If you give it the hash of the file in the state that you want, it gives you THAT FILE, not a diff of any kind. | 19:23 |
| ← slonopotamus left | 19:23 |
|
fr0sty_
| amh345: then just recreate the remote repository if you can... | 19:23 |
|
soreau
| BinGOs: Nope, that's not it | 19:23 |
|
irc2samus
| nDuff: I don't know how to pass "hashes of files" :( I have the hash of the commit | 19:24 |
|
soreau
| BinGOs: It was this http://git.gnome.org/browse/libnotify/commit/?id=27e05d0f9562a26163493d6cc1d5924b9a4ebf68 | 19:24 |
|
nDuff
| irc2samus, use git ls-tree to get the file's hash, as I previously suggested. | 19:24 |
| → cocoadaemon joined | 19:24 |
|
soreau
| BinGOs: Thanks for your help though | 19:24 |
|
irc2samus
| ahh missed that, sorry :) | 19:24 |
|
amh345
| fr0sty_: just because im terrified im going to mangle something further. on remote i would rm -rf my git dir with my file.git ? | 19:24 |
| → logickal joined | 19:25 |
|
cocoadaemon
| mmm sorry I CTRL-Ced | 19:25 |
|
BinGOs
| soreau: first commit I looked at from 'git log -Snotify_notification_new' | 19:25 |
|
| oh well. | 19:25 |
| ← cocoadaemon left | 19:25 |
| → alban_ joined | 19:26 |
|
soreau
| BinGOs: Ah, that command never worked for me. It just returns with no output | 19:26 |
|
irc2samus
| perfect! thanks nDuff :D | 19:26 |
| → ptl joined | 19:27 |
| → LouisJB joined | 19:27 |
| ← alban_ left | 19:27 |
| → cocoadaemon joined | 19:27 |
| ← robinsmidsrod left | 19:27 |
| ← soreau left | 19:27 |
|
mattalexx
| I thought "git commit -a -m 'Bla'" will automatically add new things to the repo. When I run it, however, I get "nothing added to commit but untracked files present (use "git add" to track)". What am I doing wrong? | 19:27 |
| ← mediaslave left | 19:28 |
|
nDuff
| mattalexx, git commit -a does not add new files. | 19:28 |
| → robinsmidsrod joined | 19:28 |
|
nDuff
| mattalexx, (and it's bad practice anyhow -- leads to committing things you don't want by mistake) | 19:28 |
| → mediaslave joined | 19:28 |
| ← logickal left | 19:29 |
|
cocoadaemon
| So, --bare : Good Practice As Project Sharepoint ? | 19:29 |
|
fr0sty_
| amh345: yes, wherever your .git (or name.git) directory is, remove it. and 'git init --bare [--shared=group] name.git' | 19:29 |
|
amh345
| fr0sty_: here goes nothing :) | 19:29 |
|
| thanks for the help! | 19:29 |
| ← mando left | 19:29 |
|
nDuff
| mattalexx, ...do the right thing and use git add to add things, and git diff --cached to see what you have added, and _then_ commit. Or don't do the right thing, and use git add only for new files where it's mandatory. | 19:29 |
| ← _psychic_ left | 19:31 |
|
cocoadaemon
| So no one to help me figure out why using a project cloned with --bare is better than working on the original when you're more than one ? | 19:33 |
|
jast
| cocoadaemon: bare repositories are used at hosting locations (e.g. central servers); nobody can work in the working tree so no confusion can possibly happen when someone pushes new stuff to it | 19:34 |
|
| for your own local work, of course it doesn't make sense to use a bare repository | 19:35 |
| → maestrojed joined | 19:35 |
|
cocoadaemon
| so basically, it's up to the project admin to push from the bared clone to the "master" ? | 19:35 |
| → ymasory joined | 19:35 |
|
jast
| uh, what? :) | 19:36 |
|
cocoadaemon
| I mean, when a user A pushed a change, he pushes it to the bare clone X, ok ? | 19:37 |
| ← owst left | 19:37 |
|
mattalexx
| nDuff, I'm following a tutorial for adding my dotfiles to a repo. This guy isn't adding the files at all. Is he doing it wrong in your opinion? http://squaremasher.blogspot.com/2009/12/managing-dotfiles-with-git.html | 19:37 |
|
jast
| right | 19:37 |
| ← beatak left | 19:38 |
|
cocoadaemon
| if that change is ok, someone who's responsible for the project can review user A's changes, accept it and push it to the non-bare project ? | 19:38 |
|
irc2samus
| mattalexx: github? | 19:38 |
| ← j0ran left | 19:38 |
|
mattalexx
| irc2samus, What about it? | 19:38 |
| ← maestrojed left | 19:38 |
|
jast
| cocoadaemon: what non-bare project? | 19:39 |
|
irc2samus
| mattalexx: if you're managing your own repos maybe a tool like gitosis can help you | 19:39 |
|
| but putting them on a free account on github is much more convenient | 19:39 |
|
jast
| please consider recommending gitolite rather than gitosis; the latter is no longer maintained and supported | 19:39 |
|
mattalexx
| irc2samus, I believe I'll be hosting them on github, yes. | 19:39 |
| → codyrobbins joined | 19:40 |
|
irc2samus
| jast: ok, didin't tried that one only gitsos for the moment but I'll check it out | 19:40 |
| → beatak joined | 19:40 |
|
irc2samus
| *only gitosis | 19:40 |
|
cocoadaemon
| jast: the non-bared project would be the "full" version of the project, the one used as a source for the --bare clone | 19:40 |
|
codyrobbins
| I did a git pull and got all sorts of weird merge conflicts. How do I just completely undo the attempted pull and get back to a blank slate? | 19:40 |
|
| Doing a git checkout still leaves the files with the conflict markers in them | 19:41 |
|
jast
| cocoadaemon: so why do you need both the bare repository and that one? | 19:41 |
|
| cocoadaemon: git reset --merge | 19:41 |
|
| sorry, wrong person | 19:41 |
|
| codyrobbins: git reset --merge | 19:41 |
|
| have more easily discernable nicknames next time :( | 19:41 |
|
cocoadaemon
| this place is damned crowded :) | 19:42 |
|
| ok so, I'm not understanding. | 19:42 |
|
codyrobbins
| jast: Thanks! :) | 19:42 |
|
| I kept looking at that option, but the documentation for it is completely opaque to me. | 19:42 |
|
jast
| codyrobbins: yeah, I'll admit that it takes a while until these manpages make sense | 19:43 |
| → ShooterMG joined | 19:43 |
|
cocoadaemon
| I have my project in /P/ with /P/.git ( and all the file hierarchy under ) which I clone in /B. Users will push to /B right ? And if I accept their changes, I'll push back to /P no ? | 19:44 |
|
| ( the clone being B for --bare ) | 19:44 |
|
jast
| P is your personal repository? | 19:45 |
|
nDuff
| mattalexx, non-source usage falls into the category of special cases. | 19:45 |
|
CareBear\
| then yes | 19:45 |
|
cocoadaemon
| nope, let's say P is a web app directory jast | 19:45 |
| → j0ran joined | 19:46 |
|
jast
| oh, so this is a deployment thing | 19:46 |
|
CareBear\
| cocoadaemon : read this: http://joemaller.com/990/a-web-focused-git-workflow/ | 19:46 |
|
jast
| git doesn't really do deployment | 19:46 |
|
CareBear\
| third time tonight.. | 19:46 |
|
cocoadaemon
| yes, this might clarify | 19:46 |
|
jast
| anyhow, you'd pull from B to P | 19:46 |
|
CareBear\
| jast : it can | 19:46 |
|
| with a little help :9 | 19:46 |
|
cocoadaemon
| ah, thanks CareBear | 19:46 |
|
jast
| it *can*, but it's not a natural at it | 19:46 |
|
Arrowmaster
| cocoadaemon: no read this instead http://toroid.org/ams/git-website-howto | 19:46 |
|
CareBear\
| true | 19:46 |
|
| Arrowmaster : that's good for single developer, not so good for multiple imo | 19:47 |
| → ereslibre_laptop joined | 19:47 |
|
Arrowmaster
| CareBear\: dont link people to sites that recommend hacky stuff like running git pull in a hook | 19:47 |
| ← ereslibre left | 19:47 |
|
nDuff
| mattalexx, ...but given that git commit -a does not auto-add files, it's clearly "wrong" in the sense of "doesn't work" | 19:47 |
|
CareBear\
| Arrowmaster : not hacky - it's a different repository being pulled into | 19:47 |
|
nDuff
| mattalexx, indeed, the git commit man page is explicit about this; describing --all: "Tell the command to automatically stage files that have been modified and deleted, but new files you have not told git about are not affected." | 19:48 |
|
Arrowmaster
| CareBear\: that is hacky and often problematic | 19:48 |
|
mattalexx
| nDuff, Interesting. I'll close that taqb then | 19:49 |
|
| *tab | 19:49 |
|
CareBear\
| Arrowmaster : did you actually read through the page? the setup is pretty foolproof. | 19:49 |
| ← DiGitalX left | 19:49 |
|
Arrowmaster
| CareBear\: and he can use the one i linked just fine in a multi user environment if he is the one controlling what goes into the production repo | 19:49 |
|
CareBear\
| then there is in fact only a single user | 19:49 |
|
Arrowmaster
| CareBear\: yes i have, and i know of problems caused by setups exactly like that | 19:49 |
|
cocoadaemon
| what's the purpose of the hook ? Auto push ? | 19:49 |
|
CareBear\
| cocoadaemon : in joemaller's variant there are two hooks IIRC | 19:50 |
|
| cocoadaemon : but the purpose of both is basically to move changes around to the right places | 19:50 |
| ← saschagehlich left | 19:50 |
| ← Raging_Hog left | 19:51 |
|
cocoadaemon
| both articles contain hooks | 19:52 |
|
| are these so important? Or just useful? | 19:52 |
| → Nemesis13 joined | 19:52 |
| ← panike left | 19:52 |
| ← OOPMan left | 19:53 |
|
CareBear\
| important | 19:53 |
|
| if you want automated things | 19:53 |
|
Arrowmaster
| in the one i linked, the hook causes a directory to be updated with the repository contents when you push to the repository | 19:53 |
|
kumbayo
| is it possible in pre-commit hook to detect a commit --amend (i would like to detect this because currently the hook uses "git rev-parse --verify HEAD" to detect a unborn branch, but that is not true anymore on amend) | 19:53 |
| ← ereslibre_laptop left | 19:53 |
|
Nemesis13
| i'm using git for a long time now but i forget the commands again and again... how do i merge two commits (which were not commited in a line)? was it git rebase -i or something? | 19:53 |
| → PointMan joined | 19:53 |
|
cocoadaemon
| jast: basically, the graph in the former article is what I meant : many users who push to a central node which is used as a gate to the prod repo | 19:53 |
|
CareBear\
| cocoadaemon : the graph doesn't fit that case unless all users have equal publishing rights | 19:54 |
|
cocoadaemon
| Arrowmaster: so basically, it's the "automatize the push when I commit" ? | 19:54 |
|
Arrowmaster
| cocoadaemon: no | 19:54 |
| ← guardian left | 19:55 |
|
Arrowmaster
| cocoadaemon: you understand the difference between bare and non-bare repositories right? | 19:55 |
| → guardian joined | 19:55 |
|
PointMan
| um. on my origin I only want a master. but I accidently did git push in a branch, so there is a feature branch in the origin..When I do git checkout master; git push then I get an error about the feature branch not being able to ff..but I just want git to forget about the remote branch. I tried deleting the remote branch but it still wont let me push from master to origin master | 19:55 |
| ← quazi_farhan left | 19:55 |
|
CareBear\
| PointMan : git push remote :branchtodelete | 19:55 |
|
Arrowmaster
| or git push remote --delete branchtodelete | 19:56 |
| ← codyrobbins left | 19:56 |
| ← radarek left | 19:56 |
|
cocoadaemon
| probably not, it might be the problem. As i said, I understand it only contains the "abstract" and no files. What I wonder is : when you push to a bare repository, in which form does it recorded what's been pushed? Hash only ? file too? | 19:56 |
| ← Slush- left | 19:57 |
| ← letas left | 19:57 |
|
Arrowmaster
| cocoadaemon: a bare repo and the contents of the .git directory in a normal non-bare repo are the same, the bare repo just lacks the working copy | 19:57 |
|
PointMan
| CareBear, Arrowmaster thanks :) | 19:58 |
| → sylr joined | 19:58 |
| → t_b joined | 19:58 |
|
Arrowmaster
| cocoadaemon: since you arent supposed to push into a non-bare repo, the page i linked uses a hook in a bare repo to update a directory with what would normally be the working tree | 19:58 |
|
cocoadaemon
| Arrowmaster: got that. bare <-> copy ".git" and F... the rest right ? | 19:59 |
|
Arrowmaster
| well its a little bit more than just that but yeah | 19:59 |
|
cocoadaemon
| so yeah, that's the tough part. What happens when you push to a bare repo. | 20:00 |
| ← t_b left | 20:00 |
|
cocoadaemon
| I guess my "moderation process" is a remain of svn and has nothing to do with git | 20:01 |
| → qwester joined | 20:01 |
|
mattalexx
| How to I clear out a git init altogether? | 20:01 |
|
jast
| remove .git | 20:02 |
|
| there, all traces of anything git has ever done are gone | 20:02 |
|
cocoadaemon
| what I don't understand in this case is "how is it safer to have people work on the bare repo if you insta push to the master ?" | 20:02 |
|
mattalexx
| jast, thx, that's great | 20:02 |
|
jast
| along with any history you might have | 20:02 |
| ← sylr left | 20:03 |
|
CareBear\
| cocoadaemon : don't push to a repo with a work tree | 20:03 |
|
| cocoadaemon : git may not even let you | 20:03 |
|
steven
| i just realized that the algorithm to generate a tree from the index isnt as trivial as i thought it would be | 20:04 |
|
| considering the index stores files as a flat array with relative pathnames instead of as a tree | 20:04 |
|
cocoadaemon
| CareBear\: So it's necessary to have the "pushable" part of the project as a --bare repo ? | 20:05 |
|
CareBear\
| right | 20:05 |
|
cocoadaemon
| So this bare concept is something one need to understand right indeed. | 20:05 |
| ← superdmp left | 20:06 |
| → eletuchy joined | 20:06 |
|
CareBear\
| a bare repo is the .git dir of a repo with work tree | 20:06 |
|
| and a config change | 20:06 |
|
steven
| config change? | 20:06 |
|
| CareBear\\: what do you mean by that? | 20:06 |
|
CareBear\
| core.bare=true | 20:06 |
|
steven
| oh. thats it? | 20:06 |
|
CareBear\
| I believe so | 20:07 |
|
steven
| cool. sounds useful as remote repos | 20:07 |
|
| (since theres no working tree) | 20:07 |
|
CareBear\
| right | 20:07 |
| → OOPMan joined | 20:07 |
| → owst joined | 20:08 |
|
cocoadaemon
| and no files ? So you cannot say " okay, let's have this Hub act as a filter which I'll use to verify commits before pushing to Prime" | 20:08 |
|
steven
| is that how a repo knows if it is a "remote" repo or not? or can any repo (even a non-bare one) be a "remote" in a push/pull operation? | 20:08 |
| → nibblebot joined | 20:08 |
| → Dr4g joined | 20:08 |
|
CareBear\
| cocoadaemon : correct, you can not | 20:09 |
|
| cocoadaemon : if you need that gateway you will have to place it before hub | 20:09 |
| ← Dr4g left | 20:09 |
| → Dr4g joined | 20:09 |
|
CareBear\
| steven : any can be remote | 20:09 |
|
steven
| ah. cool. | 20:09 |
|
CareBear\
| steven : remote is a property of a repository reference in a repository | 20:09 |
|
Dr4g
| Trying to use github on FreeBSD. I've installed git via ports, but this page shows me errornous stuff | 20:09 |
|
| http://help.github.com/linux-set-up-git/ | 20:09 |
|
CareBear\
| a repo is a repo is a repo :) | 20:09 |
|
cocoadaemon
| Somehow, if you want to "filter" commits you need 4 repos : Dev server ( 1. bare + 2. working tree ) + Prod server ( 3. bare + 4. working tree ) | 20:09 |
|
| so peons commit to 1, which passes files to 2. Manager then tests, validates, pushes to 3 which passes to 4 ? | 20:10 |
|
CareBear\
| cocoadaemon : you can skip 4. if only one person will ever push to 3. | 20:10 |
|
cocoadaemon
| but you need a working tree at the end??! | 20:11 |
|
CareBear\
| cocoadaemon : also, 2. is more likely to be on manager workstation than on dev server | 20:11 |
|
steven
| i kinda wonder what happens if i try to co origin/master and make changes. | 20:11 |
| → nurey joined | 20:11 |
|
CareBear\
| cocoadaemon : no, you can do what the ams-page describes and only do a GIT_WORK_TREE=public_html git checkout -f in the post-receive hook in 3. | 20:11 |
| ← PointMan left | 20:12 |
|
CareBear\
| steven : try it! | 20:12 |
| ← yairgo left | 20:12 |
|
CareBear\
| :) | 20:12 |
|
bremner
| Dr4g: you'll either need to be more specific, or ask on #github | 20:12 |
| → letas joined | 20:12 |
| → linusoleander joined | 20:12 |
|
cocoadaemon
| Darn. You lost me. | 20:12 |
|
| #8 Git is easy. My A// | 20:12 |
|
| ;) | 20:13 |
|
CareBear\
| cocoadaemon : git is easy to use, but the workflows are much more powerful therefor more complicated | 20:13 |
|
| +e | 20:13 |
|
cocoadaemon
| yeah, not blaming, git is great. As a user, not a manager :) | 20:13 |
|
steven
| ooooh i get it, git status is slow on large repos because it has to build an entire tree object out of the working tree, right? | 20:14 |
| → Slush- joined | 20:14 |
|
cocoadaemon
| ( kidding. Git is also a steaming pile of shit for users too ) | 20:14 |
|
CareBear\
| also manager; you are *able* to set up things that would be nowhere nearly as easy with other tools :) | 20:14 |
| → Zephyrus joined | 20:14 |
| ← qwester left | 20:14 |
|
cocoadaemon
| ( or isn't it what the doc says ? :=D ) | 20:14 |
| → mrq1 joined | 20:14 |
|
Dr4g
| thanks bremner | 20:15 |
| → qwester joined | 20:15 |
|
CareBear\
| cocoadaemon : peons have local repos where they commit. they push into a bare repo 1. on a development server. manager pulls from 1. into her local repo with work tree (could be considered your 2. above) | 20:15 |
|
cocoadaemon
| So you say one needs only these : {public access}( 1. bare + 2. working tree ) + {resticted access} ( 3. bare[with stuff I don't get yet] ) | 20:16 |
|
CareBear\
| cocoadaemon : when manager has approved and/or massaged commits in 2. they get pushed to a bare repo on the production server 3. where three is a post-receive hook with read old new ref; GIT_WORK_TREE=/var/www/server/htdocs exec git checkout -f "${ref}" | 20:16 |
| → artefon joined | 20:17 |
|
cocoadaemon
| mmm... I need to slowly digest that CareBear\ :) | 20:17 |
|
PabloM
| cocoadaemon, or you could just use Gerrit, which has access control built in | 20:18 |
| ← excess^ left | 20:18 |
| ← thiago__ left | 20:18 |
| → excess^ joined | 20:18 |
|
cocoadaemon
| PabloM: Gitosis too? Yeah I know, just trying to figure out how the manual gearbox works, you know ;) | 20:19 |
| → mmw joined | 20:19 |
| ← saschpe_ left | 20:19 |
|
cocoadaemon
| CareBear\: so when a peon pushes to bare repo 1. what is kept from their commission(?) : file ? or hash ? | 20:20 |
|
CareBear\
| cocoadaemon : come again? | 20:20 |
|
| cocoadaemon : they create a commit in their local repo. | 20:20 |
|
| cocoadaemon : that commit then travels into 1. as-is | 20:21 |
|
cocoadaemon
| let's take a very simple example. peon creates a text file, adds it, commit it to 1. | 20:21 |
|
CareBear\
| no | 20:21 |
| → rseifert joined | 20:21 |
|
CareBear\
| they push into 1. | 20:21 |
|
cocoadaemon
| right, sorry | 20:21 |
|
CareBear\
| they commit locally | 20:21 |
|
| :9 | 20:21 |
|
| :) | 20:21 |
|
cocoadaemon
| the commit locally, push to 1. | 20:21 |
| → kpreid joined | 20:21 |
|
CareBear\
| yep! | 20:21 |
| → koltroll joined | 20:21 |
|
cbreak
| that's the only kind of commit that exists... | 20:21 |
|
cocoadaemon
| ^the^they | 20:21 |
|
cbreak
| local one :) | 20:21 |
|
CareBear\
| cbreak : aye | 20:21 |
|
cocoadaemon
| exactly. | 20:22 |
|
CareBear\
| cocoadaemon : the manager would then do git pull in her work tree | 20:22 |
|
cocoadaemon
| Let's take a very simple example. peon creates a text file, adds it, commit it, pushes the commit to 1. | 20:22 |
|
| how is the textfile kept on 1. ? | 20:22 |
|
cbreak
| same as on the source | 20:22 |
|
cocoadaemon
| is it a file ? only a hash ? | 20:23 |
|
cbreak
| it's stored in git's database | 20:23 |
|
CareBear\
| cbreak++ | 20:23 |
|
mrq1
| hi :) a question about "git add -p" patch mode. if the changed lines are something like more than 10 lines apart they are recognized as a different hunk. is there a config option for this number? i need every changed line as a different hunk. | 20:23 |
|
cbreak
| that means there is either a blob in .git/objects | 20:23 |
|
CareBear\
| cocoadaemon : git stores the commit (ie. all added lines in the file) in it's database | 20:23 |
|
cbreak
| or there's a blob in a pack file | 20:23 |
|
| git stores content of files | 20:23 |
|
| NOT diffs | 20:23 |
|
| NOT added lines, but the complete new files | 20:23 |
|
CareBear\
| true | 20:23 |
|
cbreak
| http://eagain.net/articles/git-for-computer-scientists/ | 20:24 |
|
CareBear\
| the blobs | 20:24 |
|
cocoadaemon
| cbreak: that's what I understood so far. Which I assumed makes it better for binary storage ? | 20:24 |
|
cbreak
| when you push, you push over the blob, the tree that points to the blob, the commit that points to the tree | 20:24 |
| → eijk_ joined | 20:24 |
|
cbreak
| and the commits the commit points to | 20:24 |
|
| cocoadaemon: binary storage? | 20:24 |
|
CareBear\
| cbreak EMUCHDETAIL | 20:24 |
|
| possibly not useful :9 | 20:25 |
|
| :) | 20:25 |
|
cocoadaemon
| hey, actually it made sense. | 20:25 |
|
CareBear\
| okey! | 20:25 |
|
cbreak
| just look at the link above | 20:25 |
|
| it's easy to understand | 20:25 |
|
| ... if you're a computer scientist :D | 20:25 |
|
cocoadaemon
| binary : SVN was bad at storing non-text files | 20:25 |
|
CareBear\
| though not completely neccessary to understand | 20:25 |
|
cbreak
| git's bad too | 20:25 |
|
cocoadaemon
| since it uses only diff | 20:25 |
|
bremner
| zlib's bad | 20:26 |
|
cbreak
| if you change one bit in a file, git stores the complete file again | 20:26 |
| → radarek joined | 20:26 |
|
cbreak
| that's kind of bad for big binary files | 20:26 |
|
| repack might be able to deal with it | 20:26 |
|
| ... but it'll be slow and use a lot of memory | 20:26 |
|
| you should not use git to version control big and often changing binary files | 20:26 |
|
cocoadaemon
| I see. | 20:26 |
|
| each system comes with its own downsides. | 20:27 |
|
bremner
| s/use git to// | 20:27 |
|
CareBear\
| cocoadaemon : back to the example? | 20:27 |
|
cocoadaemon
| yeah. | 20:27 |
|
cbreak
| bremner: I heard a talk from the pixar guys from the main office, they use perforce for their version control | 20:27 |
|
| they store the scenes, the models, assets, and so on | 20:27 |
|
cocoadaemon
| so the answer to my question is : 1. contains a blob of the text file that the user sent. | 20:28 |
| ← eijk left | 20:28 |
|
cbreak
| not sure how good it is though | 20:28 |
|
| but I bet it's better than not having backups :) | 20:28 |
|
bremner
| cbreak: yeah, I imaging pixar just buys more disk | 20:28 |
|
cocoadaemon
| and also, ultimately the .git directory might be 10 times larger than the working tree | 20:28 |
|
cbreak
| depends | 20:29 |
| ← blindingdawn left | 20:29 |
|
cocoadaemon
| so technically, a bare repo isn't as "lightweight" as I thought it was | 20:29 |
| → PointMan joined | 20:29 |
|
CareBear\
| not at all | 20:29 |
|
cbreak
| it saves a working copy | 20:29 |
|
| nothing more | 20:29 |
|
CareBear\
| the only difference is that it has no work tree | 20:29 |
| ← Titosemi left | 20:30 |
|
cocoadaemon
| so if each file was changed 10 times, it saves approx. 10% (files size being equal) | 20:30 |
|
cbreak
| bremner: as far as I remember, in an other stage of the process, they use folders with versions of the models | 20:30 |
| → sagsousuke joined | 20:30 |
|
cbreak
| bremner: and a symlink pointing to the newest approved version | 20:30 |
| ← alberto left | 20:30 |
|
cbreak
| all models and so on have to be approved from some leader guy before it can be used downstream | 20:30 |
|
cocoadaemon
| cbreak: interesting | 20:31 |
|
cbreak
| so it's kind of a manual full copy scheme | 20:31 |
| → shelhamer joined | 20:31 |
|
cbreak
| I doubt storage is a limitation for them though :D | 20:31 |
| → linusoleander_ joined | 20:31 |
| → synisma joined | 20:31 |
| ← linusoleander left | 20:32 |
| linusoleander_ → linusoleander | 20:32 |
|
cocoadaemon
| ok so the whole bare repo / working tree is starting to make sense for me thanks to you folks | 20:32 |
| → whaley joined | 20:32 |
| ← bindaas left | 20:32 |
|
cbreak
| bare repos are there so you can push to them | 20:32 |
|
cocoadaemon
| what I need to investigate is the final step explained by CareBear\ | 20:32 |
|
cbreak
| you can not reasonably push to repositories with working directories, for various reasons | 20:33 |
|
| they are for exchange | 20:33 |
|
cocoadaemon
| I don't understand why yet, but I will | 20:33 |
|
cbreak
| repositories with working dir are for working :) | 20:33 |
| → _psychic_ joined | 20:33 |
|
cocoadaemon
| let's say I keep that as a motto :) | 20:33 |
| ← sagsousuke left | 20:34 |
| ← dannas left | 20:35 |
| → avdg1 joined | 20:35 |
| ← jhoepken left | 20:36 |
| → jhoepken_ joined | 20:36 |
|
cocoadaemon
| CareBear\: GIT_WORK_TREE somehow means "Wherever you (bare repo) may be stored on the disk, use this location as a working dir" | 20:36 |
| ← T-Pup left | 20:36 |
| ← avdg left | 20:36 |
| ← Tv left | 20:36 |
| ← PointMan left | 20:38 |
| → sagsousuke joined | 20:38 |
|
CareBear\
| cocoadaemon : correct! | 20:38 |
| → _nil joined | 20:39 |
| ← matjas left | 20:39 |
|
_nil
| hi, i wnat to write a plugin for git | 20:39 |
|
| is this possible? | 20:40 |
|
thiago_home
| what would this plugin do? | 20:40 |
|
_nil
| thiago_home: it would upload code reviews to google rietveld servers | 20:40 |
| ← sebersole left | 20:40 |
|
thiago_home
| so an extra command? | 20:40 |
|
_nil
| well several | 20:40 |
|
thiago_home
| just do them | 20:41 |
| → mando joined | 20:41 |
|
thiago_home
| name them git-commad1, git-command2, etc. | 20:41 |
|
| you can run as "git command1" | 20:41 |
| → sebersole joined | 20:41 |
|
_nil
| thiago_home: i'm not sure how it would integrate | 20:41 |
|
| i've worked with mercurial plugins | 20:42 |
| → anjen joined | 20:42 |
|
_nil
| basically are their git plugins | 20:42 |
|
| there* | 20:42 |
| ← joel_falcou left | 20:42 |
|
thiago_home
| it doesn't need integration | 20:42 |
|
| they are just extra commands | 20:42 |
|
_nil
| ok i don't get the difference :) | 20:42 |
|
| thiago_home has a script that pastes the named commits to pastebin.com | 20:42 |
|
_nil
| can you explain a bit? | 20:42 |
|
thiago_home
| not really | 20:43 |
|
| you have a script that does stuff | 20:43 |
|
| period. That's it. | 20:43 |
|
_nil
| that's not a part of git though | 20:43 |
|
| that's an external wrapper | 20:43 |
| ← sagsousuke left | 20:43 |
|
IslandUsurper
| git commands are only related in that they know where to look for files (as I understand it) | 20:43 |
| → logickal joined | 20:43 |
|
thiago_home
| sure | 20:44 |
|
| why do you need something to be part of Git? | 20:44 |
| ← amh345 left | 20:44 |
| ← Laggg left | 20:45 |
| → avdg joined | 20:45 |
| → panike joined | 20:46 |
|
_nil
| thiago_home: you're just asking me questions back | 20:46 |
|
thiago_home
| yes | 20:47 |
|
_nil
| i just want to know if git has a plugin infrastructure | 20:47 |
|
| that's all | 20:47 |
| ← excess^ left | 20:47 |
|
thiago_home
| no, there is no plugin interface | 20:47 |
|
_nil
| i can't seem to find a reliable stource | 20:47 |
|
| ok | 20:47 |
|
cbreak
| git is a plugin infrastructure | 20:47 |
|
thiago_home
| I'm asking you what kind of information you're expecting from the plugin | 20:47 |
|
cbreak
| it consists of dozens of tiny plumbing and porcelain tools | 20:47 |
|
| systemaddict is also a plugin infrastructure | 20:47 |
| → excess^ joined | 20:47 |
| ← avdg1 left | 20:47 |
| ← excess^ left | 20:47 |
| ← linusoleander left | 20:47 |
|
_nil
| thiago_home: the plugin will enable me to interact with reitveld and then do git commands accordingly | 20:48 |
|
| i.e. | 20:48 |
| → yairgo joined | 20:48 |
|
_nil
| git p <pending> | 20:48 |
| ← skoop left | 20:48 |
|
_nil
| will show me my open / pending changes | 20:48 |
|
| git submit <change> will commit a change | 20:48 |
|
cbreak
| how will a plugin infrastructure enable that? | 20:48 |
| ← Guest41220 left | 20:48 |
| ← goshawk left | 20:48 |
|
_nil
| see mercurial codereview plugin | 20:48 |
|
| i'm trying to replicate that on git | 20:48 |
|
| though it seems not possible | 20:49 |
|
cbreak
| just put a new git-submit program into /usr/local/libexec/git-core/... | 20:49 |
|
thiago_home
| _nil: just name your program "git-p" and put it somewhere in $PATH | 20:49 |
|
| that's enough | 20:49 |
|
cbreak
| the path I wrote above is used by git itself | 20:50 |
|
| so it might or might not be a good idea to use it | 20:50 |
|
| thiago_home has $HOME/bin/git-pastebin | 20:51 |
|
thiago_home
| I can run it with "git pastebin" | 20:51 |
|
_nil
| ok well i'll figure sth out | 20:51 |
|
| thanks for your suggestions | 20:51 |
| ← abhaythehero left | 20:51 |
| ← nona left | 20:51 |
| ← sftp_ left | 20:52 |
| ← eletuchy left | 20:54 |
| ← drubies|mbp left | 20:54 |
| → irc2samus_ joined | 20:55 |
| ← guardian left | 20:55 |
| → tewecske joined | 20:55 |
| → guardian joined | 20:55 |
| ← Zephyrus left | 20:56 |
| → eletuchy joined | 20:56 |
| ← jhoepken_ left | 20:56 |
| → khmarbaise joined | 20:57 |
| ← irc2samus left | 20:57 |
| irc2samus_ → irc2samus | 20:57 |
| → bronson joined | 20:59 |
| → linusoleander joined | 21:00 |
| ← khmarbaise left | 21:01 |
| ← LongBeach left | 21:02 |
| ← koltroll left | 21:05 |
| ← IslandUsurper left | 21:05 |
| ← tizzo left | 21:05 |
| ← lostincake2 left | 21:07 |
| → sftp joined | 21:08 |
| → EricInBNE joined | 21:09 |
| ← HG` left | 21:10 |
| ← jophish left | 21:11 |
|
steven
| is it possible for two different objects to accidentall have the same sha1 hash? | 21:11 |
| ← erichammond left | 21:11 |
| ← varioust left | 21:11 |
|
mmattice
| highly improbable, but sure | 21:11 |
|
cbreak
| if you find a collision, maybe you get a prize from linus | 21:12 |
| ← tewecske left | 21:12 |
|
steven
| has anyone found one yet? | 21:12 |
| ← eijk_ left | 21:12 |
| ← Nickeeh left | 21:14 |
|
CareBear\
| http://eprint.iacr.org/2008/469.pdf | 21:14 |
|
steven
| sweet | 21:16 |
| → hakunin joined | 21:16 |
| ← icwiener left | 21:17 |
|
hakunin
| Anybody knows git? | 21:17 |
|
| Just kidding | 21:17 |
|
| My colleague used to forget to set his creds in gitconfig | 21:17 |
|
| now he has like 10 different users in git history all being himself | 21:17 |
|
| wondering if there's any way to consolidate | 21:17 |
| → Mark_Morcom joined | 21:17 |
|
PerlJam
| hakunin: sure ... it just requires that you rewrite history | 21:17 |
|
SethRobertson
| git filter-branch if he really has to, but it changes history and forces everyone else to be annoyed | 21:17 |
|
| Assuming he has pushed | 21:17 |
| → sraue_ joined | 21:18 |
| → Nickeeh joined | 21:18 |
|
hakunin
| yeah rewriting history isn't good, not sure if this type of problem justifies it | 21:18 |
| ← sraue left | 21:19 |
|
hakunin
| PerlJam: SethRobertson: so if i have remote tracking branches with a few people participating, what happens when they attempt to pull after such a change? | 21:19 |
| ← Nickeeh left | 21:20 |
|
CareBear\
| they must pull -f | 21:20 |
| → Nickeeh joined | 21:20 |
|
CareBear\
| and they would need to rebase manually | 21:20 |
|
| if they have local changes | 21:20 |
|
PerlJam
| hakunin: All those things CareBear\ is saying and probably more. | 21:21 |
|
| hakunin: for instance, did they have any tags? | 21:21 |
|
SethRobertson
| They should `git pull --rebase` actually | 21:21 |
|
hakunin
| not locally, all tags are shared | 21:21 |
|
| we normally pull --rebase around here, so that wouldn't be too new, but i see... | 21:21 |
|
SethRobertson
| If they have local tags they are messed up. Global tags should be updated during the filter-branch (common error) | 21:21 |
|
CareBear\
| hakunin : the tags are all bogus too then | 21:21 |
|
PerlJam
| hakunin: also, once they've pulled forcefully, they'll have bunches of dangling commits in their repo that they'll need to clean. | 21:22 |
| ← kenichi left | 21:22 |
| ← Nickeeh left | 21:22 |
|
CareBear\
| big fun yes! | 21:22 |
|
hakunin
| great | 21:22 |
| ← mmw left | 21:22 |
|
PerlJam
| hakunin: but it might be worth it to go through the pain *once* | 21:23 |
|
CareBear\
| whatperljam said | 21:23 |
| ← liquidproof left | 21:23 |
| → jds joined | 21:23 |
|
homa_rano
| is there some way I could run git-diff-{index,tree} against an empty repository? as in show all existed files as added? | 21:23 |
| → k0ral joined | 21:23 |
|
hakunin
| well, i thought it'd be something like this. i really only have 3 people on this, one of which only comes in like once-twice a year. so maybe if we're side by side in office i could do this with the colleague. | 21:24 |
| ← yairgo left | 21:24 |
|
CareBear\
| then hit messy guy over head | 21:24 |
|
| with suitable inflatable hammer or so :) | 21:24 |
| ← kumbayo left | 21:24 |
| → eijk_ joined | 21:24 |
|
hakunin
| already did a bit more. created shared dotfiles and made him use my setup with his configs | 21:25 |
| → vitalius joined | 21:25 |
|
CareBear\
| or install a gatekeeper | 21:25 |
| → Nickeeh joined | 21:25 |
|
CareBear\
| ie have actual review ;) | 21:25 |
| ← rseifert left | 21:25 |
|
hakunin
| he's a frontend dev, so never focused on setting up local dotfiles/configs much | 21:25 |
|
vitalius
| why would gitosis ask for password when the id_rsa.pub was used? I heard it may be not random enough, is that true? | 21:25 |
|
PerlJam
| you could have a hook that verifies user information | 21:25 |
|
| vitalius: 1) use gitolite instead of gitosis | 21:26 |
|
k0ral
| hello, if I'd like to share a subset of a git repository, not all files, what is the simpler way to do it ? | 21:26 |
|
CareBear\
| vitalius : if your private ssh key was generated on a debian system with the openssl that had no randomness then yes ssh might reject it | 21:26 |
|
PerlJam
| vitalius: 2) it would ask for a password when the pub doesn't match up with what it thinks is valid. | 21:26 |
|
hakunin
| that's a nice idea, though since it's just 2 of us — a slip like this needs only to be fixed once, he now learned to care for that stuff | 21:26 |
| ← gretch left | 21:27 |
|
hakunin
| PerlJam: ^^ | 21:27 |
|
CareBear\
| hakunin : except you said it went wrong 10 times | 21:27 |
|
| I would expect such a user to be incapable of reliably following protocol | 21:27 |
|
| ever | 21:27 |
|
hakunin
| CareBear\: more like: he never had hard-configed creds, so he has 10 different names bcause he took laptop into multiple networks where it populated name@host for him automatically, with different host | 21:27 |
|
CareBear\
| aha | 21:28 |
|
vitalius
| hmm i tried generating keys on mac, same story. How would I check if hook verifies user information? | 21:28 |
|
CareBear\
| hakunin : then hopefully it'll stick! :) | 21:28 |
|
k0ral
| anyone noticed my question at least ? :) | 21:28 |
|
hakunin
| we'll hope so : ) | 21:28 |
| ← Dave^| left | 21:28 |
|
CareBear\
| k0ral : sure | 21:29 |
|
hakunin
| CareBear\: PerlJam: SethRobertson: thanks, really appreciate it | 21:29 |
|
steven
| hehehe, you can commit in the future with --date :D | 21:29 |
| → erichammond joined | 21:29 |
|
steven
| i wonder if github gets confused when it sees future-dated commits | 21:30 |
| ← eijk_ left | 21:30 |
| → eijk_ joined | 21:30 |
|
avdg
| I think github just wouldn't care about it | 21:32 |
| ← eletuchy left | 21:33 |
|
steven
| obviously git doesnt care either :) | 21:34 |
| → eletuchy joined | 21:34 |
| ← hobodave_ left | 21:35 |
| ← dkasak left | 21:36 |
| ← ericbarnes left | 21:36 |
| → dkasak joined | 21:36 |
| ← dajhorn left | 21:37 |
| ← ExtraSpice left | 21:37 |
| → Tv joined | 21:37 |
| ← jstemmer left | 21:37 |
|
jds
| I'm in the middle of a merge, but kinda made a mess of a file | 21:38 |
|
| can I reset that specific file and start again? | 21:38 |
| → foocraft joined | 21:38 |
|
thiago_home
| reset to conflicted-merge state? | 21:38 |
| ← rayners left | 21:38 |
| → rorist joined | 21:39 |
| ← TrineLocke left | 21:41 |
| ← vitor-br left | 21:41 |
| → sdboyer joined | 21:42 |
| ← artefon left | 21:44 |
| → thiago__ joined | 21:44 |
| ← mrq1 left | 21:44 |
| → ereslibre joined | 21:44 |
| ← ereslibre left | 21:44 |
| → ereslibre joined | 21:44 |
|
k0ral
| not even an idea of how one could share only a subset of his repository ? | 21:44 |
| → verto joined | 21:44 |
|
mattly
| is there a way to retrieve a stash after I dropped it? They don't seem to stay in the reflog :/ | 21:45 |
| → workmad3 joined | 21:46 |
| ← PabloM left | 21:47 |
| → vitor-br joined | 21:47 |
| ← mrevd left | 21:48 |
| → pedrobelo joined | 21:48 |
|
thiago_home
| mattly: stash uses the reflog | 21:48 |
|
| mattly: once you drop it, it is removed from the reflog | 21:48 |
|
mattly
| thiago_home: gotcha, thanks | 21:48 |
| ← airborn left | 21:48 |
|
thiago_home
| mattly: there's no reflog of the reflog | 21:48 |
|
mattly
| :/ | 21:48 |
|
amerine
| mattly: Yeah | 21:49 |
|
mattly
| I should probably spend an hour or so reading up on the stash docs before using it more heavily | 21:49 |
| ← ShooterMG left | 21:49 |
| ← booginga left | 21:51 |
| ← workmad3 left | 21:51 |
| ← ThomasLocke left | 21:53 |
| ← paja left | 21:54 |
| → xiong joined | 21:56 |
| → mrevd joined | 21:56 |
| ← bartek left | 21:56 |
| ← vitor-br left | 21:56 |
| ← cocoadaemon left | 21:56 |
|
jds
| thiago_home: Yeah, reset that 1 file to where it was immediately after 'git merge', but before I started screwing around with my mergetool | 21:57 |
| → paja joined | 21:57 |
| → warlock_mza joined | 21:57 |
| → uncaught_excepti joined | 21:57 |
| → drubies|mbp joined | 21:58 |
| ← nurey left | 21:58 |
| → sylr joined | 21:58 |
| ← uncaught_excepti left | 21:58 |
|
CarlFK
| I made about 50 changes accross 17 files. 40 of the changes I want to keep, the rest dump. (yeah, on the fly hacking to make it work) | 21:58 |
|
| my thought is to git diff >foo, vim foo, remove the stuff I don't want, then patch a fresh checkout. | 21:58 |
| → uncaught_excepti joined | 21:59 |
|
CarlFK
| is there a more git foo way of doing this? | 21:59 |
| ← ereslibre left | 21:59 |
| ← robert_david left | 22:00 |
|
cbreak
| CarlFK: git checkout -p | 22:01 |
| → vitor-br joined | 22:01 |
|
cbreak
| answer yes if you want to remove the thing (and check out the staged version instead) | 22:01 |
|
CarlFK
| plan B: diff>foo, commit everything, use foo to track down the changes I didn't want comited and undo them by hand (those are trivial, like using a hardcoded value instead of reading from a .conf | 22:01 |
| ← k0ral left | 22:01 |
| ← DR01D5 left | 22:01 |
|
cbreak
| no if you want to keep it | 22:01 |
|
| or git add -p, and only add to the staging area what you want to commit | 22:01 |
|
| leave the rest uncommitted | 22:01 |
| ← uncaught_excepti left | 22:01 |
| → diegoviola joined | 22:02 |
|
CarlFK
| cbreak: is 'thing' a whole file or diff chunks ? | 22:02 |
|
cbreak
| the latter | 22:02 |
|
| try it out | 22:02 |
|
CarlFK
| awesome | 22:02 |
| ← sylr left | 22:02 |
| ← q0rban left | 22:05 |
| ← vitor-br left | 22:06 |
|
cbreak
| isn't it cool? :) | 22:06 |
| → sketchyd joined | 22:06 |
| ← thiago__ left | 22:06 |
|
CarlFK
| beyond cool | 22:07 |
| ← guardian left | 22:07 |
|
cbreak
| add -p is a special case of add -i | 22:07 |
| ← paja left | 22:07 |
|
cbreak
| take a look at that too if you want | 22:07 |
|
CarlFK
| Discard this hunk from worktree [y,n,q,a,d,/,j,J,g,e,?]? too many options! :) | 22:08 |
| ← Mark_Morcom left | 22:08 |
|
cbreak
| try e | 22:08 |
| ← sebersole left | 22:08 |
|
cbreak
| for edit :) | 22:09 |
|
| s is split | 22:09 |
|
CarlFK
| nuh uh... | 22:09 |
|
cbreak
| or just try ? and it'll tell you | 22:09 |
| ← Cap_J_L_Picard left | 22:09 |
|
CarlFK
| impossible! | 22:09 |
|
| edit.. that's just too crazy useful | 22:09 |
| ← drubies|mbp left | 22:09 |
| → vitor-br joined | 22:09 |
|
cbreak
| if you use git add -p, don't forget to do a diff --cached and diff afterwards to check if what you wanted to happen really did :) | 22:10 |
| → judaz joined | 22:10 |
|
judaz
| hey... a question | 22:10 |
|
| git clone -b [branch] [repo] [directory] | 22:10 |
|
| does a clone of a branch of repo in directory? | 22:10 |
|
CarlFK
| cbreak: I can't handle the options :) | 22:11 |
| → ereslibre joined | 22:11 |
| ← ereslibre left | 22:11 |
| → ereslibre joined | 22:11 |
| ← alesan left | 22:11 |
|
CarlFK
| Split into 2 hunks. - omg, it did what I want. | 22:11 |
| ← empity left | 22:14 |
| ← f00li5h left | 22:14 |
| ← synisma left | 22:15 |
| → Cap_J_L_Picard joined | 22:15 |
| ← dpino left | 22:16 |
| → sylr joined | 22:16 |
| ← LiamH left | 22:16 |
| → rideh joined | 22:16 |
| ← xerora left | 22:18 |
| ← lessthanzero left | 22:18 |
| ← Swimming_bird left | 22:19 |
| ← SethRobertson left | 22:19 |
| ← rorist left | 22:19 |
| → SethRobertson joined | 22:20 |
| ← sylr left | 22:20 |
| → sylr joined | 22:21 |
| ← dv310p3r left | 22:21 |
| → f00li5h joined | 22:22 |
| ← bdiu left | 22:23 |
| → nurey joined | 22:23 |
| → sako joined | 22:25 |
| → marciodias joined | 22:25 |
| ← spaceonline left | 22:25 |
| → dajhorn joined | 22:25 |
| → Swimming_bird joined | 22:26 |
| ← sylr left | 22:26 |
|
sako
| hey guys, i know theres many ways to do this.. what is the best way to revert an entire git repo to a certain commit? | 22:26 |
|
| still not so great with altering history :? | 22:26 |
|
| :/ | 22:26 |
|
teuf
| you can use git reset --hard but this alters the history | 22:27 |
|
sako
| i dont mind losing everything | 22:27 |
|
teuf
| you can use git checkout SHA1 -- .; git commit | 22:27 |
|
sako
| that came after this commit | 22:27 |
| ← Nemesis13 left | 22:27 |
|
teuf
| and this will create a new commit resetting the repo to the old state | 22:27 |
|
| sako: are other people using your repository ? | 22:27 |
|
sako
| actually id prefer to lose everything that came after :P | 22:27 |
|
| no | 22:27 |
|
teuf
| ok, so git reset --hard then | 22:28 |
| ← opalka left | 22:28 |
|
sako
| o just git reset --hard sha1/ | 22:28 |
|
| ? | 22:28 |
|
teuf
| yep | 22:28 |
|
| unless you have uncommitted changes in your working dire | 22:28 |
| ← ph^ left | 22:30 |
| → paja joined | 22:32 |
| ← irc2samus left | 22:32 |
| → PabloM joined | 22:33 |
| ← dyer left | 22:33 |
| → \monster\ joined | 22:33 |
|
\monster\
| hey guys, whats the proper way to undo last commit, I commited the wrong file ..I currently have uncommited changes in current branch and don't want to lose anything, I just want to undo the last one | 22:34 |
| ← nurey left | 22:35 |
|
teuf
| \monster\: git reset HEAD^ | 22:35 |
| ← nibblebot left | 22:35 |
|
CareBear\
| \monster\ : or use git commit --amend to replace the previous commit with some new changes | 22:35 |
| → Zenith77 joined | 22:35 |
|
\monster\
| hmm | 22:36 |
| ← jutaro1 left | 22:36 |
| ← rideh left | 22:36 |
|
\monster\
| reset HEAD^ will only undo the last commit, it won't touch anything in current branch thats uncommited? | 22:37 |
|
teuf
| \monster\: yes | 22:37 |
|
| \monster\: if you are worried, do a git diff HEAD^ >backup.diff | 22:37 |
|
\monster\
| oki | 22:37 |
| ← sdboyer left | 22:37 |
|
sako
| teuf: after i do the reset --hard i have to force push it? | 22:38 |
|
teuf
| sako: you changed history using reset --hard, so you can't push unless you use --force | 22:38 |
|
sako
| i see .. | 22:38 |
|
| k thanks :) | 22:38 |
| ← thiago_home left | 22:39 |
| → superdmp joined | 22:39 |
| ← logickal left | 22:40 |
| ← ahf left | 22:40 |
|
PuffTheMagic
| is there a way to revert multiple consecutive patches? | 22:40 |
|
| s/patches/commits/ | 22:41 |
| → sdboyer joined | 22:41 |
| → SirFunk joined | 22:42 |
|
engla
| PuffTheMagic: you can apply the reverse diff over the range of commits. or revert them one by one then squash the reverts together | 22:42 |
|
| PuffTheMagic: I wonder if git revert doesn't take multiple commits nowadays though | 22:42 |
|
CareBear\
| dragon! | 22:43 |
| ← orafu left | 22:44 |
| → tudor joined | 22:47 |
| ← Sonderblade left | 22:49 |
| → simplechat joined | 22:49 |
| ← simplechat left | 22:49 |
| → simplechat joined | 22:49 |
| ← tudor left | 22:50 |
| → project2501a joined | 22:50 |
| → angelsl joined | 22:50 |
|
neuro_damage
| is it safe to say that if there is another git project B which is a "module" to a larger project A, is it possible where project A can suck in portions or all of project B | 22:52 |
|
| just curious about how to do that in particular with git | 22:52 |
|
| I suppose that's sub-modules, I'm not too familiar with that part | 22:52 |
| ← systemaddict left | 22:53 |
|
karihre
| get familiar with it :) | 22:53 |
| ← sketchyd left | 22:53 |
| → orafu joined | 22:53 |
| → systemaddict joined | 22:53 |
| → ISF joined | 22:54 |
| → tudor joined | 22:55 |
|
bob2
| is there a way to find all the heads in a repository? | 22:56 |
| ← tudor left | 22:56 |
| ← beatak left | 22:57 |
|
bob2
| hm, fsck --lost-found maybe | 22:57 |
|
CareBear\
| including detached ones? | 22:57 |
|
PuffTheMagic
| git reset --hard a; git reset --mixed d | 22:58 |
|
| ^^ seemed to do the trick | 22:58 |
| ← jds left | 22:59 |
|
bob2
| CareBear\: yeah | 22:59 |
|
| was fiddling too much and deleted a branch and can't find it in the reflog | 23:00 |
| ← unvs left | 23:00 |
| → patmaddox joined | 23:00 |
| ← cannonball left | 23:00 |
|
bob2
| (the list of non-detached heads is just everything in refs/ right?) | 23:00 |
| ← dim_ left | 23:01 |
| → niblha joined | 23:01 |
|
steven
| guys, | 23:01 |
|
| whats the trick that git uses to display things like "git log" or "git diff" using a less-like interface? | 23:01 |
| ← boombatower left | 23:01 |
|
steven
| how does it do that? does it just shell out to `less`, if its available? | 23:01 |
| ← phantomcircuit left | 23:02 |
| → boombatower joined | 23:02 |
| ← boombatower left | 23:02 |
| → boombatower joined | 23:02 |
|
bob2
| PAGER | 23:03 |
|
| or less | 23:03 |
| ← radarek left | 23:03 |
| → Buglouse joined | 23:03 |
|
steven
| oooh. | 23:03 |
| ← eijk_ left | 23:04 |
| ← rendar left | 23:05 |
| → sunblush joined | 23:05 |
| ← Yuuhi``` left | 23:06 |
| → Yuuhi``` joined | 23:06 |
| ← _psychic_ left | 23:06 |
| → Misafir112121030 joined | 23:06 |
| ← fisted_ left | 23:06 |
| → fisted joined | 23:07 |
| ← marciodias left | 23:07 |
| → RaceCondition joined | 23:08 |
| ← tgunr left | 23:10 |
| → tizzo-afk joined | 23:10 |
| ← MikeChelen left | 23:10 |
| → varioust joined | 23:10 |
| ← kipras left | 23:11 |
| ← sdboyer left | 23:12 |
| → sdboyer joined | 23:12 |
| ← Misafir112121030 left | 23:13 |
| → seivan joined | 23:14 |
| → bdiu joined | 23:15 |
| ← giallu left | 23:16 |
| → ahf joined | 23:16 |
| ← Amorphous left | 23:17 |
| → alberto56 joined | 23:17 |
|
jayne
| why is git cat-file blob <sha1> giving me a bunch of crap instead of the file contetns? | 23:21 |
|
| ^contents | 23:21 |
| ← xiong left | 23:21 |
| → icwiener joined | 23:23 |
| ← superdmp left | 23:24 |
| ← tizzo-afk left | 23:25 |
| ← shruggar left | 23:26 |
| ← wolfe left | 23:29 |
| → tizzo-afk joined | 23:29 |
|
ayust
| is the SHA you're giving it actually a blob? | 23:30 |
| → madewokherd joined | 23:30 |
| ← panike left | 23:30 |
|
ayust
| and if it is, is it a text file blob? | 23:30 |
|
jayne
| I think I must have typoed it... I got it to work now... which leads to the next question: | 23:30 |
|
| why does git insist a file is modified, even though the working-dir contents match cat-file byte-for-byte | 23:31 |
| ← meandi left | 23:32 |
|
ayust
| git update-index --refresh | 23:32 |
| → Amorphous joined | 23:32 |
|
steven
| :) | 23:32 |
|
jayne
| it says b512: needs update | 23:32 |
|
Dr4g
| I got changes staged for commit | 23:32 |
|
| but i want to take them off | 23:33 |
|
jayne
| (doesn't status do an update-index anyway?) | 23:33 |
|
Dr4g
| how can i do that | 23:33 |
|
jayne
| Dr4g: git reset | 23:33 |
|
ayust
| jayne: status doesn't --refresh | 23:33 |
|
Dr4g
| thanks jayne | 23:33 |
| → meandi joined | 23:33 |
|
jayne
| status still thinks b512 is modified though | 23:33 |
|
| I did a git cat-file blob $sha1 > b512 (where $sha1 comes from master) | 23:34 |
|
ayust
| try just resetting it? | 23:34 |
|
| git reset HEAD b512 | 23:35 |
|
jayne
| "Unstaged changes after reset: b512" | 23:35 |
|
ayust
| k, what does git diff show then? | 23:35 |
|
steven
| are tree objects ever created when populating the index, or are they only created when creating a commit so the commit has somethign to attach to? | 23:36 |
|
jayne
| every single line in the file removed, then added back | 23:36 |
|
ayust
| jayne: line ending issues? | 23:36 |
|
jayne
| I would have thought, but cat-file should have bypassed any of that | 23:36 |
|
steven
| from what i understand, when populating the index, trees are never involved, only blobs keyed by pathnames | 23:36 |
|
| is that correct? | 23:36 |
|
ayust
| jayne: check manually? | 23:37 |
|
jayne
| Just to prove it to myself, I've swapped the line endings in the file and it still isn't happy. | 23:37 |
|
ayust
| k. encoding? | 23:37 |
|
jayne
| If I use a difftool of vim -b, it shows the line endings match | 23:37 |
|
| how would I check encoding? | 23:38 |
| ← tizzo-afk left | 23:38 |
|
ayust
| vim's statusline should have it i think | 23:38 |
|
steven
| nobody knows? | 23:38 |
|
ayust
| jayne: also, "file -i b512" should give you a charset | 23:38 |
| ← boombatower left | 23:39 |
| → dyer joined | 23:40 |
| ← dyer left | 23:40 |
| → dyer joined | 23:40 |
|
jayne
| text/plain; charset=us-ascii | 23:40 |
| → johnw joined | 23:40 |
|
ayust
| k | 23:41 |
|
| try checkout then; git checkout HEAD -- b512 | 23:42 |
| ← bdiu left | 23:42 |
| → phantomcircuit joined | 23:42 |
|
jayne
| it completes without errors, but still shows b512 modified in status | 23:43 |
| ← Chillance left | 23:43 |
| → _psychic_ joined | 23:43 |
|
ayust
| modified but unstaged? | 23:43 |
|
jayne
| yes | 23:43 |
|
ayust
| huh. | 23:44 |
| → rcu joined | 23:44 |
| → boombatower joined | 23:44 |
| ← boombatower left | 23:44 |
| → boombatower joined | 23:44 |
|
jayne
| normally that can happen with the repository has CRLF endings in it, but one of the things I've tried should have worked around that if it were the issue | 23:44 |
| → rchavik joined | 23:45 |
| → bdiu joined | 23:45 |
| ← larsl left | 23:45 |
|
ayust
| what's your eol config variable set to? | 23:45 |
|
| core.eol | 23:45 |
| ← rchavik left | 23:46 |
| → rchavik joined | 23:47 |
|
jayne
| this is v1.6.5, so it doesn't have core.eol (but it has core.autocrlf) | 23:48 |
| ← Ryback_ left | 23:48 |
| ← rchavik left | 23:48 |
|
jayne
| I've tried setting it to false, but it still behaves the same | 23:48 |
| ← rcu left | 23:48 |
| → rchavik joined | 23:49 |
| ← smolyn left | 23:49 |
|
steven
| so sad | 23:50 |
|
| maybe im on ignore.. | 23:50 |
|
jayne
| steven: or simply, nobody here knows the answer and you should try the mailing list instead | 23:50 |
| → jason237 joined | 23:50 |
|
steven
| oh. but it seems like such a simple quesiton | 23:50 |
| ← linusoleander left | 23:50 |
|
steven
| hey Tv hows it going? | 23:50 |
|
jayne
| "why do magnets work?" seems like a simple question, too | 23:50 |
| → fuzzybunny69y joined | 23:50 |
|
steven
| thats totally not analogous ;) | 23:51 |
| ← ptl left | 23:51 |
|
jayne
| whether trees are part of staging is completely outside of my experience with git, so it's at least analogous in sense that how spin generates magnetism would be outside the experience of non-scientists. | 23:53 |
| → cordoval_ joined | 23:54 |
|
steven
| oh. | 23:55 |
|
| but its not far-fetched to imagine someone here might know :) | 23:56 |
| ← sftp left | 23:56 |
|
jayne
| indeed, but perhaps you've hit an unlucky/sleepy time | 23:56 |
|
ayust
| yeah, a lot of the people who are knowledgeable about the internals don't seem to be active atm | 23:57 |
|
steven
| rats | 23:57 |
|
| well thanks anyway guys :) | 23:57 |
| ← MikhX left | 23:57 |
|
steven
| although i should have checked the git book again lol - http://book.git-scm.com/7_the_git_index.html | 23:57 |
|
| it kind of answers my question | 23:57 |
| ← d0k left | 23:57 |
| ← sako left | 23:58 |
| → Laggg joined | 23:58 |
| ← tjholowaychuk left | 23:58 |
| ← judaz left | 23:58 |
| ← bdiu left | 23:58 |
| → ptl joined | 23:59 |