IRCloggy #git 2009-01-28

Logs Search ←Prev date Next date→ Channels Documentation

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

2009-01-28

kansan how do i get the git repo info from command line?00:01
specifically address for the repo?00:01
doener s/repo/remote ?00:01
that'd be "git remote -v" or "git remote show <remote>"00:01
dsop wasn't there a special merger for ChangeLog/NEWS files somehwere?00:01
vmiklos man gitattributes:)00:02
doener dsop: .gitattributes supports a "union" merge setting00:02
jmspeex joined00:03
vmiklos you probably want the union merge driver:)00:03
doener and I think GNU had its own thing00:03
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/git-merge-changelog.c;h=524d5d34939242a658fbd989ce57cb05de2fdb03;hb=283dd26efdfbeeff672cbcb0e6811f54e032364f00:04
uuuhh... the indentation... it hurts...00:05
;-)00:05
alezandro left00:05
ebel left00:07
LiamH left00:09
EmilMedve joined00:11
CardinalNumber joined00:15
jm left00:21
matt joined00:23
matt hey guys, what webinterfaces for git are there00:23
im not too familiar00:23
CardinalNumber left00:24
matt something run locally? like this http://code.suckless.org/hg/00:24
ProperNoun left00:24
doener matt: http://git.or.cz/gitwiki/InterfacesFrontendsAndTools#head-e5a6762d6aed31c5a2034d52c1733ead46402c3100:24
matt doener: thanks00:24
kansan how do i compare a branch'ed version of one file to the one in master? also is there a gui that makes this easy? (on hardy)00:25
tav_ joined00:25
doener git diff branchA branchB -- <file>00:25
and I doubt that a gui can make that any easier...00:26
korpios left00:26
kansan fatal: bad revision "Master'00:26
doener s/M/m/00:27
generalBordeaux anybody having any insight of probable reason for git-ls-remote not working?00:27
kansan doener, ok so no diffs will happen till i actually commit something to the branch00:27
doener generalBordeaux: crystal ball is in repair00:27
kansan how do i diff against the most recent remote copy of a file00:27
doener kansan: just use the appropriate remote tracking branch as the second argument...00:28
kansan ah k00:28
doener eg. "git diff master origin/master -- some_file"00:28
nuncanada joined00:29
generalBordeaux http://git.cachevideos.com/videocache.git , git version 1.5.5.600:29
doener, ^00:30
it doesn't give any output .. not even error :(00:30
jasber joined00:31
patmaddox left00:31
doener generalBordeaux: what's the command that you use? That'd be more interesting than some gitweb00:31
generalBordeaux git ls-remote http://git.cachevideos.com/videocache.git00:31
git ls-remote http://git.cachevideos.com/videocache.git master00:31
and git ls-remote --tags http://git.cachevideos.com/videocache.git00:31
doener, ^00:32
doener well, that's the gitweb url, not the url to the repo00:32
cartucho joined00:32
troter joined00:32
tav left00:33
generalBordeaux doener, is it not supposed to be the same ... if everything is default?00:33
doener no00:33
generalBordeaux then how do i really find out the repo url ?00:33
i use ssh for pushing ...00:34
doener to that repo? Then that's one url you can also pass to ls-remote00:35
scientes joined00:36
generalBordeaux doener, that works ... but thats password locked ... how can we access it without ssh ...00:36
i mean via http or git://00:36
here i am talking about anonymous access!00:37
jeckel joined00:37
doener for git:// you'll need a git-daemon running, for http, you need the repo in a place that's served by your webserver, and you need to run "git update-server-info" after each push (for http)00:37
there's a sample hook to do the update-server-info stuff for you00:37
generalBordeaux repo is in /some/dir/videocache.git and git.cachevideos.com is rooted at /some/dir/ ...00:39
doener, awesome man!!! it works :)00:39
jwormy joined00:39
k0001 left00:40
generalBordeaux doener, you rock!! thanks a millions ... i was banging my head on this since last few hours!00:40
jwormy r0bby: lo'00:40
doener generalBordeaux: so the update-server-info was missing?00:40
generalBordeaux doener, yup :D00:40
doener generalBordeaux: a more recent (but maybe not yet released?) version would've told you to do that, when you ran the ls-remote ;-)00:40
generalBordeaux doener, anyways .. thanks again .. i need to run update-info every time i push?00:41
doener yep, otherwise, the client gets old information00:41
but as I said, there's a sample hook in the hooks/ directory00:41
generalBordeaux doener, sure ... i'll setup a cron for that ...00:41
doener you can just enable that00:42
willb left00:42
doener nah, cron is crap... you'll always have a window with outdated information00:42
just enable the hook so it's run automatically after the push00:42
generalBordeaux doener, ok00:43
whee left00:44
generalBordeaux i am enabling the post-update hook ... i think that would be safe00:44
joshdavey left00:44
doener yeah, that does nothing but the update-server-info by default00:44
PieterMobile joined00:45
generalBordeaux yeah..00:45
jwormy left00:46
mbroeker left00:46
drobbinsdrobbins|away00:46
PieterMobile left00:48
tvoet_ joined00:48
kennethlove joined00:49
johan left00:50
Ariens left00:53
RayMorgan joined00:55
dsal left00:56
danderson So, I need to cherry-pick some CLs from one repo to another. The repos have no history in common (artefact of hg conversion gone wrong). I have both repos locally, how could I do this?00:56
nothingHappens_ joined00:57
RayMorgan hey, I was wondering if there is anyway to search a range of revisions for some content (kind of like git grep ... maybe it can do that?). Is there anyway to do this?00:57
vmiklos git log -S'foo bar' commit1..commit2?00:58
parasti RayMorgan: man git-grep?01:00
Phoenixfire159 joined01:00
doener danderson: CL = commit list? or what?01:00
_slacker_ left01:00
danderson changesets, sorry01:01
perforce terminology, leakage from work01:01
doener EFOREIGN_TERM01:01
piroko danderson: You should convice your work to use git ;)01:01
RayMorgan vmiklos: thanks!01:01
danderson I want to cherry-pick a list of commits from one repo to the other, with the added fun that they share no common history01:01
the commits will apply, but I can't just pull the repo in as a remote and have everything blend01:02
doener danderson: add the other repo as a remote, set remote.<name>.tagopt to --no-tags in the config01:02
danderson: then "git fetch <remote>"01:02
danderson: and you'll have all the stuff in the new remote tracking branches01:02
danderson: then you're free to cherry-pick, merge whatever01:02
danderson piroko: some of us already do, with adequate glue01:02
doener danderson: afterwards, just delete the remote01:03
danderson and there are other considerations that make a full move a practical impossibility :(01:03
doener: what does the --no-tags do? My remote-fu is weak01:03
doener danderson: passed to "git fetch", stops it from fetching tags (which you probably don't want, and which aren't removed when you drop the remote)01:04
just to prevent your repo from being cluttered with unrelated tags01:04
kennethlove left01:04
danderson aah, I see.01:04
I don't think I have any tags in this repo, but I get the general idea01:04
piroko danderson: Hehe. Understood01:04
doener danderson: git doesn't care whether the branches have a common histoy01:05
s/toy/tory/01:05
piroko HISTOY01:05
Sorry, tired :P01:05
danderson doener: I suspected as much, but I wasn't sure if there was some higher level porcelain that made assumptions, and what chicken to sacrifice to disable them :P01:06
drobbins|awaydrobbins01:09
francois___ left01:10
nbrunson left01:10
argnel returns01:13
paulboone_ left01:15
tazle_ hm, when I switch to a branch and get a message "Your branch is ahead of the tracked remote branch 'origin/master' by 1 commit." - how do I see what commit it is?01:15
robinr left01:15
reprore joined01:17
paulboone joined01:17
paulboone left01:17
cgardner left01:18
foutrelis tazle_, I'm guessing it's the last one01:19
jony_ left01:20
jony_ joined01:21
tazle_ foutrelis: I would guess so too - but I would like to diff to be sure01:21
bradhaydon left01:22
johnw left01:22
jony_ left01:22
jony_ joined01:23
joshdavey joined01:26
foutrelis tazle_, I can only think of gitk as a quick way to get a clear picture of the relation between local and remote master01:26
drobbinsdrobbins|away01:27
doener argnel: hunting some bug right now...01:27
richcollins joined01:27
doener argnel: but you could try what I suggested right before you left01:27
richcollins Why do I get this message when the remote repo and the location repo only have one branch?01:27
You asked me to pull without telling me which branch you01:27
want to merge with01:27
ketralnis_ joined01:27
ketralnis_ left01:27
argnel doener: yup, just trying to figure it out :)01:28
ketralnis left01:29
gaveen left01:30
ankit9_ left01:30
jony_ left01:30
argnel doener: so the fetch = :refs/remotes/git-svn before rewrite.. i want to take the trunk/test out of the url, and change the fetch to branches/test:refs/remotes/git-svn ?01:31
gaveen joined01:31
jony_ joined01:31
ankit9_ joined01:31
madewokherd joined01:31
foutrelis left01:37
doener argnel: no01:41
tvakah left01:41
tvakah joined01:42
doener argnel: you drop "/trunk/test" from the url, add trunk/test before the : in the fetch line01:42
argnel doener: in the existing fetch line?01:42
doener argnel: and add _another_ fetch line: fetch = branches/test:refs/remotes/test01:42
yep01:42
argnel ok01:43
doener that way, you just start tracking the "test" branch in addition to the test directory in trunk01:43
and git-svn should figure out the branch point, and not refetch all the stuff01:43
so then you have two tracking branches, git-svn (as before) and test (the new stuff)01:45
gitk --all should already show the stuff just fine01:45
but you might need to manually rebase your local branches, eg. "git rebase --onto test git-svn"01:45
argnel so fetch = :refs/remotes/git-svn becomes fetch = trunk/test:refs/remotes/git-svn - adding fetch = branches/test:refs/remotes/newbranch01:46
david_koontz left01:47
tvoet_ left01:48
doener yep01:48
adam[pac] left01:48
argnel it failed because it can't find a git repo. wtf.01:48
davidfetter joined01:49
argnel ok, typo01:49
doener: but now it fails "Unable to determine upstream SVN information from HEAD history."01:49
gretch joined01:50
doener argnel: could you pastebin the current config?01:50
argnel doener: http://paste.lisp.org/display/7438801:51
seangrove left01:51
happybob joined01:52
doener argnel: you removed "trunk/test" from the url, not "/trunk/test"01:52
argnel gar01:52
doener: ok, no failure, but unchanged results01:53
doener argnel: after the change, "git svn fetch" should fetch stuff into the new remote tracking branch01:53
argnel: and "gitk --all" should show that01:53
as a child of the git-svn stuff01:54
marvil07 joined01:55
argnel doener: ok, i see what was wrong, i'd thrown a --no-rebase in there and forgotten about it01:55
Elazar joined01:58
doener argnel: and as I said, it might still try to dcommit to trunk/test initially, you'll probably need the manual rebase01:59
Elazar I'm trying to overwrite a local file with what's currently in the remote repo and I'm getting this -- error: X does not look like a v2 bundle file / fatal: Could not read bundle. Suggestions?01:59
ijcd left01:59
argnel doener: which i'm trying to do now, however its not actually doing anything01:59
doener argnel: or you could try to remote the old fetch line after the "git svn fetch", then a plain "git svn rebase" might also do the trick01:59
s/remote/remove/01:59
argnel: git rebase --onto newbranch git-svn02:00
argnel: that doesn't do anything?02:00
argnel doener: error, wants a range02:00
doener for the rebase?02:00
oh wait... wants a range... that rings a bell...02:01
argnel $ git rebase --onto newbranch git-svn First, rewinding head to replay your work on top of it... fatal: Not a range. Nothing to do.02:01
doener ancient git version?02:01
lois[pac] left02:01
doener but that should actually have done something already IIRC02:01
try "git rev-parse HEAD newbranch git-svn"02:01
akitada joined02:01
doener the first and the second value should be identical02:02
argnel doener: its git.git 9a0138702:02
(my git version)02:02
softdrink left02:02
doener hm, pretty recent02:02
thought the "wants a range" thing was fixed at some point02:03
Leefmc joined02:03
doener anyway, what does the rev-parse tell?02:03
argnel doener: first and third the same, middle different02:03
doener ok, so it seems to have gone back02:03
well, for this simple case, reset --hard newbranch works as well02:03
and when you actually _have_ commits to rebase (ie. not yet dcommitted), then the rebase should also do02:04
and rebase -i might work in any case02:04
argnel i have commits to dcommit in this test :)02:04
doener not on your current branch02:05
otherwise the commits for HEAD and git-svn wouldn't be equal02:06
argnel i keep forgetting i'm working on a different version of the script :)02:08
doener: i removed the git svn dcommit, now all three are (properly) different02:08
doener argnel: then the rebase should work now, too02:09
(and as I said, with -i, it works anyway)02:09
argnel mais oui!02:09
so whats it going to dcommit to?02:09
drwilly left02:10
doener should dcommit to branches/test02:10
dcommit -n will tell02:10
argnel indeed, it does02:11
ahupp|fb left02:11
EmilMedve left02:11
EmilMedve joined02:12
argnel doener: why does it select branches over trunk?02:12
doener because the latest commit (in first-parent history) comes from branches/test02:13
Tv left02:14
doener argnel: to determine its upstream, git-svn looks at the git-svn-id lines in "git log --first-parent"02:14
kandjar joined02:14
doener and then uses the first one that's consistent with its .revmap stuff02:14
kandjar Hi there,02:14
Is there a way using git to have sensitive information and public information in the same repository (let say, you have a project, you want the header files to be public but the source files to be private)02:15
RayMorgan left02:15
bdimcheff_ joined02:16
bartman left02:16
context kandjar: no. use submodule's02:17
kandjar submodules will manage different git repository02:18
argnel doener: well, thanks very much for explaining this, the git-filter-branch method was becoming a nightmare from which there was no escape :)02:18
DrNick alternately, why even make your source control public if you don't want most of it to be public?02:18
kandjar your sensitive files and public files may bein the same folder, how to you manage that?02:18
that sounds painful02:18
context drnick: for linking to it02:19
DrNick linking what to it?02:19
context actually. yeah02:19
why make the repo accessible if the public can only see the headers02:19
wanna go 'here are the new headers, but you cant use them yet'02:20
nuncanada left02:20
bdimcheff left02:22
kandjar context: dont you think they would want to see the history too?02:28
david455 left02:29
SRabbelier left02:30
akitada left02:30
perezd88 left02:31
cookiecaper joined02:33
cookiecaper Hi. I want git to monitor my PostgreSQL database as well as my workspace files, but the files PGSQL uses to comprise its database are not in my project's working tree and I don't want to change that. I see that git doesn't follow symlinks. Anyone have any recommended02:34
methods for getting git to cover my database too?02:35
seangrove joined02:36
cehteh dump the database as text into your working dir regulary02:36
(pre-commit hook?)02:36
git wont handle a constantly changeing binary blob too well either02:37
Elazar left02:37
ToxicFrog joined02:37
cookiecaper eh, I guess that's true. OK, I'll look into that, thanks.02:37
halfdan left02:38
s0ber_ joined02:43
aresnick joined02:44
aresnick Is there a way to re-checkout a single file (I've deleted a file I'd like to undelete, but I don't want to undo the other changes I've made since the last push)02:45
doener git checkout HEAD -- file02:45
aresnick doener Ah, OK--thanks!02:45
gwoo left02:46
s0ber left02:51
ankit9_ left02:51
ankit9_ joined02:51
aresnick If a large, binary file is added to a git repo, then a long time later removed, does the size of that initial file put a lower bound on how small the repo can get (since presumably, you can always work back to it?)02:52
doener yep02:53
seangrove left02:53
aresnick doener: OK; I inherited such a repo =) Is there any way to remove it from the history?02:53
context kandjar: no.02:53
just keep a changelog02:54
aresnick doener: That is, to stop tracking, and to tell git to delete the related history of, a given blob?02:54
doener aresnick: filter-branch02:54
cartucho left02:54
richcollins left02:54
Nafai When I'm trying to push to a remote repo, it failed. Is there any way to find out more of why it failed?02:54
-v doesn't say why02:55
doener Nafai: what _does_ it say?02:55
aresnick doener: Jesus--that's awesome02:55
doener: Thanks!02:55
piroko aresnick: Keep in mind that will rewrite your history.02:56
Nafai ! [rejected] master -> master (non-fast forward)02:56
context nafai: -f02:56
doener Nafai: well, there you have the reason02:56
ice799 left02:56
context nafai: did you change history after pushing ?02:56
dont -f unless you know what you're doing02:56
doener Nafai: http://git.or.cz/gitwiki/GitFaq#head-a3da5acfa0f5411f1211b43e4907e844639971f102:57
Nafai context: I haven't changed the history at all02:57
doener Nafai: probably someone else pushed in the meantime02:57
Nafai I'm the only one pushing to this repo02:57
aresnick piroko: Yep02:58
doener Nafai: did you use rebase?02:58
muthu_ joined02:58
Nafai I don't think so02:59
doener Nafai: try "git fetch" and then "gitk --left-right origin/master...master"02:59
Nafai Hrm, it is slightly different02:59
doener that shows you those commits that exist only on in origin/master _or_ in master02:59
alus joined02:59
doener i.e. how they differ03:00
alus I have local changes which have been committed but not pushed03:00
doener might give you a clue what happened03:00
alus is there a way to branch and push the commits there instead?03:00
doener alus: git branch <new_name>03:00
Nafai doener: Is there an easy way do get the same info with gitk, this is on a remote machine03:00
doener Nafai: git log --graph ... should do, but not quite as nice03:01
Nafai Thanks03:01
doener Nafai: but maybe with --pretty=oneline it's ok03:01
alus doener: ok. after someone else checks that out and we're done, how do I land the branch?03:01
doener alus: after creating the new branch, you can reset your current branch03:01
alus how?03:01
doener eg. to origin/master or whatever03:01
Nafai doener: Thanks03:02
doener git reset --hard origin/master (bye bye uncommitted changes)03:02
alus uh, how do I tell what it is now?03:02
ah, just git branch03:03
so again, how do I land the branch?03:03
doener to push a new branch, you need to explicitly name it in a refspec to push03:03
e.g. "git push origin my_new_hot_branch"03:03
TokyoDan joined03:03
alus got it03:03
doener that's because "git push <remote>" defaults to "git push <remote> :"03:04
and the ":" refspec means: update branches that exist in both, the local and the remote, repo03:04
s/,//203:04
offby1` joined03:04
alus uh03:04
I did "git branch mybranch"03:04
then push seems to have pushed to master?03:04
doener push without a refspec?03:05
alus yes :/03:05
doener yeah, expected, see above.03:05
davidfetter left03:05
alus dang.03:05
undo?03:05
doener git show origin/master@{1}03:06
is that the commit you want to go back to?03:06
alus yes03:06
doener if so: git push <remote> +origin/master@{1}:master03:06
the "+" forces the push (as it's not fast-forward)03:06
alus what is "<remote>" there?03:06
doener and you better hope that nobody fetched in while the "bad" stuff was up03:06
s/in while/while/03:06
ok, so you did the "git branch" to create the new branch03:07
alus yes03:07
doener then you still have the old branch checked out03:07
alus I guess so, sure03:07
doener now you want to reset that old branch back03:07
most likely to origin/master03:07
alus right03:08
aziz left03:08
doener so: git reset --hard origin/master (make sure there are no uncommitted changes)03:08
alus uhm03:08
doener ... or that you don't care about them03:08
the reset will drop them03:08
alus sorry. "git push <remote> +origin/master@{1}:master" will roll back master to the revision I want, but what is "<remote>" in that command?03:08
doener for example, "origin"03:09
mugwump anything from the list 'git remote' returns03:09
doener "git remote" gives a list of remotes that you have03:09
Niamor left03:09
alus ok03:09
that seemed to... happen03:09
so now I have to check out the mybranch branch seperately? or can I push commits to it directly from this checkout?03:10
johnw joined03:10
Niamor joined03:10
doener you can push right away03:10
oh wait, push to it?03:10
Tv joined03:10
alus I have committed but now, uh, unpushed? changes03:11
doener no, if you want "git commit" to affect "mybranch", you'll have to check it out first03:11
alus ok. I have already committed some stuff, that I accidentally pushed earlier03:11
doener yeah, and mybranch references that03:11
when you use "git branch <name>" that branch will start at the current commit03:11
alus ok..03:12
doener so "mybranch" is currently at the commit at which master was when you created the branch03:12
alus so how can I push those to mybranch?03:12
doener you can only push to repos03:12
alus wow. ok. terminology mismatch03:13
doener what is it that you want to do? Push the mybranch branch to the other repo?03:13
alus what is a branch?03:13
I mean to create something which my friend can check out from another pc03:13
doener let's go back a bit...03:14
alus ok03:14
doener so you made commits on master03:14
alus right03:14
doener and then you did "git branch mybranch"03:14
alus right03:14
doener ok, so "mybranch" has all the commits that were in master03:14
try "git log mybranch"03:14
that should show them03:15
alus it does03:15
but so does "git log"03:15
doener sure, because "master" still contains those commits as well03:16
alus ok03:16
doener you probably didn't do the reset yet, so master is unchanged03:16
does "git status" tell you anything about uncommitted changes?03:16
tango_ left03:16
alus just some untracked files, as expected03:16
doener ok, and "git branch" says "* master" (besides other things), right?03:17
i.e. you still have "master" checked otu03:17
s/otu/out/03:17
alus it says "* master\nmybranch"03:17
doener ok03:17
then "git reset --hard origin/master" to reset the checked out branch to origin/master03:17
alus HEAD is now at d356acd Merge branch 'master' of blah03:18
doener ok, now "git log" should be different03:18
alus yes03:18
doener and "git log master..mybranch" should show those other commits03:18
libc_ joined03:19
alus yup03:19
doener ok, and now you can push your mybranch to the remote03:19
git push origin mybranch03:19
alus wait, what does that mean?03:20
landing the branch?03:20
doener that expands to "git push origin refs/heads/mybranch:refs/heads/mybranch"03:20
bdiego_away left03:20
alus ok, so just making it available at the server03:21
doener so it pushes the branch "mybranch" from this repository to the branch "mybranch" in the "origin" repository03:21
alus ok03:21
jeckel left03:21
alus that seems to have worked03:21
great! everything seems to be in order03:22
yonkeltron left03:22
alus doener: thanks :)03:22
doener np03:22
alus so. now how does my friend get a copy of mybranch?03:23
doener assuming that he cloned the other repo, he should also have a remote called "origin"03:23
so he can do "git fetch origin"03:23
that will fetch the new branch and store it as origin/mybranch03:23
and then he can create a local branch from it using "git branch mybrach origin/mybranch203:24
s/2/"/03:24
tango_ joined03:24
doener or "git checkout -b mybranch origin/mybranch" if he wants to check it out at the same time03:24
alus: try "git branch -r"03:24
yonkeltron joined03:24
doener alus: that should show origin/mybranch for you, too03:24
alus yes03:24
doener the extra argument to "git branch" just sets the starting point for the new branch03:25
alus sorry, that git checkout command will create a directory?03:25
cytrinox_ joined03:25
doener so instead of starting at the current commit, it starts at origin/mybranch03:25
no, "git checkout -b mybranch origin/mybranch" is the same as "git branch mybranch origin/mybranch && git checkout mybranch"03:26
git uses in-tree branch switching03:26
alus ok03:26
libc left03:26
alus ok, pulling from this state03:28
"git pull" complains, as does "git pull nokogiri"03:29
doener pull is fetch + merge03:30
"git pull <remote> <refspec>" is the full command03:30
for example, "git pull origin master" will fetch the master branch from origin and merge it into your current branch03:30
alus ah, I see03:31
doener "git pull" without arguments works only when the branch has configured defaults03:31
alus oo, how do I configure those?03:31
doener if you open .git/config, you'll see a [branch "master"] section in there03:31
with two entries, remote and merge03:31
alus I see03:31
doener remote should be abvious, and merge is the name of the branch on the remote03:31
alus makes sense03:32
doener for the master branch, it's likely refs/heads/master03:32
alus yup03:32
doener so you can either copy and adapt that section for your new branch, or use "git config"03:32
Elazar joined03:32
doener git config --add branch.nokogiri.remote origin03:32
or whatever03:32
alus right03:33
doener that stuff gets setup automatically (by default), when you use "git branch <name> <remote-tracking-branch>"03:33
where <remote-tracking-branch> is one of the branch shown by "git branch -r"03:33
as you had no remote tracking branch yet, when you created the branch, no such setup was done03:34
Ilari --add should only be used with settings that make sense when duplicated (such as remote fetch/push settings).03:34
doener ah right... finger memory...03:34
jony_ left03:35
Elazar Running 1.6.1, having a problem trying to fetch. Tried doing a clean clone and repeating the fetch, but get the same error. Error message + .git/config: http://www.pasteninja.com/paste/2161. Suggestions?03:35
gwoo joined03:35
doener Elazar: path/to/file? What's that supposed to be?03:35
Elazar doener: The path to the file I'm trying to fetch from the remote repo to overwrite the local copy?03:36
doener Elazar: that's not how it works03:36
Elazar: you can use "git fetch origin" to update the remote tracking branches for that remote03:36
Elazar: and then you can use, for example, "git checkout origin/master -- path/to/file"03:36
to check that file out of the origin/master branch03:37
Elazar doener: Ah. Yup, that did it. Thanks then. :)03:37
cytrinox left03:37
muthu joined03:44
foca joined03:47
aresnick left03:51
parasti left03:55
ivanoats joined03:57
jarrettgreen_ left03:58
muthu_ left03:59
jim_c_ joined04:00
jim_c_ Evening all.04:00
git diff HEAD..origin will show me all the diff hunks if I push to origin. Is there a way to see what changesets will be pushed?04:00
RandalSchwartz that's git log04:00
log lists commits04:00
what you're calling "changesets"04:01
kukks left04:01
jim_c_ is there a command which will show me which commits differ between a local branch and a remote branch?04:01
RandalSchwartz git log localcommit...remotecommit04:02
jim_c_ In mercurial, I'd use `hg outgoing`04:02
girishr joined04:03
jim_c_ without trying to be obtuse :-), I'm not getting the syntax right04:04
`git log master...origin/master1 gives me no output04:04
RandalSchwartz then those are identical, likely04:05
jim_c_ They aren't though, because I cloned a project from github, and made 1/2 dozen local commits.04:05
rtyler spearce: ping04:06
jim_c_ !@#$04:06
rtyler spearce: is JGit usable outside of the context of just the Eclipse plugin04:06
jim_c_ Too many terminal windows open, and I was in the wrong clone.04:06
Kathrin-26^away joined04:06
spearce rtyler: yes. Gerrit2 (review.source.android.com) is entirely based on it04:06
jim_c_ That does do what I want. Thanks RandalSchwartz.04:06
rtyler spearce: I'm pitching it for use as part of a rewrite of the Hudson git plugin04:06
spearce: these poor souls are spoiled on the idea because of SVNKit suck04:07
:/04:07
spearce: are there no code level docs running around? :/04:07
spearce not that many, no. jonas started some docs in the code.google.com/p/egit wiki but nobody has done anything to finish the sections out more.04:07
mostly its "look at existing applications; e.g. netbeans, egit, gerrit2, and the .pgm package that come with"04:08
girishr left04:10
exg left04:10
paulboone joined04:10
jim_c_ Sometimes git is infuriating to use. `git log master..origin/master` I dropped one of the ".". status is 0, no output, no error message. </rant>04:10
exg joined04:10
rtyler spearce: http://www.nabble.com/Re%3A-Re%3A-git2-plugin-and-scm-polling-in-a-multi-configuration-project-p21681183.html04:12
this is what I'm up against >_<04:13
rtyler is crafting a reply04:13
gouki How is the 'owner' field on gitweb populated?04:13
jarrettgreen_ joined04:13
RaySl left04:14
bryanl joined04:16
ivanoats left04:17
muthu left04:17
spearce wtf is hudson processing gigs of data through git for?04:17
Phoenixfire159 left04:17
rtyler spearce: I don't know wtf he's referring to there04:17
I can tell you firmly that my Git repo is bigger than his :P04:17
rtyler giggles04:17
rtyler I can CC you on the reply if you'd like :P04:18
there's fracturing with the git plugin(s), insofar that there's "git" and "git2"04:18
spearce oh, cute. so they can't even agree on a plugin code base, let alone how it interacts with the object store.04:18
rtyler git2 was written because "git" does nasty stuff currently with tags and git-rev-list(1)/git-rev-parse(1)04:18
funny thing is04:19
we switched to git2 because the "cli client" had a stupid stdout parsing issue when it was built on top of porcilean and we switched to 1.604:19
(I used the porcilean term right?)04:19
spearce yea, you shouldn't *ever* build on top of porcelain... bad bad idea04:20
plumbing is your friend if you are invoking the cli tools04:20
simosx left04:20
jim_c_ left04:22
gouki Just to let know that I found the answer to my question: http://lists-archives.org/git/658697-where-does-gitweb-take-the-owner-name-from.html04:23
rtyler do you want to be included in the conversation? or shall I be a puppet JGit evangelist? :P04:23
Kathrin-26^away left04:23
girishr joined04:23
jarrettgreen_ left04:23
spearce yea, cc me04:23
rtyler spearce at spearce org?04:24
spearce yup04:24
rtyler nothing like a good beer and mailing lists04:25
that guy's from redhat too04:27
he should know better04:27
vbabiy joined04:27
rtyler spearce: sent04:27
alus left04:29
Kathrin-26^away joined04:29
krawek left04:30
Kathrin-26^away left04:32
rtyler spearce: if i've misrepresented JGit at all, feel free to publicly correct me, I'm far more concerned with having a good Hudson plugin than appearances :P04:32
rgk joined04:33
Kathrin-26^away joined04:34
rgk hi, im hosting a git repo on my server but when i go to clone it i get a connection refused, is there any configuring i need to do to make it work? i remember i had this problem in the past but i fixed it (on an other server) just can't figure it out again.04:34
spearce rtyler: no, you didn't misrepresent it at all04:37
aside from slugging around 7 GB pack files over the network, it keeps up with C git very well performance wise, and there's no compatibility issues. nor would there really be, as like you pointed out, we're rather close to the C git people04:38
jpeeler left04:38
jpeeler joined04:39
ftehw rgk, i get the same issue when trying to connect under ssh (connection terminated remotely).04:43
volante joined04:44
ftehw ...trying to diagnose the issue now04:44
drobbins|awaydrobbins04:44
bradhaydon joined04:44
bradhaydon can anyone tell me if it's possible to push back to a subtree's external repo?04:47
TokyoDan left04:49
girishr left04:50
rgk ftehw: sorry it was actually a problem with git-daemon but now i have the error fatal: The remote end hung up unexpectedly04:50
girishr joined04:51
gwoo left04:51
jony_ joined04:51
ezyang joined04:54
esparkman joined04:54
ezyang Hello all; I'm currently planning on using git-svn as an interface between an SVN repos and a local git working copy. I wonder if there were any documents on good "Git sanitization", such that git and svn play nice04:55
(If I had the choice, I'd switch the SVN repos over to git, but I don't)04:55
achiang joined04:56
rgk my problem is i can clone the git repo through ssh but with the git:// url it won't work and i get the error fatal: The remote end hung up unexpectedly any ideas?04:57
nothingHappens_ left04:58
ezyang rgk: Who's running the server?04:59
bdimcheff_bdimcheff04:59
ezyang It's probably a server problem, but if you're trying to clone off of Github we can rule that out05:00
achiang i have a file foo.c, the contents of which i've completely replaced (but kept the same filename foo.c) -- how do i convince git to produce a more readable diff? it seems to be keying in on things like curly braces, etc. and replacing lines around those...05:01
example: http://pastebin.com/m20537e6005:01
jony_ left05:01
Beket left05:01
ezyang achiang: You can tell Git to use a different diff utility, but really, it05:01
's expected behavior05:01
I assume you want to submit a patch?05:02
achiang ezyang: hrm, if you say so... it just produces a diff that's really hard for reviewers to read05:02
ezyang Yeah05:02
jony_ joined05:02
achiang ezyang: yeah, i'm working on some pci patches05:02
spearce left05:03
ceej_ left05:03
achiang guess i'm out of luck?05:03
reprore left05:04
ezyang There are things you can do05:04
achiang i was thinking of jumping through some hoops, like git-rm the file as one patch and then adding the file back in as a second patch05:05
ezyang You can do that, assuming removing the file doesn't break the system05:05
paulboone left05:05
ezyang (people don't like it when you do that)05:05
You could also just simply give the file a new name, if names aren't important05:05
achiang well, i'd have to remove it from the makefiles, Kconfig stuff, etc. to keep bisectability05:05
ezyang Yeah05:05
achiang hrm, i could rename the source file, but yes, keep the name of the kernel module it produces the same05:06
maybe.05:06
that would involve digging into the Kconfig stuff a bit more to figure out how feasible that would be05:06
ezyang Hmm05:10
tjafk2 joined05:10
neurodamage joined05:10
bdiego joined05:10
neurodamage hey what's up folks longtime, I forget when using git, how do I force the current version I'm commiting that's getting rejected to be the master on the remote repo?05:10
I tried git -f push05:10
ezyang neurodamage: try git push --force05:11
neurodamage heh, yeah I just saw that in the man page, darn, thanks05:11
ezyang also, please remember the problems associated with doin gthis05:11
neurodamage ezyang: ?05:11
I'm the only developer05:12
ezyang neurodamage: Ah, ok05:12
neurodamage :)05:12
not normally something I would do otherwise, heh05:12
Kathrin-26^away left05:13
Leefmc left05:14
Kathrin-26^away joined05:14
rgk ezyang: me05:15
its a linode server05:15
ezyang Ok. Check if git-daemon is running05:16
ProperNoun joined05:16
vbabiy left05:17
ezyang Check if the port's open05:17
ftehw curious about the .git suffix. examples online are typically `git clone git://whatever.com/foo.git`. oddly the dir that is created locally is 'foo'. what's up with that?05:17
bradhaydon anyone familiar with subtrees?05:18
ezyang ftehw: git clone will automatically munge out the suffix .git, since that indicates a bare repository and you usually clone a working copy05:18
bradhaydon: Ask your question05:18
dbb joined05:18
ftehw OIC. that's where the 'bare repo' comes in. thanks.05:18
bradhaydon ezyang: How do I commit and push back to the subtree's external repo?05:19
seangrove joined05:20
ezyang bradhaydon: You don't mean submodules, do you?05:20
bradhaydon ezyang05:20
http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html05:20
resmo left05:20
bradhaydon whoops :)05:20
ezyang Yeah, it says right there that it's kind of hard to push your changes to the subtree05:22
You should use submodules05:22
drewr left05:22
rgk ezyang: 9418/tcp open unknown05:22
it seems to be open05:22
kevlarman rgk: do you have a file named git-daemon-export-ok in your .git?05:23
rgk thats it!05:23
marvil07 left05:24
rgk nvm i have that file05:24
seangrove left05:25
tjafk1 left05:27
halfdan joined05:27
ezyang Hmmm05:28
Are there any other error messages?05:28
Also, what command line are you using to start git-daemon?05:28
drobbinsdrobbins|away05:32
dgrant joined05:34
achiang left05:35
beachsurfin left05:38
tav_tav05:39
rgk ezyang: i fixed it, all i did was restart git-daemon and it seems to be working now05:39
thanks for your help05:39
dbb_ joined05:39
ezyang great :-)05:40
(next time someone asks this question, I'll tell them to powercycle) :-)05:40
ahupp|fb joined05:42
rgk haha05:43
niki left05:43
peritus_ joined05:43
esparkman left05:45
spearce joined05:48
beachsurfin joined05:48
ahupp|fb left05:49
cartucho joined05:51
muthu_ joined05:52
cartucho left05:52
Niamor left05:52
stephenlb left05:53
Niamor joined05:53
dbb left05:55
RayMorgan joined05:56
hobodave left05:56
zpoley left05:57
spearce left05:57
dbb_ left05:58
bdiego_ joined06:00
bdiego left06:00
peritus_ left06:01
BugeyeD left06:02
manguy joined06:02
BugeyeD joined06:02
manguy I'm looking to stop using svn and completely switch to git. If I use git svn to convert an svn project to git, after that, the project just becomes like a regular git project right?06:03
mvanholstyn joined06:03
gwoo joined06:03
johnw manguy: you still need to transfer the tags manually06:04
git-svn will have made them all into branches06:04
don't know if there's an option for that or not06:04
also, you don't need the metadata06:04
so use the clone option which omits it06:05
curvature left06:05
manguy johnw: Ah, I don't have any tags or anything like that. I'm using svn at the most basic level06:05
curvature joined06:05
johnw then in that case you're fine06:05
zpoley joined06:07
dreiss left06:08
zpoley_ joined06:08
manguy johnw: Also, perhaps you might not know, but how can I get git-svn on Mac OSX? It doesn't seem to recognize the command. Is that part of the swik package?06:08
Tuomas joined06:08
albertito joined06:08
lordpil left06:09
lordpil joined06:09
zpoley_ left06:09
johnw how did you install git?06:10
zpoley_ joined06:10
albertito left06:10
manguy johnw: Compiled from source06:10
johnw ah, I'm not sure then06:10
manguy But perhaps I should have used mac ports06:10
johnw I used MacPorts: port install git +svn06:11
mvanholstyn left06:12
mvanholstyn joined06:12
mvanholstyn left06:12
kevlarman manguy: if you're using recent git, then git-svn (as opposed to git svn) won't work06:12
johnw ah, true06:13
almery joined06:13
manguy Should I just do a "port install git +svn" then?06:14
TokyoDan joined06:14
mithro joined06:16
johnw or try "git svn"06:16
but MacPorts will also keep you up-to-date easier :)06:17
melvinram joined06:18
fynn joined06:18
fynn uhm hi!06:18
I have a diff that looks like this:06:18
paisal joined06:19
fynn - foo = bar06:19
\ No newline at end of file06:19
+ foo = bar06:19
I don't see what changed here. Can anyone explain?06:19
melvinram left06:19
johnw just read what you pasted again, closely :)06:20
fynn reads closely and still doesn't understand06:20
johnw "No newline at end of file" is true of one file, but not the other06:20
bradhaydon left06:20
drobbins|awaydrobbins06:21
fynn right, but I can't see how it is; I deleted everything in the new file as well.06:21
binjured joined06:21
fynn the new file literally ends with "foo = bar".06:21
johnw how are you testing that assertion?06:21
fynn using trusty vim editor.06:21
hobodave joined06:21
xenoterracide left06:22
johnw i didn't know vi could distinguish those two cases06:23
emacs can06:23
also try "cat -v"06:23
fynn I thought if the file ends with a newline then there would be a literal empty line at the bottom of the vi buffer?06:24
zpoley left06:24
johnw no06:24
vi shows you the same thing either way06:24
in Emacs, the only way you can try is typing M->06:24
if it has a newline at the end, point will go to its own line06:25
otherwise, it will stop at the end of the last line06:25
here's another way to test:06:25
wc -c foo1.txt foo2.txt06:25
you'll see that the byte count differs06:25
or, look at the size of the file :)06:25
fynn Interesting... why wouldn't vi / emacs show a blank line at the end of a file that ends with a \n?06:27
reithi joined06:27
j416 joined06:28
j416 "Namespace refs/original/ not empty"06:28
cartucho joined06:28
j416 what do i need to do to get rid of this?06:28
.git/refs/original doesn't exist.06:28
o_O06:28
qrush left06:28
j416 (i removed it already)06:28
fynn johnw: thanks in any case, that was interesting :)06:29
qrush joined06:29
NSaibot joined06:29
cartucho left06:30
johnw refs/original is left after doing a filter-branch06:31
you can say filter-branch -f to ignore it06:31
j416 johnw: that's the thing06:31
-f shouldn't be needed06:31
mczepiel joined06:32
j416 since there is no refs/original06:32
this must be a bug06:32
johnw again: you're sure?06:33
git doesn't usually say stuff unless it means it for some reason06:33
j416 i will try to reproduce it.06:34
johnw you aren't using a different GIT_DIR than you think, are you?06:34
priidu joined06:35
j416 ls ./git/refs/ shows "heads" and "tags". git status is clean. git filter-branch --tree-filter 'rm -rf mydirectory/something' gives "Namespace refs/original not empty"06:36
johnw ls .git/refs, you mean?06:36
Beket joined06:37
paisal left06:37
johnw also, refs/original might be packed06:37
grep original .git/packed-refs06:37
NSaibot left06:37
fynn OK, I get this weird error message trying to "git push"06:38
! [rejected] master -> master (non-fast forward)06:38
What does it mean and how do I heroically overcome it?06:39
johnw fynn: because you use commit --amend, or filter-branch, or rebase06:39
fynn wut wut06:39
I do no such thing.06:39
johnw you rewrote a commit, so now the HEAD of your remote branch is not an ancestor of your current master's HEAD06:39
mithro left06:39
johnw you did something06:39
fynn Dear lord. Somebody else must have done it. Anyways, what do I do to push?06:39
johnw origin/master is not in the history of master06:39
push -f06:39
but beware06:39
that's only safe if you're the only user06:40
fynn I am not :(06:40
Maybe I should git pull?06:40
johnw then you shouldn't do it06:40
if you git pull, it's going to merge your master with remote's master06:40
j416 johnw: yes, ls .git/refs/ sorry06:40
johnw which may also not be what you want06:40
ph^ joined06:40
fynn can I somehow preserve my modifications?06:40
before I do that?06:40
johnw fynn: my recommendation is this06:40
j416 aaaaah06:40
that's it06:40
thank you06:41
johnw type "git diff HEAD origin/master"06:41
j416 it was packed06:41
johnw see what your local has06:41
then "git checkout -b local" to create a branch06:41
j416 how do i remove the packed commit??06:41
johnw then "git checkout master ; git reset --hard origin/master", to get your master branch back to tracking the head06:41
and now, decide if you want to start cherry picking in commits from "local"06:41
j416: perl -i -ne 'print unless /original/;' .git/packed-refs; git gc06:41
fynn johnw: OK, dthe diff returns nothing06:42
johnw fynn: reall06:42
fynn did I mention I didn't commit yet?06:42
johnw really06:42
fynn yes sirry bob06:42
johnw but your commits MUST have changed06:42
anyway, do git checkout -b local06:42
fynn I haven't even committed06:42
johnw save your commits on a branch06:42
mithro joined06:42
johnw then "git checkout master"06:42
then "git reset --soft origin/master"06:42
Niamor left06:42
johnw that'll get you where you want to be06:43
Niamor joined06:43
fynn OK, what 'git checkout -b local' does is branch off my current working tree to a local branch called "local"?06:43
johnw your HEAD will match remote HEAD, but your working tree will remain as it is06:43
fynn: it branches off your HEAD commits to a branch called "local", it doesn't do anything with your working tree06:43
fynn Hm, OK, should I commit my changes first?06:43
peritus_ joined06:44
fynn because I didn't commit, just made changes to files.06:44
johnw fynn: you don't need to06:44
j416 johnw: your script doesn't make sense to me, did you miss a ">" ?06:44
johnw reset --soft only changes HEAD, it doesn't alter working tree flies06:44
j416: no, it edits the file in place06:44
that's what -i does06:44
fynn OK, Imma try06:44
wish me luck!06:44
j416 ah sorry. I am no perl-oneline-guru :)06:44
so in plain english, remove the line from packed-refs and do a git gc?06:45
johnw yep06:45
line or lines06:45
fynn johnw: I did everything you said06:46
now 'git diff' shows nothing06:46
j416 great, thank you!06:46
Kathrin-26^away left06:46
fynn what should I do?06:46
johnw fynn: what does "git status" say?06:46
Kathrin-26^away joined06:46
johnw j416: ur welcome06:46
bdimcheff left06:46
fynn nothing added to commit but untracked files present06:46
j416 hm, git status does something more than showing status right?06:47
robinr joined06:47
johnw fynn: do those untracked files contain the work you did?06:47
Weaselweb joined06:47
fynn johnw: nope.06:47
my changes were on tracked files.06:47
johnw you said "reset --soft", right?06:47
j416 i unpacked a zipped backup of my repo and work dir, and git reports the working dir is dirty06:47
fynn I c&pied verbatim06:47
ahupp|fb joined06:47
j416 but after doing git status, it's ok again06:47
o_O06:47
fynn bah I lost all the changes06:47
johnw that's very odd06:47
fynn: wait, you may not have06:48
what does "git diff local master" say?06:48
fynn nothing :(06:48
All the changes on the working tree were reverted.06:48
johnw i feel very badly, fynn, but I can't think of any command I told you that would have changed your working tree06:49
fynn Luckily I saved a diff06:49
johnw can you type "history" and show me the commands you typed?06:49
fynn johnw: it's OK, I saved a diff06:49
sure:06:49
johnw i'd like to know where I went wrong06:50
i should have had you stash the changes first :(06:50
i.e., "git stash && git stash apply"06:50
fynn johnw: http://dpaste.com/113764/06:50
johnw it's great you have the diff06:50
patch -p0 < foo.diff06:50
ah, there's the problem06:51
you did reset --hard, not reset --soft06:51
fynn --hard06:51
johnw> then "git checkout master ; git reset --hard origin/master", to get your master branch back to tracking the head06:51
":)06:51
johnw omg06:51
fynn I c&pied verbatim like the dolt I am06:52
johnw my deepest apologies06:52
fynn no worries06:52
johnw i was thinking --soft, and said it 3 other times06:52
but finger memory screwed me06:52
next time I talk to anyone, i'll have them stash first, no matter what06:52
fynn yeah, or at least save a diff06:53
anyways, is there a better way to apply than patch?06:53
it keeps asking me for the filename since it can't parse the git notation.06:53
not a huge deal, just curious06:53
johnw git-apply?06:53
git apply foo.diff06:53
manguy If I just delete the .git directory, will that take it out of git basically?06:55
Is everything stored in that directory?06:55
fynn johnw: thanks06:56
but after all the hassle, I get the exact same error:06:56
error: failed to push some refs to 'storage.counsyl.com:/git/base.git'06:56
palam joined06:56
fynn manguy: yes.06:56
manguy fynn: Thanks06:56
johnw manguy: there, and in ~/.gitconfig06:56
fynn manguy: sure. sometimes there's also .gitignore and .gitconfig06:56
palam i just ran install and make install. now when i try git<return> i get command not found... help please?06:56
fynn it can be in any nested directory.06:56
palam i'm on macosx 10.5 PPC06:56
johnw fynn: can you show me the output from "git branch -va"?06:57
paisal joined06:57
johnw palam: I recommend installing git using MacPorts06:57
fynn johnw: yeah, sec06:57
palam johnw: oh. well, will my installation attempt have screwed up anything?06:58
johnw palam: just "make uninstall"06:58
you may not have /usr/local/bin on your pathbtw06:58
ashleyw left06:58
palam johnw: how do i check that?06:59
johnw echo $PATH06:59
fynn local 1234567 Commit comment06:59
* master 1234567 Commit comment06:59
origin/HEAD 1234567 Commit comment06:59
origin/master 1234567 Commit comment06:59
palam :/usr/local/bin: is there...06:59
johnw they are all really 1234567?07:00
palam johnw: make uninstall gives me make: *** No rule to make target `uninstall'. Stop.07:00
fynn johnw: nope, but they're all the same :)07:00
it's the same patch in all 4 branches.07:00
johnw show me your push command07:00
then, look in your .git/config file and search for [branch "master"]07:01
and tell me what it says there too07:01
something is not adding up07:01
cilly joined07:02
vmiklos palam: default make install installs git to ~/bin, do you have it in your PATH?07:03
fynn johnw: ~/repo$ git push07:04
[email@hidden.address] password:07:04
To git.example.com:/git/repo.git07:04
! [rejected] master -> master (non-fast forward)07:04
error: failed to push some refs to 'git.example.com:/git/repo.git'07:04
johnw can I see your whole .git/config?07:04
the answer lies there07:04
fynn yeah, sec07:04
palam vmiklos: my $PATH is /Users/palam/Tools/airsdk/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin07:04
Quantumplation joined07:04
johnw palam: export PATH=$PATH:$HOME/bin07:05
robinr left07:05
johnw see if that command helps you07:05
palam johnw: YES!07:05
thanks johnw, vmiklos!07:05
fynn johnw: here's the "master" section:07:05
[branch "master"]07:05
remote = origin07:05
merge = refs/heads/master07:05
vmiklos np07:05
johnw then add that command to your .bashrc07:05
RayMorgan left07:05
fynn I can anonymize and paste the entire config file if you want.07:05
johnw fynn: yes please07:06
cuz now I need to see another section of it07:06
fynn sure, sec.07:06
dgrant left07:06
Quantumplation Ello =) So, i recently watched the linus tech-talks about git and started wondering why i've never heard about this before ^^ so i'm starting to convert some of m projects to git (mainly for backup purposes, but also some collaboration) and i was wondering what the best method for storing a repositor on a USB memory stick would be? Should i clon the repository to the flashdriv and just push it a couple of times a day,07:06
chalky left07:07
fynn johnw: http://dpaste.com/113773/07:07
johnw Quantumplation: if it's for backup purposes, I'd just rsync the whole working tree + git directory07:08
agenteo left07:08
Quantumplation rsync?07:08
johnw fynn: you're using ssh to talk to this repo?07:08
Quantumplation: if you've not heard of rsync yet, let me introduce you to a lifelong friend07:08
Quantumplation =) Please do07:09
johnw http://samba.anu.edu.au/rsync/07:09
fynn johnw: I don't know, really07:09
ashleyw joined07:09
johnw fynn: if you're using http, that's our problem07:09
fynn johnw: OK, what should I try then?07:09
johnw well, I do this:07:10
git+ssh://host/path07:10
just change the url in your [remote "origin"] section07:10
Quantumplation john: should i keep the rsync utility on the thumb drive? (i'm working in a primarily windows environment right now)07:10
johnw git+ssh://vcs.example.com/git/base.git07:10
Quantumplation: i'm not sure if there's a tiny, statically bound .exe for windows or not07:11
there ought to be!07:11
xenoterracide joined07:11
ankit9_ left07:12
johnw fynn: because based on what you showed me, push shouldn't be actually doing anything at all07:12
xenoterracide is it possible to pass the password for git imap-send on the command line?07:12
ijcd joined07:12
xenoterracide I see nothing about doing that in the man page... but maybe there's something I'm missing07:12
ashH joined07:12
kermit` joined07:13
fynn johnw: I got the same error :/07:13
johnw: you mean, it shouldn't be doing anything, cause I didn't commit anything?07:13
johnw yep07:14
if master == origin/master, push is a null op07:14
which points to a protocol problem07:14
or server config problem07:14
fynn tries a few things07:14
johnw haha07:14
almery left07:15
fynn how do I unstash?07:17
I stashed so I could git pull07:17
johnw git stash apply07:17
peritus_ left07:17
fynn cool thanks.07:17
Quantumplation hm, the windows rsync seems to rely on cygwin. that should be fine07:18
fynn johnw: hurrrrrray, push workzzzz!07:19
johnw yay!07:19
congrats07:19
fynn is a super 1338 hacker staggadish07:19
fynn with the help of his hacker mentor johnw07:19
Kathrin-26^away left07:19
johnw and i finally got the new cgit working! http://git.newartisans.com/07:19
fynn a lesser achievement, I should think07:20
but still, worth mentioning.07:20
johnw hahah, indeed!07:20
Kathrin-26^away joined07:20
fynn dude, I just, like, committed.07:20
johnw feels good, doesn't it?07:20
until the end of time, that sha1 will always reference those changes07:20
well, in theory07:20
fynn yeah, my masculinity has been affirmed. my gf will finally let me off the couch now and into the bedroom07:21
palam left07:21
fynn possibly even into the bed!07:22
johnw now, don't get cocky07:22
fynn yeah, probably not :(07:22
kermit` hello,I clone my project from the server,then I modify it and commit many times but haven't push.Now, I want to push it, but I don't want leave the interim commits.How can I do? Now I always copy all of the current files, and then git-reset --hand, and recover the files, then git-commit. Is there any simplier way? Thanks.07:22
johnw kermit`: git rebase -i07:23
use the "squash" command to merge all your commits down into one07:23
you'll see what I mean by squash after you type "git rebase -i origin/master"07:23
fynn johnw: ah, CGI and git... I see what you did there07:23
johnw fynn: those are some of my personal mirrors of other projects, most of which do not use git07:23
kermit` Sorry,johnw,what is squash?07:25
johnw kermit`: in the rebasing file, you change the word "pick" to "squash" if you want to collapse one commit into another07:25
kermit` Thanks, johnw.I'd like to test it at once;p07:27
chalky joined07:27
meyering joined07:28
Quantumplation Can rsync be used without a "server" running?07:29
lresende joined07:33
ahupp|fb left07:33
johnw sure07:33
tal67 joined07:33
rphillips left07:37
paisal left07:38
ludde joined07:38
Quantumplation hrm... all git commands are based on the repo of the current directory right?07:38
cilly left07:38
psankar joined07:38
thiago_home the repo that the current directory is part of, yes07:39
Quantumplation so if i have c:/proj/Project1 and c:/proj/Project2, i just cd to "change repo"?07:39
rather, cd (in order to* change repo07:39
_eric joined07:40
_eric Is there a way to do the equivelant of a "git add -p" into a stash?07:40
fynn johnw: thanks for all your help, looks like there was something weird in the repo.07:40
_eric I have some debug code that I want to stash (and check everything else in)07:40
gaveen left07:40
johnw glad I could help somewhat07:41
reithi is away: Gone away for now07:41
johan-s left07:43
cilly joined07:44
ijcd_ joined07:46
Quantumplation hm... msysGit is having trouble with e:/ and h:/ drive specifications...07:46
mczepiel left07:47
muthu_ left07:47
Quantumplation Got it working =P07:48
chalky left07:49
Beket left07:50
tal67 left07:50
SeJo someone using reviewboard here?07:53
pierre- joined07:54
tal67 joined07:56
johnw left07:57
thiago_home left07:58
paisal joined07:59
Quantumplation left07:59
peritus_ joined08:00
martinpaul joined08:00
ijcd left08:02
flazz_ left08:04
fynn left08:04
giallu joined08:05
ilogger2 joined08:07
SeJo so once it is decides we pick from their branches?08:07
EvilGuru joined08:08
flazz joined08:08
chalky joined08:08
johan-s joined08:10
ceej joined08:12
Beeet joined08:13
hdl2 joined08:13
ndim SeJo: Get rid of the "one central repository for everyone" idea.08:13
SeJo: Have "a few" get commit access to the repository with the "master" branch.08:14
SeJo: And have everyone else publish their own repos, and have "the few" pull from there, and push to maste.r08:14
peritus_ joined08:17
Casan joined08:19
ceyusa joined08:19
hurikhan|Work joined08:21
mithro joined08:26
dandre joined08:27
dandre left08:27
palam joined08:28
beachsurfin joined08:29
jonalv joined08:30
galderz joined08:34
manguy I've added one file to .gitignore, specifically 'lib/settings.rb' But git is still including it in the modified changes. How can I keep a blank template of the file in the repository, but have my own copy to change the settings as I wish?08:34
SeJo ndim: but i want everyone to push to the same server08:35
ndim: so i need to create repos for everyone?08:35
HG` joined08:35
SeJo ndim: won't those repos differ too much from the master?08:36
Arafangion joined08:36
ndim SeJo: Well, you can put many people's repos onto the same server.08:37
SeJo: Well, if people don't maintain the branches in their repos, it will eventually differ. But that problem is not specific to people publishing their own repos.08:38
jonalv left08:39
jmesnil joined08:39
saimon joined08:40
harinath1 joined08:42
ezyang SeJo: Tell people to merge/rebase frequently08:43
git pull --rebase is your friend08:43
nud joined08:44
palam left08:45
HG` left08:47
plasticine joined08:48
Niamor joined08:53
naeu joined08:58
peritus_ left09:00
palam joined09:03
chalky left09:06
hdl2hdl09:06
chalky joined09:06
lucsky joined09:09
lucsky 'morning09:09
tav_ joined09:12
eevar2 joined09:14
schlort joined09:14
eevar2 best way to merge changes from svn into my current work, w/o using git-svn?09:15
HG` joined09:16
Ilari eevar2: Checkout (some) commit(s) using svn, copy the files into git repository add and commit (into seperate branch). Then merge that branch in.09:17
Niamor left09:17
Niamor joined09:18
charon joined09:19
eevar2 does it matter what branch i'm on when creating that new branch? -- do i want to merge the changes into master first, and then merge master into my current branch?09:19
Beeet left09:20
eevar2 or am i just complicating things?09:20
HG` left09:23
loiseau joined09:23
palam left09:23
skiv02 joined09:25
palam joined09:25
Marmouset joined09:28
rraasch joined09:29
nud left09:29
WALoeIII joined09:33
ijcd joined09:33
ankit9 joined09:35
z3om joined09:36
z3omzeom09:37
nud joined09:37
antirobotrobot joined09:37
palam left09:38
ankit9 left09:40
eevar2 hmm.. possible to undu git stash clear..?09:40
*undo09:40
reithi is back.09:41
tokkee eevar2: I'm not sure if there are reflogs for stashes but you can surely find that out ;-)09:41
eevar2: Else, look thru your unconnected objects.09:42
charon tokkee, eevar2: stash is implemented using a reflog, so that's no help here09:42
try 'git fsck --lost-found'09:42
peritus_ joined09:43
palam joined09:46
eevar2 yay, fsck --lost-found worked09:47
guess i should be reading man pages before issuing random git commands ;)09:47
palam left09:49
WALoeIII left09:54
cilly joined09:58
ankit9 joined10:00
seangrove joined10:01
Kathrin-26^away joined10:02
greyface joined10:07
ashleyw_ joined10:08
AAA_awright_ joined10:10
Marmouset left10:13
cilly left10:14
cilly joined10:15
charon left10:17
jaeckel joined10:18
gouki I'm trying to change the 'Owner' field on GitWeb. I tried creating a file called owner on the repository root (as mentioned on the README). No luck. Creating a new section [gitweb] on the config doesn't work either. Any other ideas?10:24
SRabbelier joined10:24
warlock_mza joined10:24
loiseau left10:24
charon joined10:25
_slacker_ joined10:28
Aides gouki: by repository root you mean the place where hooks/ objects/ config and other files reside, right?10:29
gouki Aides, yes. Exactly.10:29
mcella joined10:29
Aides what's your git version?10:31
chalky left10:35
beket joined10:35
beketBeket10:35
chalky joined10:38
ThoMe joined10:39
ThoMe hello :-)10:39
steveb hello10:39
ThoMe is a good web-tool for git avaialable? for search in my code (source code), or search scriptname, or "search when change the file X" ... ?10:39
hm?10:43
steveb i hear good things about gitorious10:43
peritus_ left10:44
ThoMe steveb: is it free?10:44
johan-s no codesearch though... yet.10:44
ThoMe johan-s: codesearch ? is sa tool?10:44
ndim My first thought is that all that functionality is quite easy on a command line.10:45
johan-s ThoMe: no, you just said "for search in my code (source code)" and gitorious doesn't search in the git repositories themselves currently10:45
ThoMe hm10:46
ndim And my second thought is that many people can't use or don't have a command line, and thus need such specialized tools.10:46
ThoMe johan-s: hm. other ideas?10:46
_Vi joined10:46
ndim I.e. the Windows(TM) way: Buy and install and learn a separate program for every command line one liner you can think of.10:46
peritus_ joined10:46
shaftyy joined10:47
steveb can gitorious look at previous revisions of a source file?10:48
ceej left10:49
sverrej_ joined10:50
steveb im converting my work svn repo to git as a kind of proof of concept thing. so fat the svn2git has taken 19 hours. and still going10:50
so far*10:51
Niamor left10:52
ned how do i revert a specific file from a commit?10:53
Niamor joined10:53
skiv02 im trying to set up a central git repository on a linux machine, which will be accessed by windows users. do you guys recommend using ssh or GIT daemon for pushing/pulling? if SSH, is there a way of binding SSH user authentication to ActiveDirectory?10:54
EvilGuru left10:55
Aides ned: what do you mean by "revert from commit"?10:55
i can think of at least three conflicting meanings of that :)10:56
Tuomas ned: if you haven't yet pushed, just "git reset --soft HEAD^" and commit again without that file (assuming the commit with extra file is the last one)10:56
ned Tuomas, thanks :)10:56
grahal joined10:58
grahal left10:58
gouki Aides, I'm sorry I took so long to reply. Version: 1.5.4.310:59
Aides gouki: have you considered updating? i can't be sure it will help, but it may11:00
gouki Aides, I don't have much control over it (it's on a colleague server) but I'll mention it.11:01
petaflot left11:01
gouki From what I found on KernelTrap archives, the file owner or an entry owner = name in config should work with this version ... :S11:02
cemerick joined11:04
pantsman joined11:04
JackTheRabbit joined11:06
peritus_ left11:07
sverrej_ left11:09
grahal joined11:10
xjjk joined11:12
EvilGuru joined11:13
hurikhan|Work left11:15
AAA_awright_ left11:15
harryjr joined11:17
AAA_awright joined11:17
harinath1harinath11:17
harryjr svn co --username=harry https://svn.turntool.com/svn/turntool/plantool/trunk works fine but git svn init --username=harry -s https://svn.turntool.com/svn/turntool/plantool keeps asking for password11:17
what would be the issue?11:17
DRMacIver joined11:18
hurikhan|Work joined11:20
ankit9 left11:20
Kathrin-26^away left11:21
Kathrin-26^away joined11:22
bcarlyon|laptop joined11:31
EvilGuru left11:31
hdl left11:32
Niamor left11:32
Niamor joined11:33
Aides joined11:33
ankit9 joined11:35
deizel is back11:35
bcarlyon|laptopBCarlyon|Laptop11:35
lorandi joined11:36
xlq joined11:43
xlq I'm doing rebase -i --preserve-merges11:43
and it's 'refusing to squash a merge', giving me the sha1 of a commit which is quite blatantly not a merge :(11:44
jriga joined11:44
ashleyw joined11:45
Kathrin-26^away left11:46
Kathrin-26^away joined11:46
sverrej joined11:46
ashleyw left11:47
Voker57 joined11:47
sgronblo I made the directory non-dirty and then stash applied some old stuff. Found out that the changes applied from the stash were unnecessary so i removed them all. Now status tells me these files are unmerged. How do I get rid of the unmerged status for them?11:48
Pieter__ git add -u11:48
tango_ joined11:49
Pieter weird nickserv stuff, I never understand it11:49
priidu_ joined11:50
sgronblo ok, now it still says a file is modified but git diff doesn't give any output at all for that file11:51
mithro left11:52
xlq git diff --cached11:53
steveb can anyone tell me how clever svn2git (or git-svn) is? seems my companies svn structure is less than standard... we have trunk/ branches/ tags/, but also tags/<some_product>/<more_tags>11:53
will git-svn pick up all the tags in a tag, or just the original tag?11:53
Aides left11:54
Voker57 you can use --tags=tags/*/11:54
since 1.6.0 afair11:55
steveb i'll look at the docs a little more. im only really doing this as a proof of concept anyway. our svn repo is a mess11:55
but it's already been importing for 20 hours11:56
ndim Or --tags/*/projname11:56
tokkee But that won't include tags in tags/ _and_ tags/*/, I suppose.11:56
steveb i wonder if it will be finished by the end of the day11:57
sgronblo Can't git stash show show me a true diff instead of just a summary?11:57
ndim A layout where --trunk=trunk/foobar --branches=branches/*/foobar --tags=tags/*/foobar makes sense was quite popular some time.11:57
steveb we have a mish-mash of lots of different schemes11:58
Sho_ joined11:58
steveb very arbitary...11:58
ashleyw_ left12:00
peritus_ joined12:03
bentob0x joined12:06
JackTheRabbit left12:08
Hendu joined12:11
cmarques joined12:13
Hendu Hi. Have a wee problem. I did a "git add ." and didn't realize that I included files which shouldn't be commit. How do I undone this?12:13
harryjr git reset HEAD12:13
ankit9 left12:13
Hendu nice one12:13
thanks12:14
simosx joined12:15
nothingmuch how do i run a specific test? i can't find anything useful in the docs12:15
Niamor left12:15
Niamor joined12:15
harryjr nothingmuch: ?12:15
gebi_ joined12:15
nothingmuch i am trying to make a patch12:15
Thumper_ Hendu: git reset FILE # works too12:15
nothingmuch i don't want to run the whole test suite12:16
harryjr nothingmuch: wrong channel, i assume.12:16
nothingmuch nope12:16
Hendu Thumper_: thanks got that12:16
jaeckel left12:16
nothingmuch i've futzed with t/t7600-merge.sh and I'd like to run it in debug mode, and also to be sure i have the env setup properly12:17
Thumper_ nothingmuch: cd t; t/7600-merge.sh or bash -x t/7600-merge.sh12:18
nedko joined12:18
nedko someone please help me: http://pastie.org/private/jspjrunp07chvii9x08fa12:19
nothingmuch aha, tests take options12:19
--verbose12:19
Thumper_ nedko: you need to merge the upstream changes before you push12:20
nedko: pull first12:20
clairvy__ joined12:23
xlq With 'git commit --amend', how do I add a new file to commit?12:24
Owner joined12:25
tokkee xlq: git add <file>; git commit --amend12:25
xlq: I.e. just like adding a file to any commit.12:26
xlq tokkee: it doesn't seem to notice the new file12:26
boto joined12:26
boto left12:26
tokkee xlq: Any error messages? What does "git status" say?12:26
codebrulee joined12:26
boto joined12:26
xlq Oh! I see12:26
the file hasn't actually changed!12:27
nud left12:27
ndim Interesting. It is always the 414th fork in "git svn" which fails to fork.12:27
tokkee xlq: :-)12:27
ndim: Even with different SVN repos?12:28
ndim tokkee: Untested so far.12:28
Hmm. And it is the 414th for in that specific place.12:28
Perhaps it IS the ulimit -u of 1024?12:28
Acry joined12:28
Acry left12:29
fgomez joined12:30
mikl joined12:30
Ryback_ joined12:31
harryjr svn co --username=harry https://svn.turntool.com/svn/turntool/plantool/trunk works fine but git svn init --username=harry -s https://svn.turntool.com/svn/turntool/plantool keeps asking for password (Authentication realm: <https://svn.turntool.com:443> TurnTool Subversion Repository \ Password for 'harry)12:32
nedko Thumper_: i've pulled and nothing changed, this is why i checked parent sha1, there is only one commit to push12:33
steveb harryjr: what does svn co --username=harry https://svn.turntool.com/svn/turntool/plantool do?12:33
plasticine left12:33
harryjr steveb: checks out trunk12:34
ankit9 joined12:35
nothingmuch jast, doener: http://gist.github.com/5392612:35
steveb harryjr: has svn maybe cached your password somewhere? is it password protected?12:35
harryjr svn co doesn't ask for password, so, it's cached yes.12:36
steveb ok, that's why git svn is asking for a password then12:36
cilly left12:36
cilly joined12:36
harryjr well, that should be fine - but entering the correct password doesn't do anything12:36
gaveen joined12:37
xlq Grr12:37
git rebase doesn't preserve merges12:37
When I specify --preserve-merges, it grumbles about squashing a merge, which I'm not doing.12:37
harryjr except asking for the password again12:37
Niamor left12:37
Niamor joined12:38
nud joined12:38
xlq hmm, looks like a known bug12:39
I'll have to avoid squashing :(12:40
nedko left12:41
harryjr steveb: just tried removing the subversion configs, the password works fine with svn co, but not git svn. :/12:43
steveb i've got no idea im afraid12:44
name joined12:49
ndim OK. "Can't fork" at the 414th fork, again - this time with "ulimit -u 2048", same SVN repo.12:50
foutrelis joined12:54
deizel is gone12:55
cilly left12:55
cilly joined12:55
bentob0x left12:57
Niamor left12:57
Niamor joined12:58
Beket Can I stash my uncomitted work, change branch and commit there ?12:59
ThoMe rake db:migrate RAILS_ENV=production13:00
(in /usr/gitorious/mainline)13:00
rake aborted!13:00
no such file to load -- spec/rake/spectask13:00
/usr/gitorious/mainline/Rakefile:1013:00
(See full trace by running task with --trace)13:00
hm, why an error?13:00
vuf_ joined13:01
wereHamster Beket: yes, you can.13:03
Beket thank you wereHamster13:03
wereHamster however I don't think a stash is necessary, as git-checkout doesn't touch changed files13:03
JackTheRabbit joined13:03
wereHamster so a simple git checkout my-other-branch; git commit should suffice13:03
xlq I am doing a rebase.13:06
One commit introduces a file that I don't want at all. So I amended that commit and removed that file.13:07
Now, a later commit modifies that file, and causes a conflict.13:07
What do I have to do now, to make sure that file never gets into the rebased commits?13:07
wereHamster ammend that commit as well13:07
xlq Right. But it's conflicted on that commit, and it wants me to 'git add' then 'git rebase --continue13:08
wereHamster does 'git rm the-file.txt; git rebase --continue' do the right thing?13:08
xlq no :(13:09
that seems to re-introduce the file into the commit I amended to remove it13:09
ThoMe can anybody help me?13:09
i try: rake db:migrate RAILS_ENV=production13:10
no such file to load -- spec/rake/spectask13:10
/usr/gitorious/mainline/Rakefile:1013:10
(See full trace by running task with --trace)13:10
i need a file?13:10
wereHamster ThoMe: does that have anything to do with git?13:10
ThoMe rake != git ?13:10
sorry13:10
wereHamster xlq: what about git rm --cached ?13:10
xlq ThoMe: rake is a build system, git is a DCVS. Completely different.13:11
ThoMe ups ok13:11
wereHamster ThoMe: try in #ruby13:11
xlq wereHamster: no :(13:12
wereHamster xlq: after git-rm, what does git-status say?13:13
xlq wereHamster: all the changes that it should commit. It doesn't mention the file I want to get rid of.13:13
hdl2 joined13:13
aziz joined13:13
wereHamster well, that's what you want, right?13:14
xlq wereHamster: yeah13:14
wereHamster you don't want the file to be in the next commit, right?13:14
xlq correct13:14
I don't want the file anywhere in the repo13:14
but as soon as I do git rebase --continue13:14
hdl2hdl13:14
xlq it re-appears, in the commit it creates, and in the commit before!13:14
bentob0x joined13:14
wereHamster there's something else wrong with your workflow since git cannot change prior commits. The file cannot reappear in the 'commit before' just like that13:15
xlq yeah13:16
O_o13:16
but it is13:16
rolfb joined13:16
xlq Maybe gitk is showing me the original commits?13:17
Ahh, that is so!13:17
Where does rebase store the commits it makes, then?13:17
wereHamster rebase rewrites the history, it will throw away the old commits and replace them with the new ones13:18
xlq So how come I can still see the old commits if I run hgk during the rebase?13:18
charon left13:19
wereHamster what's hgk?13:19
Kbyte joined13:19
xlq *gitk, sorry13:19
ndim On git-svn's 414th fork, strace says the following happens: clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb809d708) = -1 ENOMEM (Cannot allocate memory)13:19
wereHamster xlq: what about git-log? Does it also show the old commits?13:20
xlq looks like it, yeah13:21
ankit9 left13:21
ankit9 joined13:25
Kbyte left13:25
statim joined13:25
Kbyte joined13:26
joshdavey joined13:27
xlq OK, I've finished the rebase13:27
it achieved absolutely nothing!13:27
Owner left13:27
xlq Maybe git rebase --preserve-merge is just completely bugged13:27
wereHamster could you paste the commands you use so I can see what you are doing?13:28
xlq I have the branch 'first' pointing at the first ever commit, and the branch 'master' at the last commit13:28
git checkout master && git rebase -i -p first13:28
codebrulee left13:29
steveb fantastic. after 21.5 hours my git-svn import failed.13:30
rraasch left13:30
xlq steveb: :(13:30
wereHamster then what? You 'edit' the commit that introduced the unwanted file, amend and continue?13:31
spb steveb: it's git punishing you for disappearing from the internet13:31
xlq wereHamster: exactly13:31
zepolen joined13:31
steveb spb: apparently so13:31
wereHamster steveb: I'm not sure but I think git-svn can resume the checkout13:31
just go into the git repo and 'git svn fetch'13:31
steveb spb: i havnt vanished from the internet anyway. i've just... relocated13:31
xlq oh, um13:32
steveb wereHamster: it did something funky. the git repo doesnt seem to be valid13:32
wereHamster steveb: any errors in particular?13:32
codebrulee joined13:32
cmarcelo joined13:33
wereHamster xlq: oh, then at some point another commit fails and git tells you to resolve the conflict, right?13:33
xlq wereHamster: yeah13:33
spb steveb: relocated where, anyway13:33
it had better be somewhere more interesting13:34
wereHamster xlq: have you already published the branch?13:34
xlq wereHamster: that's not a problem13:34
wereHamster: no, I haven't13:34
wereHamster xlq: then take a look at git-filter-branch13:34
gambler joined13:35
wereHamster I think --preserve-merges causes the file to re-appear13:35
steveb spb: more interesting than what? ##uk? no one speaks there any more!13:36
spb more interesting than ##uk was before you disappeared from it!13:36
steveb are you saying i was the life and soul of it?13:36
how sweet13:36
spb no, just that you killed it13:36
lorandi left13:37
peritus__ joined13:37
lorandi joined13:37
steveb i didnt dissappear from it. i went to america for a summer and everyone stopped talking13:37
spb ergo you killed it13:37
deavid joined13:38
peritus_ left13:38
steveb it's not my fault if no one else has the social skills to keep a channel going when i leave13:38
comcor_ joined13:39
xlq Do I need to specify -p every time I do git rebase --continue ?13:40
steltho joined13:41
greyface left13:41
steltho After I tag a commit whit git tag is there a way to view the tag using git log ?13:41
foutrelis left13:44
heipei steltho: git tag -l13:45
xlq after a git-filter-branch, master is unchanged13:45
nothingmuch that means none of your filters had any effect13:46
tokkee steltho: "tig" will show you tag names as well.13:46
xlq Ahh, I did it wrong13:46
Niamor left13:47
Niamor joined13:48
steltho Ok thanks, but is there some way I can get the tag to show up as a commit that is viewable with git log. For example ...13:48
nothingmuch i know gitx does it13:48
trying to figure out if it passes some useful option to git log13:49
steltho When I pull the latest version of the kernel, the latest commit always has a message like: Linux 2.6.29-rc213:49
comcor left13:49
evanpro joined13:50
evanpro Howdy13:50
I've got a problem13:50
steltho Is the Linux 2.6.29-rc2 commit created by git tag, or is it done another way?13:50
evanpro Periodically in a dev directory, I'll run something like "find -name *~ | xargs rm" to clean up those little ~ files that accumulate over time.13:51
Unfortunately, I did this in a (local) git repo recently13:51
And apparently there are some meaningful files in .git that end in ~13:51
gaveen left13:52
gaveen joined13:52
esparkman joined13:55
nothingmuch steltho: sorry, found nothing useful13:55
foutrelis joined13:56
xlq Ok, after converting a repository, how would one add a .gitignore for all the commits?13:57
(it doesn't really matter about the very first commit)13:57
chalky left13:58
evanpro OK, somehow my .git/index is now length 013:59
rjbs joined14:00
rjbs Hm. I am trying to import svn->git. The svn repository started as "everything in root" and was reorged to trunk/branches/tags later.14:01
Anyone know of a tool that will do the import nicely?14:01
tokkee evanpro: Did your shell expand *~ to something "dangerous"?14:02
xlq: What do you want to ignore?14:02
ivan_ joined14:02
xlq tokkee: does that matter?14:02
evanpro tokkee: no, actually it's escaped, find -name \*~14:02
tokkee rjbs: Uh! That does not sound like a simple task.14:02
rjbs tokkee: I know, that's why I'm looking to see if someone else has solved it!14:03
evanpro But when I run git gc, I get: "error: cannot lock ref 'HEAD.~1~'"14:03
steltho left14:03
Pieter steltho: git log --decorate14:03
tokkee rjbs: You might be able to import that by importing everything into a single (master) branch (i.e. ignoring trunk/branches/etc.) and then doing some magic using git-filter-branch (--tree-filter).14:03
dedmajor joined14:03
bdimcheff joined14:04
rjbs I thought about that... I think if it comes down to me having to do anything (because I have like 50 of these to do) I will just punt and fix it in the final imported rev, so there's history, even if it's mangled.14:04
tokkee xlq: I don't really get what you're trying to achieve.14:04
xlq tokkee: add a file to all commits, as if it had been there all along14:05
I thought I'd be able to create a commit off the first commit, and rebase everything else on to it, but I get conflicts.14:05
ivan_ left14:05
tokkee xlq: Oh, now I get it - I thought you would want to ignore commits ;-)14:06
xlq tokkee: no :)14:06
tokkee xlq: Hrm ... I guess you want the first commit to include that as well, right?14:06
xlq tokkee: yeah, but I don't mind so much about that one.14:06
tokkee xlq: If that's not the case you could use git-rebase -i.14:06
xlq But I get conflicts!14:07
chalky joined14:07
tokkee What kind of conflicts?14:07
xlq with loads of files that shouldn't be affected.14:07
tokkee rjbs: If the layout of all repos is mostly identical, you might be able to automate it after doing it once.14:08
[1]bcarlyon|lapt joined14:08
rjbs yeah, I know. just bitching :)14:08
tokkee xlq: How did you do it?14:08
xlq git checkout -b first <sha1-of-first-commit>14:08
vim foofile14:08
git add foofile && git commit14:08
git checkout master14:09
git rebase -p -i first14:09
bnovc joined14:09
bnovc Is there anything like git-svn for mercurial? My office uses mercurial, but I wanted to try out git ... searching for things like "git mercurial" just brings up a lot of debates about which is better14:10
mbroeker joined14:11
xlq bnovc: there's 'hg convert', not sure if it can do more than just convert the repo though14:11
tokkee xlq: Either do "git rebase -i <sha1-of-first-commit>; chose "edit" for the first commit; apply your changes; amend that commit; git rebase --continue".14:11
xlq: Or: git checkout -b first <sha1-of-first-commit>; edit; git add && git commit --amend; git checkout master; git rebase -p --onto first <sha1-of-first-commit> master14:12
(i.e. what you've already done but note the different call to git-rebase)14:13
bnovc xlq: well is there an easy way to get changes back to the hg repo after that? beside exporting and importing a bunch of patches14:13
and updating from the hg repo for that matter14:13
xlq bnovc: no clue14:13
tokkee xlq: Did you amend the first commit or did you add another?14:14
xlq tokkee: I added another14:14
tokkee: is that bad?14:14
tokkee xlq: Should not ...14:15
xlq tokkee: what?14:15
tokkee xlq: That should not be bad.14:15
xlq tokkee: also, -i is needed with -p14:15
tokkee: it seems to get so far and then says: "Already uptodate!"14:15
"Finished one cherry-pick."14:15
then displays status14:15
Ahh, there are some empty commits14:16
that do nothing14:16
tokkee xlq: Well, if you rebase all of master, you will try to reapply the first commit which is already there though.14:17
kukks joined14:17
tokkee xlq: So, that commit will not introduce any changes. Using git rebase --skip when "Already uptodate" pops up should fix that.14:18
xlq ahh, k14:18
tokkee xlq: So, you didn't have any merge conflicts but only that "Already uptodate" message?14:20
xlq tokkee: that time, yeah14:20
but .gitignore still isn't there14:20
gaveen left14:23
tokkee xlq: Did you make sure that the new commit is still there? (the one that introduces .gitignore)14:23
xlq I think I got the branch names mudled14:23
telmich just had a look at http://bazaar-vcs.org/Workflows, which looks really nice (especially with the fancy user images)14:23
BCarlyon|Laptop left14:23
[1]bcarlyon|laptbcarlyon|laptop14:23
telmich do we have something like that for git already? ;-)14:24
EvilGuru joined14:24
bartman joined14:25
xlq I just went through the rebase again14:26
it says "Successfully rebased and updated refs/heads/master"14:26
It has done NOTHING!14:26
drewr joined14:26
gaveen joined14:27
akitada joined14:28
akitada left14:28
Acry joined14:29
Acry left14:30
wereHamster xlq: wait. You want to _add_ a file to all commits? I thought you'd want to _remove_ a file14:31
xlq Both!14:31
But I've already removed the file now, with git-filter-branch14:31
EmilMedve joined14:31
softdrink joined14:32
wereHamster you should also be able to add a file with filter-brnach14:32
xlq I *should* also be able to rebase.14:32
tokkee xlq: What does "git log master..first" say?14:33
xlq It's the very first commit14:33
tokkee Only that?14:34
xlq no it's not14:34
blank output14:34
tokkee Then your new commit disappeared ...14:34
xlq O_o14:34
oh, um14:34
tokkee Don't ask me why / how though ...14:34
;-)14:34
xlq I have too many branches now14:34
bar first first2 foo gitig master old2master oldmaster show14:34
I don't remember creating 'show' though :\14:35
tokkee Did you backup your repo before doing anything? ;-)14:35
xlq yep14:35
tokkee Then starting over might be a good idea ;-)14:35
wereHamster you don't need to backup, there's always the reflog14:35
jm joined14:35
tokkee wereHamster: Yeah - but restoring / copying a backup might be easier sometimes ;-)14:35
akitada joined14:36
wereHamster yep, true14:36
dedmajor hi guys, i'm very new to git, and need some help hint. i have some branches in my project, for example, master and dev, i checked out dev version, made some changes and committed it. now i want this changes to be merged in master branch. how should i properly do that?14:36
xlq dedmajor: git checkout master && git merge dev ?14:37
akitada left14:37
wereHamster dedmajor: git-merge or git-cherry-pick14:37
depends on what you want/need14:37
docelic joined14:37
rwaite joined14:38
docelic Hey folks, if I call 'git pull' and it imports some stuff from the origin repository, and there are conflicts... When I open the conflicting files, does the "<<<<<<< HEAD:src/Makefile" mean I'm looking at the local head, or what would be the head in origin?14:39
JackTheRabbit left14:40
Savago joined14:41
plasticine joined14:41
docelic I see, the top part of the conflict is local, bottom is the "pulled" one14:42
plasticine left14:42
ndim OK, I have found the problem why "git svn clone" "Can't fork": A simple OOM issue. Apparently, "git svn clone" easily uses something on the order of a GB of memory.14:43
fdv joined14:43
xlq This is absolutely ridiculous.14:44
lll joined14:44
wereHamster xlq: are you now trying to introduce a new file?14:45
Savago Hello there! I have a very-user-level question about git. What could create this message: adenilson@t60ade:/media/secure3/gcal$ git diff14:45
fatal: index file smaller than expected14:45
xlq I'm trying to do all sorts of things. Nothing seems to work.14:45
Savago and how to fix it?14:45
Aides joined14:46
statim left14:46
wereHamster xlq: the only thing that comes to my mind is: you're doing it wrong ;)14:46
Kathrin-26^away left14:46
xlq *groan*14:47
Kathrin-26^away joined14:47
imarcust1is joined14:47
davidfetter joined14:47
LiamH joined14:47
imarcusthis left14:47
chalky left14:47
mikearr joined14:52
akitada joined14:54
statim joined14:55
thorkilnaur joined14:55
xlq If I've done a merge in the past, and already resolved conflicts in the merge14:55
git rebase -i -p seems to want me to resolve them again!14:56
wereHamster xlq: git-rerere14:56
xlq whoa, wha?14:56
Aides man git-rerere14:56
wereHamster git-rerere - Reuse recorded resolution of conflicted merges14:56
schacon joined14:57
nothinghappens joined14:57
[1]bcarlyon|lapt joined14:58
xlq wereHamster: can that actually help me now? Since the merges were originally done ages ago :(14:59
wereHamster I've never used it myself, I only know that the command exists14:59
Almad joined15:00
jast only if you enabled rerere caching before15:00
antirobotrobot left15:00
xlq It's too late for that :(15:00
spearce joined15:01
xlq So there's absolutely no sane way to rebase a section of the graph which contains merge conflict resolutions?15:02
Almad Hi, is there any way to set user.name and user.password via environment variable? Cannot google it :]15:02
resmo joined15:02
Kathrin-26^away left15:03
xlq Almad: don't know about environment variable, but what's wrong with ~/.gitconfig?15:03
wereHamster Almad: GIT_AUTHOR_NAME, GIT_COMMITTER_NAME15:03
peritus__ left15:03
wereHamster GIT_AUTHOR_EMAIL also seems to exist15:03
xlq: when you want to set it in filter-branch for example..15:04
brett_h joined15:05
chalky joined15:06
marvil07 joined15:07
resmo how much source code of git is not yet C or when (year?) will be a native windows support available?15:10
Circuitsoft resmo: msysgit is reasonably functional now.15:10
It doesn't support git-svn or several other commands yet,15:10
But it works well enough for general development use.15:10
jast git-svn actually works in some versions of msysgit15:11
iulian joined15:11
resmo I'd like a native and official supported git version on win3215:11
xlq msysgit *is* native15:11
Circuitsoft That is in process.15:11
I think the fact that msysgit is separate from git makes it appear as an unofficial project.15:12
unofficial == unsupported15:12
jast most (if not all) of the windows-specific C code is in the official git repository15:12
effectively, certain tools will always require at least parts of current msysgit, notably filter-branch which needs to have a shell15:13
hurikhan|Work left15:13
Almad wereHamster: Thank You very much ;)15:13
xlq: ~/.gitconfig is fine for usage, not so much for my automated test suite ;)15:13
krawek joined15:14
jast Almad: for future reference, there's a complete list of git environment variables in man git15:14
oh, the bot is gone again, so here's the url: http://git.or.cz/man/git15:14
hurikhan|Work joined15:14
bcarlyon|laptop left15:14
[1]bcarlyon|laptbcarlyon|laptop15:14
tek0 joined15:14
Almad jast: ah, thanks, was blindly looking at man git-commit :)15:15
(and git-config)15:15
Kathrin-26^away joined15:15
resmo I feel like companies are scared using git because of the "not official supported on windows" thing...15:15
bremner resmo: and?15:16
peritus_ joined15:17
bremner i.e. what would15:18
jast where does it say that windows isn't officially supported?15:18
bremner official support look like?15:18
jast I mean, patches specific to windows are accepted, and there at least two competent regular developers who do contribute such patches15:19
Phoenixfire159 joined15:20
fdv jast: http://code.google.com/p/msysgit/ - 'Unfortunately, Git on Windows is only officially supported using Cygwin...'15:21
resmo sound great. Any differences between "git on Win" and "git on nonWin"?15:22
fdv (since you asked)15:22
Thumper_ fdv: use it anyway. it works15:22
jast I'm not sure that's the current state of things15:22
and I don't know who maintains that site either, so perhaps ask about that on the mailing list15:22
or on the msysgit mailing list I've heard exists15:22
xlq Well I've done most of what I wanted to do, with git-filter-branch15:23
resmo so you see my problem? I just need "hey, you know windows is ... but if you have to use git on windows, use the official supported git.exe."15:23
xlq tahnks wereHamster15:23
fdv Thumper_: I believe that, we're likely to move from svn sometime in a hopefully-not-too-distant-future, and so far, hg seems to be the preferred choice due to (rumored) better windows support.15:23
xlq *thanks15:23
jast resmo: out of necessity, yes. for example, windows it uses different line endings, so autocrlf is enabled by default on msysgit15:24
s/it //15:24
tek0 left15:24
fdv Thumper_: '*but* we're likely', that should have read15:24
Thumper_ fdv: use what works for you. :)15:25
fdv I do15:25
I use git-svn15:25
hg is probably fine, too15:25
bzr-svn turned out too slow for comfort15:25
mikl left15:25
jim_c joined15:26
jim_c Is anyone building the man pages from source on Mac OS X? I can build git from source easily enough, but building the man pages sent me down a dependency rathole.15:26
priidu_ left15:27
joelmoss joined15:28
joelmoss hi all15:28
resmo jim_c: I use macports, where i just build git latest15:28
joelmoss anyone got experuence with git-svn?15:28
resmo joelmoss: sure15:29
joelmoss just cloned my svn repo15:29
ph^ joined15:29
joelmoss so now I have my master15:29
but I committed changes to that and dcommitted them to svn15:29
jim_c resmo: Thanks. I usually build things from source when there aren't dependency nightmares, and don't have macports installed on this machine. (It is a sledgehammer where often a rubber mallet will do.)15:29
jackdempsey joined15:29
joelmoss but instead of committing it to trunk, it commited it to one of my branches15:30
whats that all about?15:30
Knirch hmm, I did a commit that shouldn't be there (I have all files elsewhere, so I don't care if data is lost) how do I delete/undo/rollback a commit?15:30
joelmoss resmo: any ideas?15:30
Knirch (noteworthy is that I'm in the middle of an git am operation)15:31
xlq Knirch: git checkout -b foo && git branch -D master && git branch -m foo master15:31
fdv joelmoss: what does git branch say?15:31
joelmoss master15:32
fdv then I'm at a loss :)15:32
joelmoss shouldn't master be trunk by default?15:32
jim_c `make test` for 1.6.1.1 fails on Mac OS X - known issue?15:32
joelmoss hmmm15:32
also...15:32
fdv trunk and master are just names, I guess15:32
jast master defaults to the branch last committed to when you ran git svn clone15:32
joelmoss jast: really?15:33
jast because, you know, git-svn doesn't try to auto-guess that trunk is the most important branch for you15:33
fdv wow15:33
joelmoss well that sucks15:33
Knirch xlq: I bet you're right, but walk me through this; I'll create a branch of the current master called foo (which includes my commit I didn't want), then I delete the master branch, and then merge foo with master, to my ears that sound like a noop (but then again, I'm an extreme git newbie)15:33
ska-fan How do I get the commit id of a commit that is a leaf in the commit tree but doesn't have a tag or a branch assigned?15:33
fdv jast: well, you do have the -T option to git svn clone15:33
ska-fan I do have the previous commit15:33
fdv shouldn't require too much guesswork15:33
jast and, well, you could have seen that by looking at what you are actually committing on top of15:33
telmich Knirch: you can create another branch based on an earlier commit, too15:33
jast fdv: and you have -s, so what? that just defines which directories to use15:34
joelmoss so why then if I checkout trunk, it tells me:15:34
Note: moving to "trunk" which isn't a local branch15:34
jast just because you define where trunk is doesn't mean you don't want to commit to branches/stable instead15:34
soul9 joined15:34
soul9 hi15:34
telmich Knirch: the bad commit is also still in your objects directory, though not in the branch anymore15:34
jast trunk is a remote branch at this point15:34
rubydiamond joined15:34
soul9 i'm trying to add a branch from an other local repo15:34
jast you can do this: git checkout -b trunk trunk15:34
soul9 doing git fetch /path/to/remote/repo gives me15:34
fatal: Not a git repository15:35
jast (you may get warnings about ambiguous names after you do that but you can safely ignore them)15:35
joelmoss jast: k, so then when I dcommit, it will push it to svn trunk?15:35
soul9 it is a git repo, though15:35
xlq Knirch: sorry, I made a mistake15:35
jast joelmoss: yes. as a general rule, when you look at the output of "git log", git svn dcommit will take the branch info from the newest svn commit in there and use that15:35
xlq Knirch: what I said would do nathing :)15:35
Knirch: assuming you're on master:15:35
git checkout -b foo master~1 # create a branch pointing to the parent of master15:36
joelmoss k, thx15:36
xlq git branch -D master # delete the master branch15:36
git branch -m foo master # rename foo back to master15:36
tek0 joined15:36
fdv jast: maybe it's just the way I'm used to work with svn, but I thought trunk was a fairly common convention in svn.15:36
jast it is, but it's not necessarily the branch you commit to most15:36
fdv true15:36
Knirch xlq: aaaaah, that makes more sense, thanks, I'm not quite clear on how to use <branch>~1 etc, what man page should I read up on to understand them better?15:36
fdv but I'd be less surprised to see master -> trunk :)15:37
jast it's basically an arbitrary decision that git-svn doesn't have master default to trunk, and it's potentially confusing15:37
Sho_ left15:37
xlq Knirch: git-rev-parse15:37
jast but there isn't really a good technical or structural reason to have master default to anything specific at all15:37
Knirch xlq: thanks again15:37
fdv jast: how about conventional?15:37
soul9 so how do i fetch a branch from a local repository?15:37
fgomez left15:38
jast soul9: generally what you did was right; are file permissions okay?15:38
soul9 yep15:38
jast try /path/to/repo/.git instead. generally you shouldn't have to but perhaps it helps anyway.15:39
soul9 nope, that won't do it either15:39
almad_ joined15:39
soul9 tells me the same thing15:39
jast does GIT_DIR=/path/to/repo git rev-parse HEAD work?15:40
okay, in this case you actually need /.git15:40
evanpro left15:40
jast hmm, it's 4:40 pm, perhaps I should get a bite of breakfast15:41
ndim Yay. 1250MB of RAM for "git svn", and rising.15:41
joelmoss left15:41
ndim I think "git svn" just forgets to free some memory.15:41
brett_h I committed 2 things, then did a reset HEAD^^ to go back ... how do I go forward 2 again? How do I checkout the actual, uh ... tip?15:42
soul9 jast: no, it doesn't15:42
jast soul9: does git work correctly when you're in that other local repo, then?15:43
brett_h: in theory, you just destroyed those two commits because you changed the branch tip.15:43
soul9 jast: all i did was tar cjf myhome.tar.bz2 /home/myhome and untarred it on my new machine's home15:43
jast: yep, seems to work15:43
archis joined15:43
tek0 can I reverse the precendence of exclude/include in .gitignore?15:44
jast brett_h: in practice, if that reset is the very last thing you did, git reset HEAD@{1} should change the branch tip back to what it was before15:44
soul9 jast: so i could just do a git push from the other repo, i guess..15:44
brett_h jast: I pushed them up first, so they're in origin/master15:44
jast: "Your branch is behind 'origin/master' by 2 commits, and can be fast-forwarded." except I have no idea how to do that15:44
jast oh15:44
git pull15:44
PerlJam tek0: why?15:44
rphillips joined15:44
tek0 PerlJam: "*; !foobar" and in foobar/.gitignore "something" results in "something" not being ignored15:45
soul9 jast: okay, finally found it15:46
willb joined15:46
soul9 dunno how it happened, but turns out the repo i was fetching to wasn't a git repo...probably some copy problem with hidden directories or whatnot15:46
i think i got it now..15:46
jast okay, that makes sense :)15:46
cilly left15:46
cilly joined15:47
jast tek0: you may want to add !foobar/* too15:47
I'm not sure if that makes things right, I just know that this particular behaviour is a bit non-intuitive15:48
tek0 jast: thanks, that did it15:50
jast I did a dive into the directory traversal code but I don't remember why it works this way :)15:50
chris2 joined15:52
Almad left15:53
zepolen left15:54
foca joined15:56
eevar2 left15:57
EiNZTEiN joined16:00
paulboone joined16:01
hmm__ joined16:02
bilboed-pi joined16:02
bilboed-pi Hi all, what's the config variable to disable non-fast-forward push on remote repositories ?16:03
tokkee bilboed-pi: man git-config -> look for "fastforward"16:04
bilboed-pi cheers16:04
ok, it was already set16:04
thx16:04
tsaleh joined16:05
almad__ joined16:05
tek0 jast: seems there's also the need for using /* instead of *16:05
Ilari bilboed-pi: If you want to disallow all remote commit deletion, you need to prohibit branch deletions too.16:06
bilboed-pi oh... good point16:06
ankit9 left16:06
ankit9 joined16:06
tsaleh is there a way in git to view the list of commits that touched a single line (or line range)? like blame, but not just the most recent commit?16:07
telmich interesting16:08
a bzr merge is like git merge --no-commit16:08
rolfb left16:09
pjz tsaleh: did you look at the options to blame?16:09
jim_c left16:09
tsaleh pjz: I did, but I didn't see anything that looked like it did that.16:09
I might have missed something though.16:09
tbrx_ joined16:10
drwilly joined16:11
stephenlb joined16:13
tav joined16:13
drwilly left16:15
julian_ joined16:16
bantic joined16:16
julian_ hello! i want to use the git-plugin with eclipse, but when i click on team => share project and chose "search for existing git repositories" then i cannot click on "next"...what's my problem?16:17
peritus_ left16:17
bilboed-pi left16:18
qrush_ joined16:18
xlq tee hee16:18
Voker57 try #eclipse or something16:19
almad_ left16:20
jast or the mailing list perhaps16:20
julian_ okay, thanks, but it seems i can import a project with the git plugin16:20
mtwdmn joined16:20
generalBordeaux doener, hey thanks for help yesterday ... i wrote a complete howto on setting up gitweb ... http://fedora.co.in/content/how-setup-gitweb-fedoracentos .. :)16:22
pierre- joined16:22
tek0 how can I print the diff that a given commit introduced_16:23
?16:23
qrush_ git format-patch16:23
doener git show16:23
torarne joined16:24
korpios joined16:26
azizaziz|away16:26
qrush__ joined16:26
johan-s left16:27
tav_ left16:27
qrush_ left16:28
keystr0k joined16:29
keystr0k is there a way to use git log and show modified files for each revision?16:29
Niamor left16:29
Almad joined16:30
doener git log [--name-only|--name-status|--stat]16:30
Niamor joined16:30
keystr0k doener, just found that in the help.... sorry16:30
mbroeker left16:30
resmo left16:33
name left16:33
Hendu left16:34
cilly left16:35
name joined16:36
tjafk1 joined16:37
reprore joined16:38
marvil07 left16:39
dedmajor wereHamster: thanx, cherry-pick seems like what i need16:40
xenoterracide joined16:40
almad__ left16:43
dgrant joined16:44
hobodave joined16:44
gitte joined16:46
jony joined16:46
foca left16:48
xenoterracide left16:49
cgardner joined16:51
DrFrasierCrane joined16:52
Umph|Dart joined16:52
almad_ joined16:52
Umph|Dart left16:52
adam[pac] joined16:52
aziz|awayaziz16:54
johan-s joined16:54
nurey joined16:56
simosx left16:56
nurey seems when i do a git pull via ssh it pulls in files that are not versioned as well... how do i prevent this and only pull in files that are versioned in git16:57
wereHamster git only knows about 'versioned' files16:58
docelic left16:59
bobesponja joined17:00
cardioid nurey: What are you talking about?17:00
priidu_ joined17:00
nurey when i'm doing git pull, it's consuming a lot of memory.. i saw a git-index process with 1.5GB17:01
i had to cancel the git pull17:01
offby1 joined17:01
cardioid And that has something to do with non-versioned files?17:01
dedmajor help me plz, now i have a problem with pushing my local changes into remote repository. i have cloned remote repo, checked out origin/1.0 branch into my local name 1.0, made changes in 1.0, committed it, cherry-picked it to master, everyting is committed, by when i'm trying git push it says failed to push move refs: [rejected] 1.0 -> 1.0 (non-fast forward). what does it mean? what am i doing in a wrong way?17:01
nurey cardioid: no i was jumping to conclusions17:02
pantsman dedmajor: tried pulling first?17:02
jast dedmajor: please see http://git.or.cz/gitwiki/GitFaq#non-ff for general hints about this error message17:02
dedmajor pantsman: yep, it says up-to-date17:02
jast: thnx17:02
wereHamster dedmajor: non-ff17:02
JasonWoof joined17:03
offby1 is grateful that the full moon has already passed17:03
zumbrunn joined17:04
d0k joined17:06
dedmajor i was previously using svn, i'm just have no time to read docs because of deadline of the project and no one near me can help me right now.17:06
so sorry for stupid questions.17:06
Almad left17:06
jast don't worry about it17:07
gitte offby1: the moon passes all the time, and last time I checked, always in its entirety.17:07
jast the only really annoying thing is people who ask questions but omit all the details and can't provide them even upon request17:07
offby1 gitte: _you_ know that and _I_ know that, but thankfully the dread wereHamster doesn't know that.17:07
sgronblo I messed up a bit. I had some useless stuff in the stash that i applied. So I tried checkout on the two affected files, then git reset HEAD and git add -u, now the two file are still listed as modified but I just want to restore them to the latest commit and get rid of the stash.17:08
jast you can drop stashes using git stash drop or git stash clear (which removes all stashes)17:08
to get the state of a file from the last commit, use git checkout HEAD -- file17:09
EiNZTEiN left17:09
jast to return everything to the state of the last commit (and thus lose all uncommitted changes), use git reset --hard17:09
EiNZTEiN joined17:09
eno__ joined17:10
julian_ left17:10
sgronblo Aha, that worked. Thank you very much. So is there a way to see diffs between a stash and the current state of the files. Or do you have to apply a stash and then git reset --hard if you noticed that you had stashed some stuff that had become useless?17:10
git stash show only seems to show the amount of lines changed for me17:11
eno__eno17:11
muthu_ joined17:12
jast sgronblo: show -p will give you all details17:12
tbrx_ left17:13
schacon left17:13
jast (this is actually documente din the git-stash manpage)17:13
naeu left17:13
sgronblo Aha, thanks again. And you're right. Somehow I missed it.17:13
gebi_ left17:13
ahupp|fb joined17:13
deavid left17:15
foca joined17:15
palam joined17:16
dsal joined17:16
deavid joined17:16
palam i uncompressed the git archive into my desktop and ran make and make install from there17:17
i'm on mac os x17:17
and now my home directory is littered with git stuff17:17
how do i fix this?17:17
DrFrasierCrane left17:17
vuf_ left17:18
Kathrin-26^away left17:18
Kathrin-26^away joined17:18
tbrx joined17:18
azuk palam, remove the litter, try again but read the documentation (INSTALL) first17:18
lois[pac] joined17:18
JasonWoof I'm sick of proixes! this computer (my main computer) is connected indirectly to the internet. I've got ethernet-over-usb to my nokia tablet (n810, running linux) the tablet is on the wireless network, which get's it online17:19
I've got an http proxy running on the tablet, and socks proxy running locally through ssh17:20
that's got firefox and pidgin and some other stuff working, but it's annoying17:20
palam azuk: i can just delete the directories?17:20
and it won't break a new installation of git?17:20
JasonWoof how can I make this more transparent? I'm hoping there's some way to do this, so I can do dns and ssh and stuff as though I had a direct connection17:21
openvpn has this sort of transparency17:21
david_koontz joined17:21
chalky left17:23
JasonWoof palam: I suggest you delete everything and install git again, but this time tell it a better place to install17:24
palam: usually this is done with the --prefix flag of the ./configure script17:24
palam JasonWoof: so thats some 6 directories in my home folder? no hidden stuff right?17:25
azuk palam, it's hard to see how undoing what you did would break future git installations17:25
JasonWoof palam: I have no idea how you got a bunch of files in your home folder17:25
palam ok, thanks guys17:26
azuk JasonWoof, default prefix is $HOME17:26
JasonWoof oh17:26
lois[pac] left17:26
JasonWoof oh, proxy stuff was meant for a different channel, sorry 'bout that17:27
korpios left17:28
nothingmuch is there a way to list all the refs?17:28
Pieter git for-each-ref17:28
nothingmuch ta17:28
sgronblo Any idea why I suddenly get unable to unlink old (Permission denied) when I try to revert a file?17:30
not git revert though, i tried git checkout <file> and git checkout HEAD -- <file>17:31
qrush__ left17:32
mcella left17:32
qrush_ joined17:32
heipei sgronblo: because your user doesnt have permission to do so?17:34
ls -l is your friend17:34
sgronblo I have u+rwx on the file, so I don't see why it shouldn't work17:34
heipei maybe its owned by root17:34
hm17:34
maybe on some file in .git?17:35
shaftyy left17:36
korpios joined17:37
sgronblo Well it specifically refers to this one file that it can't unlink. And I own and have all rights for it.17:38
travisjeffery joined17:38
jast for unlinking you need write permission to the directory the file is in17:38
heipei well, there is no string "Permission denied" in git, so i guess the problem is not with git ;)17:39
jast (that's the only thing that matters, basically)17:39
nothingmuch heipei: that string is created by the system17:39
sgronblo jast, there you go, for some reason i did not have write permission on the dir17:39
heipei nothingmuch: yeah, thats what im saying ;)17:39
jast great, another easy solution :)17:39
cilly joined17:39
jast I like easy solutions17:39
foca left17:40
sgronblo Wonder what would have caused it to become u-w though...17:40
jast I didn't do it!17:40
dgrant left17:41
joelmoss joined17:42
joelmoss does anyone know if git-svn updates SVN's mergeinfo data when merging svn branches?17:43
markelikalderon joined17:43
dedmajor well, one more question that i cant find in docs at once - i need multiple checkouts of different branches at the same time, for testing for example. should i git clone the same remote repository twice in separate directories, or clone remote into one directory and then clone this local repo into other local repo in other local directory, or maybe i need to symlink something, or what?17:43
naeu joined17:43
jast joelmoss: that's not supported yet (and, frankly, I don't think anyone has started changing that)17:43
joelmoss hmm, thought so17:44
ahupp|fb left17:44
PerlJam joelmoss: at some point ... you should just switch the repo to git :)17:44
jast dedmajor: I think there's a git-new-worktree script floating around somewhere, but cloning local repos is pretty efficient too17:44
joelmoss so if I merge an svn branch into trunk and vice versa, the mergeinfo won't get updated, and others who are still using SVN will be screwed?17:44
Bonsomer joined17:44
joelmoss PerlJam: would love to, but not my decision17:44
Bonsomer http://outexp.org/go.php?276 Join Please!17:45
http://outexp.org/go.php?276 Join Please!17:45
joelmoss my boss ain't convinced yet17:45
Bonsomer http://outexp.org/go.php?276 Join Please!17:45
beachsurfin left17:45
nud left17:45
tav_ joined17:46
peritus_ joined17:46
bentob0x left17:46
nothingmuch Pieter: btw, something that came up earlier - how do you map a sha1 back to all the refs/ do you just create a looku p structure on the gitx side or does git-log have some magic to list them?17:46
joelmoss left17:47
dedmajor jast: ok, thanx. i have cloned local repository, and screwed up with fast-forward. may be it's an issue of my previous question about pushing. i resolved it by cloning new clean repository and pushing changes from this only repo to the remote side.17:47
beachsurfin joined17:47
Bonsomer left17:48
jmesnil left17:48
Pieter nothingmuch: yeah, I have a hash in GitX17:48
nothingmuch: but you can just use git log --decorate17:48
nothingmuch ah, cool17:49
so essentially all the data gitx's log view shows is in --decorate --graph?17:49
Pieter yes17:50
HenkWesthuis joined17:52
lois[pac] joined17:52
tsalehtsaleh|away17:52
tsaleh|awaytsaleh17:53
Kathrin-26^away left17:53
Kathrin-26^away joined17:53
tav left17:53
cilly left17:54
mtwdmn left17:54
tmz left17:55
_Vi left17:56
Ariens joined17:57
HenkWesthuis I have a question about git-config17:57
lois[pac] left17:58
HenkWesthuis whenever I run git-config --unset test.test it empties the test setting17:58
bun when I run git-config test.test test, it creates a new entry, so I have 2x [test] in the config file17:58
annoyone knows how to prevent this??17:59
metzemetze_away17:59
_slacker_ left18:00
softdrink left18:00
jtimberman joined18:01
Ilari HenkWesthuis: What git version?18:02
palam left18:03
kennethlove joined18:03
bobmcw joined18:04
cilly joined18:05
drizzd joined18:05
softdrink joined18:06
priidu_ left18:06
almad__ joined18:07
Catfish Hmm. I was halfway through changing some code when I decided that the file I was working with was too big. I stashed my changes, split the file into 2 (with a couple of minor changes), and committed18:07
I was optimistically hoping that when I git stash apply'd, the changes that I made to the bottom half of the original file would be merged into the new 2nd file, but this doesn't appear to be the case18:08
Was I expecting too much?18:08
cedricv left18:08
ahupp|fb joined18:09
HenkWesthuis Version 1.6.118:11
almad__ left18:11
gitte Catfish: yes, you were.18:11
PerlJam git isn't *that* magical18:13
gitte Git is actually not magical at all. It is elegant, that's what it is.18:14
PerlJam well, it sometimes seems magical :)18:14
but maybe that's only from the perspective of another impoverished VCS like svn :)18:15
cgardner how would I remove a commit from the repository?18:15
PerlJam cgardner: rebase -i18:15
Catfish gitte: Would it have worked if I had just renamed the file, rather than splitting it in 2?18:15
PerlJam cgardner: though, are you trying to remove the most recent commit?18:16
lois[pac] joined18:16
ijcd left18:16
cgardner PerlJam: Yes, it is the most recent commit18:16
bradly joined18:16
PerlJam cgardner: then you have options.18:18
cgardner: you can use rebase -i, or you can just reset HEAD to be the commit prior18:18
cgardner PerlJam: ok, THanks.18:18
deavid left18:19
cilly left18:19
cilly joined18:20
almad_ left18:20
foutrelis left18:21
tango_ left18:22
seangrove left18:22
sverrej left18:23
nud joined18:23
deavid joined18:24
bryanl joined18:25
tav joined18:25
hurikhan|Work left18:25
tsaleh left18:26
xenoterracide joined18:26
robinr joined18:26
tvw joined18:26
lois[pac] left18:27
cgardner When doing an interactive add, I've selected to do a patch add. What do the "a" and "d" mean and is it possible to split up a huge diff hunk?18:28
ahupp|fb_ joined18:28
ahupp|fb left18:29
azuk did you already try "?"?18:29
beachsurfin left18:30
cgardner azuk: yes. but I just didn't scroll up. :(18:30
softdrink left18:30
dreiss joined18:30
HenkWesthuis left18:31
tav_ left18:32
torarne left18:33
naeu left18:34
naeu_ joined18:34
naeu_ left18:36
naeu joined18:36
tmz joined18:38
simosx joined18:39
cthompson joined18:40
seangrove joined18:40
galderz left18:42
name left18:44
spearce left18:45
jony left18:45
alley_cat joined18:46
mbroeker joined18:47
tav_ joined18:48
ceej joined18:48
Kathrin-26^away left18:49
korpios left18:49
Kathrin-26^away joined18:49
lresende joined18:50
ceej left18:50
Kbyte left18:51
masak joined18:51
spearce joined18:52
ceej joined18:53
ahupp|fb joined18:53
Sigma joined18:54
tav left18:55
saimon left18:55
jtimberman left18:55
beachsurfin joined18:56
peritus_ left18:58
nothingmuch is there a way to filter-branch all the refs at the same time?18:58
simosx_ joined19:00
wereHamster nothingmuch: how do you mean all refs at the same time?19:00
ThoMethomas19:00
nothingmuch instead of jsut a single ref (e.g. HEAD) i'd like to filter all the imported refs in refs/heads/*19:00
since most of them share hsitory it's wasting a lot of time filtering the same commits over and over19:01
wereHamster for ref in .git/refs/heads/*; do git filter-branch ... ; done ?19:01
cthompson left19:01
nothingmuch that's sort of what I'm doing19:01
it's just really slow19:01
simosx left19:01
simosx_simosx19:02
fynn joined19:02
tvw left19:02
wereHamster nothingmuch: did you use -d ?19:02
muthu_ left19:02
sverrej joined19:02
fynnGuest8579619:02
nothingmuch i don't think it'll matter much19:02
wereHamster see the note about '-d' in the DESCRIPTION section of the man page19:03
sverrej left19:03
nothingmuch i'm not doing tree filter19:03
Ariens left19:03
nothingmuch only msg filter19:03
parasti joined19:03
patmaddox joined19:04
sverrej joined19:04
sverrej left19:05
sverrej joined19:07
sverrej left19:07
wereHamster then theres nothingmuch you can do :P19:07
ijcd joined19:07
tango_ joined19:07
sverrej joined19:08
Tv joined19:08
nothingmuch ;_;19:09
xenoterracide ok this time I'm going to write it down... how do I reset a fast forward?19:10
agib are there significant differences between 1.5.5.1 and 1.6.x.x?19:10
nothingmuch xenoterracide: without changes in the working dir, just reset --hard HEAD@{1}19:10
that resets to the previous entry in the reflog19:11
with changes in the working dir, git stash first, then git stash pop19:11
johnw joined19:11
xenoterracide nothingmuch: what's the diff between that and reset --hard HEAD?19:11
Beket left19:12
tvw joined19:12
xenoterracide because if I remember right reset --hard HEAD doesn't work on a fast forward as the last commit isn't the merge...19:12
jeckel joined19:12
schacon joined19:13
peritus_ joined19:13
Ilari agib: There are some improvements. However, 1.6.1 has a bug which can cause two 1.6.1's to report corrupt objects on object transfer in some cases...19:14
agib Ilari: ah ok -- but if I have 1.6.1 on my dev machine i'm ok to put 1.5.5.1 on my centos server for deployment?19:14
Beket joined19:15
ahupp|fb left19:15
Ilari agib: Yes. And that pair is not affected by that transport bug (it can only manifest itself if both ends are 1.6.1).19:16
agib: Also, probably 1.6.1.1 suffers from it as well...19:16
sverrej left19:16
NSaibot joined19:16
agib ahh19:16
ok19:17
Ilari: thank you!19:17
Guest85796 left19:17
Ilari agib: And that bug doesn't manifest itself if both repos are self-contained.19:18
ahupp|fb_ left19:18
agib self-contained?19:18
Ilari agib: Meaning no alternates.19:18
agib ahh19:18
d0k left19:18
agib my set up is me (dev) git 1.6.0.1 <===> github <===> server (prod) git 1.5.5.119:19
tanek__ joined19:20
Ilari agib: Actually, that bug mostly hits git hosting services. :-(19:20
agib is the bug fatal?19:20
Ilari agib: Makes transfer fail.19:21
codebrulee_ joined19:21
agib so if I haven't seen a fail...19:21
:)19:21
cilly left19:21
d0k joined19:21
cilly joined19:21
cmarques left19:22
Ilari agib: Github has downgraded Git after that bug was discovered, so it doesn't show up with github currently.19:22
Arafangion left19:22
rubydiamond left19:23
Ilari agib: Its fixed in maint and master branches of git.git...19:24
agib: Actually in all branches of git.git that contain git source code...19:25
xlq left19:25
ceyusa left19:26
agib ah nice -- so hopefully we'll be rid of this problem19:26
Ilari agib: The problem is that 1.6.1 sender sends .have lines, and .have line with unknown ID makes 1.6.1 receiver to blow up.19:29
lois[pac] joined19:29
Ilari agib: Older versions don't send .have lines, and ignore received ones.19:29
codebrulee left19:29
tav joined19:31
jriga_ joined19:32
jriga_ left19:33
ph^ left19:37
tav_ left19:38
warlock_mza left19:40
nothingmuch urgh19:41
can't git show not show a diff?19:41
i'm trying to get just the tree19:41
--pretty=format:%T19:41
alley_cat left19:43
parasti nothingmuch: git show -s IIRC19:44
harryjr /part19:44
harryjr left19:44
nothingmuch ta19:44
do you know the long name for that? might as well submit a doc patch19:45
parasti nothingmuch: not sure if there is a long name. it's probably from git-diff-tree (mentioned in the git-show manpage)19:46
alley_cat joined19:46
jeckel left19:46
nothingmuch thanks19:46
_slacker_ joined19:50
ph^ joined19:52
alley_cat left19:52
jtimberman joined19:53
jriga left19:53
hmm__ left19:54
tav left19:54
cilly left19:55
cilly joined19:55
qrush_ left19:58
tav joined19:59
plasticine joined20:00
schlort left20:00
parasti nothingmuch: BTW, there's actually syntax for what you're trying to do: "rev^{tree}"20:01
reprore left20:02
reprore_ joined20:02
gitte or append a colon.20:02
lorandi left20:02
deavid left20:04
parasti oh right, even better20:04
LuboC joined20:04
LuboCLubo20:05
bieneff joined20:05
schlort joined20:06
rwaite left20:11
RoPP joined20:12
Niamor7 joined20:12
davidfetter left20:13
qrush_ joined20:13
Niamor left20:14
Niamor7Niamor20:14
nothingmuch parasti: ah, thanks20:14
Pieter: i've been trying to read the docs for how to control scrolling but it's beyond me (dunno cocoa), so here's a feature request: when i've searched and selected a commit, and click [x] to clear the search it'd be nice if the scrolling was centered around it, so i can see the nearby commits20:15
reprore_ left20:16
Beket Any idea why git pull --rebase did rebase, whereas git rebase master told me that 'master is already up2date' ?20:16
reprore joined20:16
foca joined20:16
DrNick Beket: because git rebase operates locally, but git pull operates with remote repositories20:17
deavid joined20:18
Beket Thank you DrNick!20:18
Perhaps I should create a local branch of master, the git pull to master and git rebase to my local branch.20:18
nothingmuch hmm20:18
peritus_ left20:19
nothingmuch mugwump: how do you "guess" merge points? i'm trying to create a grafts file20:19
for Class-MOP20:19
but i think i will just do it manually20:19
DrNick Beket: you already have one -- it's called origin/master20:19
d0k left20:20
Beket DrNick, so I should write git rebase origin/master ?20:20
DrNick no20:20
Beket but git rebase expects <upstream> according to the man page20:22
Lubo left20:22
ned joined20:22
vbabiy joined20:22
k776 joined20:23
Circuitsoft If I have a branch called This_Is_Yet_Another_Branch, can I do something like "git branch -d Thi*"20:24
?20:24
k776 left20:24
ahmed123 joined20:24
vuf you can have tab completion20:24
pierre- left20:25
vuf git.git/contrib/completion/git-completion.bash20:25
Circuitsoft I'm on cygwin and I have bash completion disabled because it takes too long for it to step through all possible completion scripts.20:25
ahmed123 hi all, I have ssh access to a machine which has a git repo but when I try to clone it from a different machine I get 'unable to chdir or not a git archive' , I'm sure the repo url is correct20:25
Circuitsoft ahmed123 - are you using a relative path, or an absolute path?20:26
ahmed123 Circuitsoft: absolute20:27
Circuitsoft Can you paste your clone command line here?20:27
(Block out sensitive data with individual placeholders)20:27
ahmed123 git clone ssh://my.server:80/home/ahmed/projects/december/code.git20:28
dmlloyd_ joined20:28
Kathrin-26^away left20:29
ahmed123 my ssh server runs on port 80 to get around firewall issues at work20:29
Kathrin-26^away joined20:29
dmlloyd_dmlloyd20:29
saimon joined20:30
tvakah ahmed123: if I were you I'd enter a stanza in ~/.ssh/config to set port and hostname to a convenient alias such as "home"20:30
ahmed123: then you can just "ssh home" and "git clone ssh://home/path"20:31
thumper joined20:31
nurey left20:31
Savago left20:31
ahmed123 tvakah: thanks, I didnt know it could be done that way. I use an alias in .bashrc instead20:31
tvakah ahmed123: aye you can specify any options you'd put on the command line in there20:32
Beket left20:34
thumper left20:37
hendry joined20:39
bieneff left20:39
schlort left20:40
schlort joined20:40
alley_cat joined20:40
hendry i'm doing a `git diff ..foo bar` and i want to cherry pick parts using vim diff. how do i that? perhaps how do i checkout '..foo bar' to /tmp/diffme?20:41
thumper joined20:42
Pieter git diff ..foo bar > /tmp/diffme?20:42
Yuuhi joined20:42
Pieter you can also use git add -p and use the 'edit' command20:42
hendry Pieter: that's just the diff, which i can't use with vimdiff20:43
Fearliss joined20:43
Pieter oh, that's too bad then20:43
there's a difftool in contrib20:43
<HEAD:contrib/difftool>20:43
ahmed123 that's odd. ssh://*/code.git gives me "unable to chdir..." but ssh://*/code/.git works fine20:43
Pieter oh20:43
Gitbot joined20:43
ahmed123 anyone know why?20:44
Pieter ahmed123: because they're two different directories?20:44
<HEAD:contrib/difftool>20:44
Gitbot [git difftool]: http://tinyurl.com/byfycs [tree]20:44
hendry what can't i do something like `svn cat` of a single file from another branch?? `git show ..foo file` does not work :/20:45
beowuff joined20:45
ahmed123 Pieter: every other git url I've seen is in the form code.git rather than code/.git - I thought there was some git magic at work20:45
Pieter ahmed123: no, the .git is a convention20:46
ahmed123: often used by people to indicate it's a bare repository20:46
hendry: git show foo:file20:46
keystr0k left20:46
ahmed123 oh i c. How would I get the same effect? a symlink?20:47
Pieter yes, or rename your repository to include .git20:47
Vantage joined20:47
Ilari Additionally, foo.git usually contains the repository stuff (refs, objects, etc...) directly under it.20:48
Pieter the 'clicktoflash' thing is getting a lot attention :o :)20:48
oh, nvm20:48
ahmed123 Pieter: thanks!20:49
gebi joined20:50
hendry Pieter: thanks btw20:51
Kathrin-26^away left20:51
Kathrin-26^away joined20:51
ahmed123 left20:51
lucsky left20:52
thumper left20:54
thumper joined20:54
schacon left20:55
spearce left21:00
spearce joined21:02
jrmuizel joined21:05
saimon left21:05
vbabiy left21:06
_Vi joined21:07
spearce left21:08
Phoenixfire159 left21:08
rcrit joined21:09
warlock_mza joined21:10
Beeet joined21:11
up_the_irons joined21:12
flazz left21:17
flazz joined21:17
davidfetter joined21:18
rcrit I want to reorganize some files and directories in my tree. git-mv doesn't retain history. Is there a way I can keep the history of my moved files?21:19
doener git detects renames after the fact21:20
for example, you can use "git log --follow -- foo" to follow the history of foo across renames21:20
rcrit ok, I was using just git log foo21:20
thumper left21:21
thumper joined21:21
rcrit maybe I'll put that into the commit message. Thanks!21:22
Pieter hmm, you know what would be nice? If you could pass on a path to an email to send-email, and that it automagically fills in all the To:'s and In-Reply-To21:23
greyface joined21:24
mikl joined21:25
cilly left21:27
reprore left21:28
thumper left21:29
thumper joined21:29
bdiego joined21:31
rcrit left21:33
mugwump nothingmuch: depends how the merge was performed21:33
if it was plain svn you can't know unless the use used svn 1.5+21:34
(which of course doesn't come with current stable debian or ubuntu, for instance)21:35
according to the best practice manual they should have "noted in the commit message what was merged"21:35
so look for those notes21:35
ia joined21:35
mugwump if svn 1.5+ was used there will be a svn:merge attribute21:35
if svk was used there will be a svk:merge attribute21:36
somewhere21:36
eg, svk:mergeinfo21:36
Phoenixfire159 joined21:36
greyface left21:37
mugwump also, depending on how the svk merge happened the revision that was noted as merged might be a private version existing only in someone else's local depot21:37
Yuuhi left21:37
mugwump those unhandled attributes end up noted in .git/svn/ somewhere ... look for an unhandled.log21:38
(iirc)21:38
loiseau joined21:38
agenteo joined21:43
WALoeIII joined21:43
_death joined21:44
Thargor joined21:45
awarrington joined21:45
nbrunson joined21:45
thumper left21:45
Thargor I git rm'ed a few things I want back now, how can I get them?21:45
masak left21:45
Thargor (without loosing other uncommited changes)21:46
thumper joined21:46
_death use git gui?21:46
qrush_ Thargor: git checkout <file>21:47
Ilari thumper: 'git checkout HEAD -- <file>'?21:48
_death http://paste.lisp.org/display/74451 <- can anyone explain this? I think it's some index file weirdness21:48
parasti qrush_: that will try to check out from index (which will be empty)21:49
thumper Ilari: wrong Thumper_21:49
awarrington when i do a git pull, it tells me a file is not up to date, and won't merge....i realize that the file is modified but not checked in in my local repo, but why can't git just attempt to merge it anyways21:49
Thumper_ heh21:49
_death gitk also reports that I have "local uncommitted changes" when that happens, and it usually fucks up rebase attempts.. not fun21:50
doener _death: git diff-files doesn't update the index21:50
_death doener: yes, but git status does21:50
doener _death: so the diff-files probably ran with an old index21:50
_death: yeah, and thus the second diff-files is empty21:50
Ilari Thargor: 'git checkout HEAD -- <file>'?21:51
hendry left21:51
doener awarrington: because a conflict would then left you in a state where you can't separate the uncommitted changes from those that should go into the merge commit21:51
s/left/leave/21:51
Thargor Ilari: thanks, worked21:52
_death doener: but it seems to happen w/o any good reason21:52
mapmp joined21:53
awarrington doener: thanks for that response! What do you think the appropriate work flow would be if i want to work on some files and continue to pull before i commit those files? Or is this just an unreasonable way of doing things?21:53
thumper left21:54
doener awarrington: either commit or stash your changes, merge and then unstash21:54
awarrington: comitting partial changes just to do a merge isn't that good an idea21:54
awarrington: because you then have that "broken" commit in your history21:54
awarrington doener: i agree, so stash is the weapon i should use then21:55
thumper joined21:55
awarrington doener: kind of annoying though that it's a two step process :/21:55
doener awarrington: at least for me, it's rather uncommon to merge while I have uncommitted changes anyway21:56
awarrington: I just do my stuff and can get new stuff from upstream later21:56
awarrington doener: sometimes i'll be working, an api will change, i'll want to modify my code to use it so i'll try to do a merge from the remote repo....but if i also have unfinished code, i don't want to commit just to do that pull...21:58
doener: exactly what you are saying pretty much21:58
RoPP left21:58
awarrington doener: but it doesn't make sense to wait to get new stuff from upstream when it will help me now21:59
NSaibot left21:59
doener awarrington: I'd just finish the thing and only then, depending on the context, fix the api stuff later in the merge commit or using rebase21:59
brendon_work joined22:01
mapmp left22:02
jeckel joined22:05
Vantage hi, I'm looking at my tree in gitk and git log and after some merging of branches, work, commits, etc. I'm seeing occurrances of multiple commits. I'm seeing two commits with the same time stamp, same commit message, same diff, but with different sha1's for the id. Any idea what causes this?22:05
leachim6 joined22:05
kevlarman different history?22:05
doener cherry-pick'ed?22:05
kevlarman or rebased22:06
doener do _both_ times match? (author and committer)22:06
leachim6 in git terminology ... what does Cherry-pick mean ?22:06
esparkman left22:06
doener leachim6: take a single commit and apply it to what you have checked out22:07
leachim6 so the history starts at that commit ?22:07
doener leachim6: author/msg/diff (except for conflicts) are kept by default, just different parents22:07
Weaselweb joined22:07
Vantage no cherry pick, but some rebasing, but prior to merge22:07
so feature branch A is worked on, a release goes, developer rebranches branch A off the new master, the gets put on to a branch, and later merged to master22:08
er rebases rather, not rebranches22:08
doener Vantage: seems that he also merged the old version then22:08
spearce joined22:08
greyface joined22:09
cemerick left22:09
Vantage doener: any way to know for sure?22:12
doener Vantage: you'll probably see two merge commits that say that the given feature branch was merged22:13
Vantage: and one merges the old stuff and the other the new stuff22:13
Vantage: or just ask the responsible dev22:13
Vantage doener: that's the problem. No one remembers :)22:14
doener: I see one merge branch with 3 commits doubled (so 6 total), but I'm not sure how it happened22:14
akitada left22:15
akitada joined22:16
foca left22:17
Vantage doener: it seems whenever there's a merge between two branches it shows the commits in both source branches even though they're not there...22:18
Thargor left22:21
kennethlove left22:21
schacon_ joined22:21
Thargor joined22:22
jriga joined22:25
foca joined22:26
boto left22:27
ciskje joined22:28
hendry joined22:30
Phoenixfire159 left22:30
hendry i forgot something in a commit, so do i edit the last commit somehow, or do i new commit and somehow squash the commits?22:30
alley_cat left22:30
kevlarman hendry: checkout git commit --amend22:32
priidu_ joined22:33
bradly is there an easy way to undo a pull?22:36
Vantage bradly: git reset --hard22:37
hendry kevlarman: thanks you22:37
zizzfizzix1 joined22:37
Vantage When you rebase do your commits that get replayed get new sha1 values?22:37
foca left22:38
jriga left22:39
parasti Vantage: if upstream has changed, yes22:39
Vantage parasti: upstream has changed?22:39
parasti: you mean if there are new updates on the branch your rebasing against?22:40
bryanl left22:41
faithfulgeek joined22:41
kennethlove joined22:41
parasti Vantage: yes, but it's not necessarily new commits... if, say, upstream has had a commit removed or rewritten, you'll get new SHA1s too22:42
warlock_mza left22:43
faithfulgeek left22:43
brett_h left22:43
Vantage parasti: ah... even though all the commit details will be the same. What causes the new sha1 value? The time of the commit is unchanged as is the content. What else is used to generate the value?22:43
dsal left22:45
_death left22:46
LiamH left22:47
parasti Vantage: generally, I think a SHA1 of an object is some header + content of the object22:47
Vantage: the "content" is generally what you see with git cat-file22:47
Vantage: but this is fairly low level stuff... even for Git22:47
Vantage parasti: cool. Just curious where it came from22:48
parasti Vantage: try a git cat-file commit $rev22:48
Vantage: you'll see that a commit object keeps track of its parents. so in case of rebase, that's one of the things that cause SHA1 to change22:50
Vantage parasti: ah.... that actually makes sense.22:50
Ryback_ left22:51
naeu left22:51
simosx left22:51
bobmcw left22:51
zizzfizzix1 i want to make new project with my friend collaborating remotely with git, how do i do this?22:52
wereHamster zizzfizzix1: that's a pretty broad question, can't you be any more specific?22:52
zizzfizzix1 i've made new local repo, he too and we want to connect it22:53
wereHamster do you both have ssh access to a central server?22:53
zizzfizzix1 no we haven't any server just local machines22:54
can we do this?22:54
codebrulee_ left22:54
wereHamster yes, that's possible. Either start git-daemon or give him an ssh account so he can access your repo on your local machine22:55
so he can pull from you. And he does the same and you pull from him22:55
zizzfizzix1 what's with git-daemon?22:55
how does it work?22:55
wereHamster it allows other people anonymous access to git repositories22:56
zizzfizzix1 can't it be on password?22:56
bradly Vantage: reset --hard won't reset a pull will it?22:56
wereHamster if you want protection, I'd suggest ssh22:56
thiago_home joined22:56
_death joined22:57
a-priori joined22:57
Vantage bradly: it will reset you to whatever commit you specify. So just pick the last commit before the merge22:58
bradly: eg. git reset --hard e4323ef22:58
zizzfizzix1 so how to do this with ssh?22:58
like scp x@192483995 ?22:58
bradly Vantage: ohh okay. i was running it without specifing a commit22:58
_death doener: http://paste.lisp.org/display/74451#1 <- this one better shows the problem.. why does index get corrupted?22:59
wereHamster zizzfizzix1: no, ssh://your-host/path/to/your/local/repo22:59
Vantage bradly: yeah, by default it just uses your current HEAD22:59
doener _death: hm, good question. Never seen that with rebase23:00
zizzfizzix1 you mean i.e. "git clone ssh://host/repo" ?23:00
wereHamster zizzfizzix1: yes23:00
zizzfizzix1 thanks23:00
doener _death: though I'm more likely to use "rebase -i" anyway, which works in quite a different way23:01
deavid left23:03
foutrelis joined23:04
_death doener: it makes git practically unusuable, because the first rebase I did actually failed because of the corruption.. I wanted to re-order and squash, and it failed.. then I tried it in two steps and it worked23:04
TokyoDan joined23:04
doener is nfs or so involved there?23:07
_death doener: I'm pretty sure it also happened to me with msysgit when I worked on a windows machine.. and it only happened with recent versions23:07
no23:07
mikl left23:07
EmilMedve left23:07
bdimcheff left23:09
Owner joined23:09
robinr _death: it took only ten minutes to find a bug in git for me when I started using it (in 2006)23:09
philc joined23:09
krawek_ joined23:09
fujin joined23:09
fujin if I've just cloned a repository, is there an easy way to adjust what branch my local 'master' tracks?23:10
by default it'll obviously track origin/master23:10
_death robinr: I found and fixed some git bugs, too23:10
doener fujin: change branch.master.{remote,merge} in the config23:10
philc I'd like to use an svn repo on local disk. Previously I've used https://mysvnrepo.com as the url for the svn-remote in .git/config. I've tried replacing this url to be "url = file:///mnt/mysvn-directory" but after doing that, git svn rebase hangs with no output23:10
is there something I can try or debug?23:11
_death actually this one looks related to http://n2.nabble.com/Possibly-spurious-'not-uptodate.-Cannot-merge'-td1654935.html23:11
doener philc: set rewriteRoot in the config to the old url23:11
Weaselweb left23:12
doener philc: that way, the commit messages will still have the old url, and git-svn can look up the upstream23:12
philc: but the actual operations will work with the new url23:12
philc doener: awesome.23:13
hope this works. It's 2600 commits23:13
Zimm joined23:14
markelikalderon left23:14
markelikalderon joined23:17
k0001 joined23:19
_death http://paste.lisp.org/display/74451#2 <- is this case to be expected?23:21
loiseau left23:21
priidu_ left23:22
dsal joined23:22
bantic left23:23
Owner left23:23
Owner joined23:25
krawek left23:25
thumper_laptop joined23:25
cmarcelo left23:28
km2 joined23:29
greyface left23:30
EiNZTEiN_ joined23:31
km2 recommendations for books about git? is there an accepted "bible" of it out there somewhere?23:31
EiNZTEiN left23:33
fujin left23:33
doener joined23:34
cthompson joined23:35
philc doener: I'm not sure that option is without bugs. I made the modifcation, made a few commits, had a failed commit (svn telling me I'm out of date), reset to the last successful commit, but git svn dcommit --dry still has output23:35
doener philc: so you did "git svn fetch" and "git reset --hard git-svn" (or whatever the tracking branch is called", right?23:36
Sigma left23:36
philc doener: immediately after the I changed the configuration, or after the failed commit?23:38
doener after the failed commit23:38
I'm trying to figure out what you did23:38
of course, if you did that after changing the config, you'd have nothing to dcommit23:39
philc right23:39
doener and even after that reset --hard to "git-svn" (or whatever), dcommit -n says it's going to commit something?23:39
philc one second23:40
git svn fetch is too expensive23:40
codebrulee joined23:40
philc it's going to pull down thousands of branches; so I've run git svn fetch -rRevNumber, which is the latest rev of svn23:40
er, not thousands; tens of branches23:41
doener uhm.. that probably created a disconnected commit now, messing up the history23:41
hendry left23:41
philc doener: do you know if it's possible to fetch a single remote branch instead of all remote branches I'm tracking?23:42
chris2 left23:42
zizzfizzix1 left23:42
doener "git svn rebase" does that23:42
akitada left23:42
philc ok23:42
doener using "fetch" you'd have to adjust the config IIRC, kinda messy23:42
but if you did that fetch -rXXX, chances are that things are messed up now and you need some surgery23:43
philc ok. I can start over without doing that. Maybe you can help me avoid the reason I did the svn fetch -r :23:44
doener well, I'm still trying to figure out what exactly you did23:44
thumper left23:44
thumper_laptopthumper23:44
philc git branch -r does not list the remote branch that I'm testing with. git does not yet know about it. How can I fetch that branch information so I can check out a local version in git, so I can run git svn rebase?23:44
doener it's still unclear to me what you mean by "reset to the last successful commit"23:44
philc what I meant was git reset --hard svn/mybranchname23:45
doener ok23:45
mutex http://alumnit.ca/~apenwarr/log/?m=200901#2123:45
gaveen left23:45
doener philc: and after that reset, dcommit -n still wanted to dcommit something?23:46
philc yes23:46
doener ok, that's weird...23:46
philc yah, very worrisome23:46
Vantage left23:47
philc no worries. I will do some more testing using the regular URL, no the rewriteRoot option. I was just looking for ways to speed this merge up23:47
doener hm, no clue what's going on there. And I need to get some food23:47
philc currently it's slated for an 8 hour completion23:47
doener: thanks for the help23:47
doener philc: to change the url directly, you'll have to use filter-branch to rewrite the commit messages to have the correct git-svn-id lines23:48
philc: and you'll need to have the .revmap files rebuilt23:48
willb left23:51
jriga joined23:52
ashleyw joined23:52
ciskje left23:53
johnw left23:53
mugwump doener: you might only need to rewrite the tips, depending on what for23:55
or not even rewrite, just add a fake commit with no content23:55
gaveen joined23:56
mikl joined23:58
jrmuizel left23:59

Logs Search ←Prev date Next date→ Channels Documentation