IRCloggy #git 2010-03-16

Logs Search ←Prev date Next date→ Channels Documentation

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

2010-03-16

hobodave left00:00
bentob0x left00:00
jamiew joined00:01
rburton- joined00:03
yacoob gebi, yup. I'm wondering how much should I rely on the fact that this approach works00:03
(using it to reduce lag for .git on NFS)00:04
rretzbach joined00:04
rretzbach (github) Hi, I just forked someones repo, made changes, commited and pushed. Then I've sent a pull request. Should I have created a special branch instead of using "master"?00:05
dr_jesus hey if I'm in the middle of a conflict resolution and I want to look at blobs from some other branch how do I do that without stashing and doing a checkout?00:05
fool_ left00:06
tedoc2000 left00:07
Voziv left00:07
Hackykid left00:07
jrheard left00:07
fool_ joined00:08
fool_ left00:08
fool_ joined00:08
hyperair left00:08
jasonn1234 left00:08
wereHamster dr_jesus: git show <otherbranch>:<path>00:09
nusse joined00:09
nusse hi there00:09
if have a lot of small changes in my working directory, everyone containing the same string, is it possible to ignore those changes?00:10
struberg left00:10
hyperair joined00:10
cbreak git can not ignore changes00:10
nusse i'd like to add all other changes, but add -p will take ages00:11
cbreak you can add all changes00:11
and then remove those changes again00:11
... somehow00:11
maybe...00:11
dr_jesus wereHamster: thanks!00:12
nusse will take too long00:12
is there a way to decide automatically wether to include a hunk? (grep -qv evilstring)00:13
Ilari rretzbach: Well, if master contains only changes intended for upstream + what's already in upstream, its ok.00:13
jrmuizel joined00:15
ehabkost left00:15
jamiew can someone commit/push to a submodule from the parent project?00:16
rretzbach Ilari: So as long as I don't work on that fork it's okay? Or when exactly is this method not good?00:16
Ilari rretzbach: When branch you request them to pull contains both changes meant for upstream and changes not meant to upstream.00:17
rretzbach: Because merges are all or none.00:17
hipe left00:17
dbb_ left00:18
friskd joined00:18
josh0x0 left00:23
bronson left00:23
mssm left00:23
amerine left00:23
Theravadan left00:28
L_R_N joined00:33
vinse im a little confused. i did a merge that included a change to a file that i didnt want. so i did "git checkout HEAD^^ file" and when i look i can see i have the right version now, and git status tell me the file is modified00:34
but git diff has no output, what gives?00:34
oliver3 left00:35
LRN left00:35
jas4711 left00:35
jmcantrell joined00:36
wereHamster the changes are already staged00:36
Swimming_Bird joined00:36
wereHamster git diff --cached00:36
enherit left00:37
jas4711 joined00:37
vinse wereHamster: ah ok, thanks00:39
Theravadan joined00:40
guyzmo joined00:41
pantsman left00:41
hobodave joined00:41
mugwump hachi: sub a sub-tree graft, you'd have to make a commit which has the tree you want first and graft that00:44
raorn left00:44
mugwump log should follow the graft - perhaps there's another reachable commit which refers to the one you want to graft away? gitk is your friend00:44
raorn joined00:44
WALoeIII joined00:44
p0w3r3d joined00:45
coldswitch left00:47
hachi mugwump: well that's the thing, since it's a subtree graft, I have to list both parents00:47
so it sees both, yes00:47
Theravadan left00:47
hachi and it has to see both, otherwise it won't have the tree there to recognize the 'subtree' part of the graft00:48
or at least, I'll end up with a tree that looks like it only contains the grafted in files or something00:48
or, the most likely of anything... I don't actually /know/ what's going on, and insted I'm just wrong :)00:49
loincloth left00:49
loincloth joined00:49
super3 joined00:50
super3 hey guys00:50
patthoyts left00:52
mugwump hachi, how well have you grasped the commit/tree/file DAG concept?00:52
hachi yes, but this whole subtree part throws me for a loop00:53
mugwump so, a subtree merge is where a branch is merged in in the history, but the changes from the branch were applied to a subtree of the target, not the root00:53
so in some respects it just looks like a regular merge00:53
hachi yeah, and this is what puzzles me... there is no explicit callout that the subtree was from the branch, there's just a magic hash matchup that tells it that is the case00:54
so, perhaps the first thing I should ask00:54
is there a way I can query the subtree at a treeish, and the tree at another treeish00:55
to see if they are actually the same00:55
before I go off grafting them together assuming that they are the same00:55
mugwump using git rev-parse commit:path00:55
I think rev-parse also has a pipe mode if you're doing it a lot00:55
ninjaneo joined00:55
mugwump well, guess that doesn't matter00:56
hachi well, is this going to give it to me per-file00:56
I'm about to try it00:56
so maybe I'll answer my own question00:56
ninjaneo I have cloned a repository (over ssh), I commit the changes, and push them, but is there a way to then fast forward the remote to the latest?00:57
Cynos left00:57
mugwump ninjaneo: you mean the checkout attached to the remote?00:57
there's a hook for that00:57
robo47 left00:57
ninjaneo yeah, because I just have a "git-shell", so no real ssh access00:57
but I would like to be able to update the remote (hosted website)00:58
mugwump mmm. git doesn't change the working copy when you push00:58
ninjaneo yeah I was hoping there was some way to tell teh remote to checkout the new files, something like an rsync00:58
mugwump because if there was a merge conflict the wrong end has to resolve it00:58
there is, post-checkout hook00:59
gk left00:59
ninjaneo googles git post checkout hoook00:59
mugwump normally people say "you shouldn't do that", but I think git should try, and fail to push if there would be a merge conflict00:59
ninjaneo: faq non-bare00:59
Gitbot ninjaneo: Pushing to non-bare repositories is discouraged. See http://git.wiki.kernel.org/index.php/GitFaq#non-bare00:59
ninjaneo yeah, or allow the "merger" to control the conflict/attempt to resolve00:59
mugwump no need01:00
gk joined01:00
mugwump they can pull first, then push again01:00
ninjaneo I can make it bare, thanks for the tip. And i'll check out the link01:00
hachi mugwump: okay... the rev-parse hash is going to include things like commit messages, right?01:00
or... does it... beats me actually01:00
mugwump hachi: depends what you pass it01:00
to be explicit you can use ^{tree}01:00
at the end of the revision01:00
hachi oh sweeet01:00
yeah01:00
mugwump but normally that's implied by putting :/path after the rev01:01
hachi well, I can also pass the :01:01
jamiew left01:01
hachi the : implies the path only, not the whole thing01:01
jonshea left01:01
tbf left01:01
hobodave left01:02
eladmeid_eladmeidar_01:03
super3 left01:04
eladmeidar_eladmeidar01:04
ed1t left01:04
anjen left01:05
seren joined01:05
seren left01:05
seren joined01:05
anjen joined01:06
ninjaneo well thanks for the info guys, happy coding01:06
ninjaneo left01:06
jinzhu joined01:09
Chillance left01:09
spaceonline left01:09
hachi mugwump: so, anytime there is a merge.. git takes the top of the tree in the branch being merged in, and compares it to every possible subtree in the merge point?01:10
ed1t joined01:10
ed1t left01:10
ed1t joined01:10
ed1t left01:10
hachi or is this more only when grafts happen? and doesn't this cause a scalability issue?01:11
course, maybe these things are stored in a btree, so the trees within the revisions can be looked up really fast, I dunno01:11
alexmchale_ joined01:12
mugwump hmm, well the hashes might not even be the same01:12
hachi I would assume that when the hashes aren't the same, the subtree magic doesn't work01:12
mugwump reading in all the tree objects for a revision isn't that expensive - see how long it takes to produce, eg 'git log --stat'01:12
mjf left01:13
coldswitch joined01:13
hachi or are the matches done per-file?01:13
mugwump I don't really know tbh01:13
stringo0 joined01:13
hachi oh... blah... is this thing handled internally the same as a moved file?01:13
mugwump utsl01:13
hachi okie, no worries01:14
jasonn1234 joined01:14
mugwump you do have to specify to use subtree merge01:14
with -s or whatever01:14
hachi I have no way to specify that when I'm grafting01:14
there is no command, only the file01:14
ab3 left01:15
ab3 joined01:15
mugwump hmm, match-trees.c:score_trees seems to be a function for that01:15
jrmuizel left01:16
mugwump see http://repo.or.cz/w/git.git/commit/68faf689301:16
Gitbot [git 68faf6893]: http://tinyurl.com/y8uh76e -- A new merge stragety 'subtree'.01:17
p3rror left01:17
seren left01:17
godsflaw left01:18
mugwump ok, and it got folded into the recursive strategy. is it really automatic?01:18
the docs on the commit messages say, eg git merge -s subtree -Xtheirs other01:18
stringo0 left01:19
mugwump searching git.git commit messages for your feature name can be very enlightening :)01:19
Gullik left01:20
greg8si joined01:20
offby1 left01:20
jrmuizel_ joined01:21
jrmuizel_ left01:21
friskd left01:24
ab3 left01:24
alexmchale_ left01:25
homa_rano joined01:25
stringo0 joined01:26
jaql left01:26
ultraviolet left01:26
dcampano joined01:27
jaql joined01:28
hachi mugwump: thanks01:28
this has been very enlightening01:28
WALoeIII left01:30
hyperair left01:30
hyperair joined01:31
hachi isn't there a command for constructing grafts, other than editing the grafts file?01:32
Kelly_zhou joined01:33
hachi oh, no... bad google match01:33
Lgb joined01:34
ultraviolet joined01:34
dbb joined01:34
joevano joined01:37
novas0x2a left01:37
Adaptee left01:37
joevano left01:38
tvw joined01:40
Garen joined01:41
Bass10 joined01:42
joevano joined01:43
joevano left01:44
zodiak left01:44
coldswitch left01:46
gebi left01:46
rretzbach left01:47
bradhaydon left01:47
johnw joined01:48
joevano joined01:48
joevano left01:48
joevano joined01:48
joevano left01:49
pklingem joined01:49
alexmchale_ joined01:49
jinzhu left01:50
jinzhu joined01:51
p0w3r3d left01:54
themill left01:54
joevano joined01:54
tvw left01:55
joevano left01:55
mikelifeguard How do you download just one file from a remote repo (master at HEAD)?01:57
icefox you can just fetch the object's that contains the HEAD object01:58
though just using a web interface is usually easier01:58
mugwump icefox, is that your git-achievements thing?01:59
cbreak git doesn't offer anything to download just one file01:59
icefox mugwump: yup01:59
mugwump I lol'd :)01:59
icefox fun hu :)01:59
mugwump I was wondering if you got XP for commits too02:00
icefox On reddit someone suggested putting it together with a git tutorial That would be a fun way to learn02:00
yah Author02:00
richcollins left02:01
icefox Apprentice Author, Author, and Master Author02:01
Most all of the general commands let you go through the three stages02:01
mugwump: any amusing achievement you think should be added?02:02
mugwump heh, well I'm not sure how you'd do Historian02:03
jrmuizel joined02:03
mugwump for me it was writing a gfi importer and using git write-file directly02:03
er02:03
git hash-object -w :)02:03
cbreak "You are your father": rewriting history with git rebase -i02:04
"With the powers of the sand of time": git reset HEAD@{1}02:04
icefox mugwump: yah was thinking of adding something once you used update-index, hash-object and update-ref02:04
mugwump hmm, rebase -i is more like a Studious Author or something02:04
Textmode joined02:04
mugwump Plumber when you use X plumbing commands ? :)02:05
icefox already got rebase -i, it is Butcher02:05
cbreak "Master Negotiator": merging more than three heads at a time02:05
icefox Plumber is good, i'll add that02:05
cbreak "On the shoulders of giants": git pull --rebase02:05
Textmode morning all02:06
mugwump there's no achievement for merge?02:06
icefox mugwump: hmm no somehow missed that02:06
mugwump or mergetool ... hmm02:06
icefox What should it's name be?02:06
mugwump Peacemaker?02:06
cbreak "Everyone else hates you now": git push -f02:07
"... and no one noticed": pushing to a non-bare repo02:07
joevano joined02:08
mugwump that "hates you now" ... how about "Thug" ? :)02:08
icefox Thug is good :)02:08
catalis joined02:08
cbreak you award titles for each achievement?02:08
sh1mmer left02:08
icefox cbreak: yah :) Achievements always have some silly name02:09
joevano left02:09
cbreak in WoW they are stupid strings02:09
like, very stupid02:09
icefox heh02:10
yup02:10
cbreak you usually get them for making your own life more miserable than already02:11
icefox ads Plumber and Thug02:11
domcat left02:11
EricInBNE left02:11
friskd joined02:12
mugwump "Gypsie" for "git bundle" ?02:12
cbreak "Lost in Time": committing with detached head02:12
mikelifeguard How do you get a tarball or file with git-archive that doesn't have the pax header?02:13
Determinist left02:13
imajes left02:13
icefox already got bundle, called it delivery boy I think02:13
mugwump ah ok :)02:13
icefox added one for merge02:13
A_GWT_STARTUP joined02:13
icefox cbreak: whats the best way to detect that?02:14
cbreak "Get a Mac": turning on auto crlf02:14
icefox ;D02:14
cbreak icefox: detecting when?02:14
icefox when commiting with a detached head02:14
cbreak git status says you're not on a head02:15
and HEAD doesn't start with ref:02:15
imajes joined02:15
loinclot_ joined02:15
loincloth left02:16
sitaram bremner_: ping02:16
A_GWT_STARTUP left02:16
bremner_ sitaram: hi02:16
hced left02:17
oliver3 joined02:17
a_GWT_startup joined02:18
gambler left02:19
gambler joined02:19
sh1mmer joined02:19
sitaram bremner_: what TZ are you in? and how dependent are you on "personal branches" being available in *every* repo in your config?02:21
bremner_ I'm in AST (GMT - 5, I think). I only use personal branches in a few repos02:21
warlock_mza joined02:22
coldswitch joined02:22
VVSiz_ joined02:23
sitaram bremner_: will you be around another hour or so; I may have something I want you to review and comment on02:24
sh1mmer left02:25
bremner_ sitaram: I should probably go to sleep before that, feel free to query me and I'll look at it in the morning?02:25
hummingkid joined02:26
sitaram bremner_: no problem... this is a biggish change so I plan to email some others also anyway, so no hurry02:26
bremner_ sitaram: ok, I'll look for it.02:27
flaguy48 left02:27
VVSiz left02:28
fda314925 joined02:28
ubuntum in what cases might git stop watching changes?02:28
Git has stopped reporting changes for commit in git status02:29
Tureba left02:29
defectiv left02:30
alexmchale_ left02:32
ubuntum very mysterious02:32
alexmchale_ joined02:32
intripoon left02:32
mugwump a badly written .gitignore rule, perhaps02:33
ubuntum hmm02:33
anathematic joined02:33
mugwump also possible to do via .git/info/exclude02:33
scarabx left02:33
anathematic hi I'm using git svn and I'm getting the error dcommitted on a detached HEAD because you gave a revision argument. when I push02:33
any ideas?02:33
mugwump there's index flags to ignore paths - see man git update-index02:33
parasti gitignore only applies to non-tracked files, though02:33
ubuntum thanks02:33
bremner_ sitaram: in general should the same description that creates git-daemon-export-ok set permissions, or is this too much of a security risk?02:34
dgl left02:34
ubuntum mugwump the thing is that it was working 15 minutes ago02:35
it just stopped when I changed to a branch02:35
I even tried going back to master02:35
mugwump did you use -f ?02:35
ubuntum even changes to master is not shown in the status02:35
-f for which command?02:35
sitaram bremner_: I would not like to mess with permissions needlessly... I assume you mean making the repo world-readable right? I dont want to assume there is no other way (such as putting apache in the same group as git) to do that and double guess the user02:35
mugwump switching branches02:36
ubuntum hmm no02:36
i just did checkout02:36
mugwump ok02:36
friskd left02:36
mugwump and then you made some changes, and they're not showing up?02:36
bremner_ sitaram: OK, just checking it wasn't an oversite.02:36
ubuntum yup not at all02:36
mugwump can you see them in 'git gui' ?02:36
ubuntum added a new file even02:36
ok just a sec02:36
cbreak icefox: "Let there be LIGHT": creating a commit without parent (the initial commit)02:36
mugwump or 'git diff HEAD' ?02:36
ubuntum git diff HEAD shows nothing02:37
offby1 joined02:38
mugwump even if you manually add to a file which is definitely in the repository (use git whatchanged for instance)?02:38
ubuntum gitk showing the past logs, but not since 5:30 pm (9:37 here)02:38
mugwump hmm02:38
ubuntum I am sure I did at least 1 commit since02:38
mugwump perhaps there's some silent internal error with the index or something02:38
friskd joined02:38
mugwump strace might show that up02:38
cbreak did you commit without being on a branch?02:38
mugwump can you see your commit with 'git log --all --since="4 hours ago"' ?02:38
cbreak commits done with detached head are gone02:39
mugwump also, try adding -g to that command02:39
cbreak check git reflog02:39
mugwump to search the reflog02:39
ubuntum git diff with a file name leads to zero line02:39
pkw left02:39
ubuntum git logs shows but same as the gui02:39
tildeequals left02:39
ubuntum ok just a sec02:39
mugwump what? 'git gui' does not show logs02:40
cbreak what about git diff HEAD~5?02:40
sh1mmer joined02:40
ubuntum git gui shows logs02:40
cbreak does git status show the branch you are on?02:40
ubuntum i mean git log with a file name gives me the same result as the gui02:40
mugwump 'git gui' is the interactive commit tool02:40
used to be called git citool02:40
zodiak joined02:40
ubuntum on branch master02:40
mugwump it's good for showing you the working tree vs. the index vs committed state02:41
ubuntum ohh I fired gitk as the gui tool02:41
did not know that one02:41
mugwump best thing since darcs record02:42
ubuntum i think it somehow added myfiles to "untracked"02:42
thedeeno joined02:42
ubuntum because in the gui tool my files is shown as untracked, not staged02:42
I wonder if something went fubar when I change to a previous branch02:43
shoot, what is the proper way to bring those untrack files without mesing up the tree?02:43
mugwump click on them02:44
git gui never changes your WC02:44
ubuntum ok02:44
smuf left02:44
ubuntum shall I just commit in the gui?02:44
mugwump only if Balthar says it's ok02:45
entrosca joined02:46
mugwump you'll need chicken blood, some leaves from the ayahuasca shrub02:46
ubuntum yeah sure that would solve the misery in the world as well02:46
loinclot_ left02:47
loincloth joined02:48
imajes left02:48
icefox cbreak: added an achievement for comiting without a parent02:49
commiting02:49
ubuntum lost a branch totally :(02:51
imajes joined02:51
parasti left02:51
Textmode thats got to be an achivement in git, too...02:51
ubuntum I agree02:51
I just did the unimaginable02:51
the branch is there but the some files in the branch has gotten deleted02:52
anyways my loss if your gain02:52
what would be the best way to delete an unwanted branch?02:52
mugwump look, if they were ever added, they will be in your object repository02:53
pheaver left02:53
eletuchy left02:53
ubuntum mugwump are you talking about deleting or loosing about a branch>02:53
loincloth left02:54
loincloth joined02:54
mugwump I mean, if you think you have lost files, it's actually quite hard to do that02:54
ubuntum well when I change to that branch, the files are not there02:55
mugwump they'll be on another branch then probably02:55
try 'gitk --all -- path/'02:55
ubuntum yes I have them in the master02:55
but02:56
mugwump well, perhaps you need to merge master to your branch02:56
cbreak if they were deleted out of git, you could see them in the history02:56
kssddy joined02:56
alexmchale_ left02:56
ubuntum they were not supposed to be in the master, but Git stopped tracking myfiles in the branch so I changed to Master.02:57
alester left02:57
cbreak git doesn't stop unless you tell it to02:58
ubuntum maybe for some reason Git actually never switched to the Branch02:58
amerine joined02:58
ubuntum cbreak, that is a possibility but not in my case02:58
because I am the only one working here and I did not change anyting except my Python code02:58
cbreak git has no own will02:59
ubuntum sure02:59
hummingkid left02:59
cbreak it doesn't even run unless you invoke a command02:59
also, if git stops tracking something02:59
it would still be in the history02:59
ubuntum yeah sure I understand all that02:59
cbreak so you could look at it with git show someoldrevision:path/to/file03:00
ubuntum the ebst explanation I have is that I deleted a branch because I realized that I did not need it03:00
since than nothing is same03:00
with -d option03:01
while I was in the master03:01
after the branch delete, git status showed me all the files I have for delete inj the next commit03:01
hobodave joined03:01
ubuntum I assumed that it was talking about the files in the deleted branch03:01
and since then I have no log or diff03:02
darwin_ left03:02
hobodave left03:02
ProperNoun left03:02
DanRigby joined03:03
ubuntum When I committed right after branch deletion, it did not delete or remove any of my files so again I assumed Git took care of an unneeded deleted branch03:04
and it stopped showing files for delete in the git status03:04
loinclot_ joined03:04
loincloth left03:05
ubuntum I am now stuck with my release version which I wanted it as a seperate branch :)03:06
ProperNoun joined03:06
DanRigby left03:06
mdel joined03:07
sh1mmer left03:08
hobodave joined03:10
bronson joined03:12
hobodave left03:15
magneto joined03:16
magneto hello #git03:17
anyone got a link to a tutorial or other info on using git for backing up configuration files, like the /etc directory?03:18
anathematic left03:18
bronson_ joined03:18
bronson left03:18
mikelifeguard magneto: you probably want etckeeper03:19
catalis left03:19
mikelifeguard it is packaged for many distros03:19
alexmchale_ joined03:19
magneto thx03:19
rudi_s_ magneto: Be careful with git stash/git stash apply though, it can brake the access rights on files like passwd/shadow/..03:19
coldswitch left03:20
cytrinox_ joined03:20
madewokherd left03:21
defectiv joined03:21
alexmchale_ left03:22
aryounce joined03:22
cytrinox left03:23
cytrinox_cytrinox03:23
magneto left03:24
catalis joined03:25
amerine left03:26
jasonn1234 left03:27
coldswitch joined03:27
enyovelcora left03:28
hyperair left03:30
anjen left03:32
loinclot_ left03:34
loincloth joined03:34
zjason` joined03:38
alexmchale_ joined03:38
anathematic joined03:40
anathematic I'm using git + svn at the moment and upon a git fetch I'm getting the error Checksum mismatch: blah/blah.rb03:41
:) any ideas?03:41
mikelifeguardMike||gone03:41
zjason left03:42
SingAlong joined03:51
SingAlong I get this "gitosis.serve.main:Repository read access denied" error when trying to push to my remote repo. I entered the passphrase wrong the first time i entered and I'm not able to use it.03:51
timj__ joined03:52
Modius left03:53
ubuntum does anyone know if it is possible to complete git commands and branches in the console?03:53
Modius joined03:53
dbb left03:54
ubuntum some auto complete03:54
friskd left03:54
engla left03:55
timj_ left03:55
SingAlong anyone?03:56
davr ubuntum: yes, with bash completion03:56
ubuntum: I think 'apt-get install bash-completion' should be all you need in ubuntu03:57
SingAlong: so you're saying git is storing the incorrect password and you don't know how to enter the correct one?03:58
schlortoo left03:58
davr SingAlong: I don't know about gitosis, maybe check inside .git/config or $HOME/.gitconfig or something to see if you can find where the password is stored03:58
Twisted_Mentat left03:59
zenwryly left03:59
alexmchale_ left04:01
godsflaw joined04:03
mtkd_ joined04:06
magneto joined04:06
aresnick left04:08
mtkd_ left04:09
dbb_ joined04:12
laj left04:13
jailbox left04:13
ArdRigh joined04:14
jmcantrell left04:16
Bass10 left04:16
jfkw left04:17
frakturfreak left04:21
ericlee left04:22
hipe joined04:23
ericlee joined04:23
aspotashev|eeepc left04:24
disappearedng left04:25
disappearedng_ left04:26
anathematic_ joined04:27
munichlinux joined04:28
anathematic left04:30
anathematic_anathematic04:30
tedoc2000 joined04:31
brizly joined04:33
fool__ joined04:34
fool__ left04:34
fool__ joined04:34
warlock_mza left04:34
stantont joined04:36
fool_ left04:37
disappearedng joined04:40
disappearedng_ joined04:40
aryounce left04:41
mdel_ joined04:41
mdel left04:43
mdel_ left04:47
loinclot_ joined04:50
loincloth left04:50
tildeequals joined04:52
jams joined04:52
jams hello, we have a repo where a few of the devs commited stuff with the username root. Is there an easy way to change this to reflect the actual dev name?04:53
sh1mmer joined04:54
greg8si left04:54
jams the commits are rather old..towards the beginning of the repo history04:54
DrNick not easily, no04:54
or, rather, it's easy to do, but it has unpleasant ramifications04:54
jams hmmf ok04:54
coldswitch git filter-branch ?04:54
DrNick it would require rewriting the entire history using filter-branch from the point of the first root commit04:55
jams we have like 8 different "roots" and a few varaitions of the same dev name04:55
ubuntumkursad04:55
DrNick which means you'd have to discards any existing clones04:55
mtkd_ joined04:55
jams i see..they would have to throw away what they have and reclone04:56
DrNick yeah04:56
Swimming_Bird left04:56
jams thats doable04:56
i will look into the filter-branch as you suggested04:57
novas0x2a joined04:57
jams thank you04:57
and if it becomes a royal pita then we can live with the roots :)04:57
DrNick alternately, you could make them all push what they have to some central repo, rewrite that, then clone from that, discard all their "private" branches from the central repo04:57
and then clean each individual repo04:58
pheaver joined04:58
jams well in this case we do have one "central" place that everybody checks in and out of04:58
i should say push and pull from04:58
i don't suppose there is a way to have a pre-check to stop this from happening in the future?04:59
DrNick it's going to require some kind of flag day either way04:59
jams: oh, yeah, you can write arbitrarily complex hooks04:59
both on the client and server05:00
anathematic in .git/config what does the fetch parameter mean?05:00
jams know of any prebuilt hooks that would be a good starting place?05:00
pklingem left05:00
jonmasters left05:01
hipe left05:02
tedoc2000 left05:02
hipe joined05:02
jams oh look at that google kindly suggested "git filter-branch change author"05:03
again thanks I know have a good starting point vs no clue05:03
*now05:03
anathematic I'm trying to fetch the latest commits from subversion and I'm receiving the error Checksum mismatch: app/helpers/contact_helper.rb05:04
any pointers?05:04
tedoc2000 joined05:04
richcollins joined05:05
hipe left05:06
hipe joined05:07
anathematic anyyyoneee05:07
pkw joined05:07
tro left05:07
tro joined05:09
thedeeno left05:10
hipe left05:11
hipe joined05:12
merlin83 left05:13
SingAlong left05:13
Theravadan joined05:13
lightcap_ joined05:15
khelll joined05:15
lightcap_ I'm totally confused about how to merge/rebase a feature branch...05:16
I have two commits on a branch called controller_data05:17
and master has 8 new commits...05:17
bradhaydon joined05:17
lightcap_ how the heck do I merge/rebase changes from master into my feature branch...05:17
jonmasters joined05:17
lightcap_ I thought I just did, but it was apparently on no_branch...05:18
AAA_awright left05:18
lightcap_ and now I show no changes on my feature branch... even after doing what I thought would resolve the conflicts.05:19
mtkd_ left05:19
AAA_awright joined05:20
hipe left05:20
hipe joined05:20
lightcap_ and honestly, I'm not even sure if I should be rebasing or merging...05:21
merlin83 joined05:22
merlin83 left05:22
merlin83 joined05:22
indyplanets joined05:23
eletuchy joined05:23
tedoc2000 left05:24
rburton- left05:24
eno left05:25
cloudhead joined05:26
eno joined05:26
johnw lightcap_: if you're on "no branch": did you have conflicts?05:27
lightcap_ I did, yeah.05:27
and I thought I resolved all of them.05:27
johnw you have to resolve them, "git add" those files, then do "git rebase --continue"05:27
lightcap_ I guess mostly I'm wondering what the right workflow is...05:28
aryounce joined05:28
lightcap_ johnw: even on "no_branch"?05:28
johnw no_branch is just an intermediate state05:28
amerine joined05:28
johnw it means you are in "mid-rebase"05:28
_iron left05:28
lightcap_ ok05:28
let me try that again...05:28
hakunin left05:28
lightcap_ so, from my feature branch I should do git rebase origin/master?05:29
johnw first do git rebase --abort05:29
then do what you justsaid05:29
lightcap_ ok05:29
do I need to do a git fetch origin master first from my feature branch?05:29
entrosca left05:29
johnw never hurts05:30
lightcap_ okay, that didn't seem to do anything, so now I"ll do a git rebase origin/master05:30
hakunin joined05:30
lightcap_ lots of conflicts...05:30
but I'm not surprised...05:30
zenwryly joined05:31
tedoc2000 joined05:32
lightcap_ okay, once I resolve the commits and commit on no_branch then I do git rebase --continue?05:34
johnw don't commit on no branch05:35
just "git add" the files05:35
lightcap_ oh..05:35
oops..05:35
johnw you want them in the index, not as a commit05:35
lightcap_ what if I did commit05:35
can I just revert05:35
johnw yeah, do: git reset --soft HEAD^05:35
lightcap_ ok05:36
kukks left05:36
pheaver left05:37
tedoc2000 left05:38
jrmuizel left05:39
_nickel left05:42
scarabx joined05:44
project2501a left05:45
anathematic I'm getting an Index mismatch: when trying to fetch the latest from my svn repo, ideas?05:45
loincloth joined05:46
loinclot_ left05:47
codeshepherd joined05:53
thomas- left05:54
richcollins left05:55
ari-_-e left05:55
indyplanets left05:57
johnw anathematic: paste?05:58
eletuchy left05:58
anathematic johnw: http://pastie.org/private/nsqhfkvhzt3gpwjkwbdrla05:58
johnw hmmm.. i've never seen that one before05:59
can you svn checkout?05:59
(with svn, that is)05:59
anathematic johnw: no strangely enough05:59
however I can git svn clone fine05:59
jrmuizel joined06:00
richcollins joined06:00
richcollins left06:01
anu123 joined06:01
roop joined06:03
Jamer joined06:03
roop left06:03
pheaver joined06:05
g0 joined06:05
a_GWT_startup left06:06
EricInBNE joined06:06
Pupeno_ joined06:07
anu123 left06:07
Pupeno left06:08
Pupeno_Pupeno06:08
sde_antrix1 joined06:10
richcollins joined06:11
stringo0 left06:14
magneto left06:15
jrmuizel left06:15
amerine left06:15
lresende_ joined06:18
lresende_ left06:19
aryounce left06:20
lightcap_ johnw: thanks for your help...06:21
johnw anytim06:21
e06:21
lightcap_ johnw: it's a little confusing that after git rebase --continue it doesn't let you know that the files are added to the last commit...06:21
lresende left06:21
lightcap_ johnw: so I think everything is good now, with master rebased into my feature branch... but what do I do to merge that feature branch into master so I can push it up now?06:22
johnw: nevermind... a "git merge feature_branch" did the trick (I think)06:25
johnw yep06:25
it should have been a fast-forward merge06:25
lightcap_ yeah it was06:25
johnw then you're all good06:25
sometimes, it's better to use --no-ff on git merge06:26
that way, if you need to you can revert the entire merge in one operation, or re-revert it to put it back06:26
lightcap_ I still can't get used to all those "Merge branch 'feature_branch'" commit log entries... but oh well06:26
I guess they're good to keep track of wtf you just did.06:26
thank god for tests... I'd have no confidence in what I did if I didn't have tests :-)06:27
Jamer left06:27
lightcap_ johnw: are you suggesting to usually use --no-ff then?06:27
on a big merge anyhow06:27
johnw for a mainline published branch, it makes history clearer06:27
eno left06:27
johnw you can see that this X commits came in with a certain feature implementation06:28
for working branches I don't bother06:28
otherwise, with fast-forward you lose the fact of the merge06:28
lightcap_ really? there's a commit message saying the merge occured though06:29
johnw it looks like you made those X commits in sequence to master directly06:29
really?06:29
lightcap_ yeah06:29
johnw git log shows a merge commit?06:29
hmm06:29
that doesn't sound like fast-forward then..06:29
Boriskr left06:29
lightcap_ ah, no06:29
it says merge made by recursive06:30
wolog left06:30
lightcap_ as if I know what that means :-)06:30
johnw so, --no-ff means there is always merge commit06:30
lightcap_ ah06:31
so it's forcing that commit message...06:31
johnw and the merge commit itsef06:31
lightcap_ that makes sense...06:31
johnw which maintains the historical fact of the merge06:31
lightcap_ what's recursive?06:31
johnw in my master branch, I like to retain as much history as possible06:31
see: http://stackoverflow.com/questions/366860/when-would-you-use-the-different-git-merge-strategies06:32
lightcap_ yeah, I don't it when there's a ton of those messages, but it does make it clearer. Of course, when they're local feature branches, no one else knows wtf that merge meant06:32
munichlinux left06:32
johnw that's why I avoid unnecessary merge commits in working branches06:32
in unpublished working branches I even prefer rebase06:32
but it depends on what kind of history I want to retain06:32
eno joined06:33
lightcap_ johnw: ah, it probably used recursive, because not only did I resolve conflicts I also had to change a few things that weren't conflicts to get the tests to pass06:33
johnw lightcap_: I also recommend http://www.newartisans.com/2008/04/git-from-the-bottom-up.html, if you haven't already06:33
lightcap_ don't think I have.06:33
thanks!06:33
Boriskr joined06:33
radhermit left06:34
aziz joined06:34
simplechat joined06:34
ReinH left06:34
iggy left06:35
m-takagi left06:36
siraj left06:36
cmyers left06:36
bob2 left06:36
ProperNoun left06:36
ivan left06:36
bdash left06:36
snuxoll left06:36
relaxok left06:37
ReinH joined06:38
bob2 joined06:38
bdash joined06:38
cmyers joined06:38
siraj joined06:38
m-takagi joined06:38
snuxoll joined06:38
radhermit joined06:39
hakunin left06:40
brizly left06:41
ProperNoun joined06:42
vinse if i have branch bar that's a child of HEAD on branch foo, and i rebase foo, is bar affected?06:42
khmarbaise joined06:43
iggy joined06:43
vals_ left06:43
ivan joined06:43
ivan left06:43
ivan joined06:43
kursad left06:44
m-takagim-takagi_06:45
segher vinse: nope06:45
infogulch1 left06:45
khmarbaise left06:46
vinse segher: ok, so the parent of bar is the commit that it was branched from, and that relationship never changes. yes?06:48
of course yes, never mind06:48
jokaro joined06:51
xelados left06:51
segher vinse: "rebase some-branch" changes that branch, and nothing else06:52
lightcap_ left06:52
Beaver joined06:55
Beaver left06:57
loinclot_ joined07:00
loincloth left07:01
ArdRigh left07:01
tg left07:01
tg joined07:02
rseifert joined07:02
fmardini joined07:04
Garen left07:04
infogulch joined07:08
ixti joined07:09
icefox left07:10
schlortoo joined07:10
chid joined07:11
simplechat left07:13
lightcap_ joined07:13
davidw joined07:13
infogulch left07:14
Pupeno left07:14
davidwGuest329007:14
jaalto I'm trying to get permanently rid of BINARY file in the repository. Following some tutorial they suggested "git filter-branch". However, the object of the binary was not removed. What am I missing here: http://paste.lisp.org/display/96451 (See related discussion http://kerneltrap.org/mailarchive/git/2007/10/7/331568)07:16
dpino joined07:16
infogulch joined07:16
johnw reading...07:17
jaalto ... two quotes are missing from --index-filter, but don't mind that (it's output from script).07:17
johnw btw, my git-scripts repo has a script called "flush" that very aggressively prunes out all objects not explicitly referenced07:18
cloudhead left07:18
johnw http://github.com/jwiegley/git-scripts07:18
you cleared the stash?07:19
you cleaned .git/info/refs?07:19
jaalto I would have expecte that "git reflog expire..." and "git gc --aggressive --prune" would clear all07:19
johnw no07:19
jaalto reading git-flush07:20
Bombe The size of the pack file proves nothing. :)07:20
anathematic left07:20
maxthoursie joined07:20
jaalto Bombe: ?07:20
johnw also, see the script git-unpack07:21
jaalto It's taking space. The only add was the BINARY.07:21
johnw it will remove all pack files07:21
then you can really see where size is taken up07:21
(then use git gc to repack)07:21
jaalto johnw: Nice scripts!07:22
johnw not all are from me, but many07:22
most are thanks to this channel, and discussions here07:23
jaalto johnw: Heh, I have tons of similar "commands" and still need more :-)07:23
johnw i have a lot of alias too07:23
like rc for rebase --continue, ra for rebase --abort, ca for commit --amend, etc.07:24
jaalto johnw: Myt "git" bassh function is currenly 3300 lines long and will grow after you're scripts are added07:24
your07:24
friskd joined07:25
kar8nga joined07:26
jaalto johnw: Exactly: rb = rebase, rbC (rebase --continue), rbA (rebase --abort), rbS (rebase --skip), rbL [N] (list patch number 000N), ....07:27
maxthoursie left07:27
kar8nga left07:27
bauruine left07:27
maxthoursie joined07:27
munichlinux joined07:27
BlindOracle left07:30
bauruine joined07:31
wolog joined07:33
ph^_ joined07:33
jelmer_jelmer07:34
BlindOracle joined07:34
jokaro left07:35
ph^_ left07:38
m-takagi_m-takagi07:40
ph^_ joined07:42
project2501a joined07:42
loincloth joined07:42
loinclot_ left07:42
Garen joined07:42
psoo joined07:42
giallu joined07:42
priidu_ joined07:43
ph^_ left07:44
mtkd_ joined07:44
dj_tjerk joined07:44
carl- joined07:45
dgl joined07:46
cedricv joined07:47
g0 left07:51
DavidKlein joined07:53
ProperNoun left07:54
_iron joined07:55
loinclot_ joined07:56
thiago_home joined07:56
jaalto johnw: I got it working, the magic was your scripts "prune" command that must be run in the end (git prune --expire 0). In case anyone is interested http://paste.lisp.org/display/9645207:56
loincloth left07:56
scarabx left07:57
johnw ahh07:57
trivol joined07:57
Pupeno joined07:57
gnufied joined07:57
richcollins left07:57
johnw i remember spending a long time refining that07:57
gnufied left07:57
tango_ joined07:58
ProperNoun joined07:58
ProperNoun left07:58
ProperNoun joined07:58
jaalto johnw: I add "--expire 0", which your script did not have. Just to be sure.07:58
r11t left08:01
ph^_ joined08:02
mtkd_ left08:02
mtkd_ joined08:03
steffkes joined08:04
g0 joined08:06
maxter_ joined08:08
ProperNoun left08:09
kumbayo joined08:09
novas0x2a left08:10
psoo left08:10
ph^_ left08:13
rchavik joined08:13
coldswitch left08:13
ncopa joined08:14
ncopa hi08:14
johnw left08:14
ProperNoun joined08:14
entrosca joined08:15
ncopa what was the command to selective apply diff hunks?08:15
froschi joined08:15
psoo joined08:15
drry left08:18
wereHamster git apply; git add -p ?08:19
entrosca left08:20
trebor_dki joined08:20
ncopa thanks08:20
bauruine left08:21
Theravadan left08:22
kkoehne_ joined08:23
defectiv left08:24
loincloth joined08:24
loinclot_ left08:25
bentob0x joined08:27
d0ugal joined08:28
ixti left08:28
struberg joined08:29
thiago_home left08:30
jelmer left08:32
maxter_ left08:32
relaxok joined08:32
cilly joined08:33
ph^_ joined08:34
Pupeno left08:35
lucsky joined08:36
ixti joined08:36
FDCS joined08:37
silence joined08:39
skoop joined08:39
silenceGuest5154108:39
jaalto How to check if rebase is in progress (from a script)?08:39
rchavik left08:39
Mage left08:40
entrosca joined08:40
mastro joined08:40
froschi left08:40
gebi joined08:40
entrosca left08:40
Pupeno joined08:41
ixti left08:41
entrosca joined08:41
stepnem left08:44
stepnem joined08:44
froschi joined08:44
Guest51541 left08:45
mtkd_ left08:45
zoniq joined08:46
locklace jaalto: iirc you can look for .git/rebase-apply08:46
mtkd_ joined08:46
bradhaydon left08:48
ixti joined08:49
hipe_ joined08:49
hipe left08:49
nicoulaj joined08:49
dereine joined08:50
jaalto locklace: ok08:50
dereine i'm writing a post-update script, any ideas how i can find out the name of the repositorie?08:50
Boriskr left08:52
lightcap_ left08:53
wereHamster dereine: a git repository doesn't have a name (other than the directory name it is stored in)08:53
Saur dereine: What do you mean by the name of the repository?08:53
dereine Saur: i'm using gitolite, and there each repo has a name08:53
damn i forgot to mention it08:53
wereHamster dereine: basename $GIT_DIR08:54
(should work)08:54
kkoehne joined08:54
mssm joined08:54
dereine thx!08:54
dj_tjerk left08:55
lhunath joined08:57
lhunath $ gs set-tree trunk08:57
config --get svn-remote.svn.fetch :refs/remotes/git-svn$: command returned error: 108:57
what's that?08:57
alias gs='git svn'08:57
and how do I debug it?08:57
Boriskr joined09:03
mtkd_ left09:04
domcat joined09:08
shruggar joined09:08
avtobiff joined09:09
zoniq left09:10
zoniq joined09:10
arialdo joined09:14
arialdo Hi. I'm able to sign my tags using git tag -u my_email but not with -s option. Git says "secret key not available"09:15
zoniq left09:15
zoniq joined09:15
FDCS left09:15
arialdo What's the reason? I googled with no results :|09:17
Saur arialdo: Do you have a GPG-key for the email adress you use?09:17
arialdo Saur: yes. I even put a signingkey = my_gpg_id in .gitconfig09:19
lhunath load and make available your gpg-agent in the environment.09:20
arialdo Saur: using git tag -u myemail@domain I can sign tags09:20
zoniq left09:20
novas0x2a joined09:21
Saur Well, a gpg-agent won't change anything, since it is only used to cache the pass phrase09:21
Rhonda arialdo: That's a bug in gpg, it only likes UIDs that are available in the secret key, which isn't required for a working environment.09:21
arialdo: You also need to use signkey in that cases.09:21
zoniq joined09:21
Tass` how to set pull to rebase by default?09:22
Rhonda arialdo: See the discussion in http://bugs.debian.org/49737209:22
arialdo Rhonda: Thanks! Do you mean I should simply solve my problem using -u myemail@domain?09:23
Rhonda arialdo: That's at least what I did, or rather, did put it down into the config to not have to hand it on the command line all the time.09:24
gebi left09:24
arialdo Rhonda: Ok! Thanks again09:24
jailbox joined09:24
AAA_awright left09:25
dytrivedi joined09:25
m-takagim-takagi_09:27
bentob0x left09:27
Guest3290davidw09:27
doobry joined09:27
davidw left09:27
davidw joined09:27
engla joined09:29
zoniq left09:29
engla left09:29
engla joined09:29
tatsuya joined09:30
zoniq joined09:30
sitaram dereine: you don't need the name for most purposes, except perhaps for reporting/logging. If you're using gitolite, the env var GL_REPO is set to the repo name without the $REPO_BASE at the start and the ".git" at the end09:31
dereine sitaram: thx! and thanks for this awesome software09:32
sitaram dereine: you're welcome!09:32
krawek left09:32
sitaram dereine: basename $GIT_DIR will also work but if your repos are multi-level like foo/bar, it will only show you "bar". Depends what you need of course09:32
mssm left09:32
sitaram GL_REPO on the other hand is essentially the full path minus the $REPO_PATH at the start and ".git" at the end09:33
loincloth left09:34
loincloth joined09:35
AAA_awright joined09:36
eeanm joined09:37
sylr joined09:37
sylr Hi guys09:38
eeanm hey so I need to merge in a repo into a subdirectory of another repo09:38
sylr What is the good way for merging two identical branch (identical in the way that each diff between commits are the same) but they have not the same commit id ?09:39
-branch+branches09:39
AAA_awright left09:40
sitaram sylr: just merge them; git should detect the sameness and avoid conflicts, AFAIK. Or if you can afford to change the SHA of one of them, rebase it on top of the other -- that will *certainly* de-dup the identical commits09:41
sylr sitaram, the branch are on two separte repo, so I push one branch on the other repo and I rebase it angaint the other branch ?09:42
jokaro joined09:42
zoniq left09:42
AAA_awright joined09:43
zoniq joined09:43
sitaram sylr: yes. Although one usually does a fetch instead of a push, it comes to the same thing anyway09:43
sylr: but seriously, make a temp copy of one branch and try a merge first -- it may just work out!09:44
darkskiez joined09:44
sylr sitaram, I tried, it duplicates the common history09:45
darkskiez left09:45
struberg left09:45
sitaram sylr: that's not the same thing as "conflicts", and is usually harmless; although I guess you don't want it for perhaps aesthetic reasons.... rebase will work then09:45
sylr sitaram, esthetic is one thing, but the history duplicated it quite large, around 60000 commits, whats why I'm trying to not duplicate it09:47
thanks09:47
bauruine joined09:47
multi_io left09:47
multi_io joined09:48
sitaram ok09:49
sylr: although you will find that the duplicated commits don't actually take up much space :) I would still call it aesthetics, as in "clutters up the gitk display" ;-)09:50
sylr sitaram, yeah :P09:50
I loke clean thinks too09:51
things09:51
sitaram like09:53
:)09:53
sylr yes, that too09:54
I love to patch my sentences09:54
sitaram, It worked thoroughly09:56
sitaram great09:56
loinclot_ joined09:56
loincloth left09:57
jaalto The "rebase -i" doesn't obey "edit" marked from script. See tes http://paste.lisp.org/display/9645509:57
hced joined09:57
ssm2017 joined09:58
ssm2017 hello09:58
kkoehne left09:58
petrux joined09:59
ssm2017 is there a way to auto increment tags, like i have : v0.0.7 and i would like to use a command to automatically tag v0.0.809:59
jaalto What is diffrent here? In interactive EDITOR the 'pick' would also be changed to 'edit'09:59
lhunath ssm2017: write a script.09:59
charon jaalto: you can't run together the -i option09:59
thvdburgt joined09:59
charon jaalto: since it takes a backup suffix09:59
jaalto: changing to -ni should fix it09:59
bluenovember joined10:00
sitaram jaalto: is the print statement missing a semicolon>10:00
themill joined10:00
sitaram ?10:00
charon (the option to _perl_, this has nothing whatsoever to do with git)10:00
lhunath ssm2017: alternatively, do the math yourself; I can't imagine it's that big of a deal.10:00
jaalto charon: No, plain "-i" is "in place editing" without backup.10:00
sitaram: Not required if last stement in block10:00
sitaram jaalto: which it is not10:00
charon sighs10:01
sitaram you have a "warn" right after...10:01
ssm2017 lhunath, ok, thank you for attention, i thought that an option could do it for me like : git -coffee -sugars 110:01
jaalto sitaram: Argh, right10:01
sitaram: thanks.10:01
charon jaalto: i'm 100% confident that -i *must* be separated by a space from the next option. rtfm.10:02
sitaram or make it -ni as charon said earlier10:02
jaalto charon: Nope :-) works in Perl 5.1010:02
ssm2017 left10:03
jaalto charon: Dang. Correction: you're right.10:03
charon i was bitten too often by perl -ine '...' not working10:04
so i know :10:04
:p10:04
sitaram jaalto: you're double wrong actually, not only does it not work, once you switch to -ni or separate them, the "-n" will make the explicit while redundant :)10:05
jaalto working with the script, thanks fo all comments10:06
struberg joined10:07
jaalto sitaram: Yay, loose the "-n" and all works. Now making this take $i configurable for "git rbi N" command to edit any N commit.10:08
Mpenz joined10:08
jaalto charon, sitaram: thanks.10:09
sitaram you're welcome!10:09
vvsh joined10:11
loincloth joined10:18
loinclot_ left10:18
stikonas joined10:18
dereine sitaram: can i asc you a silly ssh-key access question?10:20
sitaram sure10:23
but I may have to step out for an hour or so in a few min (as soon as my wife is ready!) so... ask anyway :)10:24
wereHamster someone else can answer if sitaram is away..10:25
gaveen joined10:25
jelmer joined10:25
mosno joined10:26
dereine sitaram: if i use ssh git@gitolite i get R W gitolite-admin10:26
zoniq left10:26
zoniq joined10:27
dereine sitaram: if i execute the gl-easy-install i got http://pastebin.com/3KdKNvQ810:27
jelmer left10:27
jelmer_ joined10:27
jelmer_jelmer10:28
sitaram dereine: well it seems your ~/id_rsa key is also your gitolite key now (my best guess)10:28
galderz joined10:29
sitaram dereine: is this the same account/workstation from which you ran easy install?10:29
dereine sitaram: yes10:29
sitaram I suggest you run the sshkeys-lint script in src/ (run it without args to see what it needs and how to run it)10:30
loinclot_ joined10:30
sitaram (you will have to obtain your ~/.ssh/authorized_keys file from the server somehow)10:30
loincloth left10:30
sitaram also try "ssh-add -l" and make sure all your keys show up or none of them do... in fact run through doc/6 :)10:31
dereine thx i will try it add10:31
froschi left10:33
will__ left10:34
L_R_NLRN10:36
radarek joined10:36
luigi70 joined10:36
Kelly_zhou left10:36
luigi70 hello10:36
!list10:37
struberg left10:37
luigi70 left10:38
tg left10:39
Textmode meep?10:40
Glenjamin joined10:40
mosno left10:40
Glenjamin hi guys, can anyone tell me how to turn a local branch into a tracking branch?10:41
jelmer left10:41
viniciusluiz joined10:42
domcat left10:42
Ilari Glenjamin: 'git push --set-upstream <remote> <branchname>'?10:42
Glenjamin sounds plausible10:42
is that documented somewhere?10:43
its not mentioned in the man page for git push10:43
struberg joined10:43
SRabbelier left10:43
Sonderblade joined10:43
Glenjamin or maybe its just my version actually10:43
mithro joined10:45
munichlinux left10:45
Ilari Glenjamin: Yeah, appeared in 1.7.0.10:45
zoniq left10:46
g0 left10:46
Glenjamin and is there a switch to get branch to list my local branches and what they track?10:46
nadim joined10:46
zoniq joined10:46
alexmchale_ joined10:46
Ilari Glenjamin: 'git remote show <remote>' might show something useful...10:46
Glenjamin ah yes, thats the one10:47
thanks :)10:47
parigaudi joined10:48
sitaram "git branch -v -v" also works10:48
if you have multiple remotes and different branches are from different remotes that seems to be better10:49
tg joined10:49
Glenjamin good ol' guessable git commands10:49
ah yes, thats much nicer10:50
shruggar is there a way to list all commits Not made by a particular author? (I'm trying to see all commits made by someone other than me over the weekend)10:50
wereHamster tried --not --author=.. ?10:51
sitaram in fact "git remot show remote" seems to show many branches that are not actually tracked -- if the remote has a branch of the same name it assumes it is tracking it. Hmm weird10:51
schulty joined10:51
mapreduce drizzd: I tested the commands for mirroring an svn repository to git, and they worked. Will you be editing the page?10:52
frakturfreak joined10:52
shruggar wereHamster, seems to only take the --author part into account10:52
drizzd mapreduce: sure10:52
thanks for testing10:52
stikonas left10:53
g0 joined10:53
stikonas joined10:54
blazzy joined10:55
zoniq left10:55
zoniq joined10:55
drizzd mapreduce: hmm, do you have more than one branch in your subversion repo? and if yes, did they get mirrored?10:56
frakturfreak_ joined10:57
frakturfreak_ left10:57
frakturfreak_ joined10:57
Ilari sitaram: BTW: I reinstalled git-daemon2 yesterday (had to reinstall whole system due to fs corruption). I used newest from pu-ssh-plus and for some reason gitolite-admin post-update hook didn't get installed (404).10:57
pheaver left10:57
zoniq left10:58
frakturfreak left10:58
frakturfreak_frakturfreak10:58
Ilari sitaram: AFACIT, update hooks did get installed to all repos...10:58
blazzy I submitted a patch to a project viea email, the patch was applied. I pulled down the recent changes. Now my commit is in my local history twice. Is that to be expected?10:59
*via10:59
engla left10:59
sitaram Ilari: pu-ssh-plus didn't install post-update hook? let me check...10:59
Ilari blazzy: Patches don't preserve commit IDs. Use rebase when doing patches...10:59
wereHamster blazzy: yes, that's to be expected if you submit the patch by mail10:59
Ilari sitaram: I used gl-install to install it (easy install is not possible).11:00
VVSiz_ left11:00
blazzy so if it bothers me I should just rebase? Does it matter if I leave it as is?11:00
VVSiz joined11:00
wereHamster I'd rebase (or otherwise get rid of your local commit)11:00
Ilari blazzy: Merges and patches don't mix very well.11:00
sitaram: And this system is so barebones I wouldn't be surprised if some needed command was missing and that caused the problem...11:01
sitaram Ilari: why is easy-install not possible? (you dont use any ssh keys at all? That is still something I have to fix...)11:01
Ilari sitaram: No sshd.11:02
blazzy Ilari, wereHamster, I guess I'll rebase then. thanks.11:02
zoniq joined11:02
sitaram Ilari: aah I see... perhaps I should upgrade pu-ssh-plus to the latest master, which has a way to install server-side and much simpler way to install... (although the "gl-setup" anciallry command may need some change for your environment)11:03
Ilari: will do it in a day or two... need to test11:03
Ilari sitaram: The only setup changes that are needed is to write gitolite.conf (needed anyway) plus adding command to HUP the daemon on gitolite-admin push (to make it reload SRP database).11:04
sitaram: That HUP was what I was needing hook passthrough for post-update anyway.11:05
sitaram Ilari: I only made hook passthru for "update" so far; I will add that also, bump pu-ssh-plus to that, and ping you11:06
(plus test of course)11:06
Ilari sitaram: I store server SRP database (for password authentication) inside gitolite-admin11:06
sitaram Ilari: SRP?11:07
sitaram forgets quickly.... is old!11:07
Ilari sitaram: Password authentication protocol.11:07
ntoll joined11:09
sitaram Ilari: aah http://srp.stanford.edu/11:10
textarcana joined11:10
loinclot_ left11:12
loincloth joined11:12
ringlej left11:12
Lgb left11:13
Gullik joined11:13
yev|away left11:14
Chillance joined11:14
TDJACR left11:14
Ilari The authentication I most often use with git-daemon2 is Unix authentication (currently supported authentications: Unix, Openpgp, SSH, SRP)...11:15
Oh yeah, and theres anonyomous as well...11:15
kpreid_ left11:16
kpreid_ joined11:16
robo47 joined11:17
drizzd mapreduce: ok, my solution was wrong, because it only mirrors trunk.11:17
sitaram Ilari: and this SRP implementation is within git-daemon2? (perhaps via openssl of course)?11:18
drizzd mapreduce: To fix the issue you had with the default branch, execute 'git symbolic-ref HEAD refs/heads/trunk' in the mirror repo.11:18
TDJACR joined11:18
Ilari sitaram: And it can't happen in post-receive since post-receive runs first and HUP needs to occur after gitolite checkouts its admin repo.11:18
sitaram: Via gnutls.11:18
sitaram: Yes, its in git-daemon2. Namespace prefix: "srp-".11:19
lhunath left11:20
dytrivedi left11:20
froschi joined11:20
sitaram Ilari: ok... please bear with me for a day or two; I'll upgrade pu-ssh-plus to the point where you can install it purely server side (except you give it some dummy pubkey that doesn't get used later in your setup)11:21
Ilari sitaram: What would be useful is letting enter initial key ID (for openpgp or ssh key) and then give gitolite-admin RW privs for that user.11:23
codeshepherd_ joined11:23
alexmchale_ left11:25
codeshepherd left11:26
codeshepherd_codeshepherd11:26
mastro left11:26
mastro joined11:27
sitaram Ilari: key ID? not sure what that is for ssh key. For pgp/gpg I sorta know what it is but not very familiar...11:27
Ilari sitaram: Like letting to name initial user 'ssh-cdf7ff90d88302b332e47aabed800ec6d99898b780efaae4200d578b' and not install public key.11:28
sitaram hmm11:28
Ilari sitaram: (obiviously needs switch for not installing key).11:28
sitaram let me get the basic stuff done and later I'll add that in... how will that long arg be passed?11:29
Ilari looks current gl-setup syntax...11:29
Ilari *looks up11:29
sitaram: 'gl-setup --no-key ssh-cdf7ff90d88302b332e47aabed800ec6d99898b780efaae4200d578b' (pick better option name...)?11:30
codeshepherd left11:31
riz2 left11:31
mapreduce drizzd: Thanks, the new instructions look good. Looks like you added the missing 'cd project' too.11:32
saimon joined11:32
sitaram Ilari: why bother; if it matches that pattern (or other similar patterns) then we go that way...11:32
HeR joined11:33
mithro left11:33
drizzd mapreduce: yeah11:33
HeR hi11:33
i have a problem with git and mabye someone here can help me11:34
git log only converts some colors11:34
%C(yellow) ist just passed11:34
same as %(bold blue)11:34
Ilari sitaram: Oh, and that testing RW = @all is bit so and so with git-daemon2. With that, @all really means ALL.11:34
g0bl1n joined11:35
codeshepherd joined11:36
Ilari sitaram: git-daemon2 does not have concept of "any authenticated user". Only "any user" and "this user".11:37
zoniq left11:37
drizzd HeR: you can see the raw output produced by git log using "git --no-pager log --color | LESS= less", does that show all the color escape codes you expect?11:37
HeR no11:38
i triedgit log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative11:38
zoniq joined11:38
alexmchale_ joined11:38
HeR * ESC[31m5b46aceESC[m -%C(yellow)%dESC[m Bugfix: Fatal Error ... ESC[32m(22 minutes ago) %C(bold blue)<HeR>ESC[m11:39
one line...11:39
Ilari HeR: Yeah, yellow didn't seem to work (and neither did bold blue.11:41
HeR yes11:41
and %d11:41
bronson_ left11:41
HeR it worked well on my computer11:41
Ilari HeR: Git versions?11:41
HeR then i moved it to another and it doesnt work now11:41
1.5.611:41
oh and local11:42
1.6.3.311:42
Ilari HeR: Those are quite old (especially the first).11:42
HeR i installed git from the ubuntu-repository11:42
frakturfreak which ubuntu release?11:43
Ilari HeR: Most repositories have obsolete versions of git.11:43
HeR ubuntu 9.1011:43
Ilari HeR: Okay, Debian testing has 1.7.0, which isn't terrible.11:43
ehabkost joined11:44
ideogon joined11:45
frakturfreak HeR: you better should enable the git-core ppa https://launchpad.net/~git-core/+archive/ppa11:45
HeR: Or get the last git over git11:45
HeR k i try it thanks11:45
corni joined11:48
saimon Hi all...I need some advice...I forked a branch off master (call it A). I did work on a feature in A. More work was done on master including a huge merge. When trying to rebase master into A, I'm getting lots of conflicts due to the merge. So I thought I could just create a patch of all my commits on A. However, things get more complicated because at some point I had set git config core.autcrlf and for whatever reason a lot of my files on A go11:53
lf's. I fixed the issue with a commit on A that converted a load of files back to just lf. If I use git diff commitsha1...commitsha2 (where sha1 is the first commit I made on A and sha2 is the last commit I made on A) this patch includes the commit with the crlf fixes. When I try to apply this patch to a new branch B (off master) it fails because of the crlf fixes. So after all that my question is how can I interactively create a patch with onl11:53
commits I want?11:53
project2501a left11:53
cannonball joined11:53
cedricv left11:55
ideogon left11:55
sitaram does anyone know the eqvt diff options for "git log -1 -p -c HEAD" when HEAD is a merge commit? (the -1 is to show only one commit, the -p is show a diff/patch, and the "-c" is the interesting one but doesn't seem to work with diff)11:56
trochala left11:58
Tureba joined11:58
jinzhu left11:59
sitaram Ilari: any other formats of keys being supplied? (other than "ssh-[0-9a-f]{40}"?)12:00
Ilari sitaram: Actually, there are 56 digits there. Then there's 'openpgp-'<32 or 40 (and prerhaps 56 or 64) hex digits>, there's 'unix-'<username>... Those are the most important.12:02
codeshepherd left12:02
sitaram ok thanks12:02
Ilari sitaram: I have never seen key that would generate openpgp- followed by 56 or 64 digits (the key I use generates 40), some old keys generate 32.12:03
parasti joined12:03
Ilari sitaram: Better to activate that mode with some special option (in case yet another mode appears).12:04
Glenjamin left12:04
joevano joined12:04
sitaram maybe later; for now -- the number of users for this, worldwide, is a grand total of *one* :)12:05
darwin_ joined12:06
cannonball In a new repo, if I have done a ./configure && make, then a make distclean, there are still some files hanging around that are not tracked. I want to remove them. What's the best way? 'git checkout -f master' doesn't do it for me because it's already in master.12:07
wereHamster cannonball: git clean -dfx12:07
cannonball thx12:07
cedricv joined12:09
zoniq left12:09
zoniq joined12:10
stantont left12:12
codeshepherd joined12:12
HeR i tried to add the official repository to a suse system12:12
but there ist the errormessage:12:12
Erzeuge Zwischenspeicher für Repository 'Base git repository' [fertig]12:12
Fehler beim Aufbau des lokalen Zwischenspeichers:12:12
'repo2solv.sh' '-o' '/var/cache/zypp/solv/git/solv' '/var/cache/zypp/raw/git'12:12
Unknown checksum type: 7: sha25612:12
Warnung: Deaktiviere Repository 'Base git repository' aufgrund des obigen Fehlers.12:12
joevano left12:13
trochala joined12:13
alexmchale_ left12:15
joevano joined12:15
d0k joined12:16
joevano left12:16
hipe_ left12:16
hipe joined12:17
stantont joined12:17
saimon left12:18
tvw joined12:18
Ilari Ah, V3 keys generate 32-hexdigit IDs, V4 generates 40-hexdigit IDs. There isn't V5 in any standard...12:18
HeR ??12:19
bremner_ HeR: try setting LANG=C first, and also it sounds more like a SuSE problem than a git one12:19
saimon joined12:20
joevano joined12:20
rgr left12:20
HeR Bremmer: i searched after this problem, but there is nothing about it12:21
and LANG=C didnt worked12:21
bremner_ you probably want something like "export LANG=C" if your shell is bash12:22
HeR yes it is, and i tried this12:22
frakturfreak HeR: LANG C <command>12:22
HeR: sounds strange12:23
codeshepherd left12:23
codeshepherd joined12:23
HeR i also tried to install the package myself, but it hast a lot of dependencies12:23
priidu_ left12:24
saimon left12:25
TheNewAndy joined12:25
joevano left12:25
bremner_ well, like I said before, you will probably have better luck on a SuSE support channel, if it exists12:25
joevano joined12:26
thvdburgt left12:27
tbf joined12:27
joevano left12:28
bremner_ sitaram: if you're around, does renaming repos require something fancy? or just mv directory, update gitolite.conf?12:29
josh0x0 joined12:30
sitaram bremner_: rename it at the OS level first, then change gitolite config and push12:30
hugoxrosa joined12:30
bremner_ thanks12:30
rchavik joined12:30
codeshepherd left12:30
sitaram bremner_: if you do it the other way, the push will cause an empty repo to be created; you have to needlessly overwrite it12:31
codeshepherd joined12:31
nanoo joined12:32
whitman joined12:32
struggleyb joined12:35
y10 joined12:36
auslander joined12:36
kumbayo left12:37
fool_ joined12:41
fool_ left12:41
fool_ joined12:41
yevlempy joined12:42
fool__ left12:44
DavidKlein left12:44
codeswing joined12:48
Yuuhi joined12:51
Bass10 joined12:52
djszapi__ joined12:52
Axil joined12:52
djszapi__ left12:52
Axil anyone here can help me setup pubkey auth on my linux server... i followed the steps in http://progit.org/book/ch4-4.html12:53
but it didnt work12:53
is it something to do with my ssh configuration12:53
?12:53
luke___ joined12:53
mm_work joined12:54
mm_work left12:54
mm_work joined12:54
luke___ Hello!12:54
Axil hello luke12:54
fryguy Axil: yes12:54
luke___ How can I avoid merge branch of 'master' helloworld:helloworld entries from the history ?12:55
It can be rather annoying all the time, when more than 100 people work on the same project.12:55
dpino left12:55
Axil fryguy... can you tell me if your ssh_config has PubkeyAuthentication yes12:56
AuthorizedKeysFile .ssh/authorized_keys12:56
charon luke___: are you using full src:dst fetchspecs with pull? those probably don't do what you think12:56
fryguy Axil: it doesn't, go ask for help in your OS channel for how to get ssh set up correctly12:56
luke___ charon: All I do is git pull12:57
sorry, git push12:57
jfkw joined12:57
luke___ without any src:dst12:57
HeR left12:57
charon ponders12:59
dgrift left12:59
charon luke___: so the message is actually: Merge branch 'master' of <some_URL> ?12:59
TheNewAndy left13:00
luke___ yep13:01
charon the most frequent cause is that people make a handful of local commits and thereafter run 'git pull' to "update"13:01
luke___ yes, this is the situation.13:02
Should I push before git pull or should I commit after git pull all the time ?13:02
gebi joined13:03
charon the first doesn't work and the second doesn't make much sense to ask13:03
in fact you should always check that you have no uncommitted work _before_ running git pull/merge13:03
unless you know what you're doing and/or are linus13:03
bauruine left13:04
j416 joined13:05
snucko joined13:05
luke___ k, so isn't there any solution to avoid this message in the log ?13:05
charon luke___: there are some options, but it depends on the workflow you want to use. if you just want to keep your history linear, see the --rebase option (but make sure you first understand what it does!). if you frequently get into a situation where you hold off on pushing because it's not ready yet, but at the same time want to keep up-to-date, use topic branches (man gitworkflows)13:05
Gitbot luke___: the gitworkflows manpage can be found at http://git.or.cz/man/gitworkflows13:05
luke___ charon: do you mean that then I should use a separate branch during the new feature development, and merge it after it succeeded ?13:07
charon yes13:07
sanjoyd joined13:08
luke___ it's weird for windows developers to do, I don't believe they will do this way even I agree with your advice.13:09
d0ugal left13:09
luke___ all they see, they used TortoiseSVN earlier, and they didn't experience it with that application.13:10
charon meh13:10
luke___ I guess because of that SVN stores .svn folder in every folder.13:10
charon no, that's an entirely separate issue.13:10
elb0w joined13:11
rburton- joined13:11
elb0w How do I check what repo i have set as master13:11
pkahle left13:11
elb0w in linux13:11
luke___ k, but the reality is that SVN doesn't meet with this problem.13:11
Ilari elb0w: 'git remote show origin'?13:11
charon luke___: my not so humble nor polite opinion: git is like an electric screwdriver. you can pretend it's SVN and keep hammering in nails with it, and complain about the "problem" that its grip is not very suited to hammering. but that doesn't change the fact that you'd be much more efficient with git+screws than with svn+nails.13:12
elb0w hrm13:12
didnt work13:12
charon only, you'll have to overcome your mind block and learn how to use the screwdriver.13:12
pklingem joined13:12
Ilari elb0w: Also, 'git remote -v' to show all remotes you have and their URLs.13:12
charon luke___: the way to pretend it's a hammer, btw, is that --rebase option.13:12
(and you'll have to adjust in several other places)13:13
luke___ left13:13
Ryback_ joined13:14
charon wonders if luke was offended by his opinion13:15
patthoyts joined13:16
locklace hehe13:17
carolyn joined13:18
tbf left13:19
goodieboy joined13:19
goodieboy left13:20
goodieboy joined13:20
catalis left13:20
goodieboy i made some changes to master, but i'd like to move those changes to a different branch before committing. is that possible?13:21
robo47 left13:21
goodieboy in other words, i forgot to create a new local branch before making my changes13:21
galderz left13:22
Aides goodieboy: just switch to master and commit there13:22
Mezner joined13:22
Aides err, i meant just create a new branch and commit there13:22
goodieboy ok cool so it's that simple :)13:22
Aides yep13:23
chid left13:23
priidu joined13:23
Bass2 joined13:24
Pewpewarrows left13:25
jefferai left13:25
bdowning left13:26
Bass10 left13:26
Tommy[D] left13:26
novas0x2a left13:26
DrNick left13:27
chewbranca left13:27
dcampano left13:27
kingfishr left13:27
Gitzilla left13:27
Mezner left13:27
locklace freenode fail13:28
sitaram Ilari: pu-ssh-plus updated, new-fangled-keys now addable via "gl-setup" program. This is a new "server-side" install mode built for distro packagers; last section of doc/0 has all the details. You should use this method to install... avoids all easy install, ssh, troubles as far as I am able to test13:28
Ramblurr left13:28
sitaram wonders if that got truncated; should end with "I am able to test"13:28
locklace you're good13:28
sitaram thanks :)13:28
davidw left13:28
comps left13:28
tildeequals left13:28
hyperair joined13:28
hyperair left13:28
hyperair joined13:28
tildeequals joined13:29
locklace your client should be smart enough to break long lines anyway...13:29
Pewpewarrows joined13:29
hced left13:29
TheUni left13:29
DrNick joined13:29
pkw left13:29
dbb_ left13:29
jjuran left13:29
novas0x2a joined13:29
kssddy left13:30
rduplain joined13:30
jjuran joined13:30
AkumaStreak left13:30
hummingkid joined13:30
bdowning joined13:30
dbb_ joined13:30
rburton- left13:30
Bass2 left13:30
Bass10 joined13:30
tchan left13:30
locklace ok, time to officially rename this network to "freefall"13:30
goodieboy left13:30
TheUni joined13:30
sitaram hmm not sure about that; I seem to recall being bitten once...13:30
Ramblurr joined13:30
Ramblurr left13:30
Ramblurr joined13:30
schulty left13:30
Gitzilla joined13:31
dcampano joined13:31
pkw joined13:31
LiamH joined13:31
locklace sitaram: which client?13:31
sitaram irssi13:31
chewbranca joined13:31
comps joined13:32
locklace sitaram: you want this: http://scripts.irssi.org/scripts/splitlong.pl13:32
altrux joined13:32
AkumaStreak joined13:32
sitaram aah13:32
jefferai joined13:32
jsquared joined13:32
kingfishr joined13:32
sitaram locklace: thanks!13:33
EO_ joined13:33
Tommy[D] joined13:34
hced joined13:34
hummingkid left13:34
sitaram locklace: worked fine...13:36
locklace cool13:38
robo47 joined13:39
karpar joined13:39
bauruine joined13:42
hobodave joined13:42
TeckniX joined13:42
jmcantrell joined13:43
Mezner joined13:46
spearce joined13:46
arialdo left13:47
karpar left13:47
tpolzin joined13:47
comps left13:49
dcampano left13:50
comps joined13:50
frakturfreak left13:50
drubies joined13:50
frakturfreak joined13:51
Scotto_ how would i push changes to a live version of a website?13:51
does that involve having a repo on the live server?13:51
any siggestions getting this part of my workflow figured out would be appreciated13:52
*suggestions13:52
hobodave left13:52
tg left13:53
tg joined13:53
Axil left13:53
charon Scotto_: rsync, or a repo on the remote server with a post-receive hook that calls checkout -f or reset --hard (*not* pull)13:55
Plouj joined13:56
Plouj hi13:56
what does the arrow in "remotes/origin/HEAD -> origin/master" mean?13:56
drry joined13:56
Ilari Plouj: Presumably in this case symbolic reference (symbolic link).13:57
Plouj oh, sorry I mean in the output of git branch -v13:57
bauruine left13:57
Plouj git branch -a13:57
Ilari Plouj: I guessed this is from remote branch display.13:58
Plouj ok13:58
so what is the meaning of this symbolic link?13:58
tbf joined14:00
d0ugal joined14:00
sagsousuke joined14:00
charon 42, obviously14:00
Plouj: you can use origin/HEAD (and since it's HEAD, also just origin) to refer to origin/master14:01
so in a sense, it's the default branch of the remote repo14:01
Plouj so, nothing to do with my local master being a tracking branch of the remote master?14:01
charon no.14:01
sagsousuke left14:02
sagsousuke joined14:02
icefox joined14:02
dcampano joined14:03
jasonn1234 joined14:03
stikonas left14:04
Swimming_Bird joined14:04
Scotto_ how do revert changes? i just botched a dos2unix and i need to NOT commit the changes14:07
ringlej joined14:08
pklingem I'm trying to copy a directory from a local branch into the current branch, should I use git fetch for this?14:08
Determinist joined14:10
sylr hi14:10
is it possible to remotely rename a branch with git protocol ?14:10
krh you can push the branch under its new name14:11
and then delete to old one14:12
smuf joined14:12
Vortex34 joined14:12
sylr krh, ok, thanks14:12
Ramon_ joined14:12
fool_ left14:13
Plouj where is the meaning of a remote-tracking branch documented?14:14
Haarg left14:15
fool_ joined14:15
Ramon_ how to ignore already versioned files?14:15
yevlempy left14:16
jokaro left14:16
yevlempy joined14:16
Plouj oh in git-branch14:17
loincloth left14:17
wereHamster Ramon_: add it to .gitignore and git rm --cached it14:18
bauruine joined14:19
y10 left14:20
y10 joined14:21
tedoc2000 joined14:22
Plouj howcome git checkout -b remote/branch is different from git checkout --track remote/branch?14:23
niko left14:24
charon Plouj: briefly put, because -b takes an argument but -t doesn't. the first creates a new branch with full name refs/heads/remote/branch starting at HEAD, while the second uses some DWIMmery to create a new branch 'branch' starting at (and tracking) remote/branch14:24
charon hopes he got the -t semantics right since he never uses that14:25
shruggar Plouj, I think in modern git, they're the same14:25
wait, no, I'm wrong14:25
yeah, what charon said, I think14:25
Plouj o_O14:26
shruggar git checkout --track remote/branch is more like (in modern git): git checkout -b branch remote/branch14:26
charon indeed, that's a nice way of putting it14:26
stamina_ joined14:27
whitman left14:27
tedoc2000 left14:29
aryounce joined14:31
Plouj I guess 1.6.5 is old14:32
wereHamster <v1.6.5>14:32
Gitbot [git v1.6.5]: http://tinyurl.com/yjeuqhw -- v1.6.514:32
wereHamster about six months old14:33
MrGando joined14:33
Haarg joined14:34
MrGando Hello , I'm having problems with git , I'm getting "bash: git-upload-pack: command not found" when I try to clone, but I CAN execute git-upload-pack from the console, it's already in my Path, any idea ???14:34
carolyn left14:36
carolyn joined14:37
wereHamster it's not in the standard path. When you log in bash executes .bashrc or .profile where you probably modify your PATH, when git creates an ssh tunnel these files are not loaded.14:38
kbingham joined14:38
MrGando wereHamster: I can actually type git-upload-pack in the console and it's executed14:39
so I think it's in the path...14:39
wereHamster try doing this: ssh user@host git-upload-pack14:40
rseifert left14:40
icwiener joined14:41
hummingkid joined14:42
jelmer joined14:43
MrGando wereHamster: Can I specify the path to the git-upload-pack in the remote server ?14:44
tchan joined14:44
wereHamster MrGando: man git-push14:45
Gitbot MrGando: the git-push manpage can be found at http://git.or.cz/man/git-push14:45
wereHamster or man git-clone14:46
Gitbot wereHamster: the git-clone manpage can be found at http://git.or.cz/man/git-clone14:46
wereHamster yep, it's right there...14:46
altogether joined14:47
chaoflow joined14:48
rchavik left14:49
j416 left14:49
viniciusluiz left14:49
khelll left14:50
tg left14:50
loincloth joined14:51
tg joined14:51
christophsturm joined14:52
chaoflow git svn dcommit fails for me for a local (file:///) svn repo: "No such file or directory: Can't create directory '/tmp/tmpziV9zb/repos/testpackage/db/transactions/6-6.txn': No such file or directory at /usr/lib/git-core/git-svn line 570"14:54
git-svn version 1.7.0.2 (svn 1.6.9)14:54
it seems the on-disk repo format changed14:55
tedoc2000 joined14:55
ringlej left14:55
tedoc2000 left14:55
jelmer left14:56
tedoc2000 joined14:56
kukks joined14:57
joeconyers left14:57
tpolzin left14:57
byang joined14:58
schierbeck joined14:59
carolyn left14:59
jasonn1234 left15:00
byang left15:01
sde_antrix1 left15:01
carolyn joined15:01
EricInBNE left15:02
tedoc2000 left15:03
tedoc2000 joined15:03
jasonn1234 joined15:05
Scotto_ anyone ever run into dos2unix changing flv files? or other binary files?15:06
Plouj is that a git command?15:06
Scotto_ Plouj: no15:07
Plouj: im converting the line endings before tracking with git15:08
Plouj well, then I don't see why it wouldn't change whatever files you point it at15:08
maybe those flv files have line endings15:08
joeconyers joined15:08
agib|awayagib15:11
viniciusluiz joined15:11
jasonn1234 left15:11
level09_ joined15:11
level09_ left15:12
wereHamster of course they have. There is about 1/256 chance that a byte in that file is a newline15:12
rgr joined15:12
Tommy[D] left15:12
coderdad joined15:13
Scotto_ its ashame that theres no tool to convert all non-binary file line endings15:13
christophsturm left15:13
charon maybe once you can come up with an oracle that correctly tells binary from text files, someone will write such a tool15:14
christophsturm joined15:14
Scotto_ charon: looks like someone wrote an improved dos2unix which includes a --skip-binary flag15:14
i havent tried it yet though15:14
Tommy[D] joined15:15
charon it'll still only be a heuristic15:15
Scotto_ so i gues si need to just write something to focus on only the files extensions i know are non-binary15:15
tjgillies joined15:16
charon as a crude counterexample, the format that .torrent files are stored in is a key-value format where every byte is significant since there are byte counts all over the place. but they do not necessarily have to look like a binary file (a common heuristic is checking for 0 or <32 bytes). [they typically do have some of these bytes in the 'value' payload, but that's beside the point]15:17
agib left15:17
wereHamster better to use file extensions to differentiate between binary and text (IMHO)15:18
Scotto_ yeah thats what im goign to do15:18
i have a set group of extensions which i have no doubt about15:18
wereHamster maybe use file --mime-type15:19
Scotto_ i was just goign to use -name '*.txt'15:19
xiong joined15:21
Plouj Scotto_: you have now advanced to the next level of Unix shell usage!15:21
ph^_ left15:21
xiong I'm starting to wonder why git isn't part of the OS.15:21
Plouj git kernel module?15:21
GarethAdams|Work left15:22
xiong Why is version control considered a programmer's tool? What prevents me from putting a repo in, say, my mail folder?15:23
wereHamster UGFWIINI prevents you15:23
coldswitch joined15:23
xiong Or perhaps more salient, that folder full of business letters.15:23
hobodave joined15:24
xiong Is UGFWIINI a bad thing!?15:24
hummingkid left15:27
xiong Yah, Plouj: maybe not a kernel module per se but a bag on nautilus. There could be little traffic signal dots next to each and every file and folder: checked in, not checked in. Something like that. And a button you click that brings up a little window you can scribble your commit message, then commit.15:27
viniciusluiz left15:28
catalis joined15:28
Plouj :(15:29
j416 joined15:29
makx joined15:29
makx hello dudes15:29
parasti you mean a file manager plugin, not "part of the OS"15:29
makx how do i exclude a patch from git15:29
speaking of git://git.openvz.org/pub/linux-2.6.32-openvz15:30
i need the openvz patch minus the 2.6.32.1015:30
they didn't rebase on top of it15:30
but just merged it in15:30
xiong parasti, I don't 'mean' anything yet. I just have this sudden rush in my head.15:30
wereHamster makx: what is 'the 2.6.32.10' ?15:30
bcardarella_ joined15:31
makx stable upstream linux-2.6 release15:31
wereHamster:15:31
^^15:31
xiong One Ring to Rule Them All. But yeh, more realistically, a nautilus plugin might be very doable.15:31
charon xiong: i think there's some work on nautilus integration of git-cheetah15:31
not sure if it's usable though15:31
wereHamster makx: checkout whatever you want, merge in whatever else you want. Done15:31
makx so in this repo a git log 7f5e918e62cbc9ac27c2f47d3c3dd4b86f67ff0e..15:31
shows also the 2.6.32.10 commit15:31
wereHamster: what are you waffling?15:32
wereHamster I have no idea how the history of that repo looks like15:32
bcardarella left15:33
bcardarella_bcardarella15:33
wereHamster if you just want to exclude one patch, git revert is what you want. However that doens't work on merge commits15:33
xiong charon, I'll have to look in on that, when I have a mo. The only tricky part of something like that is deciding which folders get repo'd. You don't want one big repo for your whole FS (I guess); you don't want one repo per folder (I guess).15:33
biz what's the best way to check for a clean working tree in a scripted fashion? Should I check the exit code of git status or is there something better suited?15:33
charon xiong: well, it's still "only" git integration in the sense that it lets you *use* git repos from your file manager. (as i should be, really)15:34
makx wereHamster: I'd need this whole patchset rebased on newer 2.6.32.1015:34
xiong Dunno. Maybe with the wide availability of terabyte drives, it's reasonable to have one giant repo at / and then have a rule such that when you create a repo lower down the tree, that folder is excluded by default from the parent repo.15:34
JEEB joined15:34
sh1mmer left15:35
makx repo can be seen on http://git.openvz.org/?p=linux-2.6.32-openvz;a=summary15:35
codeshepherd left15:36
wereHamster what are you refering to by 'this patchset'?15:36
xperience joined15:38
xperience left15:38
Plouj left15:38
hipe left15:39
hipe joined15:39
Tuttle joined15:41
Tuttle Is there some quick subcommand the status of all files in the cwd or tree? I mean to indicate for each existing file whether it is tracked, modified, ignored, untracked etc. ?15:42
wereHamster git status or git ls-files (with various options)15:42
gaveen left15:43
beni- joined15:43
xiong I'm *stoked*. I just made my entire development perl executable folder a repo. Now I can tool with it as much as I like and trust I can get back to something that works, no matter how I mess it up.15:43
Considering how many hours I spent building the thing, that's not a trivial win.15:44
ixti left15:44
amerine joined15:44
hipe left15:44
lightcap_ joined15:45
Textmode night all15:45
Textmode left15:46
Tuttle wereHamster: i doubt git-status does what i need. git ls-files seemed to require numerous options to get near to what i expected15:46
anjen joined15:47
malumalu joined15:47
wereHamster create an alias which executes ls-files multiple times15:47
Tuttle hm, that's ugly. but thanks15:47
pkahle joined15:47
lightcap_ left15:48
ambuli left15:49
aniket joined15:49
dpino joined15:49
fool__ joined15:50
fool__ left15:50
fool__ joined15:50
cloudhead joined15:50
ryanakca left15:50
struberg left15:51
deavid_deavid_old15:51
ixti joined15:51
fred is there a nicer (for scripting purposes) alternative got "git status | grep -q 'working directory clean'" ?15:52
*alternative to15:52
fool_ left15:53
zoniq left15:53
malumalu left15:53
zoniq joined15:54
DavidKlein joined15:54
deavid joined15:55
wereHamster fred: look at the git-rebase script15:55
sh1mmer joined15:55
stringo0 joined15:55
mklappstuhl joined15:56
gaveen joined15:56
Tuttle left15:56
ncopa left15:56
_deavid_old left15:59
sh1mmer left16:00
skoop left16:00
auslander left16:00
gaveen left16:01
linduxed joined16:03
auslander joined16:03
xperience joined16:03
auslander left16:03
auslander joined16:03
linduxed i just did a "git svn fetch" and then "git svn rebase" whereafter i got "foo/bar/foo.bar: needs update"16:04
xperience left16:05
y10 left16:05
sagsousuke left16:05
linduxed i thereafter did git update-index --refresh16:05
kmap_ joined16:05
linduxed that only resulted in the same message16:05
schulty joined16:05
tjgillies left16:05
schierbeck left16:05
webchick joined16:05
wereHamster 'needs update' means that your working tree is dirty. Either commit or stash or throw the changes away16:06
defectiv joined16:06
kmap left16:06
tamm0r joined16:06
linduxed is there a way to check what the diff between the fetched changes and the local changes are?16:06
wereHamster git diff <whatyoufetched>16:06
kmap_kmap16:07
tamm0r left16:07
linduxed done16:08
thx16:08
parigaudi left16:08
ph^_ joined16:08
aryounce left16:09
sh1mmer joined16:10
carl- left16:12
gmcinnes joined16:12
gmcinnes Hi all. Stupid question. When merging two branches on my machine and I get a conflict, which is "local" and which is "remote"? I always forget, and I seem to remember there's a trick to it.16:13
aniket can someone help me with this problem:16:13
http://gist.github.com/raw/334157/b321cd74520c67e48c683859ae8cea1547719f3c/gistfile1.txt16:13
WebDragon joined16:13
aniket Alternative Link: git://gist.github.com/334157.git16:14
kmap left16:14
beni- left16:14
altogether gmcinnes: http://www.gitready.com/advanced/2009/02/25/keep-either-file-in-merge-conflicts.html16:14
kmap joined16:14
friskd left16:14
altogether gmcinnes: dunno if that's current, just googled16:15
Voziv_ joined16:15
gmcinnes altogether: ah ha! thanks. Thought I could only apply those merge strategies to the whole merge.16:15
Voziv_ Hey i got a question about the exclude file..... if i ignore a path such as a /bin directory of a project, can I specifcally make a type of file like db3 files still stay included?16:16
hakunin joined16:17
wereHamster inside bin/.gitignore: * and !*.db316:17
steffkes "An optional prefix ! which negates the pattern; any matching file excluded by a previous pattern will become included again. If a negated pattern matches, this will override lower precedence patterns sources. "16:17
charon aniket: not sure i understand your question right, but if it is "how do i copy history from A to B where neither is a clone of the other", simply use 'git remote add' to create a remote and then fetch from it16:17
Voziv_ ah oki16:18
tjgillies joined16:18
agile left16:18
Voziv_ so will that work in my .git/info/exclude file as well?16:18
tg left16:18
aryounce joined16:18
altogether gmcinnes: does that page answer your problem? on careful read, it seems to just let you choose to keep theirs or yours, and not help tell you which is which when looking at a file with a confilct16:18
bauruine left16:18
tg joined16:18
aniket charon: ok i'll try that16:18
aryounce left16:19
steffkes Voziv_, it's just the same .. add .gitignore and work there16:19
laj joined16:19
wereHamster Voziv_: if a directory is excluded git won't even descend into it, so bin/ and !bin/*.db3 won't work (at least that's how I remember it_)16:19
ixti left16:19
Voziv_ ok16:19
wereHamster maybe bin/* and !bin/*.db3 will work though16:20
malumalu joined16:20
gmcinnes altogether: yeah, it does. I think. But I'm still curious about the other problem. "git merge foo" with conflicts, then "git mergetool" gives me a LOCAL and REMOTE which one points to the branch foo?16:21
schultyschulty|away16:21
parigaudi joined16:22
patthoyts left16:22
coldswitch left16:22
johnw joined16:22
gaveen joined16:22
altogether my guess is foo would be remote, can you find out by experiment?16:23
gmcinnes: see, i don't use mergetool, i just look at the file myself16:23
tbf left16:24
joeconyers left16:25
g0 left16:25
tstclair left16:26
webchick left16:26
schulty|awayschulty16:26
SRabbelier joined16:27
MrGando left16:27
schultyschulty|away16:28
schulty|awayschulty16:28
schultyschulty|away16:28
schulty|awayschulty16:28
tjgillies left16:29
nusse left16:30
kenichi_ joined16:31
joeconyers joined16:31
tbf joined16:31
vinse gmcinnes: i agree with altogether, i'm pretty sure foo would be remote16:33
stringo0 left16:33
linduxed left16:36
dj_tjerk joined16:39
schlorto1 joined16:39
schlorto1 left16:39
ajpiano joined16:39
elmomalmo joined16:39
schnable joined16:40
psoo left16:40
schnable what is the best way to branch a repo and have that branch become master in a new repo? I don't need the history of the old repo in the new one.16:40
Voziv_ it works great now, thanks guys :)16:41
tjgillies joined16:41
trivol left16:42
webchick joined16:42
balooga joined16:43
giallu left16:43
Voziv_ left16:45
ntoll left16:46
nicoulaj left16:47
sh1mmer left16:49
s0enke joined16:50
s0enke hi16:50
is it possible to clone only specific branches or does clone imply a complete "checkout" of the remote repo?16:50
lhz joined16:51
MetaCosm_ left16:51
richcollins joined16:51
MetaCosm left16:51
bentob0x joined16:52
zodiak left16:52
Weiss s0enke: at least as I understand it, a clone starts from wherever "HEAD" points and works down to the bottom of the tree, so you only get one branch16:52
steffkes left16:53
Weiss schnable: similar answer to above, although your question isn't quite clear to me. make sure "HEAD" points at the new branch, then the next clone from there will have that as "master"16:53
s0enke Weiss: well the remote originally is an imported svn repo, so i'm not sure where head points to16:54
Weiss schnable: note that you don't have to call your "main" branch "master", but if you do want that, you can rename the branches16:54
tbf left16:54
Weiss s0enke: "git symbolic-ref HEAD" will tell you16:54
http://git.bitwiz.org.uk/?p=libdrm.git;a=summary - example of a Git repo with no "master" branch and HEAD pointing to something else16:55
maxthoursie left16:55
schnable Weiss: that will include history tho, I basically want to take a snapshot of my code and start a new repo from it; simple cp of the files is not cool cause I have submodules16:55
Weiss schnable: ah.. in that case, some magic with git filter-branch --parent-filter I think (that's what I've used (once) in the past to discard history)16:56
schnable im experimenting with a clone --depth 116:56
Ramon_ left16:57
schnable which i may not be able to push from, but maybe i can cp the output of that so I get .gitmodules but still in a state where i can do git submodule init16:57
Weiss: what is git filter? i dont have that command16:57
Weiss I've never used submodules before, so I'll defer that to someone with better understanding :)16:58
badboy_ it's filter-branch, schnable16:58
Weiss schnable: git filter-branch16:58
schnable gotcha16:58
Theravadan joined16:58
jasonn1234 joined16:59
balooga Hi folk. I just set up an account at github, and have made my first successful commit. Unfortunately, I did 'touch README', then 'git add README', and then began editing the README file. So now README on github is empty. README on my local disk contains text. But I cannot find out how to commit this changes, because 'git diff' doesn't return any changes.16:59
hipe_ joined16:59
Saur balooga: What does git status say about the README file?17:00
schnable clone --depth 1, then setting new remote, and pushing to that seems to work17:00
cloudhead left17:00
eladmeidar left17:01
gmcinnes left17:01
eladmeidar joined17:01
tjgillies left17:02
Mezner left17:02
nanoo left17:03
balooga schnable: sorry, NEWS & LICENSE have this problem. 'got status' lists some untracked files. Nothing else.17:03
err, 'git status'17:03
fmardini left17:03
crubb joined17:04
crubb hey guys17:04
just getting started on GIT, is there a svn:externals equivalent w/ git?17:04
fred git submodules (sort-of)17:05
comps left17:06
Pupeno left17:06
crubb cheers fred17:06
webchick left17:06
altogether after i run git init, .git/config has ignorecase = true. i'm on a mac which i'd think should be case sensitive, so why does git want to ignore case?17:07
enherit joined17:07
crubb altogether: are you sure there won't ever be a windows checkout? ;)17:08
altogether no, there could always be that some time17:08
tokkee left17:09
aresnick joined17:09
balooga1 joined17:09
tokkee joined17:09
altogether crubb: i see what you mean - i got to this question troubleshooting something - changed a file name from GemFile to Gemfile, but git didn't notice the change17:11
tjgillies joined17:11
balooga left17:11
parasti altogether: doesn't OSX default to case insensitive file system (but the FS supports case sensitivity itself)?17:11
cbreak HFS+ preserves case17:11
altogether windows is a bad thing, or has that already been acknowledges hereabouts17:11
posix4e joined17:11
cbreak but it considers letters only differing in case the same17:11
posix4e So if i committed a whole bunch locally, is their a good way to role it into one big megacommit before pushing it ?17:12
cbreak so you can not have README and readme in the same folder, for example17:12
posix4e: why do you want to?17:12
comps joined17:12
cbreak to make it less easy to understand?17:12
daharon joined17:13
posix4e cbreak: our changlist is customer faxing17:13
*facing17:13
altogether posix4e: know about rebase?17:13
posix4e altogether: i haven't done it yet17:13
r11t joined17:13
cbreak so you want your customers to understand it less?17:13
altogether posix4e: it's what you want17:13
posix4e cbreak: you are being rude and unhelpful17:13
cbreak you can squash commits with git rebase -i17:13
but you are rude to your customers if you do that17:14
posix4e left17:14
cbreak posix4e: it's not me who's rude here17:14
_nickel joined17:14
cbreak note that rebase -i rewrites history17:14
altogether he/she's gone nevermind17:14
cbreak so if you pushed it somewhere, it will conflict17:14
altogether was about to warn the same :)17:15
cbreak hope that he reads the man page then...17:15
altogether ja, and the definition of rude17:15
cbreak I think the best method is to create a merge commit with an overview of the changes that are merged17:16
daharon Hey guys, we have a bunch of repos that span two different departments at work. We are using gitosis to serve up the repos, but it's getting a bit messy. We have projects that are separated out into many repos for security reasons. Any tips on managing gitosis so that the repos can be partitioned out by department?17:16
cbreak and not squash everything together17:16
balooga1 left17:16
daharon I thought about just creating a new user for gitosis, but we want to share all the keys17:16
cbreak share the keys?17:17
altogether parasti: as to your q, i can only guess - installed SL with all defaults, and don't know if FS actually supports it17:17
cbreak make all people have the same key?17:17
daharon cbreak, what I mean is, I don't want to create several keys for a single user.17:17
sh1mmer joined17:17
r11t left17:17
sh1mmer left17:17
cbreak you don't need to create any key17:17
every user should have or create his own17:17
r11t joined17:17
jstephenson joined17:18
cbreak I don't know gitosis itself, but in SSH, which I think it is based on17:18
a key identifies a user17:18
bcardarella left17:20
bremner_ daharon: the answer to almost all gitosis questions is: look at the gitolite docs, it might do what you want :)17:20
priidu left17:21
carrus85 joined17:21
enherit left17:23
godsflaw left17:23
altogether i guess if my problem is 'change README to readme without messing with future windows checkouts or other scripts that just might care about case' then my solution is 'git rm README && git touch readme && git add readme'. i guess.17:24
coldswitch joined17:25
cbreak my tip: do not touch case.17:25
cbreak uses all lowercase for filenames in programs, with only few exceptions17:26
altogether cbreak: usually me too, just ran across a special case was troubleshooting17:26
MetaCosm joined17:26
locklace left17:27
_sh3 left17:27
WebDragon|away joined17:27
cbreak Hmm... funny... it seems the exceptions are about 90% of my new project :/17:27
ah well, at least it's consistent :)17:27
altogether now you're being rude17:27
WebDragon left17:27
WebDragon|awayWebDragon17:27
locklace joined17:27
altogether don't wonder if i'm kidding. i am.17:28
_sh3 joined17:28
dereine left17:28
_nickel left17:28
aryounce joined17:28
enherit joined17:28
gebi left17:28
joeconyers left17:29
aryounce_ joined17:29
tjgillies left17:29
jamiel joined17:30
viniciusluiz joined17:30
jamiel Hi all, I seem to be stuck in a merge conflict loop i can't get out of ... I made changes in a local branch with my master being a git svn repository17:30
I merged my changes into master but had a conflict, sorted it out, did a git svn fetch and git svn rebase and am now stick with:17:31
"Merge conflict during commit: File or directory 'www/trunk/lib/api' is out of date; try updating: The version resource does not correspond to the resource within the transaction. Either the requested version resource is out of date (needs to be updated), or the requested version resource is newer than the transaction root (restart the commit). at /usr/libexec/git-core/git-svn line 570"17:31
everytime i try dcommit17:31
merlin83 left17:31
jamiel i've tried making a fresh branch, then reset back to the last svn-id commit17:31
and a rebase into my branch17:31
hced left17:32
aryounce left17:32
aryounce_aryounce17:32
jamiel I get the same conflicts, sort them out ... checkout master , then git svn fetch and tried git merge backup --ff .. it adds all the new files but a dcommit gives same error17:32
Swimming_Bird left17:32
hced joined17:33
tetha left17:33
g0bl1n left17:33
jelly-bean joined17:34
zodiak joined17:34
jelly-bean can i make it so when i do git pull from any branch it attempts to pull for ALL branches, not just the one i am currently on?17:34
friskd joined17:34
joeconyers joined17:34
Mizar-jp joined17:35
tvw left17:35
d0ugal left17:35
tbf joined17:35
r11t left17:35
tetha joined17:35
merlin83 joined17:36
merlin83 left17:36
merlin83 joined17:36
r11t joined17:37
PointMan joined17:38
bradhaydon joined17:38
gaveen left17:39
tjgillies joined17:40
kumbayo joined17:40
JackWinter2 left17:41
tbf left17:41
r11t left17:41
cj joined17:41
cj hurm. I accidentally git rm'd something and committed it... how do I remove that file from that commit?17:41
r11t joined17:41
webchick joined17:41
altogether jelly-bean: i actually have not tried this yet, about to - but looks good for you http://www.gitready.com/advanced/2009/03/11/easily-manage-git-remote-branches.html17:42
jelly-bean: another possibility for you is hub17:43
hakunin left17:43
JackWinter joined17:43
PointMan left17:43
Pupeno joined17:45
dreiss joined17:46
gnufied joined17:47
joeconyers left17:48
PointMan joined17:48
PointMan_ joined17:49
PointMan left17:49
PointMan_PointMan17:49
anjen left17:49
PointMan left17:50
aniket does git1.5.3 have a command like "git checkout --ours xxx.txt" ?17:50
petrux left17:50
radarek left17:51
catalis left17:51
cbreak what would that do?17:51
oh, index checkout17:52
if it doesn't, you can check out from the commits instead17:52
like git checkout HEAD -- file.txt17:52
hakunin joined17:53
xperience joined17:53
gaveen joined17:53
altogether aniket: if after conflicts, maybe this http://www.gitready.com/advanced/2009/02/25/keep-either-file-in-merge-conflicts.html17:53
richcollins left17:53
joeconyers joined17:54
aniket altogether: ya i tried this command but it does not work in git v1.5.3 i think17:54
Determinist left17:54
altogether aniket: but you saw what it says at bottom of page? about earlier gits?17:54
MetaCosm_ joined17:55
jamiel How in my current branch, how can I see the difference from a previous revision?17:55
aniket altogether: ok, thanks!17:55
altogether jamiel: git diff sha1-of-preivious-revision17:55
jamiel doesn't seem to work :( I get an empty file17:55
krawek joined17:56
jamiel Maybe I'm going too far back?17:56
jceb joined17:56
altogether jamiel: then they're identical? seriously, sure you're not on that commit?17:56
jamiel: no, there's no limit17:56
jamiel Even if it was before the branch was created?17:56
tstclair joined17:57
Lumbendil joined17:57
themillthemill_17:57
Lumbendil hi17:57
tbf joined17:57
altogether jamiel: ok, what did you mean by 'previous revision'?17:57
Lumbendil anyone arround here uses PortableGit?17:58
agib joined17:58
lresende joined17:58
fr0sty jamiel: what does 'git log --oneline <previous_commit>..HEAD' show?17:59
viniciusluiz left17:59
aniket altogether: can you also tell what does this command do: git reset -- xxx.txt17:59
themill_themill18:00
Lumbendil I don't seem to manage it to get my public keys... :S18:00
joeconyers left18:01
domcat joined18:01
aniket can someone tell what does this command do: git reset -- xxx.txt18:01
krawek left18:01
hebz0rl joined18:01
altogether aniket: dont worry i'm sure everyone saw you ask me 3 seconds ago :) - was experimenting, it does depend on what you have in your index at the time18:02
wolog left18:02
godsflaw joined18:03
gaveen left18:03
cloudhead joined18:04
charon aniket, altogether: it doesn't really depend. it fills the index entry for xxx.txt with the contents of HEAD18:04
riz2 joined18:04
charon the effect is to unstage any changes to the file that were staged before18:04
godsflaw left18:04
kenichi_ hello. if i branchA from master, <commits>, then branchB from A, <commits>, merge B to A, merge A to master, then delete A before B, will i get "is not fully merged" when i try to delete B?18:05
charon (the slight twist is that if the file was newly added, you need git rm --cached instead of git-reset since there is nothing in HEAD to copy to the index)18:05
godsflaw joined18:05
altogether charon: ok ja, that's clearer, thanks18:05
froschi left18:06
priidu joined18:07
tatsuya left18:08
Lumbendil anyone knows how to use public key auth with PortableGit? it doesn't seem to find the key, or something like that :S18:08
altrux left18:08
ebneter left18:09
tjgillies left18:09
ebneter joined18:09
yevlempy left18:09
brizly joined18:09
cbreak git doesn't search the key18:10
yevlempy joined18:10
cbreak it's SSH who does18:10
if you have it at a non-standard location, just use ssh-add18:10
tbf left18:10
WebDragon left18:11
TDJACR left18:11
Lumbendil i put it in the ssl folder :S18:12
well, seems i managed to read the file with openssl now18:12
let's see if I manage to get it working...18:12
schnable left18:12
RdeWilde joined18:12
cj Lumbendil: http://wiki.debian.org/SSLkeys#PEMkeys.28SSLcertificates.2918:13
joeconyers joined18:13
snaka joined18:14
simNIX joined18:14
przemoc left18:15
agibagib|away18:15
agib|awayagib18:15
przemoc joined18:16
tjgillies joined18:17
doobry left18:17
Lumbendil ssh-add doesn't connect to the agent :S18:18
joeconyers left18:18
cj Lumbendil: apt-get install keychain ; eval `keychain --eval`18:18
TDJACR joined18:18
gaveen joined18:19
cj if you're not using debuntu or similar, you can grab keychain from...18:19
spearce left18:20
cj http://agriffis.n01se.net/keychain/18:20
Lumbendil I'm on windows, trying to get PortableGit working XD18:20
agibagib|away18:20
cj Lumbendil: ah, are you using cygwin?18:21
Lumbendil nope, there is a binary on the web of a portable win compilation18:21
cj okay... does it come with an ssh-agent ?18:21
Lumbendil yup18:21
but it doesn't seem to work18:21
cj have you run it? the ssh-agent, that is?18:22
Lumbendil i've started it up with ssh-agent18:22
and then ssh-add doesn't find it18:22
:(18:22
agib|awayagib18:22
cj Lumbendil: you'll need to get the environment variables that ssh-agent spits out exported18:22
shruggar left18:23
Lumbendil i read that it exports them :S18:23
cj once ssh-agent is running, you can add the keys to the agent with 'ssh-add c:\path\to\id_rsa'18:23
oh, good. now do an ssh-add18:23
Lumbendil no agent found18:23
joeconyers joined18:24
Lumbendil though i can see the exports18:24
WebDragon joined18:24
cj so the environment variables aren't exported18:24
Lumbendil damned shell, i can't copy from it18:24
cj right-click, chose 'mark'18:24
Lumbendil output of ssh-agent:18:24
cj highlight18:24
hit enter18:24
it's now in your copy buffer18:24
Lumbendil already tried, ain't working18:24
cj nice. windows is a pita ;)18:25
alester joined18:25
Lumbendil SSH_AUTH_SOCK=/tmp/ssh-pEDFId2100/agent.2100; export SSH_AUTH_SOCK;18:25
and the same with the PID18:25
it's a "unix shell" inside a windows XD18:25
gonna try something18:25
i oficially hate the windows shell18:26
cj check %TEMP%\ssh-ppEDFId2100 ?18:26
WebDragon left18:26
cj or %TEMP_DIR% or whatever windows calls it...18:27
vinse Lumbendil: i'm getting the same feeling about working in solaris -- it's exactly like a regular *nix machine, except slightly different in a million tiny undocumented ways!18:27
joeconyers left18:27
johnw left18:28
vinse like, hey, it seems like sed isn't working like i'm used to, what version is it ... oh it's a version that won't even tell you what version it is!18:28
Lumbendil xD18:28
cj vinse: prefix all of your commands with 'g' and you should be good ;)18:29
is there even a gsed?18:29
Lumbendil felt that way the day a windows machine with java 1.6 didn't want to run a .jar wich worked on another windows on the same university18:29
coldswitch left18:29
oliver3 left18:29
Lumbendil cj, the instance is there18:30
together with all the other ones18:30
so... export problem, right?18:30
:(18:30
spearce joined18:31
zoniq left18:32
zoniq joined18:32
Lumbendil great, ssh-add worked18:32
snaka left18:32
Lumbendil or at least, no error prompt18:32
richcollins joined18:33
Lumbendil yay, back to the ol' permission denied mate...18:35
calebr joined18:35
webchick left18:35
froschi joined18:36
Lumbendil using github, if that gives any hint :S18:36
tjgillies left18:37
joeconyers joined18:37
pkw left18:37
pkw joined18:38
pkw left18:38
carolyn left18:38
schlortoo left18:39
viniciusluiz joined18:40
carolyn joined18:41
cilly left18:41
Lumbendil & I can fetch, so it ain't working for some other reason... :S18:41
schlortoo joined18:41
niko joined18:42
wolog joined18:42
cj Lumbendil: what's ssh-add -l say?18:44
calebr left18:44
cj Lumbendil: also, does the other end recognize your ssh key?18:44
viniciusluiz left18:45
themill left18:45
lightcap joined18:47
webchick joined18:47
Lumbendil ssh-add -l didn't add anything18:47
tnx, gonna make it add the file18:47
it should, it does through eclipse18:47
domcat left18:47
joeconyers left18:47
richcollins left18:48
cj ssh-add -l lists the files your agent knows about ;)18:48
psoo joined18:49
tildeequals left18:49
Lumbendil yup, read about it in a link, though I didn't think about that18:49
viniciusluiz joined18:49
Lumbendil now i've to get it to automate all this...18:49
since colleges are waaay to lazy to do all this... -.-18:49
tjgillies joined18:49
Lumbendil btw, silly question, how do you change where github stores everything?18:50
ToxicFrog How do you mean?18:50
Lumbendil the folder it outputs everything you pull18:51
koltroll joined18:51
scode joined18:51
Axius joined18:51
cj git clone <remote repository uri> <local repository path>18:51
Lumbendil ook18:52
trochala left18:52
bcardarella joined18:53
scode Ok. I have a fork on github that i've been working on. The only thing I've done is to make some commits to my master, and pull from upstream/master (where upstream is a remote pointing to the upstream repository). Now I find that my local master (and my origin/master) has *diverged* from upstream/master in ways *other* than my local changes, and I have no clue why. Is there some good way to figure out which commits are missing in one branch relative to anothe18:53
joeconyers joined18:53
Ilari scode: 'gitk master...upstream/master'?18:55
Mezner joined18:55
t0rc joined18:56
meanburrito920_ joined18:57
scode Ilari: I'll give it a shot (once I've built it with gitk support). But I was hoping to just generate a flat list of commits that are in one branch but not the other. Since I have done no surgery and done no complex merges, I would expect the difference to boil down to that.18:57
maglos_ca_ joined18:58
michael_scheibe joined18:59
viniciusluiz left18:59
Alagar joined18:59
xris joined18:59
justin-george joined19:00
tjgillies left19:00
novas0x2a left19:00
xris I'm trying to figure out how to make --name-status a default for git log, but I can't seem to find the right set of things to use in ~/.gitconfig.19:00
Axius left19:00
michael_scheibe left19:01
hipe_hipe19:01
scode Ilari: That does show commits to upstream/master that are *supposedly* merged into my master, yet they aren't according to 'git diff' (and according to 'diff -uNr' on checkouts of the branches).19:02
schulty left19:02
christophsturm left19:03
maglos_ca_ left19:03
scode (and 'git merge upstream/master' claim's i'm up to date)19:03
fool_ joined19:04
fool_ left19:04
fool_ joined19:04
viniciusluiz joined19:04
Ilari scode: 'git rev-list --left-right master...upstream/master'?19:06
maglos_ca joined19:06
viniciusluiz1 joined19:06
fool__ left19:06
ruz joined19:06
viniciusluiz left19:07
ruz merged a branch, now can not find way to see the diff of this merge :(19:07
tjgillies joined19:07
scode Ilari: Empty output for "master..upstream/master"; I see my own commits when I do it for "upstream/master..master".19:08
.... and some commits by others apparantly.19:09
Lumbendil anyone knows of something like "eval" in windows console? i know it doesn't belong here... :S19:09
domcat joined19:10
Lumbendil but I'm trying to make a .bat file for a portable git to set itself up and i'd need that19:10
joeconyers left19:10
makx grr wereHamster the answer was really simple19:10
git diff v2.6.32.10...HEAD19:10
now what the hack three dots are special19:11
webchick left19:11
viniciusluiz1 left19:12
viniciusluiz joined19:12
krawek joined19:13
themill joined19:14
tildeequals joined19:14
kursad joined19:14
scode Ilari: Ok. "git checkout upstream/master ; git fetch ; git checkout master" - now I"m back to expected state. I have no idea how I broke it though (and 'git fetch' produced no output btw, so I'm surprised it made any difference at all).19:15
viniciusluiz left19:17
joeconyers joined19:17
hakunin left19:17
krawek left19:18
Blaine joined19:18
hakunin joined19:18
viniciusluiz joined19:18
krawek joined19:20
sagsousuke joined19:21
radarek joined19:21
naeu joined19:23
Lumbendil left19:23
Tureba left19:24
jar_corefile joined19:26
krawek left19:26
pboucher joined19:27
codeswing left19:28
pboucher I was wondering if this would be a good place to ask for help on designing a git setup?19:28
thiago_home joined19:29
Pupeno left19:30
WebDragon joined19:31
locklace pboucher: state your case19:31
pboucher I've got an app with which I work that has a plugin API. I write a lot of plugins against this API which are self contained tools.19:31
Wicked left19:31
pboucher I also download third party tools for this API.19:31
krawek joined19:32
pboucher I would like to have a repo that represents all my tools that I can have hooks that make it so when anything in master changes, my changes are copied out to my production area.19:32
But if I only have one repo with a personal dev branch and a master branch that automatically copies to production space with a hook and all my plugins are gobbed in this one repo, how do I version individual plugins?19:33
Axius joined19:34
pboucher ...19:34
Would it be better to have one repo per plugin?19:34
But then, how to make it so that modifications in the master branch are pushed out to my production environment? I'd need to setup hooks in all repos.19:34
jspiros left19:35
vinse left19:35
jspiros joined19:35
pboucher The workflow I'd like is that each dev has their personal branch space and there's the master branch.19:35
vinse joined19:36
pboucher Any commits that are added on top of the master branch will be deployed to the production environment.19:36
Wicked joined19:36
pboucher Being rather new to git I'm a bit stumped as to how to set this up.19:36
jdmason left19:36
nanoo joined19:37
icefox :) /me submits my first patch to git19:37
vvsh left19:37
krawek left19:37
krawek joined19:37
locklace pboucher: maybe have a look at http://nvie.com/git-model19:37
hakunin left19:38
carolyn left19:38
DrNick left19:39
hakunin joined19:39
fr0sty pboucher: also, consider git submodules. have each plugin be a submodule in a superproject.19:40
hakunin left19:40
hakunin joined19:40
fr0sty when you have changes to your plugin, you would update the submodule, commit to the superproject and have that pushed to your production area (or pulled from your production area if you prefer).19:40
I can, unfortunately, give you little help beyond that suggestion.19:41
pboucher Can one commit to submodules "through" a super project? That way I could administer the multitude of small per plugin repos but any dev would only need to deal with the super repo?19:42
DrNick joined19:42
krawek left19:42
pboucher locklace: Thanks for the link. Interresting reading for sure!19:42
Don't know how I'd have one repo with all the the plugins having all those branches but I'll investigate.19:43
locklace the chapters on submodules and subtree merge in http://progit.org/book/ (not to mention all the others) are worth reading too19:43
mm_work left19:44
jdmason joined19:44
Cryp71c joined19:48
aniket left19:49
rm-f`whoami` joined19:51
archis joined19:52
project2501a joined19:52
t0rc left19:53
radarek left19:54
richcollins joined19:55
jamiel Hi guys, I have a clean git svn repo ... I have just done a branch called 'dev' ... now, I am plagued with merge conflicts because we are a team of 5 working on the same code... what is the best practice here ... development in my dev branch, just before I want to commit, do a git svn fetch ... sort out any conflicts ... do a git svn dcommit ... then how do I get that it into my master? checkout master and git svn fetch?19:55
archis left19:55
radarek joined19:56
cbreak if you work on the same code, you will get conflicts19:57
thiago_home before dcommitting, you must always rebase19:57
then fix any conflicts19:57
_nickel joined19:59
zoniq left20:00
patthoyts joined20:01
kipras joined20:01
tbf joined20:01
altogether left20:01
spearce left20:02
webchick joined20:03
Cryp71c left20:03
spearce joined20:03
maglos_ca left20:03
Axius left20:05
webchick left20:06
Twisted_Mentat joined20:07
meanburrito920_ left20:08
agibagib|away20:08
sh1mmer joined20:08
Mage joined20:08
Mage left20:08
Mage joined20:08
pantsman joined20:10
meanburrito920_ joined20:10
lightcap left20:11
siprbaum left20:12
rudi_s joined20:13
Mezner left20:17
rudi_s_ left20:17
ToxicFrog left20:17
Mezner joined20:17
webchick joined20:18
parigaudi left20:18
siprbaum joined20:19
siprbaum left20:19
siprbaum joined20:19
viniciusluiz left20:22
Laibsch joined20:22
qubodup joined20:23
qubodup hello20:23
I'm a non-developer, who uses git to pull the latest revisions of some softwares20:23
often, git complains about files being different. for example 'configure'20:23
Mage it will indeed do that20:23
badboy_ `git checkout -- file` first20:23
qubodup I want git to just pull and take everything from HEAD. How would I do that? or is what I just said senseless?20:24
Laibsch I am now on lucid. Did interactive git rebase change? I believe that when I stopped to edit a commit, I would be presented with an unclean working directory, ready to commit. Now, "git status" turns up empty. Or is this a problem in lucid?20:24
Bombe qubodup, git fetch && git reset --hard origin/master20:24
patthoyts left20:24
spearce left20:24
richcollins left20:25
wolog left20:25
qubodup Bombe: thx20:25
seanmccann joined20:25
qubodup badboy_: you too, it worked for now, but Bome's way seems simple20:25
badboy_ yep20:26
wolog joined20:26
Axius joined20:26
Alagar left20:26
spearce joined20:26
wwwald joined20:26
Ilari_ joined20:28
dotsintacks joined20:29
ToxicFrog joined20:29
dotsintacks is there an option for git status to show me ignored files (i.e., ignore .gitignore temporarily)?20:30
Mage mv .gitignore .gitfoobar && git status20:30
Ilari left20:30
Ilari_Ilari20:30
tobier left20:30
Rhonda dotsintacks: set core.excludefile to something different.20:31
t0rc joined20:31
froschi left20:31
Axius left20:31
Rhonda … not sure if it's possible to set config options on the commandline?20:31
krawek joined20:31
badboy_ git config core.excludefile ...20:32
or add --global if this should be added to ~/.gitconfig20:32
Rhonda badboy_: That's not for just a single call, that's storing it.20:32
joeconyers left20:32
badboy_ ah, thought you wanted to store it =D20:32
Rhonda The question rather was to temporarily set it. :)20:32
tobier joined20:32
badboy_ ok.20:33
mjf joined20:33
daharon left20:34
coldswitch joined20:34
pantsman left20:34
jrmuizel joined20:35
yhager left20:35
yhager joined20:35
pantsman joined20:36
sh1mmer left20:38
yevlempyyev|away20:38
jamiel left20:39
sh1mmer joined20:41
sh1mmer left20:42
ajpiano left20:43
ehabkost left20:43
pklingem left20:43
DrNick left20:43
ehabkost joined20:45
xperience left20:46
yev|away left20:47
sagsousuke left20:47
d0k left20:47
pboucher left20:48
enherit left20:50
__iron joined20:51
RdeWilde left20:51
webchick left20:52
auslander left20:53
_iron left20:54
amerine left20:55
tvw joined20:55
jar_corefile left20:55
Mezner left20:56
dotsintacks left20:56
Bass10 left20:57
xris I'm trying to figure out how to make --name-status a default for git log, but I can't seem to find the right set of things to use in ~/.gitconfig. Does anyone know if this is even possible? (or maybe have a link to some documentation)20:58
cannonball left20:59
webchick joined20:59
jdmason left20:59
giorgian joined20:59
webchick left20:59
WebDragon|away joined21:00
webchick joined21:00
wereHamster xris: to see which various config options exist, man git-config21:00
Gitbot xris: the git-config manpage can be found at http://git.or.cz/man/git-config21:00
yev|away joined21:01
priidu left21:01
priidu joined21:01
josh0x0 left21:01
stkrzysiak joined21:01
nanooo joined21:02
drubies left21:02
matthieu_ left21:02
Laibsch let's assume I have a linear history a-b-c. How do I create a branch with a-c from that? (IOW, it should not contain a-b).21:03
WebDragon left21:03
WebDragon|awayWebDragon21:04
Bombe Laibsch, git checkout -b new-a a; git cherry-pick c21:04
Laibsch c is a range of commits21:04
not just one single commit21:04
sorry for being unclear21:05
jdmason joined21:05
Bombe Then maybe you want to take a look at man git-rebase21:05
Gitbot Bombe: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase21:05
nanoo left21:05
xris wereHamster: yeah, couldn't see much in there for this specific issue (unless --name-status has some other name in config)21:05
Bombe Laibsch, especially the section about interactive rebasing.21:05
wereHamster Laibsch: do you want to remove one commit from a list of commits?21:05
giorgian hi. where can I find the return values of git commands?21:05
Laibsch I've done interactive rebasing before, but right now I don't see how that would apply.21:05
przemoc giorgian: $?21:06
Bombe Laibsch, just remove commit(s) b from the editor shown when rebasing interactive.21:06
Laibsch wereHamster: depending on the perspective, I want to add the b-c range of commits to rev A or I want to strip the a-c range from HEAD.21:06
lucsky left21:06
giorgian przemoc: I mean, the possible values21:07
wereHamster Laibsch: you should be able to do that either with interactive rebase like Bombe said, or by using rebase --onto ..21:07
Laibsch Bombe: I see what you mean. But that's not so convenient. a-b is about 700 commits.21:07
wereHamster: I'll have a look into --onto21:07
thanks21:08
giorgian git commit, with nothing to be added, returns 1; do other errors also return 1, or different codes?21:08
przemoc giorgian: source code can say more, but generally all you want to know is whether $? == 0, i.e. success21:08
giorgian przemoc: no21:08
I'll look the source code, ok, but success is not enough: I don't consider nothing to be added so much of a trouble...21:09
ehabkost left21:09
tvw left21:09
brizly left21:10
project2501a left21:10
giorgian (I've put /etc under git, with an automatic script for apt, so that apt commands do git add . ; git commit, but when nothing changed I get an error, which makes apt fail...)21:10
project2501a joined21:10
mastro left21:10
przemoc giorgian: you can use etckeeper21:11
BTW21:11
giorgian przemoc: ok, I'll try it21:12
thanks21:12
a_GWT_startup joined21:12
Laibsch --onto was just what I was hoping for. thanks21:12
I would have never guessed21:13
malumalu left21:14
webchick left21:15
slashbeast joined21:18
slashbeast Hi there!21:18
d0ugal joined21:18
slashbeast I just wonder, sometime when I clone remote repo, I can type 'git branch' and I see only master. but I know that there is also devel branch, git checkout devel and work21:19
why it not showing?21:19
xiong_ joined21:19
agib|awayagib21:19
xiong left21:20
xiong_xiong21:20
wereHamster git branch -a21:20
lightcap joined21:21
DrNick joined21:22
rduplain left21:23
domcat left21:24
corni left21:24
t0rc left21:24
lightcap left21:27
slashbeast wereHamster: thanks21:27
;-)21:27
webchick joined21:27
slashbeast left21:27
zodiak left21:27
_nickel left21:28
bcardarella left21:29
Blaine left21:30
victoryoalli joined21:31
Mike||gonemikelifeguard21:33
victoryoalli left21:34
cloudhead left21:34
coldswitch left21:35
Pupeno joined21:36
LiamH left21:38
hugoxrosa left21:39
idamon joined21:41
kumbayo left21:42
nanooo left21:43
WebDragon left21:43
Theravadan left21:44
eli Is there a way to see an annotated commit without the referenced object?21:44
zodiak joined21:45
eli (which `git show' seems to always do)21:45
Theravadan joined21:45
meanburrito920_ left21:45
webchickenator joined21:45
hachi ugh... git server doesn't allow ~ in the url when you have user dirs turned off21:46
eli eli: `git cat-file -p'21:47
eli: thanks21:47
trochala joined21:47
digitalice joined21:47
jmcantrell left21:47
digitalice hey21:48
error: Untracked working tree file 'portal/media/css/amarillo' would be overwritten by merge.21:48
what should i do?21:48
kenichi_ left21:49
flaguy48 joined21:49
jast digitalice: if you don't have any changes of your own in that file, just delete it and try again21:49
webchick left21:49
digitalice ok :D21:49
psoo left21:49
Ilari left21:50
Ilari joined21:50
digitalice jast: its full of that kind of files21:51
it just a testing version21:51
dpino left21:51
digitalice [root@linode1 portal]# git checkout21:51
Your branch is behind the tracked remote branch 'origin/master' by 35 commits,21:51
and can be fast-forwarded.21:51
hooopy left21:51
hugoxrosa joined21:51
digitalice how do i do the checkout?21:51
icwiener left21:51
textarcana left21:53
Giles joined21:53
_nickel joined21:53
digitalice jast?21:54
eletuchy joined21:54
Giles on Everyday GIT http://www.kernel.org/pub/software/scm/git/docs/everyday.html it talks about Repository Administration21:54
BlindOracle left21:55
Giles and in the section cvs-style share it we are told to put the repo dir in /home21:55
in this style would you do git clone user@hostname:../devo.git21:56
or what?21:56
digitalice left21:56
lightcap joined21:56
tstclair left21:57
kumbayo joined21:57
none joined21:58
posix4e joined21:58
Giles or can it only be used in the way with git-deamon?21:59
hachi when you rev-parse a tree (not a revision) is that the content of the tree, or just the structure of the tree?21:59
Ilari Giles: git-daemon has nothing to do with user@hostname URLs...22:00
Giles indeed I gave a ssh URL22:00
jamiel joined22:00
bluenovember left22:00
levifig left22:01
t0rc joined22:01
gaveen left22:01
jdmason left22:01
Giles Ilari: what I am asking about is the setup that is explained in http://www.kernel.org/pub/software/scm/git/docs/everyday.html22:02
jamiel left22:02
jdmason joined22:03
bradhaydon left22:04
Giles Ilari: its seems to suggest you put repos under /home e.g. /home/devo.git22:04
josh0x0 joined22:04
loincloth left22:05
webchick__ joined22:05
_nickel left22:05
werdan7 left22:05
aziz left22:05
trochala left22:06
ndim Giles: I would use "git clone /home/devo.git" in that case.22:06
jceb left22:06
Giles if I don't want to setup a 'Git user' as you would when using stuff like gitolite or gitosis but I want to use a git group22:07
levifig joined22:07
Giles should I put my repos in /pub/scm22:07
and then clone them using git clone user@hostname:/pub/scm/project.git22:08
jonmason joined22:09
webchickenator left22:09
jdmason left22:09
sixteneighty joined22:09
gebi joined22:10
qubodup left22:11
hugoxrosa left22:11
ndim Giles: For ssh access, user@host:/path/to/repo.git, yes, or if you're working locally anyway, /path/to/repo.git.22:11
xris left22:12
t0rc left22:12
Tureba joined22:12
ndim Giles: And the path where you place the repos is your choice as sysadmin.22:12
Giles ndim: okay, I was just asking if there was any standard conention?22:12
s/conention/convention/22:12
werdan7 joined22:13
sgh_ joined22:13
ndim I'd say the standard convention is to keep stuff short. And using a single common special "git" user has the advantage that you can just use relative pathes in user@host:path-to/repo.git and that will then probably be resolved relative to wahtever the git user's $HOME will be.22:14
levifig left22:14
ndim So if you want to use a shared repo with different users... I would definitively avoid /home/repo.git. /home/scm/repo.git or /git/repo.git or something similar would probably make most sense.22:16
amerine joined22:16
Giles ndim, yeah but prehaps you could create /home/giles/ and /home/fred/ and symlink them to /pub/scm22:16
Ilari Giles: Also if you are looking for multi-user setup, also look into Gitolite.22:16
bibinou joined22:16
Giles Ilari: it seems to not make sence to me, run git as a single user in a multi user setup?!22:17
why not create multiple users accounts on the machine.22:17
Chillance left22:17
ndim Well, for some reason it makes sense for github to "run git as a single user in a multi user setup" with probably a few 100,000 users...22:18
Giles rather than a single user that has its shell set to a wrapper script that then works out which user you are.22:18
ndim ...so it can't be all that bad. :)22:18
Giles ndim: yeah I don't really know the implications of 100,000 user accounts on a unix box22:19
Chillance joined22:19
Giles I can see that gitolite scales better22:19
but in my setup I just want 1 or maybe 2 users to access one repo.22:20
simNIX left22:20
ndim Giles: All your users will eventually end up doing IO on the same repo. At which point you are merging the users's IO into a single IO stream does not really matter.22:20
gsgsgs joined22:20
Ilari Giles: Gitolite can do both MAC (mandatory access control) / DAC (discretory access control) type setups.22:20
Giles I don't know what that means?22:20
gsgsgs left22:21
ndim Giles: For a 1 or 2 user setup, just use /home/giles/git/meh.git, and if you actually change the location afterwards, for your 1 or 2 users it is not a problem to change their "git remote"s afterwards.22:21
Ilari Giles: Either admin can control what repos exist and what permissions the have, or let users create them & give access to others.22:21
naeu left22:21
Giles okay thanks22:22
I am off to sleep22:22
Giles left22:22
kumbayo left22:25
xiong left22:26
hced left22:27
TeckniX left22:29
segher left22:29
maxb joined22:29
seezer joined22:30
yev|away left22:30
dcampano left22:30
webchick__ left22:31
joevano joined22:32
fda314925 left22:32
Will| left22:32
fda314925 joined22:33
Will|| joined22:33
binjured joined22:33
Theravadan left22:34
lhz left22:34
segher joined22:34
textarcana joined22:35
doobry joined22:35
_Limb left22:35
avtobiff left22:36
Limb joined22:36
imajes left22:36
imajes joined22:36
avtobiff joined22:37
jelly-bean left22:37
GodEater left22:37
numbah joined22:37
posix4e left22:37
posix4e joined22:37
jY left22:37
eco joined22:38
eco I have some uncommited changes but I'd like to switch over to a different branch. Do I stash these changes or is this something git does automatically?22:39
_rane you need to stash or commit22:39
DavidKlein left22:39
eco Alright. Thanks.22:39
_rane git stash22:39
jY joined22:39
t0rc joined22:39
_rane guess you knew that22:39
doobry left22:40
drizzd eco: you can use git checkout -m to merge the changes over to another branch, without stashing them first22:41
wwwald left22:41
drizzd also means you may not be able to reproduce the original changes if something goes wrong22:41
eco Interesting. Not quite what I need but good to know it's there.22:41
chuck left22:42
drizzd eco: trying to change branches without -m is safe, but may fail22:42
chuck joined22:42
David-T left22:42
robo47 left22:42
drizzd (if the merge is non-trivial)22:42
dwmw2_gone left22:43
hachi why does filter-branch complain if my working tree is dirty?22:43
David-T joined22:43
drizzd hachi: probably because it can change the index and therefore potentially invalidates your changes?22:44
mklappstuhl left22:44
hachi why does it change the index, I thought it operated on revisions22:44
and not my working tree22:44
drizzd if it didn't change the index, you would have to manually fix it up22:45
hachi filter-branch?22:45
it never changes my HEAD or index22:45
mklappstuhl joined22:45
dwmw2_gone joined22:45
hachi well, it could change my HEAD if I'm doing a filter-branch on the same branch that I have checked out22:45
drizzd I'm pretty sure it does22:45
t0rc left22:46
drizzd exactly22:46
hachi the operation I'm doing right now will not change my index or HEAD at all22:46
drizzd you think22:46
imarcusthis left22:46
hachi I'm doing a filter-branch on a different branch than the one I'm on22:46
ndim filter-branch like rebase needs a working dir to do its work in.22:46
sixteneighty left22:46
imarcusthis joined22:47
drizzd ndim: I don't think it uses the normal working dir though22:47
radarek left22:47
alester left22:47
JackWinter left22:47
tychoish left22:47
JackWinter joined22:47
tychoish joined22:47
ndim drizzd: That would be curious, but could be true.22:47
drizzd --tree-filter uses .git-rewrite/t, for example22:47
jrmuizel left22:48
hakunin left22:48
drizzd ndim: it would potentially remove untracked files otherwise22:48
ndim Good point.22:48
hebz0rl left22:49
drizzd hachi: in git, branches are not strictly disjoint22:49
dwmw2_gone left22:49
magn3ts joined22:49
drizzd just because you are a different branch does not mean you do not share any history, in particular22:49
HEAD may point to a commit that is also in a different branch22:49
hebz0rl joined22:49
drizzd so your argument is flawed22:49
wolog left22:49
meuh left22:49
kipras left22:51
drizzd besides, what's the big deal? that's what git stash is for22:51
mugwump hachi: yeah if you're not using --tree-filter that's a bit of a bug really22:51
karihre left22:51
dwmw2_gone joined22:51
parasti drizzd: eh. if you rewrite history on one branch, other branches referencing the original commits won't be affected...22:51
meuh joined22:51
karihre joined22:51
up_the_irons left22:52
tbf left22:52
drizzd parasti: you got me there22:52
meanburrito920_ joined22:52
radhermit left22:53
coderdad left22:53
radhermit joined22:54
lightcap left22:54
mklappstuhl left22:54
hachi drizzd: my big point would also be that I was not in any branch22:55
drizzd mugwump: or --index-filter22:55
hachi I was on 'initial commit', sorta like being in a bare repo, except I hadn't set bare = yes yet22:55
iggy left22:55
madewokherd joined22:55
ProperNoun left22:56
iggy joined22:56
hachi and the graph could be completely disconnected between two branches, like I have here :)22:56
dcampano joined22:56
drizzd hachi: sure, parasti already invalidated my point22:56
nevertheless22:56
it seems kind of pointless22:56
aryounce left22:56
cbreak totally disconnected branches seems weird22:56
why are they in the same repository?22:56
drizzd especially since in your case, the solution is simply to set bare = yes, no?22:56
hachi because I'm preparing to graft it together22:57
cbreak yuck22:57
meuh left22:57
hachi the filter-branch is cjust a couple steps before I start grafting22:57
cbreak unclean! impure!22:57
hachi mugwump caused it all... his work on the perl5 history inspired me to do this insanity at work22:57
meuh joined22:57
yacoob cbreak, the word you're looking for is 'infidel' 8)22:57
yev|away joined22:58
cbreak exactly! thanks22:58
hachi YOU WILL NEVER KEEP ME DOWN MAN :D22:58
I will rise up against the man!22:58
yacoob standard tar+feather rules apply.22:58
cbreak I guess you can Hide secret documents from the evil officials in a different branch22:58
yacoob has one repo with 4 different related, but never going to be merged branches22:58
hachi steganography with git22:58
cbreak they'd never figure out how to use git22:58
josh0x0 left22:58
yacoob config files, 4 different flavours22:59
tghw left22:59
tghw joined22:59
cbreak config files in git? :/22:59
hachi I will hide my data in the low order bits of the SHA-1 fields22:59
raorn left22:59
Bombe left22:59
cbreak now that sounds like it requires CPU power :)22:59
dwmw2_gone left22:59
hachi yeah... or maybe something weak... like MD5 :D22:59
seanmccann left23:00
cbreak I heard from some competitor of freenet23:00
that apparently just inserts random data into a network23:00
dwmw2_gone joined23:00
cbreak and if you want to download something23:00
you download a list of random blocks you have to xor together to get the original23:00
really weird23:01
Bombe joined23:01
hachi there was the whole PAR file thing on usenet23:01
I loved the idea23:01
cbreak par is just checkblocks23:01
yacoob a friend of mine has written steganography lib that was using tcp headers to send the message23:01
cbreak current freenet has similar thing: FEC.23:02
hachi no, cause you could extend it out past missing a single block23:02
for each file you couldn't grab, get that many par files23:02
LotR left23:02
hachi and you have enough of the polynomial to reconstruct the data23:02
cbreak you need to download 50% of the data and you can reconstruct the file in freenet23:02
LotR joined23:02
Mage i read up on a stegenography library that makes it seems like your data is completely random but is actually a secret message23:02
cbreak doesn't matter which 50%23:02
hachi cbreak: wow, that's kinda nifty23:03
tg left23:03
cbreak (in reality, it does matter since it does FEC on a band level)23:03
avtobiff left23:03
cbreak but it's almost like that23:03
avtobiff joined23:03
tg joined23:03
cbreak Mage: good AES makes your data look random23:03
darwin_ left23:03
radhermit left23:03
Mage cbreak: yeah that's what i was referring to23:03
:p23:04
ajpiano joined23:04
Mage bbl23:04
mosno joined23:04
ProperNoun joined23:04
darwin_ joined23:04
raorn joined23:05
yev|away left23:05
lightcap joined23:06
up_the_irons joined23:07
meuh left23:07
yev|away joined23:07
lamont left23:08
meuh joined23:08
ph^_ left23:08
radhermit joined23:09
Ilari Its also possible to have random "garbage" where if one knows the key, one can extract message. Different keys can extract different parts and without knowing the key, its not possible to determine what keys pull out data, how much they pull out and indeed is there any valid keys.23:09
amerine left23:10
lamont joined23:10
dpsm joined23:12
ajpiano left23:13
dpsm Hi All, I would like a suggestion for the following situation... I have received a zip file with an 'initial' project version an started to track changes on a git repo... the problem is that i eventually get updates on other zip files and need to merge the new versions with my own changes. Any suggestions ?23:14
mosno left23:14
dpsm I have two public branches one to track the ziped file changes and another with my own commits...23:15
ReinH left23:15
rudi_s dpsm: Sounds good, just merge the zipped file branch into master every time you get a new zip file.23:16
ReinH joined23:16
aryounce joined23:17
smuf left23:18
dpsm rudi_s: the thing is that my changes are much less than the content that changes on the ziped files... so wouldn't the merges be painfull ?23:18
JEEB left23:19
twmi left23:19
hachi oh yeah, my other question23:19
meuh left23:19
j416 left23:19
JEEB joined23:19
dwmw2_gone left23:20
meuh joined23:20
hachi when I do a `git log` on a file, there is a merge point for this file a little ways down in the history (3 or 4 revisions)23:20
it says this information in the log23:20
twmi joined23:20
twmi left23:20
twmi joined23:20
hachi but I've tried a bunch of the options in the manpage, I can't find anything that gets git to follow the merge for information23:21
wereHamster dpsm: you'll only get merge conflicts if you both modified the same sections in files23:21
raorn left23:21
rudi_s dpsm: Git is pretty smart when merging, so I don't think it's a problem. If you have to do the same merge again and again have a look at git rerere.23:21
ReinH left23:22
raorn joined23:22
ReinH joined23:23
dpsm thanks everyone =]23:23
dpsm left23:23
rudi_s np23:23
Guest20296 joined23:23
jmcantrell joined23:23
sh1mmer joined23:24
bibinou left23:26
juan_arandaalvar joined23:26
thiago_home left23:26
tokkee left23:27
sgh_ left23:27
ntoll joined23:28
Ryback_ left23:28
hachi is the general accepted way of handing out a grafts file to simply say "here, create or append your .git/info/grafts file with these lines" ?23:29
krawek left23:29
krawek joined23:29
raorn left23:29
dj_tjerk left23:29
raorn joined23:29
mikelifeguardMike||gone23:30
rado1 joined23:31
stantont left23:31
rado1 what do the "..." mean in this command git filter-branch ... C..H ?23:31
dwmw2_gone joined23:31
sgh joined23:32
sh1m joined23:33
rudi_s rado1: man git-rev-parse and scroll down to 'Specifying ranges'.23:33
Gitbot rado1: the git-rev-parse manpage can be found at http://git.or.cz/man/git-rev-parse23:33
juan_arandaalvar left23:33
daharon joined23:33
rado1 rudi_s, thanks23:34
crubb to create something which might be referred to a git repository i'll need to git clone --bare ?23:35
daharon Hey guys, I'm trying to have two or more gitosis users serving up repos. I have one gitosis user whose keydir is a symlink to the public keys, and it works. But when I create the second and do the same symlink, I get asked for a passphrase when I try to clone. Any tips?23:35
rudi_s crubb: What are you trying to do?23:35
Theravadan joined23:36
crubb integrate GIT into trac using GitPlugin, it states the Test.git above needs to be the .git repository directory (i.e. the one containing the file HEAD and config), not the working tree directory that holds the .git/ folder.23:36
sh1mmer left23:36
rudi_s crubb: Yep, then use git clone --bare.23:36
AdmiralSausage joined23:36
Haarg left23:36
crubb rudi_s: cheers23:36
dwmw2_gone left23:37
BP{k} left23:37
meuh left23:38
BP{k} joined23:38
meuh joined23:38
sh1m left23:38
greg8si joined23:38
dwmw2_gone joined23:39
AdmiralSausage left23:40
catalis joined23:40
AdmiralSausage joined23:40
sgh left23:41
maxter joined23:42
dwmw2_gone left23:42
sh1mmer joined23:42
dwmw2_gone joined23:43
lightcap left23:43
mssm joined23:43
hobodave left23:46
ntoll left23:46
alexmchale_ joined23:48
meuh left23:49
maxter left23:49
BP{k} left23:49
BP{k} joined23:49
meuh joined23:49
AdmiralSausage left23:52
rtyler spearce: is there any way I can dicard drafted comments?23:52
spearce painfully click delete on each one23:52
:-(23:52
rtyler spearce: I accidentally hit "DOne" for somebody else's comment on diff, and I can't Edit it or discard it23:52
I also can't add more comments now ><_23:52
spearce not logged in?23:52
rtyler nope, I am23:52
agile joined23:52
m-takagi_m-takagi23:53
spearce did you click on the done line to expand it?23:53
done replies are automatically folded closed to save space23:53
rtyler spearce: it's stuck open23:53
no JS errors though23:53
a_GWT_startup left23:54
rtyler going to try to signout and sign in23:54
EricInBNE joined23:54
levifig joined23:55
rtyler spearce: so in the unified diff view, the little right-facing triangle in the left margin indicating the line23:55
spearce: as soon as I click on a line, it disappears23:55
spearce: wondering if that has anything to do with this23:55
spearce that's the current line cursor...23:55
agibagib|away23:55
rtyler I can't move the blue line at all though23:55
mssm left23:56
spearce huh, it should move when you click on a line. if not, bug.23:56
agib|awayagib23:56
rtyler is a bit irritated with this23:56
rtyler got gsql I can use to nuke this drafted "Done"23:56
+?23:56
pklingem joined23:56
spearce delete from patch_comments where change_id = 123 and status = 'd' and author_id = youraccountid;23:57
rtyler spearce: aha, it's a problem with chrome23:57
spearce youraccountid is on your settings page23:57
rtyler spearce: logged in with FF, and I was able to discard the draft fine23:57
spearce rtyler: please file a bug, i should have caught this, and should fix it23:57
d0ugal left23:58
zodiak left23:59

Logs Search ←Prev date Next date→ Channels Documentation