IRCloggy #git 2015-12-10

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.

2015-12-10

blackwind_123 joined00:01
zarubin joined00:02
anli joined00:03
Caelum joined00:03
sokolowitz joined00:03
quazimodo left00:05
zarubin left00:07
sokolowitz left00:07
petaflot_ joined00:08
anli left00:09
geri left00:09
circ-user-zsfzv left00:09
WaReZ_ left00:09
s8321414 left00:09
fahadash left00:11
geri joined00:11
localuser- left00:11
s8321414 joined00:12
petaflot_ left00:12
nettoweb joined00:12
s8321414 left00:12
cagedwisdom left00:13
BillCriswell left00:14
espindola left00:15
s8321414 joined00:16
localuser- joined00:17
tang^^ joined00:18
tang^ left00:21
ncthom91 left00:21
quazimodo joined00:22
puff` joined00:23
peoliye joined00:24
jorj_ left00:24
abacuspowers joined00:24
chitopunk left00:25
gambler joined00:26
gambler left00:26
dopesong left00:26
puff left00:27
gambler joined00:27
LeBlaaanc left00:27
ncthom91 joined00:28
mellernoia left00:28
LeBlaaanc joined00:28
Seban joined00:28
Seban left00:28
zacg joined00:28
zacg left00:28
zacg joined00:28
gopar joined00:29
hexagoxel left00:29
dopesong joined00:29
boushi__ joined00:29
paul424 left00:29
daivyk joined00:29
abacuspowers left00:29
noteness left00:30
hexagoxel joined00:31
alanwill left00:32
boushi_ left00:32
_cyril_ joined00:33
boushi joined00:33
boushi__ left00:35
josuebrunel left00:37
_cyril_ left00:37
petaflot joined00:38
SimonNa left00:38
tvw left00:38
hahuang65 joined00:40
dopesong left00:41
petaflot left00:41
geri left00:42
durham_ joined00:45
lethjakman-l joined00:47
m0viefreak left00:47
tag left00:48
noteness joined00:48
durham left00:48
durham_ left00:49
hexagoxel left00:51
geomyidae joined00:52
hexagoxel joined00:53
diegoviola left00:54
nnyk joined00:55
Lyqyd joined00:56
fscala left00:57
fstd left00:59
fscala joined00:59
fstd joined00:59
anth0ny_ joined01:01
kilo_bravo left01:01
imachuchu left01:01
mehola joined01:02
boushi_ joined01:02
daito joined01:03
tang^^ left01:03
tang^^ joined01:05
mDuff left01:05
boushi left01:05
atomicb0mb joined01:05
boushi__ joined01:05
ncthom91 left01:06
mehola left01:06
hexagoxel left01:07
daito left01:07
boushi_ left01:08
s00pcan left01:08
hexagoxel joined01:08
s00pcan joined01:10
DolpheenDream joined01:10
nnyk left01:10
igli joined01:10
col left01:10
s8321414 left01:10
diegoviola joined01:12
MrWoohoo left01:13
MrWoohoo2 left01:13
quazimodo left01:15
LeBlaaanc left01:15
boushi_ joined01:15
diegoviola left01:15
diegoviola joined01:15
lethjakman-l left01:16
LeBlaaanc joined01:16
xtun joined01:17
faux___ joined01:18
rendar left01:18
boushi__ left01:18
justanotheruser left01:19
dreiss left01:21
anth0ny_ left01:21
theskillwithin joined01:21
lethjakman-l joined01:21
justanotheruser joined01:22
LeBlaaanc left01:24
arescorpio joined01:25
garples_ joined01:25
LeBlaaanc joined01:25
hyperair left01:28
daito joined01:29
MarkyC joined01:30
geekthattweaks joined01:31
atrigent joined01:32
italoacasas joined01:32
puff`` joined01:33
nettoweb left01:33
_cyril_ joined01:34
MarkyC left01:34
corehello joined01:35
corehello left01:35
cagmz joined01:36
puff` left01:37
LeBlaaanc left01:37
lethjakman-l left01:37
LeBlaaanc joined01:38
_cyril_ left01:38
alexsystemf_- left01:39
atrigent_ joined01:39
CKyle joined01:39
atrigent left01:39
atrigent_atrigent01:40
atomicb0mb left01:40
hackel left01:40
akushner_ left01:42
phrozensilver left01:43
Oculus joined01:43
Oculus left01:43
Oculus joined01:43
diegoviola left01:43
cryptsting left01:43
tang^^ left01:44
xaa left01:45
lethjakman-l joined01:47
CheckDavid left01:49
rorro left01:49
s00pcan left01:50
cprecioso joined01:51
geomyidae left01:51
s00pcan joined01:52
OMGOMG joined01:52
opdavies left01:54
XDS2010 left01:54
knownasilya left01:54
jds left01:54
XDS2010 joined01:55
zeller joined01:55
addshore joined01:55
braderhart joined01:55
paperziggurat joined01:55
trig-ger_ joined01:55
apipkin joined01:55
opdavies joined01:55
spr0tsuki joined01:55
jds joined01:55
iamdevnul joined01:55
gopar left01:55
jagob left01:56
wymillerlinux left01:56
sublimate joined01:56
eagles0513875_ joined01:56
sfr^ joined01:56
nettoweb joined01:56
knownasilya joined01:56
jagob joined01:57
peoliye left01:57
puff`` left01:57
cryptsting joined01:58
sfz- left01:58
phantombeta|2 joined01:58
LeBlaaanc left01:59
harish joined01:59
jordanl joined01:59
jordanl is there an equivalent to `git subtree` that doesn't commit to the local repo?02:00
i'm looking for an easy way to pull a subdirectory from an external repo w/o any history or commits02:00
troyt joined02:00
jordanl just get a snapshot of the files at a specific ref02:01
jfran left02:01
phantombeta left02:01
boushi__ joined02:01
Sasazuka left02:02
kadoban jordanl: Sounds like subtree with squash or something02:02
mezod left02:02
phantombeta|2 left02:02
phantombeta joined02:02
kadoban jordanl: Which is case it's not clear, is already in there. Look for --squash02:03
fuchsi left02:03
Sadeukko left02:03
Sasazuka joined02:03
cprecioso left02:03
atrigent jordanl: it sounds like you want to clone without cloning02:04
sokolowitz joined02:04
boushi joined02:04
faux___ left02:04
Ahmed90 left02:04
boushi_ left02:04
hyperair joined02:05
igli you can always clone with --reference, especially if it's a temp checkout02:05
oh -s my bad. not sure that's going to make any difference locally02:06
boushi__ left02:06
jordanl kadoban: i thought squash still made a commit to the local repo. it just squashed the remote history down to a single local commit.02:07
gopar joined02:07
igli just checkout the ref you want, and then cp or tar the directory out.02:07
diego1 joined02:08
aidalgol left02:08
jordanl yea i could do that. i was just wondering if git had a one-step option02:08
sokolowitz left02:08
igli rsync is nice too02:08
atrigent jordanl: git repositories are transferred in the form of repo objects02:09
kalz joined02:09
atrigent which means commits, trees, blobs, etc02:09
kadoban jordanl: It does. You want to make a change without a commit at all? Sounds like git isn't for you …02:09
atrigent and typically you start from a commit02:09
sfz- joined02:10
atrigent git itself can't help you checking out subdirectories or checking out repos without any history at all02:10
although you can do shallow clones02:10
jordanl kadoban: well, tbh, the local repo is irrelevant. i was just wondering if there was an easy way to clone a subdirectory of a repo02:10
diego1 left02:10
diego1 joined02:10
diego1diegoviola02:11
[0xBEAKER] joined02:11
atrigent there isn't even a difficult way to do that02:11
it just doesn't make sense due to the way git works02:11
igli "an easy way to get a snapshot of the files in a subdirectory at a specific ref" => use the unix tools from a checkout.02:11
git is a complement to the rest of the userland, not a replacement for them.02:12
jordanl ok... although it sounds like a `git subtree --no-commit` option would do it02:13
smw_ joined02:13
petaflot joined02:13
atrigent jordanl: where is that option documented?02:14
jordanl it's not a real option. i'm suggesting that it could exist and serve my use case.02:15
igli it could check your email for you too02:15
jordanl since people are starting to get preachy about using unix tools and the use case being senseless.02:15
atrigent it sounds like you're making an assumption about how subtree works02:15
jordanl i understand it could be done in two steps. i was simply asking if it's possible right now02:15
igli no-one said the use-case was senseless, that i saw. isn't that what porcelain is about? or indeed a 2 line shell script?02:16
roygbiv joined02:17
thiago left02:17
abacuspowers joined02:17
rchavik joined02:19
rinwa left02:19
devoldmx joined02:19
paddyez left02:19
JackFruh joined02:20
petaflot left02:21
abacuspowers left02:22
Sasazuka left02:22
nnyk_ joined02:23
boushi_ joined02:24
tyll_ joined02:25
Rodya_ joined02:25
boushi left02:26
jordanl left02:27
tyll left02:27
localuser- left02:27
localuser- joined02:27
diegoviola left02:29
MarkyC joined02:31
Vampire0 joined02:32
[0xBEAKER] left02:32
jagob left02:32
rubyonrailed joined02:33
Vampire0_ left02:34
_cyril_ joined02:34
MarkyC left02:35
gelei007 joined02:37
pks left02:37
codedmart left02:38
s00pcan left02:38
rubyonra_ joined02:38
rubyonrailed left02:39
pks joined02:39
s00pcan joined02:39
_cyril_ left02:39
looper left02:40
looper joined02:43
h0h0h0 joined02:43
rubyonrailed joined02:44
rubyonra_ left02:45
Rodya_ left02:45
phantombeta left02:46
cagmz left02:46
govg joined02:46
govgGuest9570802:47
cagmz joined02:47
diegoviola joined02:47
igli if we override remote.pushdefault so that we can pull from upstream, and push to collab, how do i tell it what branch to push to? eg master -> collab:upstream02:47
or should i first track master in an upstream branch locally?02:48
phantombeta joined02:48
igli seems like push.default none # might help02:48
localuser- left02:50
bibiki joined02:50
localuser- joined02:50
igli remote.$foo.push # default set of "refspec" for git-push02:50
devoldmx left02:50
igli branch.name.merge seems to be symmetric02:51
faux___ joined02:51
igli yeah ok, just branch -t master upstream then02:52
devoldmx joined02:52
gitinfo set mode: +v02:52
phantombeta left02:52
bibiki hi everyone02:52
gitinfo bibiki: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.02:52
davidosomething joined02:53
bibiki I have this .git file in my machine, I clone off of it02:53
h0h0h0 left02:53
bibiki now, I want to push to it but it wont let me02:53
I am using git-bash, windows 702:53
when I do ls I see that there are no write permissions to the .git file02:53
roygbiv left02:53
gfixler left02:53
bibiki I do not know if that is the problem or what02:54
anyone has any idea02:54
igli sounds likely02:54
bibiki and git bash is only capable of adding x permission02:54
so I switched to a windows cmd as admin02:54
igli oh yay02:54
bibiki I run C\full path to my git\git.exe push... still same02:55
igli in general, "it doesn't work" or "it wont let me" aren't enough; provide the error message you got, instead.02:55
codedmart joined02:55
igli though you might get some good advice in #bash as well.02:56
Sasazuka joined02:56
bibiki error: failed to push some refs to 'c:/javaW....git'02:56
devoldmx left02:56
go1111111 left02:57
bibiki so it failes to push some refs... as the message says02:57
but I do git ls-remote02:57
rubyonra_ joined02:57
igli nothing before that?02:57
Poppabear left02:58
Zamerick left02:58
JuicyParsons joined02:58
bibiki nope... unless I skip "origin master"02:58
but that is just a warning02:58
Sasazuka left02:59
bibiki I even tried --force and it still fails02:59
rubyonrailed left02:59
igli that's git level, not fs level02:59
jagob joined02:59
ncthom91 joined02:59
Goplat joined03:00
jos3ph joined03:00
italoacasas left03:00
pantsman- joined03:00
bibiki so, any idea03:00
Sasazuka joined03:00
igli your problem appears to be lack of write permission, which is outside of git's scope. though idk what a ".git file" is, myself. (some windows thing?)03:00
perhaps someone else knows better, wrt windows03:01
nettoweb left03:02
boushi__ joined03:02
mehola joined03:02
italoacasas joined03:03
nafg_ joined03:03
bibiki it that which keeps track of changes. when you have the .git file you have the state of the tracked files03:03
like a database03:04
Guest95708 left03:04
rubyonrailed joined03:05
boushi_ left03:05
dreiss joined03:05
viper474 joined03:05
rubyonra_ left03:05
igli ok; it's a directory here.03:05
mehola left03:06
igli or a one-line file with the name of a directory after gitdir:03:06
diegoviola left03:07
diegoviola joined03:07
rubyonrailed left03:09
jeffreylevesque joined03:09
xtun left03:10
Vivekananda left03:10
xtun joined03:12
codedmart left03:12
bibiki left03:12
go1111111 joined03:13
localuser- left03:15
localuser- joined03:15
viper474 left03:16
CKyle left03:16
viper474 joined03:16
daivyk left03:16
thiago joined03:17
Psychiatrist left03:17
igli hmm i did: git branch -t upstream # which makes a rebasing branch as branch.autosetuprebase=local. however this made a commit on master, which 'upstream' now tracks.03:19
nnyk_ left03:20
igli how do i get it so 'upstream' and master have the same commit as origin/master?03:20
soreau joined03:21
pantsman- left03:24
igli hmm nm deleted it and reset master to remote/origin/master cid.03:26
diogenese left03:27
diogenese joined03:29
localuser- left03:30
localuser- joined03:30
xtun left03:31
lubarch joined03:33
italoacasas left03:34
Fudgie left03:34
madduck joined03:34
_cyril_ joined03:35
_cyril_ left03:40
viper474 left03:40
geri joined03:41
viper474 joined03:42
geri left03:43
viper474 left03:43
viper474 joined03:43
viper474 left03:44
viper474 joined03:45
FireArrow133 left03:49
s8321414 joined03:49
kp666 joined03:51
tfry left03:51
forbidden404 left03:52
devoldmx joined03:52
bronson left03:53
daito left03:53
dreiss left03:55
lubarch left03:55
NeverDie joined03:57
devoldmx left03:57
lethjakman-l left03:57
scarabx joined03:57
faux___ left04:00
devoldmx joined04:00
peoliye joined04:00
hahuang65 left04:01
nilg joined04:05
Dullin left04:08
viper474 left04:08
faux___ joined04:09
a3Dman left04:10
arescorpio left04:11
joki left04:12
CKyle joined04:13
mehola joined04:15
Manikandan joined04:15
joki joined04:18
a3Dman joined04:19
abacuspowers joined04:19
faux___ left04:20
smw_ left04:23
chipotle joined04:23
abacuspowers left04:24
sparetire_ left04:24
diegoviola left04:26
scarabx left04:26
skinux left04:28
chipotle left04:29
daito joined04:30
MarkyC joined04:31
Sasazuka left04:32
diego1 joined04:34
diego1 left04:34
diego1 joined04:34
diego1diegoviola04:34
MarkyC left04:36
chipotle joined04:36
_cyril_ joined04:36
ncthom91 left04:39
CKyle left04:39
dreiss joined04:40
_cyril_ left04:40
Noldorin left04:40
cerkauskas joined04:41
yqt left04:42
puff`` joined04:42
diegoviola left04:43
Sucks left04:46
gopar left04:46
xtun joined04:47
boombatower left04:47
puff``puff04:48
peoliye left04:50
Sucks joined04:50
peoliye joined04:50
jteneyck joined04:51
jteneyck left04:51
jteneyck joined04:51
gfixler joined04:52
JuicyParsons left04:53
bronson joined04:53
chucky_z left04:55
ahr3n left04:55
ffio left04:56
watabou joined04:56
hahuang65 joined04:57
bronson left04:58
puff left04:59
dermoth left05:00
dermoth joined05:00
Arsonide joined05:00
Arsonide So for no reason whatsoever, my pull option stopped working. It just hangs indefinitely, until I have to force git closed, delete the lock, and hard reset.05:01
I've waited on it for hours, it's not just being slow, it's getting stuck/frozen.05:01
rubyonrailed joined05:01
Arsonide It's a GUI option but I believe it's a fetch/rebase combo.05:01
hahuang65 left05:02
Arsonide and I believe the fetch is hanging05:02
when I type git fetch origin into the console, nothing happens05:02
toothrot left05:05
bburky joined05:10
fscala left05:11
fscala joined05:11
sgen left05:13
devoldmx left05:13
atrigent try -v? or examine traffic with wireshark? or talk to whoever is running the server?05:13
JackFruh left05:13
sdothum left05:14
zacg left05:15
cerkauskas left05:15
mokbu left05:16
zahlman joined05:16
zotherstupidguy joined05:16
zotherstupidguy left05:16
zotherstupidguy joined05:16
alanwill joined05:17
lindenle left05:17
ffio joined05:19
wallyduchamp joined05:19
alanwill left05:21
dreiss left05:21
arup_r joined05:22
anth0ny_ joined05:22
elementalest joined05:26
chipotle left05:27
chipotle joined05:28
lactose joined05:29
ayaz joined05:29
CussBot joined05:29
gitius joined05:30
gitius hello05:30
how do I checkout a specific tag?05:30
bronson joined05:30
gitius tag/release05:31
wallyduchamp left05:32
ixjlyons joined05:32
alanwill joined05:32
preaction git checkout <tag>05:33
johan_sun joined05:33
gitius by <tag>05:34
what do you mean05:34
on stackoverflow some people said tags/<tag_name>05:35
scarabx joined05:35
gitius that was from 2009 though05:35
samw left05:36
preaction just the tag...05:36
igli git tag -l # if you don't know them05:36
danmulvey left05:37
_cyril_ joined05:37
preaction also did you try what the stackoverflow thread said?05:37
the point of stackoverflow is to be a repository of knowledge05:37
samw joined05:39
aboseley left05:39
ojacobson snickers.05:39
akiva left05:39
danmulvey joined05:40
DolpheenDream left05:41
_cyril_ left05:41
weox left05:42
samw left05:43
aboseley joined05:43
igli left05:46
xtun left05:49
bronson left05:50
bronson joined05:51
Yeomra joined05:54
ashokrajar joined05:56
Wetmelon left05:56
rubyontails joined05:57
daito left05:58
alanwill left06:00
cagmz left06:02
scarabx left06:02
tpollard left06:03
daito joined06:03
sokolowitz joined06:05
MechtiIde joined06:05
circ-user-zsfzv joined06:07
dreiss joined06:09
diogenese left06:09
nafg_ left06:09
sokolowitz left06:09
diogenese joined06:10
s8321414 left06:11
rscata joined06:12
localuser- left06:13
Lyqyd left06:17
anli joined06:19
abacuspowers joined06:21
Samual joined06:23
Samual left06:23
Samual joined06:23
sublimateAuv06:25
abacuspowers left06:25
ShapeShifter499 joined06:26
circ-user-zsfzv I have got a situation where cherry-picking a similar commit kills my refactoring in current commit and when it does not, http://stackoverflow.com/questions/34187857. What are the rules?06:27
settermjd joined06:27
daito left06:28
ashokrajar left06:29
ashokrajar joined06:29
Auvsublimate06:31
MarkyC joined06:32
ashokrajar left06:34
stee joined06:34
ashokrajar joined06:35
MarkyC left06:37
_cyril_ joined06:37
Kicer86 joined06:40
_cyril_ left06:42
ash_work left06:43
Oog joined06:43
ashokrajar left06:43
ashokrajar joined06:44
Sucks left06:46
puff joined06:47
Sucks joined06:48
rubyonrailed left06:51
gopar joined06:51
bburky left06:53
xtun joined06:53
akshat left06:54
rubyontails left06:55
MechtiIde left06:57
nbdy joined06:57
Oog left06:57
dreiss left06:59
JuicyParsons joined07:00
ixjlyons left07:05
rnat joined07:05
olshevskiy87 joined07:05
josuebrunel joined07:05
puff left07:06
puff joined07:06
garples_ left07:07
garples joined07:07
garples left07:08
ahr3n joined07:08
sokolowitz joined07:10
andschwa joined07:10
ashokrajar left07:11
arup_r left07:15
garples joined07:15
jordanl1 joined07:16
jagob left07:17
ashokrajar joined07:17
thierryp_ joined07:18
arup_r joined07:20
roelmonnens joined07:20
mykespb joined07:21
acolson joined07:22
_nadim joined07:22
thierryp_ left07:24
dreiss joined07:24
chipotle left07:25
gitius left07:25
thierryp joined07:25
troulouliou_div2 joined07:27
howdoi joined07:27
puff` joined07:28
NeverDie left07:29
daito joined07:30
gopar left07:30
eijk joined07:30
puff left07:30
nafg joined07:30
freimatz joined07:31
circ-user-zsfzv Why does it tell you that the whole file is changed if only one line is different, http://stackoverflow.com/questions/34189779?07:34
daito left07:34
CausaMortis joined07:36
tfry joined07:36
geri joined07:37
_cyril_ joined07:38
geri left07:39
Alienpruts joined07:40
ThomasLocke joined07:42
_cyril_ left07:43
Gamecubic left07:44
Goplat left07:46
SimonNa joined07:46
ilogger2 joined08:15
DevAntoine joined08:15
monokrome joined08:19
arup_r joined08:21
thierryp joined08:21
dvaske joined08:22
arup_r left08:23
mithenks joined08:23
chandlerbing joined08:23
frsk joined08:26
Tekilla joined08:26
mokbu joined08:29
TomyWork joined08:29
Dullin joined08:29
arup_r joined08:30
darnir left08:30
jay-m joined08:31
ffio joined08:32
Ravana joined08:33
arup_r left08:33
leTali joined08:33
MarkyC joined08:33
snowdogs joined08:34
mwhooker joined08:34
_rgn Seveas: you around?08:34
rasto joined08:35
snowdogs Hi guys, I'm using Git in Netbeans and am confused about what the "Revision" field is for when creating a new branch. The doc says, "Type a specific revision of the selected item by entering a commit ID, existing branch, or tag name in the Revision field or press Select to view the list of revisions maintained in the repository." I really have no idea what that means though.08:35
nnyk_ joined08:35
arup_r joined08:36
snowdogs Can i just leave it on "master" if i want to eventually merge with master after working on the new branch?08:36
MarkyC left08:38
kurkale6ka joined08:38
geri joined08:38
_cyril_ joined08:39
nnyk_ left08:40
geri left08:42
jan_ We're havign loads of problems with git users on cygwin/windows. Workspaces corrupt all the time. I suspect it's the autoamtic garbage collection. gc.auto = 0 and receive.autogc = false are just the ones I need to never, ever run GC without the user explcitly asking for it, right?08:42
geri joined08:42
arup_r left08:44
_cyril_ left08:44
ac3takwas joined08:44
Seveas _rgn: sup?08:44
j416 circ-user-zsfzv: I also tried to answer your second question http://stackoverflow.com/a/34197218/187509208:45
Hounddog joined08:45
_rgn Seveas: it's related to git spindle, i was wondering how to use `git lab repos` outside a git repo with a private instance, couldn't find what the [options] meant in git lab [options] repos08:46
then i found http://seveas.github.io/git-spindle/accounts.html08:46
zeroed joined08:46
Seveas _rgn: 'git lab repos' doesn't need you to be in a repo to run it. If it does, that's a bug.08:47
_rgn it uses gitlab.com08:48
it wasn't obvious from `git lab` help output how to make it use a private instance08:48
Seveas it'll use your default account. If that's a gitlab.com account, it'll use that. If it's not a gitlab account it uses your instance08:48
settermjd joined08:48
_rgn oh08:48
circ-user-zsfzv j416: Why do you say that I want "no edit" in C if I commit into A?08:49
Seveas yes, git lab help could use some improvements there. git lab -h is actually better08:49
lg188 joined08:50
Seveas bug filed: https://github.com/seveas/git-spindle/issues/97 :)08:50
_rgn ah....08:50
i was trying git lab --help all along08:50
which just says No manual entry for git-lab08:50
Seveas I do ship manpages in the .deb packages08:51
but yeah, this all could be much better. The manpage doesn't even mention --account :/08:52
geri left08:53
_rgn so i think i had entry for [gitlab.com] in my .gitspindle, which made `git lab repos` use that by default08:53
and if i do `git lab repos` without that entry, it prompts for my gitlab username08:54
Seveas it uses the [gitlab] entry by default. If there's no host=foo in that section, it assumes gitlab.com08:54
_rgn i have no [gitlab] entry atm08:55
j416 circ-user-zsfzv: because git-cherr-pick does not fire up the editor by default, it is to match the behaviour of that.08:55
diegoviola joined08:55
_rgn just [gitlab "myprivateinstance"]08:55
j416 circ-user-zsfzv: see man git-commit and search for --no-edit08:55
gitinfo circ-user-zsfzv: the git-commit manpage is available at http://jk.gs/git-commit.html08:55
Balliad joined08:55
_rgn git lab --account myprivateinstance repos works, as expected08:55
git lab repos prompts for account details08:56
Seveas interesting08:56
acetakwas joined08:56
Seveas I think if a [gitlab] section does not exist, and no --account is given, it'll try to create a [gitlab]. I could change that to check if any [gitlab foo] sections exist and use that08:57
reim joined08:57
Seveas another bug filed.08:58
but for now just change [gitlab "myprivateinstance"] to [gitlab] and it should DTRT08:58
_rgn also, git lab --account private repos doesn't show my personal repos, it seems to only list repos from a particular namespace08:59
ac3takwas left08:59
puff`` joined08:59
Seveas do you have many repos?08:59
_rgn 4 personal ones08:59
Zenrium joined09:00
Seveas and in the namespace that it shows?09:00
_rgn repos output is 20 lines so maybe limited?09:00
Seveas that's what I'm thinking09:00
_rgn yeah09:00
Seveas pity. That means it's time to dig into glapi.py and see why that is09:02
dantix__ joined09:04
nettoweb joined09:04
acetakwas left09:05
clmsy joined09:05
DuckHuntDog joined09:07
doener joined09:07
reim left09:08
nnyk_ joined09:08
zeroed left09:09
DuckHuntDog Hi. I've created a feature branch where I've only changed something.js I've pushed the branch and made a pull request. Now what I had to pull some new stuff from origin/master it suddenly says "your local changes would be overritten by merge: something.js"09:10
And I can't build my project before I do a pull...09:10
zeroed joined09:11
DuckHuntDog How does git not recognize that the something.js in my branch is newer than the one in origin/master which is 4 months old?09:11
dantix__dantix09:12
masak DuckHuntDog: maybe you don't have tracking/upstream set?09:12
geri joined09:12
marcogmonteiro joined09:12
DavidDudson joined09:14
Seveas DuckHuntDog: you didn't commit your changes to something.js09:14
Kingsy joined09:15
cyphase joined09:16
j416 jan_: corrupt in what way?09:19
clmsy left09:19
Corosus joined09:20
rasto left09:21
jokajak joined09:21
Macaveli joined09:22
nikio_ joined09:22
localuser- joined09:23
nikio_ why am i logged in as some user when i do ssh -T [email@hidden.address]09:23
?09:23
MrWoohoo joined09:24
MrWoohoo2 joined09:24
rivarun joined09:25
fscala joined09:25
thierryp left09:25
Seveas because they recognize you based on your ssh key09:25
j416 nikio_: because you are using your ssh key to do that, and your ssh key tells bitbucket who you are09:25
canton7 nikio_, bitbucket will look at the ssh key you present, and uses that to decide what user you're authenticating as09:25
*ting ting ting* triple combo!09:25
j416 it seems we are in agreement yay09:25
nikio_ but what if i just give a key that i use in some other site09:26
jokajak left09:26
nikio_ lets say i add it to one of my bit bucket accounts09:26
j416 nikio_: then it won't recognise you unless they have that key as well09:26
nikio_ they do09:26
adac joined09:26
nnyk_ left09:26
nikio_ maybe im using the wrong key09:26
what decides which key is being used when i do ssh -T [email@hidden.address]09:27
?09:27
silverslide joined09:28
mokbu left09:28
j416 nikio_: it will try all your keys until it finds one that works09:28
neunon joined09:29
dvaske left09:29
silverslide left09:29
maxorator joined09:30
jokajak joined09:31
jan_ j416: just, broken , like, fatal: unable to read bc18... and sometimes clients have fatal: unable to read tree 58... Or even just files disappearing from the working tree (we know for sure that git (on windows) can't properly update a file that's being held upen by another process)09:32
git in windows is a mess09:32
j416 jan_: eek.09:32
GT4066 joined09:32
j416 jan_: sounds like some external thing that is interfering, anti-virus software or the like? hm09:32
backup thing maybe09:32
nikio_ -.- well its not working, i added some key to my bitbucket account but its telling me im logged in as someone else09:32
and i cant connect to the remote repo09:33
vurma joined09:33
jan_ those all have been disabled, or at least said to not watch any of the git working trees/repositories.09:33
j416 jan_: odd :/ switch to unix? :P09:33
jan_ j416: that would be the EASY way out ;-)09:34
MarkyC joined09:34
j416 jan_: go for it! :D09:34
jan_ but unfortunately I can't do that.09:34
j416 nikio_: did you remove the original key?09:34
jan_: git-bash worked well for me when I was on windows, never got cygwin to work nicely09:34
rasto joined09:35
j416 jan_: not sure if it changes things but maybe worth a try09:35
(i.e. mingw)09:35
nikio_ nope09:35
but now i removed all keys from .ssh09:35
jan_ it shouldn't matter from where it's ran.09:35
nikio_ ssh -T [email@hidden.address] is still telling me i am logged in09:35
even though i removed the keys09:35
j416 jan_: true, but when you're at "I'll just try turning it off and on again", anything may be worth trying :D09:36
moritz nikio_: does 'ssh-add -l' list the key?09:36
xtun joined09:36
jan_ j416: if it were in my workspaces, I'd debug it like hell, but this in other peoples machines and they don't care about the machanics,it just has to work09:36
nikio_ yes it does09:37
j416 jan_: :/ good luck with it anyway.09:37
jan_ j416: I just migrated 300+ devs from CVS to git, and it was HELL09:37
nikio_ even though its not there09:37
moritz nikio_: well, ssh-agent holds keys in memory09:37
j416 jan_: been there tried that, failed, you're awesome :D09:37
nikio_ how can i log in09:37
moritz nikio_: you can use ssh-add -d to remove them from memory09:37
nikio_ log out09:37
moritz nikio_: man ssh-add09:38
nikio_ sh.exe": man: command not found09:38
j416 (but more like 5, not 300.. oh well)09:38
MarkyC left09:38
colli5ion joined09:38
wiky joined09:39
_cyril_ joined09:40
jstimm joined09:40
radsy joined09:41
geri left09:42
cognoscente joined09:42
MacaveliMac|AFK09:42
nnyk_ joined09:43
DuckHuntDog left09:44
_cyril_ left09:44
nikio_ ok I had to delete the identity09:46
Anticom joined09:46
nikio_ and add the right one09:46
as I thought09:46
thanks for the help09:46
rinwa joined09:46
mwhooker left09:51
filisko joined09:51
sbasso joined09:52
Seveas moritz: if one uses gnome-keyring as ssh agent (the default in gnomish environments) ssh-add -d is actually a noop. Frustratingly.09:53
moritz Seveas: a. TIL. (I tend to use fvwm2 personally)09:53
cyphase left09:55
reim joined09:57
s8321414 joined09:58
cognoscente left09:58
cognoscente joined09:59
neunon left10:00
aendrew joined10:01
XDS2010 joined10:02
neunon joined10:02
boxrick1 joined10:03
barq joined10:03
tfnico joined10:03
mjbrender joined10:03
ec joined10:03
weox joined10:04
rendar joined10:06
reim left10:07
arnatal joined10:08
BrianBlaze420 joined10:08
abacuspowers joined10:09
_rgn Seveas: how do you select namespace with `git lab create`?10:12
it uses my personal namespace by default10:12
cyphase joined10:12
mischat joined10:12
mischat left10:12
mischat_ joined10:12
Seveas _rgn: you don't. You like pointing out missing features, don't you? :)10:13
_rgn heh guess o10:13
abacuspowers left10:14
Seveas hah, beat you to it10:14
https://github.com/seveas/git-spindle/issues/99 vs https://github.com/seveas/git-spindle/issues/10010:14
Corosus left10:15
localuser- left10:15
DavidDudson left10:15
ffio left10:15
localuser- joined10:15
Corosus joined10:16
localuser- left10:18
localuser- joined10:18
_rgn need to move repos from enterprise github to private gitlab and trying to do as much as possible in cli10:20
phil22 joined10:20
phil22 hello10:20
led_belly joined10:21
phil22 right now I'm using bug/_descriptive_name as branch naming convention10:21
notebox joined10:21
phil22 is it a good thing to add a date to it?10:21
when I have many branches, I don't know which is old, which is new etc10:22
daito joined10:22
diegoviola left10:23
_ikke_ you can used things like git branch --merged to see which branches are part of the current branch, and should be able to removed safely10:24
Seveas phil22: I wouldn't do that. It's easy to see the last commit for each branch10:25
git for-each-ref --format '%(authordate) %(refname) %(subject)' refs/heads10:25
tvw joined10:26
puff`` left10:28
rnsanchez joined10:28
ssarah joined10:28
Ragnar joined10:29
Corosus left10:29
bronson joined10:29
lg188 left10:30
codeman joined10:32
mkoskar joined10:32
phil22 mmmh ok10:32
sounds reasonable10:32
daito left10:32
bronson left10:34
MarkyC joined10:34
netcarver joined10:35
ffio joined10:35
radsy left10:36
MarkyC left10:39
dharriga1 joined10:39
triad joined10:39
s8321414 left10:40
_cyril_ joined10:41
tinajohnson__ joined10:41
fracting joined10:41
localuser- left10:42
localuser- joined10:42
skylite joined10:43
zarubin joined10:43
_cyril_ left10:45
zarubin left10:47
mkoskar left10:48
sokolowitz joined10:48
mkoskar joined10:48
rinwa left10:49
GT4066 left10:51
dopesong joined10:51
fracting left10:51
wiky left10:52
leeN joined10:52
nfk|laptop joined10:53
nnyk joined10:54
tg joined10:55
nnyk_ left10:56
netcarver left10:56
Sendoushi joined10:56
nnyk left10:59
wyoung joined11:00
Sendoushi left11:00
localuser- left11:00
wyoung hey, how does one split a repo into two seperate ones? I only want to retain history of files being moved to new repo.11:00
localuser- joined11:00
wireshark joined11:01
Psychiatrist joined11:02
cognoscente left11:02
rom1504 using git filter-branch11:02
something similar to http://stackoverflow.com/questions/4042816/how-can-i-rewrite-history-so-that-all-files-except-the-ones-i-already-moved-ar11:02
fracting joined11:03
rom1504 (1. copy original repo A/ into a B/ (and possibly a Backup/ too) 2. remove files from commits in A/ and B/ using filter-branch)11:03
nnyk joined11:04
mehola joined11:04
Tekilla left11:05
s8321414 joined11:05
shiriru joined11:06
wireshark left11:06
triad left11:07
Zenrium left11:07
Zenrium joined11:08
funfunctor joined11:09
elastix joined11:09
mehola left11:10
Sendoushi joined11:11
InfoTest joined11:11
loren joined11:11
elastix left11:13
xelxebar joined11:14
maxorator left11:15
maxorator joined11:15
presto joined11:15
maxorator left11:15
xtun left11:17
reim joined11:17
snowdogs left11:19
Seveas wyoung: git filter-branch or git subtree split11:20
leeN left11:20
triad joined11:20
leeN joined11:21
a3Dman joined11:21
shiriru left11:22
reim left11:23
jnavila_ joined11:23
daivyk joined11:28
fdv git svn fetch spits out warnings about empty directories. does anybody know of a way to remove these warnings?11:29
(W: -empty_dir / W: +empty_dir)11:30
dangerousdave joined11:30
freimatz joined11:31
fdv I'm running this in cron job, and I'd like those warnings not to trigger an email11:31
so I redirect stdout to /dev/null, but these warnings are sent on stderr11:32
sent *to* stderr11:32
daito joined11:33
Balliad left11:34
MarkyC joined11:35
xtun joined11:36
Psychiatrist left11:36
xtun left11:37
xtun joined11:37
daito left11:37
xtun left11:37
xtun joined11:38
staafl joined11:38
geri joined11:39
staafl What's a good single verb to describe commit+push?11:39
MarkyC left11:40
phil22 left11:40
_cyril_ joined11:41
fdv share?11:41
Psychiatrist joined11:42
DevAntoine left11:42
xtun left11:42
xtun joined11:43
zarubin joined11:43
_cyril_ left11:47
danmulvey joined11:47
zarubin left11:48
[Brain] joined11:48
fdv staafl: ^11:49
jost joined11:49
sbasso left11:49
staafl fdv, not quite what I'm looking for.11:50
fdv by all means ;)11:50
staafl It's usually in the context of emails etc where you want to say "do etc in some project then commit and push it"11:50
fdv sounds like sharing to me ;)11:51
staafl But "commit and push" sounds too clumsy for what's an extremely common sequence of connected operations11:51
fdv but of course, it's a little more11:51
_nadim joined11:52
staafl Hmm... well, someone just asked me how to split a folder into a separate repo and I told him to just copy the repo, delete the other folders and "commit and push"11:52
mellernoia joined11:52
staafl In this case it's not really "sharing" since sharing implies someone else11:53
craigp joined11:53
fdv good point11:53
nfk|laptop left11:53
fdv just "push"?11:54
(which would imply commit)11:54
staafl fdv, yeah, that's might be the best option11:55
fdv personally, I'd go for commit & push11:55
it's explicit11:56
Manikandan joined11:56
nfk|laptop joined12:02
devoldmx joined12:03
elastix joined12:03
localuser- left12:04
localuser- joined12:04
nnyk left12:07
wyoung Seveas: thnx bud12:07
devoldmx left12:07
circ-user-zsfzv joined12:08
circ-user-zsfzv I have noticed that I do not see a couple of important commits done during several last days. Can I restore them?12:09
fracting left12:09
abacuspowers joined12:10
funfunctor left12:10
nnyk joined12:12
lolmaus joined12:12
lolmaus I've made commits A, B, C. Then I realized there was a problem in A and B. Can I make commits D and E and squash them into A and B respectively? E. g. AD, BE, C.12:13
fdv as long as you haven't pushed12:13
lolmaus fdv: I don't mind `push -f`, I'm in a fork and in a feature branch.12:14
fdv if you have, you'll need to force push after such a change12:14
ok12:14
lolmaus fdv, I only know how to squash sequential commits.12:14
fdv as long as you don't have other users (or you don't care about them) ;-)12:14
yes, but you change their order12:14
...first12:15
harish_ joined12:15
fdv rebase --interactive12:15
abacuspowers left12:16
fdv So 'pick A; pick B; pick C; pick D; pick E' becomes 'pick A; pick D; pick B; pick E; pick C', then 'pick A; squash D; pick B; squash E; pick C'12:17
lolmaus fdv, do you mean I should do two rebases? Or both steps can be done in one rebase?12:20
denisMone joined12:20
lolmaus Dang it, it won't accept the different order. :(12:22
Says "could not apply"12:22
ulkesh joined12:23
fracting joined12:24
jay-m left12:25
fdv lolmaus: one rebase is fine12:25
but, as you noticed, they need to apply12:25
InfoTest left12:25
fdv lolmaus: create a new branch from A, apply D, B, E and C, and fix problems as you go along, then rename the branches (and set up default push branches as necessary)12:26
jay-m joined12:27
fdv remember it's just a DAG ;)12:27
lindenle joined12:27
Psychiatrist left12:27
fracting left12:29
bronson joined12:29
zotherstupidguy joined12:31
lindenle left12:33
bronson left12:34
dvaske joined12:38
notebox left12:39
reim joined12:39
notebox joined12:39
xelxebar_ joined12:40
notebox left12:40
_cyril_ joined12:42
Jackneill joined12:42
fracting joined12:42
irqq joined12:43
xelxebar left12:43
localuser- left12:46
Manikandan left12:46
_cyril_ left12:47
fabio joined12:47
lubarch joined12:48
fabio left12:49
colli5ion left12:50
xfbs joined12:50
elastix left12:50
roelmonnens joined12:52
acolson joined12:52
kadoban joined12:53
sdothum joined12:53
Norm_ joined12:54
taru- joined12:55
gravitron_ joined12:55
Norm_Norm12:55
ajpiano joined12:55
littlebe1r joined12:56
overcast joined12:56
danmulvey left12:56
_xelxebar joined12:56
sgambino joined12:56
circ-user-zsfzv left12:56
circ-user-zsfzv joined12:57
akkad joined12:57
ygeLN joined12:58
legumbre joined12:58
yonatankoren joined12:58
faux___ joined12:58
Olipro joined12:59
fstd joined12:59
xelxebar_ left12:59
kam270 joined13:01
DevAntoine joined13:02
ac3takwas joined13:02
ac3takwas left13:03
faux___ left13:03
irqq left13:04
faux___ joined13:04
Anticom left13:07
synthroid joined13:07
Derega joined13:09
DevAntoine hi13:10
petaflot joined13:11
Musok joined13:12
xelxebar joined13:12
Sendoushi left13:12
shiriru joined13:14
petaflot left13:14
_xelxebar left13:14
d0nn1e joined13:17
sebbel joined13:17
kappy joined13:17
DevAntoine I've switch branch with unstaged files in the stash, I've then pop the stash but I have conflicts. I want to go back to the previous branch to avoid all this conflict. I tried to use git reset --hard with git reflog but it did worse, I lose these conflicted files, I don't know what happened oO I wanted to go back to the last line of this gist: https://gist.github.com/anonymous/2dca8996ff5871956d4413:18
ac3takwas joined13:19
atomicb0mb joined13:19
catsup joined13:20
josuebrunel joined13:22
vurma left13:23
sdothum left13:24
sdothum joined13:25
malesca joined13:26
roygbiv joined13:26
fracting left13:28
dvaske_ joined13:28
InfoTest joined13:29
dvaske__ joined13:29
dvaske left13:29
jonno11 joined13:30
JanC joined13:30
xelxebar_ joined13:31
dvaske_ left13:33
xelxebar left13:33
jteneyck joined13:34
jteneyck left13:34
jteneyck joined13:34
konr joined13:35
ac3takwas left13:37
loren left13:37
DolpheenDream joined13:37
jteneyck left13:39
Musok left13:39
mellernoia-work joined13:40
fracting joined13:40
mellernoia left13:41
mischat_ left13:41
mischat joined13:41
_cyril_ joined13:43
wrouesnel1 joined13:44
lubarch left13:45
DARSCODE joined13:46
_nadim left13:46
xelxebar_ left13:46
Sendoushi joined13:46
_nadim joined13:46
xelxebar joined13:46
_cyril_ left13:48
DevAntoine anyone?13:48
nafg_ joined13:49
abc123_ joined13:50
algae joined13:51
justanotheruser joined13:51
dzho DevAntoine: do you have any remaining uncommitted files?13:51
faux___ left13:52
cspotcode joined13:52
David1977|2 joined13:52
timmu joined13:52
elmcrest joined13:52
huhlig joined13:52
lonelearner joined13:53
ionelmc joined13:53
DevAntoine dzho: everything disappeared. I checkout back to the previous branch, did another git stash pop without believing and I get back all my files oO13:53
dzho so, you have what you want, now?13:53
B0ltzy joined13:54
lonelearner How can I revert a git repo (local only; not shared with anyone) to an earlier commit such that there is no evidence of any commits after the revert point?13:54
I tried git reset --hard but I can still see the commits I wanted to lose using `git show`13:55
nvahalik joined13:55
zeroed left13:56
fracting left13:56
colli5ion joined13:57
gnarf left13:57
rdnt joined13:58
cebor joined13:58
Nikhil_D joined13:58
marscher joined13:59
jrm joined13:59
jrm left13:59
jrm joined13:59
cloudcell__ joined13:59
Laaw joined14:00
denisMone left14:00
dstarh joined14:00
nurupo joined14:00
nettoweb left14:00
slick joined14:00
Kobaz left14:00
Gamecubic joined14:00
gnarf joined14:01
italoacasas joined14:02
dzho lonelearner: maybe you want to git reset --hard <commit>14:02
lonelearner dzho: like I explained above, I already tried that but I can still see the old commits that I wanted to lose using `git show` and `git log`.14:03
italoacasas left14:03
Kobaz joined14:03
italoacasas joined14:03
loren joined14:04
devoldmx joined14:04
daito joined14:04
krawchyk joined14:05
cebor left14:05
dzho lonelearner: sorry, initially you didn't say you specified a commit argument, so I couldn't tell.14:05
David1977|2David197714:05
cebor joined14:06
scarabx joined14:06
mezod joined14:06
lonelearner dzho: sorry about that. I should have mentioned. indeed I tried `git reset --hard <old_commit>` but I can still view `git show <older_commit>`14:06
dzho weird14:06
this is all on master, or what?14:06
lykinsbd joined14:07
s8321414 left14:07
cebor left14:08
devoldmx left14:08
zeroed joined14:08
daito left14:09
fracting joined14:10
Ragnar left14:10
AaronMT joined14:10
cebor joined14:11
ilmari lonelearner: git keeps unreferenced objects for two weeks by default. you can 'git gc --prune=all' to delete them14:12
abacuspowers joined14:12
ilmari that will delete all commits not referenced by a tag or branch14:13
ac3takwas joined14:14
DaddyEric joined14:14
lonelearner ilmari, I ran `git gc --prune=all`. I can still see `git show <newer_commit>`.14:14
ogelami joined14:15
marscher left14:15
mrkake joined14:15
loren left14:15
lykinsbd_ joined14:15
kappy left14:15
ilmari lonelearner: does 'git tag --contains <newer_commit>' or 'git branch --contains <newer_commit>' show anything?14:15
quenode joined14:15
lonelearner let me check14:15
no output for both commands14:16
Poppa joined14:16
_Vi joined14:17
abacuspowers left14:17
ac3takwas left14:17
Ldip joined14:17
dvaske__ left14:17
ogelami i'm trying to migrate from svn to git, and by doing "git svn clone [repourl] --no-metadata -A users.txt -s [project name]" i get "Author: [email address] not defined in users.txt file", but i have indeed added that name to users.txt like "[username] = [fullname] <[email address]>"14:17
lykinsbd left14:18
ogelami any clue what i might have done wrong? google gave me plenty of results, but most of them being users that have the wrong format in the authors-file14:19
notebox joined14:19
notebox left14:20
jonno11 left14:21
notebox joined14:21
atomicb0mb left14:21
ncthom91 joined14:21
ac3takwas joined14:21
dopesong left14:25
King_Hual joined14:25
King_Hual left14:25
King_Hual joined14:25
dopesong joined14:26
King_Hual left14:26
King_Hual joined14:26
King_Hual left14:26
King_Hual joined14:26
ac3takwas left14:28
anth0ny_ joined14:31
chitopunk joined14:32
Koire joined14:32
User458764 joined14:33
_cyril_ joined14:33
BBBThunda joined14:34
JohnMaximilian_ joined14:34
ncthom91 left14:34
atomicb0mb joined14:34
mizu_no_oto joined14:34
MarkyC joined14:35
courrier Hey guys I've created a all_packages repo that contains submodules to repos package1, package2, but it looks like all_packages tracks a specific commit e.g. package2@c2d8fbd, can I make it pointing to the last available version?14:36
reim left14:37
bonswouar joined14:38
nvahalik left14:38
nvahalik joined14:39
cbonobo joined14:39
lubarch joined14:40
jonno11 joined14:41
canton7 no. that's not how submodules work14:41
B0ltzy left14:42
zarubin joined14:43
OliverJAsh joined14:44
jonno11 left14:45
raven-au joined14:46
petaflot joined14:46
zarubin left14:48
relipse joined14:49
Sasazuka joined14:50
petaflot left14:50
kpease joined14:51
kpease left14:52
josuebrunel left14:53
Sucks joined14:53
David1977 left14:54
jonno11 joined14:54
italoacasas left14:54
B0ltzy joined14:54
kpease joined14:54
jonno11 left14:54
lubarch left14:55
fredbob joined14:55
faux___ joined14:55
lubarch joined14:55
sebbel left14:55
italoacasas joined14:55
B0ltzy left14:56
lubarch left14:56
lubarch joined14:56
akshat joined14:57
akshat left14:58
courrier canton7: so we can't point to HEAD?14:58
canton7 courrier, correct14:58
paulweb515 joined14:59
courrier ok thanks canton7 :)14:59
canton7 submodules are intended for including third-party dependencies. so you will want version X of library Y14:59
paulweb515 left14:59
paulweb515 joined14:59
Sucks left15:00
xfbs left15:01
B0ltzy joined15:01
littlebe1r left15:02
fredbob left15:02
courrier Yeah I see, I was more looking for something to download and pull the laster version of many repos at once15:02
uri_ joined15:03
Sceorem_ joined15:04
Vile joined15:04
Vile left15:04
troulouliou_div2 courrier, use submodukes15:04
courrier, check git submodule foreach15:05
B0ltzy left15:06
Sceorem__ joined15:06
mehola joined15:06
Dougie187 joined15:06
troulouliou_div2 courrier, git internaly store in the tree the commit revision of the submodule, so after upgrade jus tcommit the new revision15:09
courrier troulouliou_div2: yeah, ok thanks :)15:10
AaronMT left15:10
petersr joined15:10
Sceorem_ left15:10
User458764 left15:10
troulouliou_div2 courrier, use somethign liek this : git ls-tree master:<path-to-directory-containing-submodule>15:11
and youll notice that the stored value is the commut revision of your submodule15:11
sokolowitz left15:11
AaronMT joined15:11
mehola left15:11
fuchsi joined15:11
phaleth joined15:11
Sendoushi left15:12
ajf- joined15:13
Sucks joined15:13
lubarch left15:14
lubarch joined15:14
JosephSilber joined15:14
ncthom91 joined15:15
noark9 joined15:17
skylite left15:17
lubarch left15:18
fairuz joined15:19
lubarch joined15:19
sbasso joined15:19
xfbs joined15:19
mischat left15:19
Guest72694 joined15:21
Spacew00t joined15:21
frem joined15:21
fairuz left15:21
jceb joined15:21
Guest72694 left15:22
xfbs left15:22
IrishPrime joined15:22
luksaur joined15:22
xfbs joined15:23
Sendoushi joined15:24
xfbs_ joined15:25
lykinsbd joined15:26
rwb joined15:27
sbasso left15:28
xfbs left15:28
xfbs_ left15:29
cyphase left15:29
lykinsbd_ left15:30
anth0ny_ left15:30
hobodave joined15:31
sbasso joined15:31
settermjd left15:31
toogley joined15:32
Noldorin joined15:32
lonelearner left15:32
bronson joined15:33
govg_ joined15:34
_cyril_ left15:34
h3x89 joined15:34
gitinfo set mode: +v15:35
h3x89 Hi all15:35
gitinfo h3x89: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.15:35
ac3takwas joined15:36
ajf- left15:36
acetakwas joined15:36
NeverDie joined15:37
acetakwas left15:37
e7d joined15:37
bronson left15:38
sbasso left15:39
cyphase joined15:41
thiago joined15:41
scarabx left15:42
hobodave left15:42
scarabx joined15:42
ixjlyons joined15:43
fracting left15:45
guardian hello, I would like to rebase my current branch to origin/foo -- however, instead of rebasing from the common ancestor of my current branch and origin/foo, I would like to rebase from a specific SHA115:46
geri left15:46
colli5ion left15:46
govg_ left15:46
cyphase left15:46
rubyonrailed joined15:47
kadoban guardian: That's what the invocation with both and upstream and an --onto is for15:48
s/both and/both an/15:48
sparetire_ joined15:48
shiriru left15:48
inamoriti joined15:48
editshare-ericf joined15:49
canton7 guardian, take a look at the diagrams in man git rebase - find the diagram which matches the operation you want to do, and look at the command associated with it15:49
gitinfo guardian: the git-rebase manpage is available at http://jk.gs/git-rebase.html15:49
petersr left15:49
akshat joined15:50
guardian thanks gonna read that again15:50
at least that doesn't sound like a strange request to you15:50
Sasazuka left15:50
xelxebar_ joined15:50
_cyril_ joined15:50
canton7 it's the one starting "Here is how you would transplant a topic branch based on one branch to anothe"15:51
kadoban guardian: Naw, it's pretty common. And yeah the rebase manpage is really good.15:51
AaronMT left15:52
govg_ joined15:52
josuebrunel joined15:52
reim joined15:53
InfoTest left15:53
xelxebar left15:54
acetakwas joined15:54
gancl joined15:54
acetakwas left15:55
Sucks left15:55
acetakwas joined15:56
petaflot joined15:57
acetakwas left15:57
acetakwas joined15:57
Sucks joined15:58
acetakwas left15:58
fracting joined15:59
Ahmed90 joined15:59
acetakwas joined15:59
fredbob joined16:00
kzisme joined16:01
skul joined16:01
acolson left16:01
lubarch left16:02
lubarch joined16:02
lubarch left16:03
dopesong left16:03
noteness joined16:04
fredbob left16:04
Noldorin left16:04
Technocrat7 joined16:04
govg_ left16:04
rubyonrailed left16:05
devoldmx joined16:05
h3x89 left16:05
JosephSilber How can I change the date on the last x commits, to now?16:05
Darcidride joined16:05
daito joined16:05
JosephSilber I understand that I'll be rewriting history...16:05
Stuff has been pushed.16:05
elastix joined16:05
thiago left16:06
kadoban JosephSilber: … don't? But you probably want filter-branch with env-filter I think, and might have to do a bit of plumbing after that.16:06
govg_ joined16:06
lubarch joined16:06
CKyle joined16:07
phrozensilver joined16:07
Darcidride left16:09
devoldmx left16:09
_cyril_ left16:09
hackel joined16:09
daito left16:09
JosephSilber kadoban, turns out a simple git rebase -i HEAD^x did it.16:10
roelmonnens left16:10
JosephSilber I set the first commit to "edit", then tweaked its message a drop.16:10
Now all newer commits are new commits, so they're all created now.16:11
sbasso joined16:11
roelmonnens joined16:11
Darcidride joined16:11
roelmonnens left16:12
kadoban Ah, nice.16:12
roelmonnens joined16:12
roelmonnens left16:12
abacuspowers joined16:13
PCatinean joined16:14
Sceorem__ left16:15
lykinsbd left16:16
abc123 joined16:17
slick left16:17
reim left16:17
gnarf left16:18
abacuspowers left16:19
cydrobolt joined16:19
cydrobolt left16:19
cydrobolt joined16:19
slick joined16:19
abc123_ left16:19
abc123abc123_16:19
KettleCookedWork joined16:19
h3x89 joined16:19
vogt joined16:19
Technocrat786 joined16:20
happy-dude joined16:21
KettleCookedDude joined16:21
_cyril_ joined16:21
Technocrat7 left16:22
weox left16:22
User458764 joined16:22
Darcidride left16:22
CausaMortis joined16:22
rubyonrailed joined16:23
gnarf joined16:23
gancl left16:23
xtun left16:24
samort7 joined16:24
KettleCookedWork left16:25
crose joined16:26
Es0teric joined16:26
kfpratt joined16:27
toogley left16:27
kfpratt left16:28
synthroid left16:28
kegster joined16:29
lindenle joined16:29
CausaMortis left16:31
craigp left16:31
phantombeta joined16:32
cagmz joined16:32
LeBlaaanc joined16:33
mmlb joined16:34
lindenle left16:34
lubarch left16:34
lubarch joined16:34
moei joined16:35
elastix left16:35
sbasso left16:36
hobodave joined16:36
mkoskar left16:37
sbasso joined16:38
kevwil joined16:39
davidosomething joined16:39
MechtiIde joined16:40
dreiss joined16:40
elastix joined16:42
zarubin joined16:43
madewokherd joined16:44
lubarch left16:44
lubarch joined16:44
lubarch left16:44
lubarch joined16:44
[Brain] left16:44
nfk|laptop left16:45
lubarch left16:45
uri_ left16:45
lubarch joined16:46
lubarch left16:46
lubarch joined16:46
uri_ joined16:46
synthroid joined16:46
Sasazuka joined16:46
Sucks left16:47
Karkus joined16:48
Wetmelon joined16:48
bonswouar left16:48
zarubin left16:48
KettleCookedWork joined16:48
s00pcan joined16:48
espindola joined16:49
LeBlaaanc left16:49
LeBlaaanc joined16:50
cousteau joined16:51
thiago joined16:51
beastd joined16:52
xelxebar_xelxebar16:52
KettleCookedDude left16:52
tag joined16:54
Koire left16:55
tag left16:55
tag joined16:55
Techno786 joined16:56
sbasso left16:57
reim joined16:57
thiago left16:57
coolno1 joined16:57
gitinfo set mode: +v16:58
coolno1 hello16:58
gitinfo coolno1: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.16:58
coolno1 hello16:58
a newbie here16:58
Need some help16:58
I am working on patch and have created another branch something like "bug/<bug_id>"16:59
I have already submitted one patch set and I am working on improving it further to submit 2nd patch set16:59
Technocrat786 left16:59
nnyk left17:00
s00pcan left17:00
coolno1 but before that I want to rebase to the master17:00
and than rerun my patch against unit test, functional test17:00
how do go about this17:00
waveclaw joined17:00
ilmari git checkout master; git pull; git checkout yourbranch; git rebase master17:01
thiago joined17:01
scarabx left17:01
noark9 left17:02
s00pcan joined17:02
uri_ left17:03
jnavila_ left17:03
coolno1 ilmari, thanks for this17:03
DolpheenDream left17:03
coolno1 git pull --rebase origin master17:04
ilmari , can this command be also used git pull --rebase origin master17:04
scarabx joined17:04
_uri_ joined17:04
coolno1 ilmari, how can I save my existing changes in a patch file17:04
just to take a backup17:04
and if something goes wrong I will reapply the changes on the existing branch17:05
waveclaw left17:05
_uri_ left17:06
ilmari git branch yourbranch-backup17:06
Mac|AFK left17:06
samw joined17:08
adac left17:09
_uri_ joined17:09
skylite joined17:09
_uri_ left17:09
DevAntoine left17:09
_uri_ joined17:09
OliverJAsh left17:10
tag left17:10
ig0r_ joined17:11
sokolowitz joined17:12
hobodave left17:12
coolno1 left17:12
Manikandan joined17:13
cdg joined17:13
PCatinean left17:14
dantix left17:15
hyperair joined17:15
h3x89 left17:15
jay-m left17:15
noteness left17:16
kaiza joined17:16
kzisme left17:16
sokolowitz left17:17
_Vi left17:18
Dougie187 left17:18
noteness joined17:18
coolno1 joined17:19
reim left17:19
jonmasters joined17:19
gitinfo set mode: +v17:19
coolno1 I have still not achieved the desired result17:19
ExeciN does my pull-n-build.sh script look sensible? https://gist.github.com/anonymous/8dd6b773ae577d7ee2da17:20
coolno1 my master is updated with all the changes17:20
akushner joined17:20
tomtix joined17:20
coolno1 but my local branch is not having the changes to the master17:20
The_Phoenix joined17:21
zacg joined17:21
zacg left17:21
zacg joined17:21
mithenks left17:22
UmbraMalison joined17:22
Corosus joined17:22
toogley joined17:23
bremner ExeciN: without looking, pulling in a script is usually not sensible because of potential conflicts17:23
ExeciN bremner: I am cleaning it first17:24
nettoweb joined17:25
OctoBanana joined17:25
Techno786 left17:26
LeBlaaanc left17:28
jceb left17:28
LeBlaaanc joined17:29
justanotheruser left17:29
atomicb0mb left17:30
Technocrat7 joined17:31
dopesong joined17:31
samort7 left17:33
ExeciN oh I wrote git -fd instead of git clean -fd17:33
justanotheruser joined17:33
faux___ left17:34
atomicb0mb joined17:34
hobodave joined17:35
Noldorin joined17:36
hyperair left17:36
OctoBanana left17:36
kurkale6ka left17:36
Sendoushi left17:37
rubyonrailed left17:37
anth0ny joined17:38
imachuchu joined17:39
bremner ExeciN: conflicts are related to merging, not cleaning.17:39
waveclaw joined17:39
ncthom91 left17:39
Anderson69s_Deb joined17:40
faux___ joined17:40
arup_r joined17:40
Anderson69s_Deb left17:40
thiago left17:41
codedmart joined17:41
Noldorin left17:42
zeroed left17:42
mDuff joined17:42
zacg left17:43
zarubin joined17:43
Anderson69s_Deb joined17:43
waveclaw left17:44
ogelami left17:44
faux___ left17:45
jagob joined17:45
codedmart left17:45
lindenle joined17:46
faux___ joined17:46
ncthom91 joined17:47
bronson joined17:47
zarubin left17:48
ogelami joined17:51
faux___ left17:51
faux___ joined17:52
atomicb0mb left17:53
TomyWork left17:53
editshare-ericf left17:55
reim joined17:55
faux___ left17:57
inamoriti left17:57
scarabx left17:57
elastix left17:58
noteness left17:58
elastix joined17:58
faux___ joined17:59
waveclaw joined17:59
freimatz left18:00
wrouesnel1 left18:00
Technocrat7 left18:00
noteness joined18:00
durham joined18:01
rubyonrailed joined18:01
hyperair joined18:01
dstarh left18:02
Sendoushi joined18:02
lubarch left18:02
faux___ left18:03
waveclaw left18:04
d0nn1e left18:05
faux___ joined18:05
d0nn1e joined18:05
devoldmx joined18:05
lubarch joined18:05
lubarch left18:05
lubarch joined18:05
daito joined18:06
settermjd joined18:06
settermjd left18:06
rubyonrailed left18:07
hobodave left18:08
Oebele joined18:08
elastix left18:09
skarm joined18:09
User458764 left18:09
faux___ left18:09
devoldmx left18:10
nydel07 joined18:10
daito left18:10
benstrumental joined18:11
faux___ joined18:11
User458764 joined18:11
LeBlaaanc left18:12
LeBlaaan_ joined18:12
fuchsi left18:12
kfoonamalik joined18:13
tomog999 joined18:13
ncthom91 left18:14
skarm left18:14
faux___ left18:14
ac3takwas left18:14
faux___ joined18:14
acetakwas left18:14
weox joined18:14
cagmz left18:15
eijk joined18:15
ogelami left18:15
abacuspowers joined18:15
ac3takwas joined18:15
gfixler joined18:16
lubarch left18:17
guardian I initiated a rebase -i, and I removed a commit. Later another commit doesn't apply anymore. How can I checkout/keep the most recent version of the file?18:17
lubarch joined18:17
lubarch left18:17
lubarch joined18:17
lubarch left18:17
reim left18:18
lubarch joined18:18
lubarch left18:18
lubarch joined18:18
abacuspowers left18:20
CheckDavid joined18:20
mokbu joined18:22
User458764 left18:22
waveclaw joined18:22
thiago joined18:22
tfry joined18:23
neonalpine joined18:24
marscher joined18:24
triad left18:25
Dougie187 joined18:25
encod3 joined18:26
encod3 left18:26
waveclaw left18:26
JanC left18:27
HelloAtMega joined18:28
lykinsbd joined18:28
JanC joined18:29
marscher left18:29
kfoonamalik left18:29
CKyle left18:30
acetakwas joined18:30
hobodave joined18:31
arup_r left18:31
italoacasas left18:32
mokbu left18:32
fuchsi joined18:33
noteness left18:33
lubarch left18:34
localuser- joined18:34
Karkus left18:34
ogelami joined18:35
localuser- left18:35
noteness joined18:35
localuser- joined18:35
HelloAtMega left18:36
nilg joined18:36
akushner left18:36
jeffreylevesque joined18:38
akushner joined18:38
akushner left18:39
ogelami left18:41
marcogmonteiro left18:41
lolmaus left18:41
dreiss left18:42
nettoweb left18:42
neonalpine left18:42
User458764 joined18:43
zarubin joined18:43
Synthead joined18:44
geri joined18:47
noteness left18:47
paddyez joined18:47
paddyez left18:47
paddyez joined18:47
MattMaker joined18:47
bolin joined18:47
HelloAtMega joined18:47
AaronMT joined18:47
zarubin left18:48
ac3takwas left18:48
acetakwas left18:48
thiago left18:48
lubarch joined18:49
lubarch left18:49
lubarch joined18:49
lubarch left18:49
ChoHag joined18:49
WizJin joined18:51
ChoHag Can I run rebase and/or merge without having to register a name and email (which the commands don't even use)?18:51
rinwa joined18:51
lubarch joined18:52
lubarch left18:52
lubarch joined18:52
ac3takwas joined18:52
ChoHag Without the two variables defined in ~/.gitconfig git rebase and git merge both complain that git's missing information it doesn't need.18:52
noteness joined18:52
waveclaw joined18:52
lubarch left18:53
Ragnar joined18:54
HelloAtMega left18:54
MechtiIde left18:54
HelloAtMega joined18:54
kadoban ChoHag: merge certainly needs it for most usages, rebase needs it for many of them … if you're using git, just set the things anyway.18:55
cryptsting joined18:55
ChoHag It's never "just".18:56
jojovem joined18:56
ChoHag If "just" setting them anyway was a satisfactory solution, I'd have "just" done so.18:57
waveclaw left18:57
benstrumental left18:57
craigp joined18:57
ChoHag The workflow under which the rebase is occuring doesn't use the values - I checked - but does bitch at me if I don't tell it what they are.18:57
dopesong left18:57
nettoweb joined18:58
ChoHag Setting them is more hassle than they're worth. Or would be if git didn't insist on them.18:58
dopesong joined18:59
ChoHag Hence telling git to shut up and do what it's told was my preferred solution.18:59
pantsman- joined19:00
King_Hual left19:00
circ-user-zsfzv Hi, how do I recover the couple of commits or branches that I do not see normally in the git list?19:00
CKyle joined19:01
dopesong left19:01
notebox left19:02
faux___ left19:03
cagedwisdom joined19:03
mwhooker joined19:03
Manikandan left19:05
skylite left19:05
qsuscs ChoHag: !xy19:06
gitinfo ChoHag: Woah, slow down for a bit. Are you sure that you need to jump through that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective...19:06
neonalpine joined19:07
neonalpine left19:07
circ-user-zsfzv The problem is that I did a lot of playing with my repository and there are a lot of commits with the same message in 'git reflog'. There are totally 100 commits in reflog. Can I browse them?19:07
MattMaker left19:08
editshare-ericf joined19:08
faux___ joined19:09
filisko left19:09
SimonNa joined19:09
rafalcpp joined19:10
Darcidride joined19:10
ChoHag What?19:10
This doesn't even *smell* like an XY problem.19:10
Git complains that values it doesn't use are not set and refuses to continue until they are.19:11
I worked around it with the -c flag.19:11
And values of 'none', which, surprise surprise, don't show up in the git log that's about to get thrown away anyway.19:12
I would prefer a "do what you're fucking told, you're the computer and I'm the human" option, but software in general is sorely lacking in such an option.19:12
sokolowitz joined19:13
bremner another important principle is "pick your battles"19:13
faux___ left19:13
notebox joined19:14
faux___ joined19:15
kpease left19:16
TomyLobo joined19:16
ChoHag Well thankfully the workaround is simple.19:16
Stupid, as they usually are when software starts being obstinate, but simple.19:16
_cyril_ left19:16
sokolowitz left19:17
editshare-ericf left19:18
jfran joined19:18
ojacobson ChoHag: what workflow causes rebase -not- to use your name and email? I'm legitimately curious; I can't think of any, other than "when it does nothing at all"19:18
windsurf_ joined19:18
ffio left19:19
eijk_ joined19:19
windsurf_ I'm working on a project where the git remote rejects pushes if any commits do not begin with a particular string (i.e. "[AP-121]"). How do they do this?19:19
jimi_ joined19:19
jimi_ I think I am trying the wrong commands. I want to see the last time a particular line # in a file changed.19:19
ojacobson windsurf_: man githooks19:19
gitinfo windsurf_: the githooks manpage is available at http://jk.gs/githooks.html19:19
kadoban windsurf_: With a hook19:19
Seveas windsurf_: probably an update hook19:20
arnatal left19:20
justanot1eruser joined19:20
ChoHag When the checkins are not changed in any way except for the order in which they are applied.19:20
justanot1eruser left19:20
justanotheruser left19:20
faux___ left19:20
crose left19:20
ojacobson ChoHag: nope, it uses your identity then to set the committer field of the new commits.19:20
(You can verify this with git cat-file commit <hash of one of the new commits>19:20
windsurf_ ojacobson thanks19:20
ojacobson (the author field is left unchanged from the originals)19:21
Darcidride left19:21
Darcidride joined19:21
lolmaus joined19:21
kzisme joined19:21
eijk left19:22
ac3takwasacetakwas19:22
justanotheruser joined19:22
kpease joined19:22
ChoHag Then their use is unnecessary.19:22
Especially considering that the entire thing is about to be thrown away once the tests are run to completion.19:23
ojacobson How so? Every commit has a committer field, by definition (removing it would make your tool not-Git, which is an option, but is off-topic here :); what value should the newly-created commits use for committer when you reorder them with rebase?19:23
paulweb515 left19:23
ojacobson You can see one solution to this by looking at the metadata on github generated merges (refs/pull/NNNN/merge)19:23
ChoHag a) I don't care. They're getting thrown away. b) Whatever they're already set to in the commits which are being moved.19:24
ojacobson You don't care, but Git has no way to express that un-care. You gotta pick some value even if you don't care about the value.19:24
ChoHag It could express it by transferring the values from the commits it ... transfers.19:25
faux___ joined19:25
ChoHag --perform-rebase-as-original-committer19:25
yashu-seth joined19:26
kadoban --lie-because-setting-a-config-is-too-hard19:26
ojacobson Sure, maybe worthwhile. Suggest it on the !list and see if anyone bites. The default assumption is that the committer is the user or agent that created the commits, and the author is the user or agent who wrote the code, and that Git users would prefer that their history accurately reflect what happened19:26
ChoHag Boom. Now my software doesn't need to masquerade as a human with a name and email address it has no use for.19:26
gitinfo [!mailing_list] The mailing list can be reached via [email@hidden.address] You don't need to subscribe to the list, you will always be put in cc on reply. Read archives at http://j.mp/gitlist19:26
ojacobson but an option to violate that assumption would be reasonable19:26
Who said anything about a human?19:26
Again, have a look at how other systems solve this problem. Gerrit synthesizes commits. Github does it. Bitbucket does it.19:27
ChoHag Software can have email addresses but until we get Matrix-level AI working it doesn't get a name, however affectionately we feel about it.19:27
Seveas I can't let you do that, ChoHag....19:28
madewokherd "Git" is a name19:28
ChoHag Or however much it wants to kill us...19:28
Git is the only appropriate name.19:28
govg_ left19:28
kadoban ChoHag: Your software very likely has a name, or will before you release it.19:29
faux___ left19:29
kadoban I don't think that means it's sentient.19:29
_uri_ left19:29
Seveas git singularity --exterminate19:29
uri_ joined19:30
ojacobson Anyways, no, there's no way to do what you want. Set a placeholder, or patch git, or wait for someone else to patch git. The `committer` identity is inherent in the structure of a commit; that's not going to change in a hurry. Bonne chance and have fun!19:30
ChoHag Setting the options inline with the -c flag is sufficient.19:30
Wrong, but sufficient.19:30
ojacobson Great!19:30
ChoHag I'm a sysadmin. It's a compromise I'm well used to.19:30
Seveas GIT_COMMITTER_NAME="hal 9000" git rebase19:31
dreiss joined19:31
lubarch joined19:31
lubarch left19:31
lubarch joined19:31
faux___ joined19:31
windsurf_ is there a way to list the remote hooks?19:31
ChoHag There are god knows how many levels of configuration to go to between my text editor and the running code and setting the environment does not, for hilarious raisins, make it through.19:31
jteneyck joined19:32
jteneyck left19:32
jteneyck joined19:32
windsurf_ github for example only shows this in their docs: `GET /repos/:owner/:repo/hooks`19:32
ChoHag The same hilarious raisins which preclude creating a .gitconfig19:32
windsurf_ what does that mean? I prefix it with http://github.com/ and just put that url in the browser? CURL??19:32
ojacobson windsurf_: no. (also, Github's hook system is not Git's hook system.)19:32
cousteau left19:32
ojacobson For github's API, yes, you can use curl to read it. You'll likely need to use -u <your github username>; try it without first though19:33
roygbiv left19:33
windsurf_ ojacobson is there a way to see my repo's remote hooks or do I have to ask an admin? And then, how do I use that on my repo at Github then?19:33
is it something that can be initiated from the CLI locally or do I have to somehow do it through the github website?19:33
ojacobson You don't. Github doesn't support git hooks.19:33
You'd ask an admin, if it were a normal git repo.19:33
windsurf_ ok19:33
but if CURL would work and it's a GET request, then in theory doing it in the browser url should also work, no?19:34
bolin left19:34
ojacobson Maybe! You're likely to get a JSON blob back (since the Github API uses JSON pervasively), which generally look shit in the browser19:34
thiago joined19:34
waveclaw joined19:34
ojacobson being able to run it through `jq .` to prettify it is nice :)19:35
windsurf_ yeah that's ok19:35
I'm getting a 404 though19:35
I'm just doing https://github.com/repos/myuserid/myrepo/hooks19:35
doener left19:35
ojacobson Going by https://developer.github.com/v3/ it looks like their API is served on a separate hostname19:36
faux___ left19:36
ojacobson snice that's part of the API…19:36
windsurf_ oh, it looks like it might have to be api.github.com19:36
irqq joined19:36
ogelami joined19:37
faux___ joined19:37
MattMaker joined19:39
waveclaw left19:39
HelloAtMega left19:39
mizu_no_oto left19:39
mablae joined19:40
peoliye joined19:40
gfixler left19:41
yqt joined19:41
windsurf_ am I understanding that a pre-receive hook is a local hook and I could use it to prevent me from pushing if I were missing a prefix?19:41
MattMaker left19:41
windsurf_ which would allow me to git rebase -i HEAD~n then push?19:41
faux___ left19:42
ogelami left19:42
ojacobson no19:42
pre-receive is run in the receiving repository, by the bits that process incoming pushes19:42
if you want a local hook, there are a few (pre-commit is the biggie)19:42
windsurf_ I don't really need to enforce this remotely and it's looking like it'll take some time to figure out. I have only a few devs and could easily come up with something locally to achieve this and make sure each of us has that local hook. Not sure if there's an appropriate one though19:43
ojacobson local hooks can always be disabled or bypassed (eg. by removing them, or with git commit --no-verify)19:43
windsurf_ looks into pre-commit19:43
zarubin joined19:43
faux___ joined19:43
roygbiv joined19:44
notebox left19:44
italoacasas joined19:45
MattMaker joined19:45
circ-user-zsfzv They say that reflog is my safety net. How do I undo some latest commands?19:46
fahadash joined19:46
lubarch left19:47
serapath joined19:47
ulkesh left19:48
Chunkr joined19:48
zarubin left19:48
MattMaker left19:48
faux___ left19:49
ojacobson `git reflog` will show you the trajectory of HEAD; you can return to any previous entry with `git checkout -b some-name HEAD@{number}`19:49
ncthom91 joined19:49
ojacobson or git-reset, or whatever19:49
faux___ joined19:50
User458764 left19:50
faux___ left19:50
faux___ joined19:50
rubyonrailed joined19:50
MattMaker joined19:51
windsurf_ ojacobson I'd like to hire someone to create my pre-commit hook or update hook19:52
interested?19:52
ojacobson You prrrobably can't afford me. :)19:52
Thanks, though. If it's simple enough, ask it here, and someone might sketch it up for you anyways19:53
Karkus joined19:53
lcarlson joined19:53
atomicb0mb joined19:54
rorro joined19:54
HelloAtMega joined19:55
thiago left19:56
aidalgol joined19:56
windsurf_ does anyone have a pre-commit hook example that rejects if the message doesn't contain or begin with a specific string?19:57
waveclaw joined19:57
kzisme left19:57
ojacobson You actually want a commit-msg hook for that19:57
pre-commit runs before the message is collected19:58
atomicb0mb left19:58
FireArrow133 joined19:58
ahr3n joined19:59
rnsanchez left19:59
oojacoboo joined20:00
notebox joined20:00
ojacobson You could also use prepare-commit-msg to set up the right format based on branch name -- I've had some success with that on past projects20:00
ncthom91 left20:00
kpease_ joined20:00
ojacobson eg. if the branch is ABC-1234-fix-gaskets then that hook can add "[ABC-1234] " to the first line pretty easily20:00
sxen joined20:01
User458764 joined20:01
waveclaw left20:01
nivag joined20:02
tvw left20:02
kpease left20:04
craigp left20:04
tirengarfio joined20:04
King_Hual joined20:04
King_Hual left20:04
King_Hual joined20:04
Darcidride left20:05
m0viefreak joined20:05
oojacoboo left20:05
oojacoboo joined20:06
windsurf_ ojacobson thanks, I don't know the reason for the prefix actually it's just a meaningless code on my end and doesn't change (often). I'll update it manually in the hook. I'll try commit-msg20:06
oojacoboo left20:06
devoldmx joined20:06
daito joined20:06
jeffreylevesque left20:07
cebor left20:08
kpease_kpease20:08
cebor joined20:09
troulouliou_dev joined20:10
devoldmx left20:10
daito left20:11
dopesong joined20:11
troulouliou_dev left20:12
_cyril_ joined20:12
jetpackjoe joined20:12
troulouliou_dev joined20:12
windsurf_ ojacobson it's working! :) Only thing, is when it rejects, it doesn't output an error. How shall I add that in? maybe store the return of grep in a variable and do an if on that and if it's a non-zero value then echo my error?20:13
lolmaus left20:13
tomtix left20:13
jojovem left20:14
troulouliou_dev left20:15
Ahmed90 left20:16
abacuspowers joined20:16
ojacobson Write to stdout or stderr (eg with echo)20:16
lolmaus joined20:17
ojacobson if ! head -n1 "$1" | egrep -q pattern; then echo "commit message rekt, plz fix"; exit 1; fi20:17
_cyril_ left20:18
codeman left20:18
chucky_z joined20:18
windsurf_ is that a typo, "-n1" ?20:18
hm what's head, is that a git command that git pipes to?20:18
CheckDavid left20:19
kpease left20:19
sxen left20:19
ojacobson `man head`20:20
(reads a file or stdin, returns the first N lines of it, N=10 by default)20:20
returns/writes to stdout20:20
windsurf_ oh20:21
thank you, and works beautifully btw, thank you so much!20:21
MattMaker left20:21
MattMaker joined20:22
tomtix joined20:22
jetpackjoe left20:23
User458764 left20:23
MattMaker left20:24
waveclaw joined20:24
boombatower joined20:24
govg joined20:25
User458764 joined20:25
ojacobson The rationale for head(1) there is that you said you wanted to check if the commit message started with the prefix you want20:26
head -n 1 will yield the first line of the file (which is the commit message to validate)20:26
grep then checks whether any line of its input (in this case, the first line of the original file) contains the pattern; anchoring the pattern with ^ ensures that the pattern occurs at the start of a line20:27
kappy joined20:27
just4today joined20:28
waveclaw left20:28
IrishPrime left20:28
zumba_ad_ joined20:30
jteneyck left20:30
cagedwisdom left20:31
Sendoushi left20:31
zumba_ad_ left20:32
phrozensilver left20:33
nnyk joined20:33
gopar joined20:34
abacuspowers left20:34
tomtix I'm encountering some problems with a git command inside an update hook, does someone know what happens here?: https://gist.github.com/anonymous/22c1af844b2172793b78#file-update-L1920:35
duderonomy joined20:36
HelloAtMega left20:36
paulweb515 joined20:36
ssarah left20:37
ojacobson tomtix: none of the commands in your gist require a work tree, you're omitting something.20:37
kzisme joined20:37
ojacobson That said, you probably want to export GIT_WORK_TREE20:37
!deploy20:37
gitinfo Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html20:37
cprecioso joined20:37
cprecioso left20:38
noteness left20:39
neanderslob joined20:39
adac joined20:39
tomtix The thing I dont get is that, as you can see, I directly put the command between those two echo20:39
cprecioso joined20:40
windsurf_ ojacobson will that commit hook script (commit-msg) work on a windows machine? might have one dev for which it won't work otherwise.20:41
ojacobson Ask a Windows user :)20:41
phrozensilver joined20:41
tomtix OH20:41
it may be a typo20:42
and bash saying nothin when a variable is not set ;'(20:42
taru- left20:42
taru joined20:42
cagedwisdom joined20:43
noteness joined20:43
mirton joined20:46
moritz tomtix: set -u in bash makes it complain about unset variables20:46
phaleth left20:47
MattMaker joined20:47
kpease joined20:47
mwhooker left20:47
tpollard joined20:48
tomtix moritz: ty for the information I will consider using it20:48
MattMaker left20:48
just4today left20:49
d5sx43 joined20:49
d5sx43 left20:49
moritz other useful bash stuff: set -e (abort on errors), set -o pipefail (abort on errors in pipes)20:50
mirton left20:50
lubarch joined20:50
lubarch left20:50
lubarch joined20:50
cebor left20:51
cebor joined20:51
mwhooker joined20:52
lubarch left20:52
cebor left20:52
cebor joined20:53
windsurf_ ojacobson ok :)20:53
filisko joined20:53
synthroid left20:54
windsurf_ Does anyone know if a (remote) update hook that is designed to reject based on a missing "foo" string prefix would reject a fast-forward merge?20:54
The_Phoenix left20:54
ojacobson depends on how it's written20:55
moritz windsurf_: a fast-forward merge is indistinguishable from just pushing the commits directly20:55
Hounddog left20:55
ojacobson that whole family of hooks (there are four) receive the old and new commit hashes, and can do anything they want with that information20:55
inspecting only the new commit is one option, inspecting the whole range of new commits is another, changing behaviours based on how the old and new commits relate is another20:55
waveclaw joined20:57
_Vi joined20:57
nanga joined20:58
nanga left20:58
nanga joined20:58
roygbiv left20:58
Psychiatrist joined20:58
_nadim left20:59
lubarch joined20:59
lubarch left20:59
lubarch joined20:59
cebor left20:59
thiago joined21:00
circ-user-zsfzv left21:01
mellernoia-work left21:01
waveclaw left21:01
lubarch left21:01
windsurf_ I sort of get it.. I guess what I'm wondering is when I do a merge in my git gui, after, when I look int he log it seems to automatically create a log message "Merged branch foo into branch bar"21:01
but my commit-msg hook doesn't catch that as missing the [FOO-123] prefix it's designed for.21:01
not sure if I can ignore that or if I need another hook maybe21:02
ojacobson You have an old version of git21:02
windsurf_ 2.5.421:02
krawchyk left21:02
cebor joined21:02
ojacobson Interesting. Wrong guess.21:02
lubarch joined21:02
lubarch left21:02
lubarch joined21:02
ojacobson Apparently the commit-msg hook is only invoked on git-commit (not during rebase, not during merge, etc)21:03
prepare-commit-msg is invoked during merge, with info21:03
_nadim joined21:03
danmulvey joined21:03
windsurf_ ojacobson what do you mean 'with info'?21:03
petaflot left21:03
petaflot joined21:03
cebor left21:03
ojacobson during a merge, prepare-commit-msg gets extra arguments informing it that the message is for a merge commit21:04
I don't see a hook that gets run after the message for a merge, interestingly. Might be worth raising that on !list -- commit-msg would be the obvious choice21:04
gitinfo [!mailing_list] The mailing list can be reached via [email@hidden.address] You don't need to subscribe to the list, you will always be put in cc on reply. Read archives at http://j.mp/gitlist21:04
cebor joined21:04
ojacobson (git-merge might need to sprout a --no-verify option)21:04
ncd|leeN joined21:05
bahar joined21:06
adiman joined21:06
windsurf_ ojacobson you mean, you think that it's adding that no-verify on its own and maybe that's why it's bypassing the commit-msg?21:06
rdnt left21:06
ojacobson No, the opposite21:07
right now, git-merge supports the prepare-commit-msg hook but not the commit-msg hook21:07
it might be worth suggesting on the mailing list that it support commit-msg, and outline your rationale21:07
bolin joined21:07
terminal_echo joined21:07
ojacobson it's very likely git-merge would need options to suppress the hook (as git-commit already supports) in that case.21:08
savoy joined21:08
lykinsbd left21:08
leeN left21:09
paulweb515 left21:09
paulweb515 joined21:09
MattMaker joined21:09
mehola joined21:10
waveclaw joined21:10
bahar left21:11
peoliye left21:11
MattMaker left21:11
petaflot left21:12
petaflot joined21:12
windsurf_ ojacobson so, I could duplicate my commit-msg hook and call it prepare-commit-msg and the latter might work for merges but I wouldn't be able to suppress it with no-verify?21:13
ojacobson In particular, it's weird that `git merge --no-ff foo` and `git merge --no-ff --no-commit foo && git commit` do different things21:13
prepare-commit-msg isn't meant to be a verification hook21:13
pasky aargh, after 10.75 years using git, non-trivial rebase cases still totally defy me21:13
ojacobson it's run before git invokes an editor21:13
its job is to, well, prepare the default commit message21:13
localuser- left21:13
windsurf_ ojacobson ok so I'm probably out of luck then eh.21:14
ojacobson Immediately, yes. Long-term, maybe/maybe not.21:14
windsurf_ yeah, deadline :)21:14
ojacobson The list (and Junio in particular) are pretty good for discussing this kind of stuff.21:14
pasky how can I avoid: "First, rewinding head to replay your work on top of it..."21:14
?21:14
mehola left21:14
zeroed joined21:14
windsurf_ ojacobson could I use prepare-commit-msg to prefix my message with "foo"?21:14
ojacobson Yup21:14
windsurf_ ojacobson ok, maybe i'll do that then21:15
_cyril_ joined21:15
pasky I don't want it to rewind the head, I want it to just reapply whatever is in X (when git rebase X) on top of current HEAD21:15
bahar joined21:15
waveclaw left21:15
ojacobson pasky: you're running rebase backwards, then :)21:15
pasky yes!21:15
ojacobson check out x, rebase onto whatever branch HEAD was before you checked out x21:15
windsurf_ ojacobson any handy one-liners for that? :)21:15
or a hint21:15
thiago HEAD is not a branch21:16
gfixler joined21:16
ojacobson pasky: git-rebase always replays the current branch (checking out a branch if needed), not some other branch21:16
MattMaker joined21:16
pasky okay, so what I basically want is, I'm on master, and I have a branch on top of some ancestor up to a8c532c, |ancestor..a8c532c| == ~5; I want to get these commits on master now, naively thinking that rebase would be an obvious choice to get them but...21:18
jimi_ thiago, off topic, but are you brazilian by chance?21:18
pasky what would you say is the most elegant way to get this done? I guess I'm mind-trapped in the situation now21:18
OnkelTem joined21:18
MattMaker left21:18
pasky obviously checking out detached a8c532c, running git rebase, then fishing it back sounds horrible21:18
hm, why didn't I just git cherry-pick ..a8c532c ?21:19
I guess I thought rebase would be fancier, but after these 10 years, I really didn't wrap my head around that awful operation it seems :)21:20
_cyril_ left21:20
thiago jimi_: I am21:20
TomyLobo left21:20
pasky git-rebase not failing but throwing away these commits is awful imho though21:20
jimi_ thiago, I thought so. There is a musician i like named Thiaguinho who is from Brasil, so I just guessed21:21
jteneyck joined21:22
faux___ left21:22
savoy left21:23
algae left21:24
jimi_ thiago, you wouldn't happen to be him would you? :P21:24
toogley left21:24
uri___ joined21:24
thiago left21:25
ojacobson pasky: rebase is a robot for running a common case of git-cherry-pick :)21:25
uri_ left21:25
ojacobson (sometimes literally!)21:25
Goobbue joined21:26
rwb left21:27
oojacoboo joined21:28
zarubin joined21:28
faux___ joined21:29
AaronMT left21:29
lolmaus left21:29
dstarh joined21:31
petaflot left21:32
petaflot joined21:32
uri_ joined21:32
adac left21:32
waveclaw joined21:32
DolphinDream how do i checkout a given commit (by sha/tag) but stay on the same branch (e.g. update local working copy with the version of the files in a given commit) ?21:33
bolin left21:33
bolin joined21:33
ojacobson You don't. You can only have one thing checked out at a time, and "check out a branch" implies checking out its tip commit.21:33
Depending on -why- you want that, though, there might be some useful suggestions.21:34
faux___ left21:34
windsurf_ ojacobson can you see what's wrong with this? sed -i "FOO " "$1"21:34
DolphinDream yeah21:34
ok.. i'll do it differnetly then21:34
Goobbue left21:34
ojacobson sed -i is "modify in place, with backup files named with this suffix"21:34
$1 is unlikely to be a useful sed command.21:35
faux___ joined21:35
Goobbue joined21:35
uri___ left21:35
Karkus left21:35
petaflot left21:35
LtHummus joined21:35
windsurf_ ojacobson oh. i thought $1 was the commit message coming into the prepare-commit-msg hook21:36
ojacobson it is21:36
but where it's positioned in the sed command matters21:36
windsurf_ sed -i "FOO $1" ?21:36
prob not hmm21:36
Psychiatrist left21:37
ojacobson sed -i~ -e '1 s,^,FOO,' "$1"21:37
-i for "modify in place, save backup with ~", -e SCRIPT for the edit script, and then a file name after the final edit script21:37
petaflot joined21:37
waveclaw left21:37
ojacobson That edit script is "on line 1, replace the start of the line with "FOO"21:37
(you may want a trailing space.)21:37
windsurf_ ~ is /dev/null??21:37
Synthead how do I amend a past commit? I haven't pushed my changes yet21:37
ojacobson no21:37
Synthead: most easily, by making a new commit with `git commit --fixup <hash>`, and then `git rebase -i --autosquash`21:38
ogelami joined21:38
ojacobson autosquash will tell Git to automatically reorder the commits based on message, and --fixup will generate a message that puts the new commit in the right spot21:38
Synthead ojacobson: do I have to commit files or something to do that?21:39
ojacobson Synthead: yes; if you just want to reword the message but leave the files unchanged, use `git rebase -i` and change the offending commit from "pick" to "reword"21:40
peoliye joined21:40
Synthead ojacobson: oh, reword! I was changing it to edit!21:40
petaflot left21:41
Synthead ojacobson: bam, thanks!21:41
petaflot joined21:42
ogelami left21:43
abacuspowers joined21:44
victorga_ joined21:44
irqq left21:44
bolin left21:44
AaronMT joined21:44
irqq joined21:45
lubarch left21:46
bolin joined21:46
krawchyk joined21:47
josuebrunel left21:47
Poppa left21:48
krawchyk left21:48
IWishIKnew joined21:48
krawchyk joined21:48
krawchyk left21:49
sdothum left21:49
Hink joined21:50
sdothum joined21:50
krawchyk joined21:50
King_Hual left21:50
Goobbue left21:51
Goobbue joined21:51
Jackneill left21:51
raedah joined21:51
peoliye_ joined21:51
raedah how do I get a git diff on something ive allready git add'd ?21:51
uri___ joined21:51
uri_ left21:51
windsurf_ ojacobson unfortunately sed -i~ -e '1 s,^,FOO,' "$1" doesn't seem to do anything21:52
kadoban raedah: 'git diff --cached' ?21:52
windsurf_ i've tested it with commits and merges that automatically add merge related commit messages21:52
kadoban raedah: Personally I use that about a billion times a day and have a short alias for it. (git dc)21:52
raedah kadoban, works21:52
daito joined21:53
peoliye left21:53
DolpheenDream joined21:53
lcarlson left21:53
fscala left21:53
lykinsbd joined21:53
MattMaker joined21:53
espindola left21:54
DolpheenDream left21:54
waveclaw joined21:54
fscala joined21:54
adamaN joined21:55
IWishIKnew left21:56
victorga_ left21:57
daito left21:57
jagob left21:59
windsurf_ does anyone know why in my prepare-commit-msg hook this doesn't do anything? I expect it to prefix the commit message with "FOO" sed -i~ -e '1 s,^,FOO,' "$1"21:59
astrofog joined21:59
waveclaw left21:59
tinajohnson__ left21:59
MattMaker left22:00
krawchyk left22:00
govg left22:00
jagob joined22:00
Oebele left22:01
Ldip left22:02
daito joined22:03
Hink left22:05
Hink joined22:05
_cyril_ joined22:05
jimi_ left22:06
luksaur left22:06
josuebrunel joined22:06
devoldmx joined22:07
Oebele joined22:07
cbonobo left22:07
Hink left22:08
Hink joined22:08
blackwind_123 joined22:08
CKyle left22:08
tomtix left22:09
bolin_ joined22:09
daito left22:09
sgen_ joined22:10
bolin_ left22:11
devoldmx left22:11
mwhooker left22:11
jason237 joined22:11
samw left22:11
bolin left22:12
danmulvey left22:12
duderonomy left22:12
gopar left22:12
krawchyk joined22:12
Oebele left22:13
mwhooker joined22:13
Hink left22:13
danmulvey joined22:14
lykinsbd left22:14
irqq left22:14
githogori joined22:14
NightMonkey joined22:14
coolno1 left22:14
nettoweb hello guys, Im stashed some files and my preprocessor start to generate some new files that I cant remove from working directory (even with git reset --hard and git clean -df)22:15
windsurf_ left22:15
gopar joined22:15
__main__ joined22:16
Hink joined22:16
Hink left22:17
samw joined22:17
dstarh left22:17
kadoban nettoweb: I'm scared to tell you why, other than to say: read man git clean22:17
gitinfo nettoweb: the git-clean manpage is available at http://jk.gs/git-clean.html22:17
cprecioso left22:17
kadoban nettoweb: Please be careful with scary commands like clean and reset --hard22:18
Ooo, that lined up. That was neat.22:18
BSaboia joined22:18
nettoweb kadoban I usually everyday these commands but Mixture is forcing the the deletion of fome files that stay in working copy event after these commands22:19
serapath left22:20
eijk_ left22:20
josuebrunel left22:20
kzisme left22:21
kzisme joined22:22
jteneyck left22:22
kzisme left22:23
sparr I'm looking at a file's history on github. I can get the full hash of the file at two points. From my local machine how can I diff those two historical versions of the file?22:23
(I have the repo checked out)22:23
kzisme joined22:23
buMPnet joined22:23
nettoweb Im completely stucked because I want to run git stash apply and cant because of theses files22:23
LaptopBrain joined22:24
sdothum left22:24
Thor_ joined22:24
xelxebar_ joined22:24
sdothum joined22:26
nettoweb can someone help me?22:27
xelxebar left22:27
The_Phoenix joined22:28
kadoban sparr: 'git log -- the_file', figure out the commitish to refer to them both. Then do 'git diff commitish1 commitish2 -- the_file'22:28
davidosomething left22:29
faux___ left22:29
pantsman- left22:30
waveclaw joined22:31
raedah left22:31
atrigent nettoweb: concentrate on what that man page says about ignored files22:32
The_Phoenix left22:33
nettoweb atrigent I think is related with http://stackoverflow.com/questions/29243207/cannot-remove-file-from-working-directory22:33
windows/unix22:33
AaronMT left22:34
User458764 left22:35
waveclaw left22:35
peoliye_ left22:37
peoliye joined22:38
nettoweb atrigent there's a lot of files but running: "git clean -f -n" doesnt show anything22:40
s8321414 joined22:40
alanwill joined22:40
atrigent nettoweb: can you pastebin the output of git status --ignored?22:41
nettoweb in "Ignored files:" there isnt the files that's in my working copy22:42
it's automatically added there, I think it was because some editor config, because I cant remove from that22:42
atrigent22:42
duderonomy joined22:42
Spacew00t left22:43
madewokherd left22:45
nnyk left22:46
cvanball joined22:48
hobodave left22:48
jason237 left22:48
hobodave joined22:49
gopar left22:50
MarkyC left22:51
HelloAtMega joined22:52
dsdeiz joined22:52
filisko left22:53
krawchyk left22:53
jeffreylevesque joined22:55
waveclaw joined22:56
s00pcan left22:57
triad joined22:57
yashu-seth left22:58
Zariel joined22:58
s00pcan joined22:59
afuentes joined22:59
Dougie187 left23:00
Zariel left23:00
lykinsbd joined23:00
waveclaw left23:00
lykinsbd_ joined23:02
diegoviola joined23:02
lykinsbd_ left23:03
lykinsbd_ joined23:04
sgambino left23:04
peoliye_ joined23:04
italoacasas left23:05
daurnimator Is there a way to join 2 fast import streams into one repository?23:05
lykinsbd left23:06
dregad joined23:06
zacg joined23:06
zacg left23:06
zacg joined23:06
vF3hNGxc47h8 joined23:06
peoliye left23:07
_Vi left23:07
ojacobson create repo, fast import stream A, fast import stream B, repack23:08
LeBlaaan_ left23:08
LeBlaaanc joined23:08
kevwil left23:08
uri___ left23:09
danmulvey left23:10
jteneyck joined23:10
jteneyck left23:10
jteneyck joined23:10
dregad left23:10
paddyez left23:10
hahuang65 joined23:12
s00pcan left23:12
liamonade joined23:13
rubyonrailed left23:13
_Vi joined23:13
hobodave left23:14
s00pcan joined23:14
sokolowitz joined23:14
Caelum joined23:15
daurnimator 'repack'?23:17
when I tried fast importing the two they ended up disconnected + weird around the discontinuity23:17
nettoweb left23:18
sokolowitz left23:19
zeroed left23:19
hahuang61 joined23:19
Hink joined23:19
waveclaw joined23:20
Hink left23:20
madewokherd joined23:20
BBBThunda left23:21
hahuang65 left23:21
cvanball left23:21
ulkesh joined23:23
MarkyC joined23:26
jteneyck left23:26
zotherstupidguy left23:27
kzisme left23:29
milki daurnimator: havent tried before. as long as the references line up properly, it should be fine23:30
daurnimator: how are you connecting the imports?23:31
gopar joined23:31
MarkyC left23:31
milki daurnimator: in a single import, there are internal references at least :number23:31
daurnimator milki: I couldn't figure out a way to join the imports. I tried a rebase but it was all weird....23:31
that's was the question: how do you join the imports?23:31
milki daurnimator: you would have to recreate the common history in both imports if you want shared history23:32
that would be the only way to have common commits23:32
ash_workz joined23:32
jeffreylevesque left23:33
daedeloth joined23:33
daurnimator huh? what do you mean "common commits"?23:33
milki you define commits in your import23:34
they have to be defined exactly the same on both imports23:34
mmlb left23:34
milki dates, committer/author information, commit content, commit parents23:34
daurnimator they're 2 different import streams. they have no commits in common.23:34
milki then... how do you expect them to be not disconnected?23:34
i missed our expected results i suppose23:35
jeffreylevesque joined23:35
milki your*23:35
DolpheenDream joined23:35
benzrf joined23:37
benzrf hey23:37
i'm thinking of writing a hacky joke program, & i was wondering23:37
how does git perform on repos with tens of thousands of <1KB commits with non-similar contents?23:38
ogelami joined23:39
jeffreylevesque left23:39
samw left23:40
ash_workz so I am at an example: `$ git clone --bare my_project my_project.git`; what does this suggest about my_project and my_project.git?23:40
mischat joined23:40
boombatower left23:41
milki benzrf: depends on what you are doing23:41
benzrf milki: go on?23:41
boombatower joined23:42
milki benzrf: uh, i mean, if you have to traverse history, its still linear to the length of the history23:42
kind of thing23:42
benzrf kk23:42
milki so depends on what you are doing23:42
ryoshu joined23:43
ash_workz so I am testing out remote branches on a local fs23:43
ryoshu how to fetch all remote refs (tags) with depth=1?23:43
without ls-remote23:43
milki benzrf: maybe you mean how much space it takes?23:43
ash_workz I've done `git clone --bare ~/foo /opt/git/foo.git23:43
benzrf well, i was thinking about treelike comments, and hypothetical protocols for transmitting them, and then thought about how to give them id's, then i thought of hashing them with timestamp and author, then i thought "oh hmm that's git"23:43
ogelami left23:43
zarubin left23:44
benzrf so now i kinda wanna write a git-powered commenting/chat thing, if only as a stunt23:44
:>23:44
milki sounds fun23:44
liamonade left23:44
milki if theres no history traversing, then you are simply using git as an objectstore23:44
benzrf well there'd be /some/23:44
milki creating objects is super fast23:44
looking up objects is super fast23:45
yay hashes?23:45
benzrf woo23:45
jonno11 joined23:45
milki i dont think you'll save much on space though23:45
ash_workz and then I did `cd ~/bar; git clone /opt/git/foo.git` expecting that it would set up the project in bar; but really it set it in bar/foo; so I thought probably did it wrong and want to delete this clone; rm throws a bunch of errors. How am I suppose to delete it?23:45
milki benzrf: but message contents will be depulicated i suppose23:45
benzrf milki: hm?23:45
milki benzrf: if you have messages with the same content, they'll point to the same blob23:46
benzrf timestamp and author23:46
oh wait i see23:46
right, ok23:46
milki shrugs23:46
benzrf haha23:46
LeBlaaanc left23:46
milki benzrf: as an objectstore, should be fast enough23:46
benzrf hehehe23:47
LeBlaaanc joined23:47
milki benzrf: you lose out if you do searching though probably23:47
Es0teric left23:47
daurnimator milki: as in: I have 2 fast import streams that I want to join together. they originally were each an RCS repository. at one point in 1997 they moved to a new directory and started again. but I want to join the two repos together (so that the 1st commit in the 2nd stream has a parent of the last commit in the 1st stream)23:48
milki benzrf: just think about what objects are avialble to you and how you might use them - trees, blobs, commits23:48
daurnimator: yeah, you wont be able to refer to any commits in the 1st import from the 2nd import23:49
fracting left23:49
milki daurnimator: but you are right, after importing, you can mess with history23:49
daurnimator: you have the right idea with rebase23:49
notebox left23:50
milki daurnimator: but all commits in the 2nd import will need to be written again23:50
daurnimator milki: well yeah23:50
I was trying to do it with a rebase but things got weird... the first commit from the 2nd stream's diff ended up being just the things added in that commit. it's a if the diff didn't match the code at that commit.23:51
xelxebar_ left23:52
MarkyC joined23:52
nnyk joined23:53
boombatower left23:54
wnefal joined23:54
lykinsbd_ left23:55
ash_workz so I am at the example `$ git clone --bare my_project my_project.git`; what does that imply about my_project? It's a shortname or something right? because when I try `$ git clone --bare foo foo.git` I get `fatal: repository 'foo' does not exist23:57
`23:57
BSaboia left23:58
abacuspowers left23:58
MarkyC left23:58
daurnimator ash_workz: you're doing a bare clone of the repository located at "my_project" (in this case a directory in your cwd) and calling the clone "my_project.git" (which will be a new directory created)23:58
devoldmx joined23:58
ash_workz daurnimator: cept that didn't work for foo in a directory called foo23:59
rorro left23:59
daurnimator ash_workz: do it from somewhere that *contains* a directory "foo"23:59
ash_workz done.23:59
wow23:59
mellernoia joined23:59

Logs Search ←Prev date Next date→ Channels Documentation