IRCloggy #git 2012-08-11

Logs Search ←Prev date Next date→ Channels Documentation

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

2012-08-11

chinopozo joined00:00
tizzotizzo-afk00:01
ISF joined00:02
zackiv31 left00:02
nifty left00:02
skyf left00:04
agile joined00:04
jnewt i'm trying to clean up an svn repo that i've git svn cloned, using filter-branch. what i want is to remove all the generated files that have been committed over the history of the repo.00:05
nightcrawler786 left00:06
jnewt but i get a Warning: Ref 'refs/heads/master' is unchanged. and nothing is removed. i'm using git filter-branch --tree-filter 'rm -rf *.exe' HEAD as a trial. not doing anything00:06
DrHouse|TARDIS left00:07
jnewt the example shows : git filter-branch --tree-filter 'rm filename' HEAD as removing a file from all commits. seems my command would do the same for all files ending in .exe.00:07
tizzo-afktizzo00:08
kpreid left00:08
beneggett left00:08
kpreid joined00:08
lirt left00:08
capiira joined00:09
capiira left00:09
dreiss left00:10
Sebo left00:10
beneggett joined00:10
DrHouse|TARDIS joined00:10
endra left00:11
v0n left00:11
DrHouse|TARDIS left00:12
mmb grawity: thanks it looks like that will work00:13
cybersphinx left00:15
capiira joined00:15
capiira left00:15
SeySayux left00:17
etcetera left00:18
marhaban1 joined00:20
SirCmpwn left00:20
marhaban left00:20
nyx joined00:22
gtrak left00:24
eletuchy left00:25
mcluskydodallas joined00:26
SeySayux joined00:26
eletuchy joined00:27
guampa left00:27
gnoel joined00:29
imachuchu left00:29
maletor left00:29
SamB_MacG5 left00:29
guampa joined00:29
mmb left00:30
SamB_MacG5 joined00:32
beneggett left00:32
sawdisk left00:32
erynofwales left00:33
mwrosen left00:33
nyx left00:33
sawdisk joined00:33
AAA_awright Anyone know how git-add detects if it detects if it should add a subtree or a commit to a tree?00:34
i.e. for submodules00:34
msmithng left00:34
maestrojed left00:36
etcetera joined00:36
etcetera left00:38
hyperair left00:38
loops left00:39
reds joined00:39
loops joined00:39
redsGuest2255500:40
hyperair joined00:40
apok left00:41
nyx joined00:43
Guest22555 left00:44
mcluskydodallas left00:45
reactormonk joined00:45
todd_dsm left00:46
dougsland left00:47
mwrosen joined00:47
shruggar left00:50
etcetera joined00:51
hyperair left00:51
marhaban1 left00:51
nowhere_man left00:51
oakdog8 left00:51
cakehero left00:51
dorkmafia left00:51
wago left00:51
jstemmer left00:51
marc_kdab_ left00:51
Adys left00:51
orafu left00:51
intripoon left00:51
flippo left00:51
Arokh left00:51
nyxx left00:51
Swathe left00:51
anildigital left00:51
LittleFool left00:51
oakdog8 joined00:52
Adys joined00:57
Arokh joined00:57
intripoon joined00:58
hyperair joined00:58
marhaban1 joined00:58
nowhere_man joined00:58
cakehero joined00:58
wago joined00:58
dorkmafia joined00:58
jstemmer joined00:58
marc_kdab_ joined00:58
nyxx joined00:58
AABBOV9 joined00:58
orafu joined00:58
Swathe joined00:58
anildigital joined00:58
LittleFool joined00:58
BinGOs joined00:58
rook2pawn joined00:58
xrogaan joined00:58
JPT joined00:58
bronsen joined00:58
morgan.freenode.net set mode: +v00:58
cakehero left00:58
LittleFool left00:58
Eridius left00:58
raz joined00:58
cakehero joined00:58
flippo joined00:58
intripoon_ joined00:58
hwrd|work left00:59
anildigital left00:59
JPT left00:59
diegoviola left00:59
jjbohn joined01:00
LittleFool joined01:00
anildigital joined01:00
intripoon left01:01
cakehero left01:01
marhaban1 left01:02
JPT_ joined01:02
marhaban joined01:02
dougsland joined01:03
orafu left01:03
w09x joined01:03
tizzotizzo-afk01:04
orafu joined01:04
diegoviola joined01:04
Dimitr left01:04
cakehero joined01:04
erynofwales joined01:05
mwrosen left01:07
kenperkins joined01:08
axl_ joined01:08
opus left01:08
chuckharmston left01:08
chuckharmston joined01:08
rehat joined01:10
rohan|buildingrohan|afk01:14
segher left01:16
tweedledumber left01:16
segher joined01:17
skyf joined01:18
wago left01:19
bizhanMona left01:20
Lgb left01:20
palm_vue left01:20
Lgb joined01:21
bizhanMona joined01:21
palm_vue joined01:21
msmithng joined01:22
rohan|afkrohan3201:24
adityamenon left01:25
ISF left01:25
intripoon joined01:27
capiira joined01:29
capiira left01:29
igotnolegs joined01:30
intripoon_ left01:30
marhaban left01:33
Lord_DeathMatch joined01:33
codeFiend left01:34
dreiss joined01:34
maletor joined01:34
Vampire0 joined01:36
jepler joined01:39
Vampire0_ left01:40
storrgie joined01:40
duckxx joined01:41
maletor left01:43
flippo left01:44
flippo joined01:44
converge joined01:44
nyx left01:44
maletor joined01:48
russt_ joined01:49
jjbohn left01:51
russt left01:52
russt_russt01:52
Sym3tri left01:52
artnez left01:53
axl_ left01:55
simesy joined01:57
jjbohn joined01:58
russt left01:58
Araxia joined01:58
russt joined01:59
russt left02:00
beneggett joined02:00
pdtpatrick left02:00
edude03 left02:01
Anxi80 joined02:02
rohan32rohan|afk02:05
jey joined02:08
apok joined02:11
Lord_DeathMatch left02:11
jey hi, I performed a subtree merge of git://somewhere/foo.git into my repository's foo/ subdirectory, but now when I do "git log foo/something.py" I only see the merge commit. how can I see the full history for that file? I've read through the git-log manual and I feel like I'm missing something trivial02:13
tnzr left02:15
gitinfo set mode: +v02:17
capiira joined02:17
yoklov left02:18
magcius left02:19
edude03 joined02:20
chuckharmston left02:20
edude03 left02:20
edude03 joined02:21
magcius joined02:21
dreiss left02:22
Super3 joined02:23
Anders_J joined02:23
joey77 joined02:23
storrgie left02:24
Anxi80 left02:25
latrommi joined02:25
Super3 left02:26
apok left02:27
andrewhl joined02:28
bubbles10101 left02:28
joey77 left02:28
goshawk left02:29
johntron joined02:29
johntron left02:29
BinGOs_ joined02:31
bubbles10101 joined02:31
xrogaan_ joined02:31
xrogaan_ left02:31
xrogaan_ joined02:31
hyperair left02:31
hyperair joined02:31
raz left02:31
marc_kdab_ left02:31
BinGOs left02:31
xrogaan left02:31
raz joined02:31
raz left02:31
raz joined02:31
hwrd|work joined02:32
marc_kdab_ joined02:32
Chib joined02:33
jobin joined02:36
EricKamsky left02:37
jobin left02:38
jobin joined02:39
jobin left02:40
jobin joined02:40
jobin left02:41
red82 joined02:41
beneggett left02:41
jobin joined02:42
bubbles10101 left02:43
jobin left02:43
pierre__ joined02:43
jobin joined02:43
bubbles10101 joined02:44
jobin left02:44
simesy left02:45
jobin joined02:45
jobin left02:45
jobin joined02:45
jobinandy5502:45
orafu left02:46
OuLouFu joined02:46
OuLouFuorafu02:47
nowhere_man left02:47
converge left02:50
arooni-mobile left02:50
angelsl joined02:50
hwrd|work left02:54
guampavtolcow02:58
vtolcowguampa02:58
hwrd|work joined03:03
dfr|mac joined03:03
blupp left03:03
reds joined03:04
redsGuest9889103:04
blupp joined03:06
simesy joined03:07
chuckharmston joined03:09
Guest98891 left03:09
Anxi80 joined03:11
gavin_huang joined03:11
chuckhar_ joined03:12
chuckhar_ left03:12
jackh joined03:12
chuckharmston left03:13
edude03 left03:14
localhost left03:14
edude03 joined03:15
localhost joined03:17
maletor left03:17
alberto56 left03:18
bubbles10101 left03:21
duckxx left03:21
towski left03:24
latrommi left03:25
erynofwales left03:26
nyx joined03:27
AaronMT joined03:27
Anxi80 left03:28
metasansana left03:29
arkiver joined03:30
AaronMT left03:30
rohan|afk left03:30
Chillance left03:31
diegoviola left03:32
diegoviola joined03:36
hwrd|work left03:37
subbyyy joined03:37
rchavik joined03:38
rchavik left03:38
rchavik joined03:38
kukks left03:40
TomyLobo left03:40
loops jey, try --follow03:41
jey no luck, then I don't even see the merge commit anymore03:41
jjbohn left03:41
gavin_huang left03:42
loops hmmm.. what about git log -- /something.py03:42
jjbohn joined03:43
jjbohn left03:44
irqq joined03:45
loops git log -- foo/something.py /something.py03:45
should work03:45
arkiver left03:46
jey $ git log -- pokerd/poker-network/pokernetwork/pokercashier.py /poker-network/pokernetwork/pokercashier.py03:46
fatal: Could not switch to '/poker-network/pokernetwork': No such file or directory03:46
loops ummm...03:47
api joined03:47
thelazydeveloper left03:47
loops jey, no idea.. what version of git? you may have a bad entry in your .git/config03:52
rehat left03:52
Goplat left03:53
jey 1.7.9.503:53
aruiz left03:53
loops jey.. there is a bug which generated similar message fixed in 1.7.1003:53
is worth upgrading before straining brain too much03:54
jey oh hm, ok, I'll give that a shot :)03:54
zackiv31 joined03:54
jdav_gon` joined03:54
kortti joined03:55
mritz_ left03:55
gnoel left03:56
jdav_gone left03:57
noyb joined03:57
gtuckerkellogg joined03:59
zamn joined04:01
zamn left04:01
zamn joined04:01
landypro joined04:01
zamn i accidently broke my staging area :o. I ran git reset --hard HEAD^ to undo my last commit not realizing that it throws away all the changes i made..can i undo this or am i sol?04:01
hwrd|work joined04:03
noyb left04:03
api_ joined04:04
nutron left04:04
api_ left04:04
api left04:04
russt joined04:06
chinopozo left04:06
savid left04:09
avpx zamn: Were the changes ever stored in git objects? (That is, did you run git add on them?)04:09
zamn no :(04:09
nyx left04:10
avpx Hmm. That's no good;04:10
you're probably not going to be able to recover the changes.04:10
loops no luck then zamn, --hard is like running rm -rf on em04:11
zamn yeah this sucks04:11
dfr|mac left04:11
loops need to commit early n commit often... git can't help ya til you commit stuff04:11
avpx Yeah, sorry. Unsafe commands should probably prompt you for confirmation.04:11
gnoel joined04:12
noyb joined04:12
loops i'm surprised git hasn't added some protection though, it could stash changes before doing --hard04:12
avpx I personally think it would be reasonable to prompt before doing anything destructive04:12
loops this must have been raised on the list before, i think the response was something like, we're not going to penalize power users to protect noobs04:14
v0n joined04:14
avpx Still, there could be a default configuration04:14
loops avpx, agreed. sorry zamn, sucks04:14
avpx Power users could just git config that away04:14
tnzr joined04:15
avpx Meh, porcelain could probably use some work04:15
loops even power users can have a thinko, auto stashing would be a nice safety net04:15
zamn yeah im an idiot and didnt read the comments of the SO question04:15
i commited something else first04:16
then i was going to commit this work heh04:16
russt left04:16
avpx Yeah, automatically stashing would be nice.04:16
andrewhl left04:16
russt joined04:16
gavin_huang joined04:18
loops zamn, do you use vim ?04:18
zamn yes04:18
loops zamn, it may be possible to recover from undo history04:18
zamn ah its okay04:18
i got the code back04:18
luckily i pasted it to pastie for help on something 20 minutes ago04:18
so its not too bad04:18
andy55 left04:19
Textmode joined04:20
russt left04:22
russt joined04:23
dfr|mac joined04:24
herdingcat joined04:24
rootfield left04:26
velikasha joined04:30
velikasha left04:31
towski joined04:31
herdingcat left04:31
gavin_huang left04:31
herdingcat joined04:34
kleist joined04:35
juvenal left04:35
thirdknife joined04:38
guampa left04:48
herdingcat left04:50
hwrd|work left04:51
Guest74974 joined04:52
PovAddict joined04:52
PovAddict what is the default order of revisions returned by git rev-list?04:52
I always thought it was topo-order, but that turned out to be my own confusion because gitk uses topo-order by default (it has to, since it has to render graphs)04:53
varg joined04:53
PovAddict manpage says "reverse chronological order"; isn't that date-order?04:53
herdingcat joined04:53
gavin_huang joined04:54
zamn yes04:54
lyddon joined04:55
lyddon left04:55
lyddon joined04:55
PovAddict zamn: but "diff -u <(git rev-list --all) <(git rev-list --all --date-order)" is non-empty04:56
lyddon left04:56
zamn i was confirming chronological order is date order04:56
lol04:56
im a git newb04:57
sorry04:57
andy55 joined04:57
PovAddict it's interesting how I *never* come here with simple questions04:57
last time someone ended up looking at the git source code and scratching his head himself04:58
lyddon joined04:58
hwrd|work joined04:58
Turicas joined04:59
reactormonk left05:00
gavin_huang left05:00
nyx joined05:02
SamB_MacG5 left05:03
reds joined05:04
redsGuest7092305:05
gavin_huang joined05:05
andy55 left05:06
nyx left05:08
cakehero left05:08
simesy left05:09
Guest70923 left05:09
gavin_huang left05:10
simesy joined05:12
varg left05:13
simesy left05:14
gavin_huang joined05:15
nyx joined05:17
Anders_J left05:17
dinesh6654 joined05:18
gavin_huang left05:19
nyx left05:20
varg joined05:20
hyperair left05:20
dang joined05:21
red82 left05:21
hyperair joined05:21
red82 joined05:21
gavin_huang joined05:22
etcetera left05:22
theCole joined05:25
zamn left05:27
arvind_khadri joined05:28
gavin_huang left05:28
ipoval joined05:29
shawngo left05:29
noyb left05:31
noyb joined05:32
arvind_khadri left05:32
arvind_khadri joined05:33
dfr|mac left05:36
dvide left05:36
arvind_khadri left05:37
arvind_khadri joined05:37
landypro left05:39
marc_kdab_ left05:40
marc_kdab_ joined05:40
landypro joined05:41
arvind_khadri left05:41
rmr joined05:42
pfFredd joined05:42
gnoel left05:44
noyb left05:44
russt left05:45
noyb joined05:46
w09x left05:46
fireh left05:47
rmr left05:47
Davey left05:48
etcetera joined05:50
hwrd|work left05:51
tewecske joined05:52
rmr joined05:53
dang left05:53
gtuckerkellogg left05:54
tjadc left05:54
felipe_Brz joined05:54
tjadc joined05:54
dang joined05:54
s1n4 joined05:55
felipe_Brz what is the benefit of one using submodules rather than just initializing another git repo in a child directory of your main repo?05:55
api joined05:55
dinesh6654 left05:55
s1n4 I'm looking for an awesome code review system, does anyone know one?05:55
aspotashev left05:56
PovAddict felipe_Brz: are you going to make a repository's .git metadata directory be just data committed into another repository?05:56
gavin_huang joined05:56
guns joined05:56
felipe_Brz is that too high an overhead?05:56
PovAddict no, it's just stupid05:57
you change a file, git-add it, change your mind and revert05:57
inner repo has no changes, but outer repo will see a new file in innerrepo/.git/objects/05:58
felipe_Brz i could add all children metadata to the parent repo's .gitignore?05:58
PovAddict define 'metadata'05:59
objects are certainly not metadata, that's where the repository data is :P05:59
felipe_Brz well all info git keeps to itself inside the .git directory05:59
PovAddict if you leave out the .git repo, you don't have a git repository05:59
er05:59
the .git dir05:59
felipe_Brz no, the .git directory is still there, just hidden from the parent repo06:00
PovAddict so the .git directory of the inner repo won't be added to the parent repo?06:00
felipe_Brz in other words, make the parent repo not know about each .git directory on each of its children06:00
yeah I guess06:01
gavin_huang left06:01
PovAddict so now you just have two repositories with the same data that you commit at different times...06:01
arvind_khadri joined06:02
felipe_Brz yes but what if each of the inner repos are separate entities like classes06:02
lcc joined06:02
lcc left06:02
felipe_Brz i could imagine myself updating one class06:02
only that one class06:02
PovAddict and you commit to the inner repo for that one class06:02
stepnem left06:02
felipe_Brz yeah06:03
and revert/do whatever i want on that one class06:03
PovAddict and the outer repository still sees modified files in myclass/06:03
felipe_Brz yes06:03
red82 left06:03
felipe_Brz is this too dumb? sorry i'm new to git06:03
PovAddict so you have two parallel and unrelated histories of the same data?06:03
so far it sounds like you don't need multiple repos at all :P06:04
felipe_Brz you are a developer? oo?06:04
PovAddict let's say you have just one repo06:04
you modify a class and you can make a commit with just the modification to that file (and not changes to other files that you may have)06:05
or before committing you think the change is bad, so you 'git checkout myclass.cpp' and revert that single file06:05
v0n left06:05
PovAddict why do you think you need repositories inside others?06:05
gavin_huang joined06:06
lcc joined06:06
blast_hardcheese left06:07
shreya joined06:07
felipe_Brz it's just that my web site has 4 clearly defined components06:08
s1n4 left06:08
felipe_Brz and I thought that each one having their own repo would make it easier to track where each one is06:08
and each of them can vary independently of the other06:09
dinesh6654 joined06:09
felipe_Brz and they are at different places too06:09
each on a different server06:09
Davey joined06:09
PovAddict perhaps having them on separate repos is good then06:09
ahayweh left06:09
PovAddict but in that case, do you really need a "parent repo" containing them?06:10
felipe_Brz i could go back and forth on each component's history withour affecting the others06:10
yeah, good point06:10
AmirBehzad joined06:10
felipe_Brz perhaps I don't06:10
but isn't this the exact kind of thing submodules are meant to address?06:11
varying components when inside a single project06:11
bubbles10101 joined06:12
pfFredd left06:14
ahayweh joined06:17
bubbles10101 left06:17
etcetera left06:18
varg left06:19
evanz joined06:20
esa left06:21
arvind_khadri left06:23
esa joined06:24
simesy joined06:24
PigeonFriend left06:25
dc5ala joined06:25
Hasbro joined06:27
rmr left06:27
varg joined06:27
kcj joined06:28
simesy left06:29
unreal left06:29
unreal joined06:30
neurodrone left06:35
varg left06:35
esa left06:35
Dave^| joined06:40
dstorrs joined06:41
varg joined06:42
osmosis left06:43
esa joined06:44
noyb left06:44
marthinal joined06:45
msmithng_ joined06:46
varg_ joined06:47
varg left06:48
angelsl left06:48
msmithng left06:48
msmithng_msmithng06:48
PovAddict left06:49
madewokherd left06:49
avpx left06:51
timthelion joined06:52
imrobert left06:52
towski left06:53
gtrak joined06:53
CpuID3 joined06:54
Textmode left06:55
arvind_khadri joined06:56
CpuID2 left06:58
rurufufuss joined06:58
simesy joined06:58
tjadc left06:58
arvind_khadri left07:01
dinesh6654 left07:02
w09x joined07:04
felipe_Brz left07:05
arvind_khadri joined07:05
reds joined07:05
redsGuest5941807:05
arvind_khadri left07:06
arvind_khadri joined07:06
bubbles10101 joined07:07
arvind_khadri left07:07
arvind_khadri joined07:07
eletuchy left07:07
tystr joined07:08
Textmode joined07:09
dorkmafia left07:09
Guest59418 left07:10
subbyyy left07:10
arturaz joined07:13
Textmode left07:13
Textmode joined07:15
juvenal joined07:16
bubbles10101 left07:16
beneggett joined07:17
gtrak left07:17
stockholm left07:17
maxwellcorbin left07:19
bubbles10101 joined07:20
palm_vue left07:20
bizhanMona left07:20
Lgb left07:20
palm_vue joined07:21
Lgb joined07:21
bizhanMona joined07:21
herdingcat left07:21
tvtue joined07:23
Textmode left07:25
tvtue hello all07:25
gitinfo tvtue: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.07:25
tvtue are there any known problems using different git versions for accessing the same central bare repo?07:27
!backup07:28
gitinfo Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups07:28
skorgon joined07:28
berndj left07:29
aspotashev joined07:29
carloshh joined07:31
Chappo left07:33
herdingcat joined07:33
Chappo joined07:35
varg_ left07:35
w09x left07:38
Textmode joined07:38
esa left07:41
esa joined07:41
igotnolegs left07:43
varg joined07:43
beneggett left07:44
f0i left07:44
BinGOs_ left07:45
BinGOs joined07:45
Davey left07:46
tvtue left07:46
api left07:46
jey left07:49
airborn joined07:49
Transcended left07:50
AmirBehzad left07:51
Dave^| left07:51
carloshh left07:51
cybersphinx joined07:54
BiggFREE joined07:55
Turicas left07:57
dorkmafia joined07:59
simesy left08:01
pantsman joined08:02
w09x joined08:03
Droggl__Droggl08:03
skorgon left08:03
private joined08:03
privateGuest3439808:04
Textmode left08:08
_huoxito left08:10
compojoom joined08:10
d3vic3 joined08:11
esa left08:11
stepnem joined08:12
eletuchy joined08:14
simesy joined08:14
esa joined08:15
juvenal left08:15
w41 joined08:15
eletuchy left08:18
simesy left08:21
Textmode joined08:22
skorgon joined08:23
Lord_DeathMatch joined08:23
_huoxito joined08:23
arturaz left08:24
simesy joined08:24
arvind_khadri left08:24
tewecske left08:26
blacktulip joined08:26
darren left08:26
dsirijus joined08:26
rtjure joined08:28
simesy left08:30
leeN joined08:31
varg_ joined08:31
djh joined08:31
_sundar_ left08:31
jonn left08:32
varg left08:33
f0i joined08:34
dorkmafia left08:34
arvind_khadri joined08:36
varg_ left08:36
thirdknife left08:39
varg joined08:39
tktiddle joined08:39
tktiddle Does anyone know what might cause this error? "fatal: Unable to create temporary file: Permission denied"08:40
thirdknife joined08:40
tktiddle the bare repo is owned by git:git and i just tried "chmod g+w myrepo.git" but that didn't work08:41
shouls I add execute permission for the git group?08:41
simesy joined08:41
cesc joined08:43
varg left08:43
airborn left08:48
mastro joined08:48
scientes left08:50
tktiddle OK got it08:50
angelsl joined08:51
arvind_khadri left08:51
herdingcat left08:51
txomon|home joined08:51
varg joined08:52
thirdknife left08:52
JStoker left08:53
Textmode left08:56
fayimora joined08:57
gtuckerkellogg joined08:57
nutron joined08:57
Samos123 left08:59
Samos123_ joined08:59
skyf left08:59
fayimora left09:01
bloony joined09:01
shruggar joined09:04
shreya left09:05
tktiddle left09:05
reds joined09:05
redsGuest1330709:06
Guest34398 left09:06
jiangenj joined09:07
teotwaki_ left09:07
gitinfo set mode: +v09:07
jiangenj Help needed: when I do git clone, remote seems broken:09:08
Cloning into adreno200...09:08
fatal: The remote end hung up unexpectedly09:08
fatal: early EOF09:08
fatal: index-pack failed09:08
cmn joined09:08
jiangenj what can do to fix it?09:09
Guest13307 left09:10
Textmode joined09:11
EricKamsky joined09:12
EricKamsky left09:13
dzonder joined09:13
nisseni joined09:14
SliMM joined09:14
Textmode left09:14
gtuckerkellogg left09:16
JStoker joined09:16
Internet13 left09:16
ahayweh left09:16
thiago joined09:17
Droolio left09:18
MissionCritical left09:18
bubbles10101 left09:18
nifty joined09:20
kcj left09:20
jiangenj Cloning into adreno200...09:21
fatal: The remote end hung up unexpectedly09:21
fatal: early EOF09:21
fatal: index-pack failed09:21
BiggFREE left09:22
_iron joined09:23
arvind_khadri joined09:25
aspotashev left09:26
dsirijus left09:27
aspotashev joined09:30
ahayweh joined09:31
skyf joined09:31
MissionCritical joined09:32
thiago jiangenj: server problem. Check the URL and try again.09:35
jiangenj i can clone other projects09:35
thiago from the same server?09:36
jiangenj when i do git fsck --full --verbose on git server, it shows fatal: index file open failed: Too many open files09:36
skyf left09:36
jiangenj no, from local09:36
thiago ulimit -n09:36
what's the number?09:36
jiangenj and on the server, I can clone by /home/git/project/path format09:36
102409:37
thiago it's not especially low09:37
jiangenj possible too many objects in loose stored?09:37
thiago how about /proc/sys/fs/nr_open ?09:37
jiangenj 104857609:38
thiago the regular number09:38
finally: git count-objects -v09:38
what's the count?09:38
or just without -v09:39
jiangenj count: 140409:39
size: 685609:39
in-pack: 15181909:39
packs: 109709:39
size-pack: 123828609:39
prune-packable: 009:39
garbage: 009:39
thiago it's not especially high09:39
arturaz joined09:39
thiago there's no special reason why it would fail09:39
back up that repository first, then run: git repack -a -d -f09:39
you can leave -f out to speed it up09:39
jiangenj I git clone --mirror on server, git fsck --full --verbose return fatal: object aa19e00a1fdf78d89e4573c491cedb1caaf455c2 is corrupted09:40
sq-one joined09:40
arvind_khadri left09:40
aspotashev left09:40
jiangenj repacked with -f but returns fatal: object 20369b8eb8a79cdb0554f49758b4136249da1e1a is corrupted09:41
Onkeltem left09:42
airborn joined09:44
aspotashev joined09:44
caseymcg joined09:45
jiangenj still fail, other possibility?09:46
Dimitr joined09:47
aspotashev left09:47
thiago it's corrupted09:48
fsck can't recover the object09:48
f0i left09:50
Textmode joined09:50
aspotashev joined09:51
jiangenj so ....09:51
nioncode joined09:52
varg left09:53
gavin_huang left09:56
thirdknife joined09:56
gavin_huang joined09:58
arietis joined09:59
Textmode left09:59
compojoom_ joined10:00
rtjure_ joined10:00
irqq_ joined10:00
Araxia left10:00
petteyg_ joined10:02
xiangfu joined10:02
nor5trom joined10:02
nifty left10:02
rudi_s_ joined10:03
koivula_ joined10:03
jepler_ joined10:04
unreal_ joined10:04
dirker_ joined10:04
w0m_ joined10:04
Chappo left10:04
kcj joined10:04
sq-one left10:05
FernandoBasso joined10:05
gavin_huang left10:05
mklappstuhl left10:05
nifty_ joined10:06
schlumpi_ joined10:07
ivan`_ joined10:07
Glitch| joined10:08
quadz_ joined10:08
diegoviola left10:08
flexd1 joined10:08
rtjure left10:09
compojoom left10:09
unreal left10:09
irqq left10:09
jepler left10:09
ninive left10:09
SunilThaha left10:09
aep left10:09
ivan` left10:09
w0m left10:09
petteyg left10:09
Mpenzi left10:09
quadz left10:09
flexd left10:09
koivula left10:09
rudi_s left10:09
SunilThaha joined10:09
boombatower left10:09
arvind_khadri joined10:09
urlwolf joined10:09
jiangenj hi still there? very strange, if using git clone git:// will fail, but if git clone http:// will succeed10:10
aep_ joined10:10
gitinfo set mode: +v10:11
diegoviola joined10:11
gitinfo set mode: +v10:11
urlwolf I can see that /docs in not tracked, but I cannot find it git-ignored anywhere. What could I do to force-add to the stage?10:11
codeFiend joined10:11
codeFiend left10:11
FauxFaux urlwolf: git add --force, perhaps?10:11
jiangenj: Dumb http clone has probably cloned the corruption without noticing ('cos he's a cool guy); git fsck the clone?10:12
urlwolf FauxFaux: nope, doesn't work10:12
airborn left10:13
Mpenzi joined10:14
urlwolf it doesn't even appear in untracked files10:14
jiangenj fauxFaux: on remote server, git fsck shows corrupted objects10:15
no idea how to fix10:15
and why the corruption occurs?10:16
shruggar left10:17
TomyLobo joined10:17
cbreak broken hardware10:17
crashes10:17
malicious manipulation10:17
mklappstuhl joined10:18
jiangenj oops10:18
have to check with other admin if they got good backup10:19
airborn joined10:19
cbreak you have an other clone, right?10:19
of course you do10:19
jiangenj but not updated10:20
cbreak a server repository is bare after all10:20
you still have the one that you committed in10:20
and pushed to the server10:20
jiangenj no, it's script generated, and already been deleted10:21
rtjure_ left10:21
diegoviola left10:21
jiangenj but if no other solution, for sure need this way to recovery as the commits after that old repo is on gerrit10:21
cbreak sounds dumb.10:21
why the hell would you do that?10:22
jiangenj you meant?10:22
varg joined10:22
cbreak why would you delete a git repository after pushing?10:22
jiangenj we cherry-pick commits from other site automatically, and then pushing to our gerrit server10:23
cbreak sounds dumb. automated cherry-picking ...10:23
don't automate things that are designed to fail.10:23
jiangenj well, we have to do this way, one person cannot do merge/cherry-pick of hundres one day10:23
so what you normally do?10:24
sedavand_ joined10:24
thelazydeveloper joined10:25
arvind_khadri left10:27
urlwolf left10:27
shreya joined10:29
cbreak jiangenj: more people10:29
macIvy joined10:30
jackh left10:30
cbreak also, merging hundreds of commits is easy10:30
you can merge hundreds of commits in one operation just by merging a branch with them10:30
jkitchen why not just have those sites submit directly to gerrit?10:30
urlwolf joined10:33
Element9 joined10:34
flavius left10:34
aspotashev left10:35
r0bby joined10:37
flexd1 left10:38
flexd joined10:39
aspotashev joined10:39
AL|EN joined10:40
caseymcg left10:40
skorgon left10:42
jiangenj well, it's inside group but different10:42
contributors10:42
Chappo joined10:42
gavin_huang joined10:42
Tevfxds32 joined10:43
gitinfo set mode: +v10:43
gitinfo set mode: +v10:43
varg left10:43
Tevfxds32 left10:43
AL|EN hi10:43
gitinfo AL|EN: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.10:43
AL|EN !backup10:44
gitinfo Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups10:44
AL|EN well i have simple question10:44
whare i can send a feature request10:44
a simple one10:44
for the git svn info command10:44
?10:44
f0i joined10:45
grawity My guess would be the mailing list?10:45
AL|EN http://vger.kernel.org/vger-lists.html#git10:45
this ?10:45
gavin_huang left10:47
ipoval left10:47
oriba joined10:47
flavius joined10:49
guns left10:50
sedavand_ left10:53
sedavand joined10:55
arturaz left11:02
gavin_huang joined11:02
shruggar joined11:02
txomon|home left11:02
diegoviola joined11:04
reds joined11:06
redsGuest6901311:06
gavin_huang left11:07
varg joined11:07
Guest69013 left11:10
shruggar left11:10
gavin_huang joined11:10
tqmz joined11:12
Internet13 joined11:13
babilen joined11:14
gavin_huang left11:15
AL|EN left11:16
txomon|home joined11:17
juvenal joined11:17
gavin_huang joined11:19
oxidative joined11:19
unterstrom joined11:19
elias joined11:23
shruggar joined11:23
Droolio joined11:24
gavin_huang left11:24
nioncode left11:24
gavin_huang joined11:26
skorgon joined11:27
elias left11:27
elias joined11:27
elias where could i find a post-receive hook which sends one email for each commit? (the default email hook seems to send one email with all commits)11:28
cbreak you can just modify it11:28
post-receive gets its data on stdin11:28
elias true, just wondering if someone already did11:28
herdingcat joined11:29
w09x_ joined11:29
dr_lepper joined11:29
cbreak it is a bit tricky11:29
if you want to send an email for each commit, do you only want to do that for each new commit?11:30
noscript joined11:30
cbreak for example, if someone merges a branch and pushes that, would you want to send an email for each commit he merged?11:30
if someone pushes two branches with the same commits, do you want to send two emails for each commit?11:30
d3vic3 left11:30
sedavand_ joined11:31
cbreak I ended up doing something like git rev-list <commitsha1> <commitsha2> --not --all in a pre-receive hook when I wanted to post messages, one for each commit11:31
elias yeah. it's how we had it with svn... it was a bit annoying getting 100 mails on each merge - but still nice to have one mail for each commit in the normal case11:31
cbreak that way I only get commits that are completely new11:31
sedavand left11:32
dinesh6654 joined11:32
cbreak merges give no messages if they are ff, and one if they are not11:32
w09x left11:32
cbreak <commitsha1> are the new branch tips11:32
d3vic3 joined11:32
cbreak I use pre-receive and not post-receive since in pre-receive, the local branch heads are not yet changed11:32
in post-receive, they are11:33
post-receive means post-update, unfortunately11:33
jiangenj left11:34
shruggar left11:35
SkAzZ joined11:35
elias cbreak: thanks, I see... just have to figure out how to run multiple pre-receive then in a way so the mail only gets sent if the others succeed11:37
cbreak why multiple?11:38
it gets run once per push11:38
elias yeah, i meant another pre-receive already there11:39
d3vic3 left11:39
varg left11:39
cbreak wonders of bash scripting11:39
macIvy left11:39
d3vic3 joined11:39
cbreak bash firstscript && bash secondscript && bash thirdscript11:39
maybe even a return of that11:39
elias ok, so that's the easy part :)11:39
skorgon_ joined11:40
marhaban joined11:40
diegoviola left11:41
jjbohn joined11:42
storrgie joined11:43
simplechat joined11:43
simplechat left11:43
simplechat joined11:43
skorgon left11:43
varg joined11:45
blacktulip left11:48
blacktulip joined11:48
dinesh6654 left11:53
aspotashev left11:53
thirdknife left11:53
codeM0nK3Y joined11:56
urlwolf left11:57
thirdknife joined11:57
urlwolf joined11:57
multi_io I'm trying to track a directory with git, including uid/gid/mode/symlink information. Does anyone have some advice on how to do that? Is etckeeper an option?11:59
sbfds1 joined12:00
quazimodo left12:00
cbreak multi_io: git on its own is not an option12:01
it does not track any file meta data apart from executability (and wether it is a symlink or not)12:01
also, tracking uid/gid sounds stupid12:01
how would it restore that?12:01
can you even create files with a different UID other than your own without being root?12:02
yshah joined12:03
skorgon_skorgon12:03
Speed joined12:04
leeN left12:04
leeN joined12:05
gitinfo set mode: +v12:05
irqq_ left12:06
varg left12:06
yshah quick question to mac lion users. Does the current mac git installer work for the Lion OS?12:06
cesc left12:06
cbreak you can just install xcode12:07
it comes with git12:07
or you compile git from source which also works12:07
yshah will Xcode have the latest git version?12:08
storrgie left12:08
cbreak no12:08
but one sufficiently late12:08
git version 1.7.9.6 (Apple Git-31.1)12:09
yshah fair enough, thank you cbreak.12:09
cbreak of course, xcode is huge :)12:09
but it's nice to have anyway12:09
(don't forget to install the cli tools)12:10
zackiv31 left12:10
psoo joined12:12
zackiv31 joined12:13
Chappo left12:14
Chappo joined12:15
yshah left12:19
longbeach joined12:19
marthinal left12:22
storrgie joined12:22
simplechat left12:23
Internet13 left12:23
multi_io cbreak: I would run it as root (this is for tracking config data outside /etc).12:25
Internet13 joined12:26
multi_io cbreak: and I guess the uids/modes etc. would have to be tracked in a separate versioned file and be captured/restored from there before commits / after checkouts12:26
(by some script that's invoked via a hook or so)12:27
cbreak yeah. You could do hackery like that12:27
but be aware that UIDs are rather pointless to track12:27
they have different meanings on each system12:28
urlwolf left12:29
theCole left12:32
psoo left12:34
zackiv31 left12:35
psoo joined12:36
grawity Then track usernames?12:36
cbreak they also have different meanings on each system.12:36
my root is someone else than your root12:36
despite them having the same uid and name12:37
rue left12:38
Mpenzi left12:40
Mpenzi joined12:42
pilgrum left12:43
gavin_huang left12:45
multi_io yeah, I'd track usernames, that's good enough for me I guess. This is just for having a complete record of all my config changes.12:47
thirdknife left12:47
multi_io etckeeper already does that sort of thing for the /etc directory, but I was having problems using it elsewhere.12:47
gavin_huang joined12:50
Fandekasp joined12:51
archdori joined12:51
alberto56 joined12:52
moshe742 left12:54
d3vic3 left12:54
andrewhl joined12:56
jasmina87SA__ joined12:56
jasmina87SA__ left12:56
gavin_huang left12:57
sbfds1 left12:58
oriba left13:00
gavin_huang joined13:00
gnoel joined13:02
lcc left13:02
metasansana joined13:05
stkrzysiak joined13:05
gavin_huang left13:05
agile left13:05
metasansana left13:06
reds joined13:06
pw1 joined13:07
redsGuest9164213:07
gavin_huang joined13:08
longbeach left13:08
rue joined13:09
Guest91642 left13:11
gavin_huang left13:12
rudi_s_ left13:15
rudi_s joined13:15
gavin_huang joined13:16
palm_vue left13:20
bizhanMona left13:20
Lgb left13:20
palm_vue joined13:20
Lgb joined13:21
bizhanMona joined13:21
shruggar joined13:21
ciscon joined13:23
guampa joined13:24
xiangfu left13:25
xiangfu joined13:27
cwang joined13:27
Yuuhi joined13:27
psoo left13:31
metasansana joined13:31
noscript left13:33
SliMM left13:33
gtrak joined13:35
jepler_jepler13:35
kcj left13:36
stkrzysiak_ joined13:38
mastro left13:38
stkrzysiak left13:39
stkrzysiak_stkrzysiak13:39
lcc joined13:39
Onkeltem joined13:39
gitinfo set mode: +v13:39
Onkeltem Hi13:40
I'm reparing a patch with git format-patch. How to minimize patch to remove all intermediate edits?13:40
I don't want history in it but it is there now13:41
Bigcheese You mean format patch is outputting multiple patches?13:41
canton7 Onkeltem, you probably want to squash first. or use git diff to produce the path13:42
Onkeltem Bigcheese: yes. In my branch I edited file twice. Now when I do: git format-patch origin/master I get my two commits to that branch13:43
Bigcheese Yeah, you want what canton7 said.13:43
Onkeltem Ok, squash... what is that? :)13:43
rue You could rebase them into a single commit13:43
Bigcheese Although I forget the exact syntax for dif...13:43
diff*13:43
canton7 it's where you take several commits and make a single commit out of them. there are several ways to do this, but rebase -i is probably the most famous13:44
Bigcheese git diff HEAD..firstcommit13:44
Or something.13:44
canton7 that's a backwards diff I think13:44
stkrzysiak_ joined13:44
stkrzysiak_ left13:44
grawity should be master.. (or master..HEAD), yes13:45
Onkeltem rue: I read about it, ok! Just need some hints...13:45
gtuckerkellogg joined13:45
Onkeltem 1) I did: git reset --hard origin/master then 2) git merge mybranch13:45
Should I just change merge to rebase?13:45
stkrzysiak left13:46
Onkeltem worth to try it now13:46
grawity checkout yourbranch && rebase -i master13:46
canton7 I have no idea what you're trying to do. why did you reset --hard?13:46
jcromartie left13:47
Onkeltem canton7: to get origin without my modifications13:47
jcromartie joined13:47
f0i left13:48
storrgie left13:48
Onkeltem grawity: heh, I'm very new to git, so can ask stupid things but... what is the difference between 1) "standing" on my branch and doing like you said: rebase -i master and 2) "standing" on master and doing: rebase mybranch?13:49
(my local master is tracking origin/master)13:49
(and I have no write access - just making patches)13:49
agileadam joined13:49
canton7 git checkout branch && git rebase master <-- takes branch and rebases it onto master. git checkout master && git rebase branch <-- takes master and rebases it onto branch13:50
txomon|home left13:50
AdrienBrault joined13:51
gry joined13:52
_huoxito left13:53
esa left13:54
Onkeltem I did git checkout mybranch, git rebase -i master. Now I get some kind of action file in Nano editor. Having three picks. How would I make minimal patch now? Should change pick to squash or what?13:54
canton7 kepe the first pick, but change the second 2 to squash/fixup13:54
*keep13:55
esa joined13:55
flavius left13:55
iamjarvo joined13:55
rook2pawn left13:55
gavin_huang left13:56
psoo joined13:57
Onkeltem Thank you all! Now everything is like I wished13:59
gtrak left14:00
Onkeltem canton7, grawity, rue, Bigcheese: t.y.14:00
Onkeltem starts loving git more and more14:00
Onkeltem and thinks about migrating all his projects to it from Mercurial14:01
longbeach joined14:01
Droolio left14:01
landypro left14:02
canton7 do it! do it!14:02
heh, just out of curiosity, what do you prefer about git over hg?14:02
grawity tig14:03
how the hell do hg/bzr users live without something like tig.14:03
juvenal left14:03
cbreak tig?14:03
canton7 curses gitk iirc14:03
Onkeltem canton7: Git Book :) It makes you feel git is the only option14:04
gtuckerkellogg left14:04
Chillance joined14:04
gavin_huang joined14:04
canton7 haha! nic14:04
*nice14:04
Onkeltem canton7: like how would i live now knowing all all these features!14:04
heh14:04
cwang left14:05
Onkeltem What I can't decide for now - is how to properly organize a big .git project (like a Drupal website) with many .git subprojects (modules).14:06
arturaz_ joined14:06
vpetro joined14:07
john3 left14:07
flavius joined14:08
dleonardi joined14:08
AAA_awright What happened to "Why Git is better than X"?14:08
rchavik left14:09
john3 joined14:09
Onkeltem lol, how VCS could be better then source?14:09
skorgon left14:10
herdingcat left14:10
Onkeltem its like a bus stop better then busses?14:10
reactormonk joined14:10
cakehero joined14:11
AaronMT joined14:12
acalbaza joined14:13
jjbohn left14:14
simesy left14:14
acalbaza hi, quick question about git-svn... im trying to clone a remote branch given a revision and that works as expected, but i also want to track remote branches in the same repo. when i do a git svn fetch, shouldnt i see all the remote branches?! how do i teach git about the remote branches after a clone using a revision? i cant pull down the history as its way too big.14:15
Chappo left14:16
lcc left14:17
acalbaza i feel like git branch -r should show me all remote branches created after the revision given to clone14:17
gnoel left14:17
dfr|mac joined14:17
acalbaza but i just get "git-svn" after git branch -r14:17
cbreak acalbaza: git svn clone clones all branches14:17
acalbaza: run git svn info and pastebin the result. Also pastebin the content of .git/config14:18
flavius left14:18
Pupeno left14:20
jjbohn joined14:21
psoo left14:21
vpetro left14:22
simesy joined14:22
acalbaza cbreak: http://pastebin.com/LUXVphK314:23
psoo joined14:23
cbreak well, the clone is already wrong14:23
with git you don't clone branches14:23
you clone repositories14:23
the repository you cloned will always ever only track that svn repository path14:23
juvenal joined14:24
SamB_MacG5 joined14:24
acalbaza cbreak: got it14:24
cbreak you-ll have to do something like14:25
git svn clone url://server/name/ -s14:25
if name/trunk, name/branches and name/tags exist14:25
for trunk, other branches and tags respective14:25
Dimitr|2 joined14:26
acalbaza cbreak: and i should still be able to add the -r14:26
cbreak I wouldn't14:27
it'll cut off history14:27
arturaz_ left14:28
arturaz__ joined14:28
RaptorX joined14:28
RaptorX left14:28
Dimitr left14:28
madsy left14:29
Internet13 left14:29
acalbaza cbreak: ok, thanks. let me play with this a little...14:29
tjadc joined14:29
madewokherd joined14:31
flavius joined14:32
Chappo joined14:33
leotr joined14:34
longbeach left14:34
acalbaza ok, so i'm probably running into "Couldn't find revmap for trunk" since i tried clone the repo using a revision...14:35
tjadc left14:36
vitor-br joined14:36
Internet13 joined14:36
psoo left14:37
tjadc joined14:38
acalbaza seeing if i can get away with just "enough" history14:38
kukks joined14:38
psoo joined14:38
circlcious joined14:40
Anders_J joined14:40
circlcious my team made messed up codebase and pushed. i pulled it. now i wanted to go back in commits so i tried git rebase -i commitsha1, bu i think i have messed up things, what should i do ?14:40
mrwalker left14:41
dleonardi left14:42
leotr hi! i accidentally pushed to remote repo master branch. I tried git reset --hard old_rev && git push -f, couldn't do it. What will happen with my last commits if i do git reset --soft on remote repo? Will they disappear?14:42
toabctl joined14:42
raminoid joined14:44
alberto56 left14:44
cbreak circlcious: git rebase is MOST DEFINITELY not the right command to go back14:45
do you want to go back permanently? Then git reset --hard to nuke away any changes14:45
gavin_huang left14:45
cbreak reset to some commit in the history, or the reflog14:45
Goplat joined14:46
circlcious cbreak: ok i reset14:47
but how do i do the same on remote repo :( i can tpush14:47
gavin_huang joined14:47
circlcious it says me to pull, if i do that its going to pull the commits again14:47
raminoid left14:48
arturaz_ joined14:48
varg joined14:48
circlcious cbreak: ???14:49
cbreak what?14:49
skyf joined14:49
circlcious i reset on my local repo to the commit which was good14:49
how to do the same on remote repo ?14:49
cbreak the same way.14:49
circlcious but remote repo is bare14:50
cbreak you can reset it locally with reset anyway14:50
or you can force push if you have the permissions14:50
arturaz__ left14:50
cbreak you'll also have to do it on every single repository that fetched from there14:50
circlcious :S14:50
no other way?14:50
cbreak nope.14:50
every single one of them14:50
you're rewriting history after all14:51
circlcious so anyone who does something weird and pushes, to revert that its a hard process like this ? :/14:51
cbreak no14:51
you're not reverting14:51
you're rewriting history14:51
if you wanted to revert, you would just run git revert14:52
abletony84 joined14:52
circlcious actually i did a git revert after git reset14:52
how would i revert on serber too?14:52
cbreak that would naturally not get you back to the old commit14:52
circlcious i mean remote repo14:52
abletony84 Hey! How do I "git add ." but at the same time automatically delete all the files/folders that have been deleted?14:52
xiangfu left14:52
cbreak after the reset? then revert is absolutely pointless14:52
circlcious how would i revert to the proper commit, i.e., the commit before the messy one ?14:53
cbreak if you reset, then you've rewritten history.14:53
circlcious ok14:53
cbreak circlcious: first: get back to the messy one14:53
marhaban left14:53
cbreak then, revert the messy one.14:53
then you are one commit after the messy one14:53
circlcious $ git revert messy_commit_sha1 ?14:53
cbreak revert does NOT get you back to old commits14:53
it just gets you into the state without a commit14:53
nisseni left14:54
cbreak you said you wanted to go back to an old commit so revert won't help you14:54
circlcious i just wanted to undo my team mate's commit14:54
i pulled his changes and its a mess14:54
cbreak well, then revert it and push :)14:54
if your pull was fast forward that is14:54
circlcious ok but since i did a reset already14:54
m,aybe i will pull again and doa revert now?14:55
cbreak undo the reset14:55
you can git pull --ff-only14:55
if that works, then you'll have the original I guess14:55
abletony84 Sorry guys but how do I "git add ." but at the same time automatically delete all the files/folders that have been deleted?14:55
cbreak abletony84: not at all14:55
abletony84: just do git add -A14:55
abletony84 How come?14:56
oh cool14:56
cbreak because . has different semantics14:56
jnewt how do i get a git log that shows the complete changesets?14:56
cbreak jnewt: git log -p ?14:56
circlcious not possible to fast forward, aborting14:56
cbreak what do you mean with changeset?14:56
circlcious i will do a force push for now14:56
cbreak circlcious: that must be because you reverted14:56
reset the revert away and try again14:56
(I thinjk you've messed the repo up more than your team by now :)14:57
circlcious lol14:57
i force pushed anywya14:57
jnewt circlcious: like --summary, but summary only seems to show create / deletes. i want to see modified file list too14:57
circlcious maybe that rewrote the history but ok14:57
how do you revert reverts anyway ?14:57
cbreak not maybe14:57
circlcious i mean undo revert14:57
cbreak most definitely14:57
circlcious cbreak: :P14:57
cbreak every non-fast-forward push rewrites history14:57
jnewt cbreak, not a diff, only a modified / create / delete list14:58
simesy left14:58
cbreak jnewt: git log --status or git log --num-stat14:58
neurodrone joined14:58
neurodrone left14:58
neurodrone joined14:58
cbreak jnewt: also git log --name-only if you want just names14:58
jnewt: read man git-log for more14:58
gitinfo jnewt: the git-log manpage is available at http://git-scm.com/docs/git-log.html14:58
circlcious cbreak: git reset --hard HEAD^ undo's the revert?14:59
f0i joined14:59
circlcious i guess git revert creates a new commit which has reverted everything from the current/last commit14:59
cbreak circlcious: if the revert is HEAD, yes14:59
no14:59
git revert creates a new commit that reverts what you tell it to14:59
git revert 123456 reverts commit 123456's changes14:59
circlcious yah right14:59
should have done that then14:59
xiangfu joined15:01
jnewt cbreak: i'm aware of the man page. i've been trying to figure out the proper command from that, but i can't seem to get it. summary and num-stat aren't switches for git log15:01
cbreak they are15:01
varg left15:01
cbreak git log --stat, git log --num-stat15:01
git log --name-only15:01
all work15:01
--name-status I mean :)15:02
just read the man page, it has all of them15:02
kpreid left15:02
jnewt neither are what i want.15:03
kpreid joined15:03
Mogget joined15:04
ISF joined15:04
cbreak what do you want?15:04
jnewt I want to output a condensed summary of extended header information such as creations, renames, mode changes AND file modifications.15:05
cbreak what's an extended header?15:05
xiangfu left15:05
jnewt read the man page under --summary. that's it's terminology15:05
cbreak --stat and --name-status both show renames, changes, deletes, ...15:06
reds joined15:07
redsGuest1079315:07
jnewt yeah, but instead of create mode file.c, you get shit like file.c Bin 0 -> 1684354bytes15:07
juvenal left15:08
jnewt oh, you're right, name-status does it15:08
thank you!15:08
cbreak np15:09
jnewt i have no idea what they mean by extended header though, can't help there.15:10
but i dont' really care. so back to work. later, thanks again15:10
Guest10793 left15:12
acalbaza so here is a question, can i skip fetching tags during an svn clone?15:13
cbreak don't specify a --tags? :)15:15
acalbaza ahh, i used -s15:16
so if i specify branches and trunk, tags will ignore?15:16
cbreak maybe.15:18
acalbaza let me try... either that or ignore paths.15:19
Araxia joined15:20
gnoel joined15:21
letharion left15:22
Dimitr|2 left15:25
chuckharmston joined15:25
letharion joined15:25
jjbohn left15:25
Dimitr joined15:25
Learath2 left15:28
xiangfu joined15:29
chinopozo joined15:30
kiffer84 left15:33
AmirBehzad joined15:33
Davey joined15:33
Droolio joined15:33
xiangfu left15:35
FernandoBasso left15:35
AdrienBrault left15:36
AmirBehzad left15:36
tewecske joined15:36
subbyyy joined15:36
vibhav joined15:37
vibhav How do I contribute to the git project?15:37
red82 joined15:37
madsy joined15:38
madsy left15:38
madsy joined15:38
velikasha joined15:40
gnoel left15:40
mrwalker joined15:41
jjbohn joined15:43
RaceCondition left15:44
AaronMT left15:46
AaronMT joined15:46
xiangfu joined15:47
Droolio left15:47
dang left15:48
skyf left15:49
Droolio joined15:49
urlwolf joined15:50
dc5ala left15:51
spyro left15:52
spyro joined15:52
xiangfu left15:54
loops vibhav, start off by joining the git mailing list15:54
vibhav, you can submit patches there for review15:54
iamjarvo left15:55
vibhav loops: I know C, which parts of git can I start with?15:55
branduren joined15:56
ipoval joined15:56
loops vibhav, do something you care about. scratch your own itch15:56
vibhav, if you just want to get your feet wet, check out https://git.wiki.kernel.org/index.php/Janitor15:57
toothrtoothrot15:58
skorgon joined15:58
yoklov joined15:59
circlcious left16:01
lausi joined16:03
tete_ joined16:04
sh0ne joined16:05
urlwolf left16:05
nyx joined16:05
beneggett joined16:06
nyx left16:07
Lord_DeathMatch left16:07
nyx joined16:07
FatDarrel joined16:08
Droolio left16:11
Drool joined16:11
fission6 joined16:11
fission6 i did git pull, and got a new remote branch, how do i merge to master16:11
mrwalker left16:12
cbreak merge it.16:12
tete_ i use a gui (tortoisegit) for such stuff fission616:12
just switch to master and click on merge branch, then choose the branch and thats it16:12
savid joined16:12
fission6 cbreak: i tried that16:13
jargon- left16:13
cbreak fission6: so?16:13
orrc joined16:14
cbreak while on master, git merge origin/otherbranch16:14
fission6 cbreak: i am in master, i see this branchi want to merge in remotes/origin/feature/issue16:14
cbreak done.16:14
fission6 fatal: 'origin/feature' does not point to a commit16:14
cbreak use your brain...16:14
you'll have to use the name of an existing branch of course16:14
you can't just invent one16:15
fission6 ok got it going and got CONFLICT (content): Merge conflict in geospatial/api/GeoIP-1.4.8/config.log16:15
how do i just take "mine" and complete the merge16:16
cbreak git checkout --ours on the file16:16
then check git status, and git commit16:16
also, what kind of idiot committed a config .lg in the first place?16:16
fission6 agreed16:16
cbreak you're better off removing it from the tracking16:16
fission6 on the lstnote16:16
i agree16:16
it will be going into .gitignore16:16
metasansana left16:16
cbreak git rm --cached the file16:17
beneggett left16:17
unterstrom_ joined16:17
bartman left16:18
Davey left16:18
unterstrom left16:19
fission6 will do.16:19
Droolio joined16:21
flavius is there anything similar to git config --local --add remotes.<remote-group> <remote> but for grouping branches?16:22
cesc joined16:22
tjadc left16:22
fission6 cbreak: if i do git rm --cached and commit that, will it delete the file from soneone who pulls it from disk16:22
cbreak yes16:22
unless he has local modifications16:22
in which case there will be a conflict16:22
fission6 ok16:22
andrewhl_ joined16:23
flavius fission6: they should merge in a sepparate branch "designed" for merges, not directly into feature/branch or master or similar16:23
Drool left16:23
flavius merge, run tests, then merge again in the parent branch16:24
dinesh6654 joined16:24
orrc left16:24
flavius (bisect helps here, btw, as a little extra)16:24
Bearcode left16:25
pppaul joined16:25
flavius does anyone have a clue to my question?16:25
bartman joined16:25
darren joined16:26
andrewhl left16:27
cbreak what would the semantics of grouping branches be?16:27
yoklov left16:27
tango_ name them as commonstring/branchname16:28
fission6 weird, i am adding a file to gitignore and it keeps showing up in my changes for commit16:28
palyboy joined16:28
tango_ fission6: if the file is already in the index, it will not be ignored16:29
yoklov joined16:29
lonewulf` left16:29
fission6 right, but how do i remove from being tracked and dont have it delete when someone pulls?16:29
varg joined16:30
cbreak finch: as I told you16:30
you have to untrack the file16:30
lonewulf` joined16:30
jargon- joined16:30
cbreak fission6: git tracks state. if a file vanishes, it was deleted.16:30
if someone merges a delete, the result should be obvious16:31
flavius tango_: yeah I do that already, but I was wondering16:31
cbreak: for instance feature branches, bugfix branches, etc :)16:31
pull-requests! how could I forget that :D16:31
cbreak flavius: what?16:31
nyx left16:32
nifty_ left16:32
juvenal joined16:32
flavius cbreak: what what?16:32
cbreak flavius: why did you write that?16:32
was it an answer to something I said?16:33
flavius because you asked "cbreak | what would the semantics of grouping branches be?"16:33
cbreak semantics would be:16:33
if I check out a branch, it checks out all branches16:33
or if I delete a branch, it deletes all branches16:33
that's semantics16:33
how they act16:33
flavius yeah16:33
cbreak I want to know how you want the group to act16:33
flavius if you want to fetch all pull requests for instance16:33
cbreak because git has nothing that allows that16:33
try a custom fetch spec16:34
flavius a hook?16:34
setmeaway left16:34
cbreak no16:34
in your config file, look for lines like fetch = +refs/heads/*:refs/remotes/origin/*16:34
they tell git what to fetch if you fetch a whole remote16:35
you can change that16:35
flavius ok thanks16:35
cbreak you can add new remotes too16:35
flavius I'll look it up, thanks :)16:35
finch waves to cbreak16:35
finch I was very confused why I was highlighted for a moment :)16:35
subbyyy left16:36
cbreak first letter confusion :/16:36
Davey joined16:36
stkrzysiak joined16:36
bryanmv`awaybryanmv16:36
finch no worries16:36
pfFredd joined16:36
maletor joined16:37
codeM0nK3Y left16:38
BadDesign joined16:40
noyb joined16:40
setmeaway joined16:41
stkrzysiak_ joined16:41
stkrzysiak left16:42
stkrzysiak_stkrzysiak16:42
dissidentat left16:43
Error404NotFound joined16:43
palyboy left16:44
ESphynx joined16:44
guampa left16:44
ESphynx hey guys... I'm looking for advice to how to have 'unrelated' branches?16:44
this is for the debian packaging stuff...16:45
grawity git checkout --orphan foo16:45
ESphynx so I have these debian branches... where there's only debian/16:45
and I have the normal branches (master, dev) where I have everything else but the debian folder16:45
I already have both now though... what should I do?16:46
git checkout --orphan debian ?16:46
even if debian exists already ?16:46
palyboy joined16:46
fireh joined16:46
ESphynx or should I just delete all the branches and start over?16:47
kpreid ESphynx: no, you'll have to delete the debian branch first16:47
then git checkout --orphan debian, then delete all the stuff you don't want on that branch and commit16:47
ESphynx ok thanks guys16:47
hmm16:47
ok16:47
great :)16:47
letharion left16:48
rchavik joined16:49
varg left16:49
lausi left16:50
Ad0 joined16:50
Ad0 hi :)16:50
gitinfo Ad0: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.16:50
Ad0 if I have one main branch, and 2 branches I merge together in main branch. I am not doing anything else in that main branch, it's sole purpose is to merge the 2 other branches together16:51
is there a way to kill all commits and start over?16:51
start fresh with a merge from branch 1 and branch 216:51
is it git rebase or something16:52
ESphynx What would be a good prefix for those packaging only branches ? deb? ppa? :)16:52
lausi joined16:52
letharion joined16:53
Ad0 I've seen name-PPA before16:53
Chib left16:53
ESphynx I'm thinking of debNatty, debOneiric, debPrecise, debDebian16:54
grawity deb/natty works too16:54
ESphynx Or ppaNatty, ppaOneiric16:54
you can put / ?16:54
Ad0 I would have it with Natty-ppa16:54
but that's me16:54
ESphynx hehe yeah i'd rather have a prefix, so they're all grouped together16:55
m1sc Ad0: I don't really get what you're looking for, maybe merge --squash?16:55
grawity ESphynx: yeah, I think refs are actually hierarchical like that16:55
Ad0 m1sc: I have been merging branch A and B together in main C16:55
rchavik left16:55
hyperair i use ppa/natty16:55
Ad0 and I did some custom changes which is biting me in the ass16:55
so I want to just start fresh with a basic merge from latest from branch A16:56
maybe not kill all commits, but at least get to that stage16:56
where nothing from branch B is there16:56
hyperair ESphynx: you can take a look at the banshee packaging repository see Vcs-Git in apt-cache showsrc banshee16:56
s/see/\(see/; s/$/\)/16:57
m1sc Ad0: so you have some committed changes and want to put them on a new base?16:57
psoo left16:57
Ad0 yes I have a ton of commited merges with custom changes to make them work16:58
but I want to wipe them and start fresh16:58
specialGuest joined16:58
ESphynx OK i'll do ppa/natty then16:58
thanks guys16:59
FatDarrel left16:59
m1sc Ad0: you could reset C to some commit and then merge A again. !backup first if you're not sure about what you're doing..16:59
gitinfo Ad0: Taking a backup of a git repository is always a good idea, especially when taking advice over IRC. Usually, the best way to TACTICALLY back up a git repo is `git clone --mirror`. However, some unusual maintenance might require `tar cf repo-backup.tar repodir`. Testing in a clone is also an excellent idea. See also http://sethrobertson.github.com/GitBestPractices/#backups16:59
specialGuest left17:00
specialGuest joined17:00
Ad0 hehe thanks17:01
palyer joined17:02
ESphynx so so I did my checkout --orphan17:02
palyboy left17:02
ESphynx I have a bunch of 'staged' changes, but reset is being dumb17:02
fatal: Failed to resolve 'HEAD' as a valid ref.17:02
Can't I clear all that staged stuff?17:02
grawity maybe `rm .git/index`?17:03
m1sc ESphynx: that's because there's no root commit yet17:03
surma joined17:03
ESphynx m1sc: I still say git reset should delete everything staged :P17:03
jey joined17:03
guampa joined17:04
ESphynx grawity: that did work. thanks a lot :P17:04
m1sc ESphynx: reset can't, because there's no HEAD17:04
ESphynx m1sc: I say in this special case it can rm .git/index17:04
theCole joined17:05
m1sc ESphynx: when you pass git reset a ref or commit, it works17:06
Davey left17:06
elias left17:07
FatDarrel joined17:07
ESphynx m1sc: but here I want to reset to 'nothing' :P17:07
m1sc ESphynx: well, your index.?17:07
aspotashev joined17:08
m1sc ESphynx: when you create your orphan branch from master, you would do "git reset master", which brings back your index to what master looked but keeps your worktree17:09
*like17:09
Zenopus left17:09
ESphynx m1sc yes but I want an orphan branch that's empty :P17:11
I want to reset to an empty repository17:11
leotr left17:13
m1sc ESphynx: check the last paragraph for --orphan in man git-checkout17:13
gitinfo ESphynx: the git-checkout manpage is available at http://git-scm.com/docs/git-checkout.html17:13
pfFred joined17:13
pfFredd left17:14
duckxx joined17:14
tshauck joined17:15
ESphynx m1sc: that would delete my actual working tree files though, which I did not want17:16
theCole left17:16
ESphynx that's the whole point for me of having a disconnected history, so I can switch branch witohut losing my different contents :P17:16
(running git rm -rf .)17:17
esa left17:17
FatDarrel left17:17
esa joined17:17
pfFred left17:18
m1sc ESphynx: then go ahead, prepare everything you want it and commit. also, there's --cached for git tm17:18
*rm17:18
kpreid no, you do that *in* the orphaned branch after you create it, before commit17:18
ESphynx ah right... --cached :P forgot about that17:18
I could have done git rm -rf --cached . :P17:18
OK I still can't switch branch :|17:24
going back to the same branch as before I get error: The following untracked working tree files would be overwritten by checkout:17:24
bryanmvbryanmv`away17:24
kpreid yes, because you didn't delete them17:25
abletony84 left17:25
kpreid so you try to check out your old branch and it sees these files17:25
ordinarily, when you switch from that branch to debian git automatically removes the files from working tree, so there is no conflict when you switch back17:25
airborn left17:26
kpreid just rm the files — they will be restored when you checkout17:26
ESphynx I wish it left the files alone17:26
mrwalker joined17:26
ESphynx when I switch branch17:26
maletor left17:26
kpreid switching branches is switching trees. you don't get a mix17:26
ESphynx in fact I hate the whole idea of branches for debian packaging :|17:26
rurufufuss left17:26
airborn joined17:28
darren left17:29
Goplat left17:29
SegFaultAX|work2 joined17:30
ESphynx this seriously messed up my working directory :|17:31
gtrak joined17:32
cbreak what did you do?17:32
well, you can always git reset --hard HEAD to nuke all changes out of the wd17:32
erynofwales joined17:32
ESphynx cbreak: that might have been a better idea17:32
marhaban joined17:33
longbeach joined17:33
ro0 joined17:35
ro0 left17:35
ro0 joined17:35
ro0 left17:36
Sonderblade joined17:37
airborn left17:37
skorgon left17:37
fireh left17:37
tjadc joined17:38
airborn joined17:40
ro0 joined17:40
dorkmafia joined17:42
Drool joined17:42
r0bby_ joined17:42
r0bby_robbyoconnor17:42
Chappo left17:42
marhaban left17:42
Droolio left17:42
Chappo joined17:42
marhaban joined17:42
r0bby left17:44
Sonderblade left17:44
iori joined17:45
dc5ala joined17:46
chinopozo left17:46
candybar left17:46
dinesh6654 left17:46
marhaban left17:47
apok joined17:47
codertux joined17:47
apok left17:48
Sonderblade joined17:49
osmosis joined17:50
towski joined17:51
candybar joined17:53
mrwalker left17:53
macIvy joined17:53
sunny256 joined17:54
fireh joined17:55
Davey joined17:56
reds joined17:57
redsGuest3320617:58
towski left17:58
acalbaza left17:59
reactormonk left17:59
wolftankk joined18:02
Guest33206 left18:02
lupo7 joined18:04
oxidative_ joined18:04
towski joined18:06
RaceCondition joined18:06
darren joined18:06
oxidative left18:07
Psycho_pr joined18:08
shreya left18:09
dfr|mac left18:09
Psycho_pr If I have some changes in my work tree, and I pull something from my origin, and the changes that I have are exactly the same as the changes that will be pulled, will there be a conflict?18:09
shreya joined18:09
towski left18:09
cbreak yes18:10
Psycho_pr shit18:10
cbreak uncommitted changes will always conflict18:10
Psycho_pr why?18:10
cbreak because that's the only sane thing18:10
Psycho_pr so I guess I better first revert the changes on these files before pulling.18:11
cbreak you could do it like subversion and risk data loss18:11
but obviously that's dumb18:11
so only subversion does it18:11
AAA_awright Does there exist any plumbing to get meta-data from a remote repository? I just want a list of refs from a remote repository, without cloning any files18:12
longbeach left18:13
sq-one joined18:13
dsirijus joined18:13
cbreak you can get the current branch tips18:13
chuckf left18:13
cbreak git ls-remote18:13
AAA_awright charon: Awesome18:15
jrdnn left18:17
dropdrive Hi all. Is there a recommended/widely-accepted way to refer to a specific branch on a specific repo? E.g. $url#$branch_name or $url:$branch_name18:17
grawity #foo would make the most sense in an URL18:17
tjholowaychuk joined18:18
angelsl left18:18
cbreak dropdrive: "branch Foo in repo ssh://server/repo.git"18:18
grawity cbreak: Doesn't work well with software that has to parse the thing18:19
subbyyy joined18:20
jrdnn joined18:21
juvenal left18:21
dsirijus left18:21
dr_lepper left18:22
EugeneKay I would use SSH syntax, with #refs/heads/foo at the end18:22
You won't find a # in any (sane) repo URI or branch name, so it should be parse-safe18:22
palyer left18:22
palyboy joined18:22
jcromartie left18:23
grawity It goes well with other URIs too, remotepart#localpart18:23
pw1 left18:25
scientes joined18:25
magcius left18:25
EugeneKay YOu're referring to HTML "anchors"? Yeah.18:26
kleist left18:26
magcius joined18:27
r0bby joined18:27
cwang joined18:28
dropdrive Thanks guys.18:29
compojoom_ left18:29
robbyoconnor left18:29
dr_lepper joined18:29
Hasbro left18:31
nor5trom left18:31
cwang left18:33
dom2012 joined18:34
ESphynx git://github.com/ecere/sdk.git,branch=dev18:34
why is this not working?18:34
My branch is called 'dev' ...18:34
CareBear\ ESphynx : what do you want to do ?18:35
Esphynx : clone?18:35
diegoviola joined18:35
ESphynx CareBear\ well I was trying to import on launchpad18:35
but when I try a clone it gives me that error too18:35
CareBear\ ESphynx : oh ok - have to ask #launchpad then18:35
ESphynx it's not a launchpad issue, doing a clone does that18:35
CareBear\ ESphynx : the git URL is git://github.com/ecere/sdk.git and nothing else18:35
branches are never part of the url18:36
ESphynx hmm right18:36
lirt joined18:36
ketas left18:36
ESphynx it must be a launchpad thing then18:36
thanks18:36
CareBear\ you're welcome18:36
meLon left18:37
diegoviola left18:38
EugeneKay I wonder if a patch to clone to take a #refspec as part of the clone URL(instead of -b)18:41
FatDarrel joined18:41
EugeneKay would be accepted18:42
unterstrom_ left18:42
dom2012 left18:42
Davey left18:42
diegoviola joined18:42
ketas joined18:43
milki EugeneKay: !tias18:43
dvide joined18:43
gitinfo EugeneKay: Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS.18:43
milki :P18:43
Davey joined18:44
mrwalker joined18:44
EugeneKay I'd have to write the patch first18:44
RaceCondition left18:45
jrdnn_ joined18:45
jrdnn left18:45
nyxx Hi, I'm using git on Windows. When ever I do a `git push`, I have to enter my username and password. How can I make it log in automatically?18:46
FatDarrel left18:46
cannonball joined18:47
nor5trom joined18:47
palyer joined18:49
ph^ joined18:49
palyboy left18:49
arcane joined18:50
avpx joined18:51
dfr|mac joined18:52
macIvy left18:53
arcanin left18:53
CareBear\ nyxx : where do you push to?18:56
nyxx : what protocol - ssh or http?18:56
tshauck left18:56
CareBear\ nyxx : if ssh you have to configure it in the ssh client (use putty, even if git is calling plink)18:57
nyxx : if http you can add it into the url http://user:pass@host/path/repo.git18:58
nyxx : the latter works only for http. with ssh you must configure in your ssh client.18:58
EugeneKay nyxx - !ssh_github18:58
gitinfo nyxx: If you are having problems accessing github repos over HTTPS you should switch to SSH (the default used by git, for many very good technical reasons): https://help.github.com/articles/generating-ssh-keys18:58
Davey left18:59
nwest joined18:59
wolftankk left19:00
toabctl left19:01
jey left19:01
jrdnn_ left19:02
Davey joined19:03
hwrd|work joined19:03
Psycho_pr Why is there no post-pull or post-pop hook?19:04
hwrd|work left19:05
EugeneKay !cuz19:05
gitinfo [!why] Why? Because screw you, that's why.19:05
grawity Psycho_pr: post-merge19:05
Psycho_pr :-(19:05
EugeneKay I can think of a few uses for a post-fetch hook19:06
_ikke_ This is a mild version, the previous was much more rude19:06
Psycho_pr Did the previous version punch you in the face?19:06
EugeneKay "Because fuck you, that's why."19:06
Ether_Man joined19:07
Psycho_pr :|19:07
jrdnn joined19:07
Psycho_pr Man why so harsh?19:07
EugeneKay *you* asked. :-p19:07
_ikke_ that's EugeneKay19:07
EugeneKay Psycho_pr - have a !botsnack, they're good.19:08
gitinfo Psycho_pr: Om nom nom19:08
Psycho_pr :|19:08
asahi joined19:09
asahi left19:09
Ether_Man Im having a small issue with gitweb which I hope someone could help me with. I've set up a vhost and I reach gitweb itself fine. I have it pointed to the base dir of where all my git projects are stored. When browsing to the gitweb page though, I get No such projects found. (havnt searched or anything).. List all projects just gets the same. If I press the TXT button, it correctly shows all the project/.git entries, but nothing in the html o19:11
utput. Anyone with any idea what I've missed?19:11
palyer left19:12
palyboy joined19:14
velikasha left19:15
arkas joined19:15
maletor joined19:16
redrocket joined19:16
ku left19:16
arkas left19:16
palm_vue left19:20
bizhanMona left19:20
Lgb left19:20
palm_vue joined19:20
Lgb joined19:21
bizhanMona joined19:21
todd_dsm joined19:21
Mogget left19:26
tripolar joined19:26
tripolar hi19:26
gitinfo tripolar: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.19:26
tripolar is it possible to move changes made in the master branch not commited to a new branch? or create a branch that looks like master right now with the changes?19:27
Mogget joined19:27
raek tripolar: yes, just do "git checkout -b new-branch" and commit after that19:28
!float19:28
gitinfo If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution.19:28
tripolar raek thanks19:30
goshawk joined19:30
FernandoBasso joined19:32
e-dard joined19:32
HyperNerdV2 joined19:32
e-dard Excuse the cruddy question but… I use virtualenwrapper and my usual workflow is to automagically create a virtual environment and a project folder. Once I execute this I'm sat in my project folder.19:33
My next step would be to make an empty git repo. But how do I do it such that I don't create a new folder? I just want the .git to sit in the current folder if that makes sense?19:33
segher left19:34
e-dard Gah. And as I wrote the question the answer hit me in the face. `git init .` Sorry for noise.19:34
chinopozo joined19:34
_ikke_ :)19:35
raek this is also what happens when you run git-init without an argument19:35
e-dard There should just be a /scratch channel where you write a question to just get the answer pop in your head.19:35
segher joined19:35
pppaul left19:36
_ikke_ /join ##scratch19:36
Kabaka joined19:38
palyboy left19:39
ska-fan left19:44
mrwalker left19:44
ska-fan joined19:45
dropdrive left19:45
shreya left19:48
EugeneKay e-dard - "." is the default for the two-word "git init"19:49
felgru joined19:49
gtrak left19:50
dc5ala left19:50
Error404NotFound left19:52
klj613 joined19:53
cagedwisdom left19:54
pppaul joined19:55
Guest74974 left19:58
reds joined19:58
redsGuest6269719:58
iori left19:58
khaije|minder joined19:59
SegFaultAX|work2 left20:00
Guest62697 left20:02
subbyyy left20:04
Araxia left20:05
subbyyy joined20:05
specialGuest left20:06
fvg joined20:08
osmosis left20:08
Dimitr left20:08
gtrak joined20:09
jjbohn left20:10
noyb_ joined20:15
noyb left20:15
zackiv31 joined20:16
jnewt how do you rebase all branches that are based on a "original base SHA" to a "new base SHA". git rebase --onto "new base SHA" "old base SHA" only takes the branch you're on.20:16
jonn joined20:17
jnewt do i have to do them one at a time?20:17
LeMike joined20:18
Shusshu joined20:19
SegFaultAX|work2 joined20:19
specialGuest joined20:19
tellone joined20:20
zackiv31 left20:21
Shusshu left20:21
Anders_J left20:22
LeMike left20:22
zackiv31 joined20:23
Dimitr joined20:23
Fullmoon left20:30
palyboy joined20:31
specialGuest1 joined20:32
irqq joined20:33
specialGuest left20:35
Guest69382wolog20:35
wologGuest3022320:36
LeMike joined20:37
chinopozo left20:38
duckxx left20:40
tjholowaychuk left20:40
irqq left20:40
jey_ joined20:44
cannonball left20:44
Goplat joined20:46
arietis left20:47
FatDarrel joined20:48
gtrak left20:48
e-dard left20:50
Guest30223wolog20:54
teotwaki_ joined20:55
SethRobertson jnewt: Yes, but you can get the list via `git branch --contains` and then put a script around it20:55
bubbles10101 joined20:55
mike007 joined20:55
klj613 left20:55
specialGuest1 left20:58
LeMike1 joined20:58
specialGuest joined20:59
FatDarrel left20:59
specialGuest left20:59
specialGuest joined20:59
aesthetikargonau joined20:59
theCole joined21:00
aesthetikargonau left21:00
LeMike left21:00
agileadam left21:01
guns joined21:03
leila_ joined21:06
s0ber_ joined21:06
bubbles10101 left21:08
s0ber left21:08
s0ber_s0ber21:08
arturaz_ left21:09
Ad0 m1sc: thanks21:11
git reset did it21:11
tellone left21:12
esa left21:12
_iron left21:12
bartman left21:13
esa joined21:13
blast_hardcheese joined21:14
e-dard joined21:15
Mariiii joined21:16
Mariiii left21:17
bartman joined21:19
ph^ left21:19
maletor left21:22
r0bbyrobbyoconnor21:22
artnez joined21:22
cakehero left21:22
leila_ left21:23
aspotashev left21:24
sq-one left21:26
shruggar is there any fast (as in simple to stick into a script) way to turn an arbitrary directory into a tree object?21:26
chuckharmston left21:26
ipoval left21:29
Ad0 shruggar: like ps aux --forest?21:29
leila_ joined21:30
jnewt whats the syntax to stage all unstaged deletes in a folder? git rm dir/. gives me a not removing the folder recursively error, and git rm dir/* gives me errors about changes that are already staged needing --cached. but when i do rm --cached, it adds the deletes, and removes the modifications from the index.21:30
Ad0 shruggar: http://www.computerhope.com/unix/tree.htm21:30
great little tool21:30
etcetera joined21:31
jnewt i can rm each file independently, but I assume there's a catch-all way21:31
stkrzysiak left21:33
leila_ left21:34
jragon joined21:35
jragon Hello21:35
gitinfo jragon: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here.21:35
shruggar Ad0: I think this is #git, so I mean a git tree object :)21:36
capiira left21:36
jragon I'm trying to push a commit to github. It worked earlier, but now it seems to fail. I get fatal: could not read Username for 'https://github.com': No such device or address21:36
cbreak shruggar: go over the index21:37
then you can use git write-tree21:37
shruggar: see man git-write-tree21:38
gitinfo shruggar: the git-write-tree manpage is available at http://git-scm.com/docs/git-write-tree.html21:38
shruggar cbreak: yeah, that's the plan at the moment. I just tend to want to say "hey, arbitrary directory, be a tree!" I guess I should just write a dash command for it21:38
tete_ left21:39
subbyyy left21:40
Ad0 shruggar: heh didn't know what it was :)21:40
savid left21:40
Milossh left21:44
kcj joined21:44
Milossh joined21:45
e-dard left21:45
juvenal joined21:47
maletor joined21:48
resmo__ joined21:48
codertux left21:50
codertux joined21:50
resmo_ left21:50
linoj joined21:51
specialGuest left21:51
nadavoid joined21:53
pppaul left21:55
nadavoid left21:55
mike007 left21:56
specialGuest joined21:56
specialGuest left21:56
specialGuest joined21:56
etcetera left21:58
reds joined21:58
redsGuest6951021:58
kart0ffelsack left21:59
macIvy joined22:00
eletuchy joined22:00
microcolonel left22:00
microcolonel joined22:00
unterstrom joined22:01
LeMike1 left22:01
alanp joined22:01
kart0ffelsack joined22:02
kart0ffelsack left22:02
kart0ffelsack joined22:02
Guest69510 left22:03
naee left22:04
Internet13 left22:04
segher left22:04
Twey left22:04
ISF left22:04
lindenle left22:04
ology left22:05
ology joined22:05
segher joined22:05
nadavoid joined22:05
alanp_ left22:05
juvenal left22:06
Davey left22:06
Twey joined22:07
Internet13 joined22:08
diegoviola left22:08
juvenal joined22:09
specialGuest left22:09
capiira joined22:09
capiira left22:09
etcetera joined22:09
eean joined22:09
Davey joined22:10
Error404NotFound joined22:11
urlwolf joined22:11
jragon left22:12
Fernando1asso joined22:12
etcetera left22:12
marhaban joined22:12
specialGuest joined22:13
specialGuest left22:13
specialGuest joined22:13
macIvy left22:14
osmosis joined22:14
maletor left22:15
EhevuTov joined22:15
FernandoBasso left22:16
quesada joined22:17
Fernando1assoFernandoBasso22:17
maletor joined22:18
maletor left22:18
fvg left22:20
urlwolf left22:21
blacktulip left22:21
zackiv31 left22:22
Davey left22:22
pantsman left22:23
legumbre joined22:23
quesada left22:25
brotatos joined22:26
brotatos is there a commit command that allows me to edit a message specific to each file committed?22:26
tango_ brotatos: commits are tree-wise, not file-wise22:26
if you need file-wise commits, commit a single file22:27
change22:27
jnewt you'd have to split your commits22:27
brotatos tango_: thanks22:27
brotatos left22:27
pcapriot` joined22:28
EhevuTov left22:28
babilen left22:32
nor5trom left22:35
wolog left22:35
SkAzZ left22:36
Targen left22:36
nor5trom joined22:37
david1010 joined22:37
SegFaultAX|work2 left22:38
david1010 I am trying to test with rspec and getting this error "/Users/davidmac/.rvm/gems/ruby-1.9.3-p125/gems/rspec-core-2.11.1/lib/rspec/core/option_parser.rb:21:in `parse!': missing argument: --format (OptionParser::MissingArgument)"22:39
Any idea what is wrong?22:39
sorry wrong window22:39
canton7 the channel? :P22:39
aha22:39
bartman left22:41
Raydiation joined22:44
Raydiation how can i undo a pull?22:45
which is some commits behind and didnt touch my files22:45
sh0ne left22:45
esa left22:45
HyperNerdV2 left22:46
diegoviola joined22:46
Goplat left22:46
guampa left22:47
offby1 Raydiation: if the pull didn't create a merge commit, then you can reset your branch back to where it was before22:47
heck, you can still do that even if it _did_ create a merge commit, now that I think about it22:48
"git log -g" will help you figure out where it was before, if you've forgotten22:48
bartman joined22:49
BadDesign left22:49
flavius left22:49
Raydiation offby1: i want to keep my changes: https://pastee.org/teffr22:49
and undo 9b5471322:49
oxidative_ left22:50
gavin_huang left22:51
beneggett joined22:52
Raydiation offby1: git rebase -i 9b54713~1 ?22:53
offby1 hole on22:55
timthelion left22:55
offby1 yes, that rebase sounds right.22:55
I'd stare at "gitk --all" for a while to make sure I understood what I was about to do22:55
subbyyy joined22:56
Raydiation ray@arch /srv/http/apps/news $ git rebase -i 9b54713~122:58
error: could not apply 0cdd144... changes namespace to OCA\News22:58
m22:58
i aborted the rebase22:58
gitk --all22:59
/usr/bin/gitk: line 3: exec: wish: not found22:59
capiira joined23:00
capiira left23:00
capiira joined23:00
capiira left23:00
dreiss joined23:01
ology left23:01
offby1 boo23:03
sounds like an incomplete installation of git :-(23:03
wolog joined23:03
Raydiation im using gitg atm23:03
offby1 it's a shame, since gitk is super-handy23:03
if you've got some other graphical viewer, that should be OK23:03
the point is to see how the commits relate to one another23:03
DrHouse|TARDIS joined23:04
maletor joined23:04
Raydiation the problem is that someone changed something at the same time23:04
candybar left23:04
Raydiation in the same branch23:04
then later theres a merge23:05
well i actually dont know wth happened23:05
offby1 If gitg isn't making that clear, then it's no good.23:06
what _is_ gitg, anyway?23:06
Raydiation offby1: can i store my patches somehow?23:06
ladder4 joined23:07
Raydiation then subsequently apply patch afert patch after reset23:07
japankurt joined23:07
Will| left23:07
etcetera joined23:07
canton7 that's a description of what rebase does, surely?23:08
giallu left23:08
Raydiation offby1: problem is the marked entry http://s14.directupload.net/images/120812/v3y5ylnz.png23:08
offby1 Raydiation: at worst, you can put a branch or tag at your current head; reset to before the merge; then run "git format-patch" to retrieve your work, and apply those patches23:09
zivester left23:09
asakura left23:09
cmn left23:09
ro0 left23:10
koki left23:10
wereHamster left23:10
offby1 it looks like there are six commits on the "newapp" branch that happened after the merge.23:10
Those are the ones you want to preserve?23:10
steevel joined23:10
offby1 canton7: I dimly recall there's something about rebasing past a merge that is more complex than usua.23:11
I don't want to recommend it since I'm not clear on how to do it.23:11
canton7 ah, there's a merge involved. fair enough23:11
Leonidas_ joined23:11
koki joined23:11
avar joined23:11
avar left23:11
avar joined23:11
gtrak joined23:11
Raydiation offby1: i want to preserve everything after the marked entry23:11
offby1 Raydiation: in the newsapp branch, yes?23:12
Raydiation yes23:12
wereHamster joined23:12
asakura joined23:12
blueyed joined23:12
specialGuest left23:12
cmn joined23:13
offby1 I'd reset your newsapp branch back before the faulty merge, merge from owncloud/newsapp, then git-cherry-pick "setting items as important", "mark items also", "changed marking of titles", and "fixed the wording".23:13
I'm guessing nobody will mind if you forcibly reset newsappfork/newsapp ?23:14
stfn joined23:14
dorkmafia left23:14
Will| joined23:14
Raydiation offby1: i forked the branch and want to do a merge request23:14
ro0 joined23:15
Deck` joined23:15
offby1 I'm not sure if that answers my question, but I'll be optimistic23:15
Raydiation so git reset --hard commit_before_pull23:15
linoj left23:16
Raydiation git pull origin newsapp23:16
dorkmafia joined23:16
Raydiation and then i can just cherry pick with the ids of the future commits?23:16
etcetera left23:16
Raydiation shas*23:16
knittl joined23:16
knittl left23:16
knittl joined23:16
liori joined23:16
Raydiation or ommit the --hard23:17
HyperNerdV2 joined23:17
dorkmafia hey i'm in the middle of a merge and I use vimdiff as my default mergetool … it's a really large merge and there are about 20 large files that I are resulting in merge conflicts… these 20 files I would like to take their changes and discard mine what's the best way to do this?23:17
I checked out their branch23:18
they started merging my branch into theirs23:18
vitor-br left23:18
capiira joined23:19
beneggett left23:19
AaronMT left23:20
nadavoid left23:21
felgru left23:22
tshauck joined23:22
dorkmafia ok i figured it out just did git checkout origin/theirs — file23:23
how do I find out all of the files with merge conflicts?23:23
candybar joined23:25
offby1 Raydiation: sounds right23:25
I'd use --hard though23:25
dorkmafia: "git status"23:26
juvenal left23:26
FatDarrel joined23:27
nadavoid joined23:28
nadavoid left23:29
Araxia joined23:29
else- left23:31
unterstrom left23:31
dorkmafia offby1: I'm trying to do git checkout origin/theirs — assets/*23:32
but it won't let me do it on some files so it's throwing errors23:32
error: path 'assets/file'23:32
skyf joined23:33
else- joined23:34
AaronMT joined23:36
dorkmafia git checkout origin/branchname --force assets23:37
worked23:37
FatDarrel left23:38
skyf left23:38
trtzrdb joined23:39
Raydiation offby1: ty, that cherrypick thing rocks23:39
i had to copy some newer things over though23:39
now the only problem is To [email@hidden.address]23:41
! [rejected] newsapp -> newsapp (non-fast-forward)23:41
error: failed to push some refs to 'git@gitorious.org:~raydiation/owncloud/raydiations-apps.git'23:41
dreiss left23:42
Psycho_pr1 joined23:43
Psycho_pr left23:43
airborn left23:44
Raydiation tells me that untracked files would be overwritten by merge23:44
metasansana joined23:44
Raydiation working tree23:44
lirt left23:44
ehsan joined23:45
Raydiation well, fk this, ill just create a new repo and copy my files over23:47
w09x_ left23:47
ehsan left23:49
skyf joined23:50
jnewt i'm trying to rebase branch dev onto branch testing both of which have master as the common ancestor. i want the changes from dev to overwrite any conflicts in testing. so i do $git checkout dev $git rebase -s ours --onto testing master23:50
and as it clicks through the revisions on testing, it says "already applied"23:50
it moves the branch pointer dev to the testing commit and nothing else changes.23:51
david1010 left23:51
jnewt what am i doing wrong there?23:52
david1010 joined23:52
Speed left23:53
danmackay joined23:56
JStoker left23:56
Freeaqingme I have a machine on which I clone all branches within a certain repo using a bash script. However, when a branch is deleted my script never picks those up. is there any way to retrieve what branches were deleted using git?23:57
chuckharmston joined23:58
reds joined23:58
redsGuest9780223:59

Logs Search ←Prev date Next date→ Channels Documentation