IRCloggy #git 2019-11-01

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.

2019-11-01

Graypup_ joined00:00
Sasazuka__ left00:02
brethil left00:03
soju left00:04
brethil joined00:06
Fernando-Basso left00:08
throstur joined00:08
Codaraxis left00:15
storrgie left00:17
perrier-jouet joined00:17
durham left00:20
SwiftMatt joined00:20
soju joined00:21
mat001 left00:23
LearnAllTheTime joined00:23
soju left00:26
Mattiaslndstrm left00:29
JanC left00:29
JanC joined00:30
PacKetSlayerPocketKiller00:33
rustyshackleford joined00:36
mekhami left00:37
rafasc left00:42
PocketKillerPacKetSlayer00:44
Atlenohen if there could be a git and/or github option to disable comparison showing whitespace changes so I could clang-format all my project to a longer column width00:44
or some kind of an automatic internal conversion to the proper version on github while leaving my local tree in my mode intact, just like line endings, now that's an idea !!!00:45
So when pushing, clang-format all to clang-format-remote.cfg when writing to tree use clang-fromat-local.cfg settings, boom there you go00:46
RoriconKnight left00:46
narendraj9 left00:49
b0nn Atlenohen: unfortunately, though, some languages rely on the whitespace being of certain type (Python, Go to a lessor extent)\00:50
Atlenohen: however, this looks promising https://stackoverflow.com/questions/33159394/ignore-all-whitespace-changes-with-git-diff-between-commits/3315959300:51
dtux joined00:53
Sleepy63 left00:56
m0viefreak left00:57
dtux left00:58
nioncode left00:59
yn_ joined00:59
blackmesa joined00:59
CalimeroTeknik left00:59
tjbp joined01:00
nioncode joined01:00
SwiftMatt left01:00
blackmesa1 joined01:01
kerframil left01:01
blackmesa left01:05
wymillerlinux left01:07
leeN left01:09
yawkat left01:12
Atlenohen I'll check it out thanks01:15
duderonomy joined01:20
Heirlung joined01:23
kerframil joined01:24
g00s joined01:25
dartmouthed left01:25
durham joined01:29
durham left01:33
bvdw left01:38
bvdw joined01:39
nurdie joined01:42
Goplat joined01:42
nurdie left01:47
yawkat joined01:47
bambanx joined01:50
tsujp left01:53
sentriz left01:54
ketas- joined01:56
libertyprime left01:57
ketas left01:58
khisanth_ left01:59
sentriz joined02:03
F0rTex left02:07
F0rTex joined02:08
libertyprime joined02:10
khisanth_ joined02:12
throstur left02:12
jstimm joined02:17
tufteddeer joined02:22
libertyprime left02:31
g00s left02:33
dtux joined02:33
libertyprime joined02:33
n3wborn left02:34
thebope joined02:37
JanC_ joined02:38
JanC left02:40
JanC_JanC02:40
dmtucker joined02:45
dtux left02:46
lagothrix left02:55
lagothrix joined03:00
gioyik joined03:08
tufteddeer left03:09
tufteddeer joined03:10
gioyik left03:10
Phruis left03:10
lagothrixGuest8664203:11
Guest86642 left03:11
lagothrix joined03:11
Wetmelon left03:15
tufteddeer left03:16
R2robot left03:20
r2ro joined03:21
stitched_unicorn left03:24
Cabanossi left03:25
tufteddeer joined03:28
MACscr left03:30
blackmesa joined03:31
Cabanossi joined03:32
blackmesa1 left03:33
nurdie joined03:34
nurdie left03:37
nurdie joined03:38
thebope left03:41
nurdie left03:44
nurdie joined03:45
Wetmelon joined03:45
toothe joined03:46
beastDiv_ joined03:46
nurdie left03:49
Atlenohen left03:52
Decobus left03:52
boombatower left03:59
tufteddeer left03:59
tufteddeer joined04:00
g00s joined04:01
blackmesa left04:01
HoffmanbearpigHoffman04:03
tufteddeer left04:09
mat001 joined04:17
tufteddeer joined04:18
greatgatsby left04:20
greatgatsby joined04:27
chachasmooth joined04:30
ferdna joined04:31
justanotheruser left04:32
justanotheruser joined04:37
r2roR2robot04:38
fatalhalt left04:40
fatalhalt joined04:41
akemhp_ joined04:45
mat001 left04:46
akemhp joined04:47
akemhp_ left04:50
R2robot left04:50
orbyt_ left04:51
Wetmelon left04:51
akemhp left04:52
R2robot joined04:52
macaronus joined04:56
realies left05:01
pks_ joined05:02
pks left05:02
pks_pks05:02
sgn left05:03
sgn joined05:03
xall joined05:03
altendky joined05:04
realies joined05:09
cbreak left05:17
cbreak joined05:19
sgn left05:20
sgn joined05:20
jstimm left05:21
MACscr joined05:33
iam730 joined05:52
g00s left05:55
ferdna left05:59
cd joined06:01
g00s joined06:03
Wetmelon joined06:07
dijitol joined06:08
thiago left06:08
topdownjimmy left06:11
topdownjimmy joined06:12
Wetmelon left06:13
dre_ joined06:15
gpanders left06:16
Decobus joined06:18
roadie left06:24
roadie joined06:32
Decobus left06:34
bambanx left06:35
dijitol left06:37
Decobus joined06:39
iam730 left06:44
Aelius_ joined06:45
Aelius left06:47
iam730 joined06:48
fxrs left06:49
xall left06:50
fxrs joined06:51
akemhp joined06:52
roadie left06:54
dre_ left06:58
Goplat left06:59
xall joined06:59
Heirlung left07:00
Heirlung joined07:05
xall left07:06
xall joined07:08
duderonomy left07:12
xall left07:13
veegee joined07:18
Noti joined07:19
xall joined07:21
xall left07:26
clemons left07:29
bigfondue left07:31
gareppa joined07:31
clemons joined07:32
bvdw left07:38
xall joined07:38
xall left07:38
bvdw joined07:39
g00s left07:42
Mattiaslndstrm joined07:44
aw1 joined07:45
bitwinery left07:48
kerframil left07:51
bigfondue joined07:53
yonder left07:54
osse GUISE07:57
I learned something today that I didn't know. You can (if you're lucky) actually find out when a branch was created. reflog records it. git reflog --date07:58
f8e3 joined07:59
f8e3 whats a god alternative to gitk?07:59
clemons left07:59
osse tig is popular07:59
_ikke_ +108:00
f8e3 i currently also try to mine data: lines per commiter, commits over timeline, i looked into gitinspector, git summary/etc and wonder, how to from python or shell extract data that i can later plot08:00
eg https://camo.githubusercontent.com/9eef035e55075eb1c446168de3c780696a170217/68747470733a2f2f7261772e6769746875622e636f6d2f77696b692f656a77612f676974696e73706563746f722f696d616765732f68746d6c5f6578616d706c652e6a7067 but just the data for matplotlib08:00
SteffanW joined08:01
clemons joined08:01
Noti left08:01
osse maybe you will find this interesting: https://github.com/src-d/hercules08:02
Kartagis joined08:02
Makaveli7 joined08:04
im0nde_ joined08:04
dege joined08:04
im0nde1 left08:06
TomyWork joined08:07
f8e3 thank you08:11
blackmesa joined08:12
altendky left08:14
z8z joined08:29
POQDavid left08:30
throstur joined08:31
POQDavid joined08:32
greggerz joined08:34
Assault joined08:37
Assault hey, I added git LFS to my repo and make it track all the .png files. But after that, the .png files seem to be broken - they show in the the file explorer, but when I open them, the image viewer says "it looks like we dont support this file format"08:38
crose left08:39
Assault heh, the content of the .png file is "version https://git-lfs.github.com/spec/v108:40
oid sha256:asdsad7sdasdfasd831saddas9a9d6ghjd49987374ddd9196d076ba722c6a49e2ba67f3002e4ff08:40
size 1021" text08:40
do I have to do some additional step to get the actual .png files?08:40
dmtucker left08:42
greggerz left08:42
dtux joined08:44
Assault turns out I have to do git lfs pull08:46
so...do I have to do it every time a file tracked by git lfs is changed?08:46
j416 Assault: you probably forgot to install whatever clean/smudge filters or hook it wants to add08:48
dunno if you need to run git-lfs pull every time08:49
Assault j416, what filter? I am not aware that I should add something liek that08:49
j416 Assault: cat .git/info/attributes08:49
_ikke_ clean/smudge filters are how LFS hooks into git08:49
Joel left08:49
j416 or are those in .git/config; I forget08:50
_ikke_ both08:50
Assault attributes just contains *.png filter=lfs diff=lfs merge=lfs -text08:50
_ikke_ the filters are defined in the config, and attributes enables them08:50
j416 ah, right.08:50
Assault actually thats .gitattributes file08:50
Joel joined08:50
Assault i just did git lfs install on my repo08:50
j416 Assault: I don't use lfs, tried it but it was so coupled to github and so buggy that I removed it; maybe it's better now08:51
Assault and then made it git lfs migrate import --include="*.png" --include-ref=refs/heads/master08:51
j416 note that lfs is not part of git08:51
_ikke_ I don't use it either, I have no usecase of it08:51
for it*08:51
Assault yeah i know..but Unity projects are impossible with it08:51
and Bitbucket has 2 GB repo size limti08:52
and Bitbucket has 2 GB repo size limit08:52
_ikke_ yes, understood08:52
z8z left08:52
Assault maybe git is just not the right tool for version control for Unity08:52
j416 if your repo is huge, then something like lfs seems like a good idea to try08:53
indeed.08:53
Assault ok i guess I have to read some more on git lfs...08:53
hqdruxn08 left08:55
Fernando-Basso joined08:55
glance left08:58
hqdruxn08 joined08:59
libertyprime left09:01
libertyprime joined09:02
_ADN_ joined09:03
beastDiv_ left09:03
hqdruxn08 left09:03
hqdruxn08 joined09:03
hqdruxn08 left09:05
hqdruxn08 joined09:05
LearnAllTheTime left09:07
dtux left09:09
beastDiv_ joined09:10
ricks_ joined09:10
RaceCondition joined09:11
Newami joined09:11
Newami left09:12
hqdruxn08 left09:12
n3wborn joined09:13
akemhp_ joined09:16
Zevv joined09:17
TheFuzzball joined09:17
akemhp left09:18
Zevv Hi #git, I have a somewhat interesting migration from svn to Git which I cannot get quite right: a 10 year old tree that only moved to trunk/branches/tags 3 years ago. I now migrated this into two separate git repos, 1 for the linear history of commit 1 to the day before the split (commit 'S'-1), and one with the branches/trunk/tags properly imported as branches from 'S' to HEAD. I merged these two repos, but I09:19
fail to 'connect' the histories09:19
dionysus69 joined09:19
Zevv I tried various permutations of git rebase --ont, but I'm not sure if that is the right way to go09:19
Kartagis left09:21
vdamewood joined09:22
Bigcheese joined09:22
aw1 left09:23
Bigcheese left09:24
canton7 Zevv, it's going to be easier to use a graft/replacement to join the two histories, then git filter-branch make the graft permanent09:24
Bigcheese joined09:24
Zevv ok I suspected that much, that makes sense09:25
im0nde_im0nde109:25
canton7 (rebase is going to want to rewrite your history to get rid of merges)09:25
Zevv right, and that is my problem - it wants to go too deep09:25
I'm not familiar with filter-branch yet, so I'll do some reading up. Thanks so far09:26
canton7 I'm not sure what the state-of-the-art is with grafts vs replace at the moment -- reading around it seems that both *can* do what you want, but replace is the newer option09:26
filter-branch can do many things, but one of the things it can do is to rewrite all of history after a graft/replacement to keep its structure, but "bake" that graft/replacement into the actual commit history09:26
j416 git-replace indeed; it took a long while for me to try it but it actually works nicely (and it's less of a hassle than the old way)09:27
leeN joined09:27
Zevv sounds like what I'm looking for. I do not care for the old history very much, apart from that I want to keep for historical and archealogical reasons09:27
canton7 looking at the examples, grafts do seem less painful for this case09:28
echo "$first-commit-of-new-history $last-commit-of-old-history" >> .git/info/grafts && git filter-branch $last-commit-of-old-history..HEAD (from https://stackoverflow.com/a/3811028/1086121)09:30
Zevv So my initial setup make sense, ie, making 2 separate imports, a flat one of the 'old' part and a branched one of the 'new' part, getting both into the same repo, and then replace/graft to fuse them together??09:30
canton7 you might want some extra filter-branch commands, like `--tag-name-filter cat`09:30
Zevv, yep, that's exactly what I'd have done09:30
Zevv ok thanks!09:30
canton7 (when you were asking your initial question I was thinking "Oh god, I'm going to have to explain how to do two separate imports from different regions of history, and I can't remember the magic git-svn incantations", then "phew" when you said you'd already figured it out ><)09:33
j416 :D09:33
I second that; seems like a sane way to go about it. I'd have done the same, too.09:33
Zevv canton7: I've done my git over the years, but some of the deeper trenches I have not seen the bottom of yet09:34
leeN left09:36
gpanders joined09:36
hqdruxn08 joined09:37
hqdruxn08 left09:38
vdamewood left09:39
hqdruxn08 joined09:39
RaceCondition left09:41
hqdruxn08 left09:41
aw1 joined09:41
akemhp joined09:46
akem__ joined09:48
akemhp_ left09:48
akemhp left09:50
akemhp_ joined09:52
TheFuzzball left09:53
akem__ left09:54
plasticle left09:56
plasticle joined09:59
TheFuzzball joined10:03
dartmouthed joined10:03
akem__ joined10:03
akemhp_ left10:06
vdamewood joined10:08
beastDiv_ left10:09
dtux joined10:10
dtux left10:14
Noti joined10:14
feriman joined10:14
SteffanW left10:15
BlackMaria left10:18
BlackMaria joined10:18
akem__ left10:21
akemhp joined10:22
LVK267LasseVK10:25
Zevv and of course I messed up now - after the graft, do I need to do the filter-branch for all individual branches?10:25
gxt left10:26
nabil_ joined10:26
canton7 Zevv, you can make filter-branch do everything at once10:27
nabil left10:29
greatgatsby left10:30
gareppa left10:33
hqdruxn08 joined10:37
hqdruxn08 left10:38
hqdruxn08 joined10:38
hqdruxn08 left10:39
ricks_ left10:42
akemhp_ joined10:46
tufteddeer left10:46
tufteddeer joined10:47
akemhp left10:49
aw1_ joined10:51
akemhp joined10:53
aw1 left10:53
yn_yn10:53
thomasross left10:54
akemhp_ left10:55
Barrt joined10:56
storrgie joined11:00
Luyin joined11:06
Luyin hi, I want to revert changes from a branch merged into master, and later I'll want to revert the revert again. So I have a temporary measurement that needs to be in master for a while (the revert), and later I'll want that temporary solution to be gone from master again. I've read https://mirrors.edge.kernel.org/pub/software/scm/git/docs/howto/revert-a-faulty-merge.html and a lot on stackoverflow, man git-revert11:08
gitinfo the git-revert manpage is available at https://gitirc.eu/git-revert.html11:08
Luyin and more, and it seems like it's a really complicated thing. What would you recommend?11:08
dtux joined11:11
emsjessec joined11:12
aw1_ left11:13
dtux left11:15
ricks_ joined11:18
libertyprime left11:20
omnireq_ joined11:21
libertyprime joined11:21
omnireq left11:23
tufteddeer left11:23
tufteddeer joined11:23
Luyin could I revert all the single commits from the branch but not the merge commit? would that make sense?11:23
not nice, maybe, but easier?11:23
macaronus left11:30
roflin joined11:32
Barrt left11:37
caskd-dev left11:52
nowhere_man left11:52
caskd joined11:52
m0viefreak joined11:54
PipeItToDevSdaPipeItToDevNull11:55
jguddas-tr joined11:57
TheFuzzball left11:58
TheFuzzball joined12:04
TheFuzzball left12:05
snappy thoughts on empty commits in history to use as signals/marks to delineate chunks of commits?12:05
_ikke_ what about tags?12:06
Barrt joined12:07
snappy this is more like saying "start refactoring" "end refactoring" "start adding tests" "end adding tests" or something like that.12:07
i know these should probably be distinct branches, but the branch juggling is a bit annoying12:07
_ikke_ sounds like branches12:07
which get merged in12:07
snappy yeah fair enough, agreed actually12:08
nested branches with merge commits are probably nicer for that.12:08
usm4n joined12:08
usm4n left12:08
snappy don't think i've ever seen it used before.12:09
so probably not a good idea12:09
Barrt left12:10
Wetmelon joined12:11
zetneteork left12:25
libertyprime left12:27
fk joined12:27
cd left12:30
BonusPlay left12:31
jguddas-tr left12:31
TheFuzzball joined12:31
thomasross joined12:31
Wetmelon left12:35
fk left12:37
fk joined12:38
BonusPlay joined12:39
stutter joined12:44
tmager joined12:44
cd joined12:44
swalladge left12:52
Bombe I have a repo that has mulitple remotes, some fast ones, some slow ones. Is there a way to not fetch the slow ones with “git remote update”?12:54
Habbie you can make groups12:54
!man git-remote12:54
gitinfo The git man pages are available online at https://gitirc.eu/git.html. Or were you looking for the "man git-foo" syntax (without the !)?12:54
the git-remote manpage is available at https://gitirc.eu/git-remote.html12:54
Bombe Hmm, I just found remote.<name>.skipFetchAll.12:55
Habbie or that12:55
i think12:55
Bombe How do I configure groups? Nothing about that in git-remote’s man page…12:56
Habbie groups are mentioned under 'update'12:56
i do not know more than what it says there12:56
Bombe Ah, it’s a single config property.12:56
Okay, that should help, thanks. :)12:56
Kartagis joined12:58
tmager left12:59
treehug88 joined13:00
lucasb joined13:01
nika_ joined13:05
cvcxc joined13:06
magic_ninja_work left13:08
Makaveli7 left13:08
cd left13:10
is_null joined13:12
dtux joined13:13
cd joined13:13
fk left13:15
TomyLobo2 joined13:17
TomyLobo2 left13:17
thomasross left13:17
dtux left13:18
fk joined13:21
staafl left13:23
caskd left13:24
tmager joined13:28
staafl joined13:28
jguddas-tr joined13:29
royal_screwup21 joined13:32
jguddas-tr left13:35
caskd joined13:35
nowhere_man joined13:36
igemnace left13:36
bvdw left13:38
jguddas-tr joined13:38
bvdw joined13:39
malmalmal joined13:41
blackmesa left13:42
tufteddeer left13:43
tufteddeer joined13:44
royal_screwup21 left13:45
CodeSlingerPaul joined13:45
nurdie joined13:47
Assault hmm..is submodules configuration not part of the repository?13:48
pedroteosousa joined13:48
Assault I mean, I cloned my repo, but the config file contains nothing about its subdmoules13:48
thebope joined13:49
BtbN they're submodules, they have their own .git13:49
greggerz joined13:49
Assault yes...but isnt my main repo supposed to know which submodules are part of it?13:49
thblt joined13:49
osse Assault: yes13:50
there should be a .gitmodules file13:50
nurdie_ joined13:51
Assault there is a .gitmodules in my original repo (on my computer), but on where I re-cloned it13:51
nurdie left13:52
osse Assault: you should add and commit it13:52
Assault ooh, my other repo was on master, whereas the submodules are on another branch13:53
roadie joined13:54
thblt I asked on #github, but just in case: anybody knows of a way (on GitHub) to import/recreate pending PRs from an upstream repo to a fork, besides doing it by hand?13:55
igemnace joined13:56
Habbie thblt, you don't want to move the entire repo?13:57
Luyin left13:58
thblt Habbie: Owner is unresponsive on GitHub, and I haven't yet decided to assume maintainership.13:58
nowhere_man left13:58
Habbie thblt, ah13:58
thblt, best answer i have is 'github has a great API'13:58
thblt Habbie: thanks, that the answer I wanted to avoid, but if that's the only way so be it :)13:59
fury i think you can manually merge them, but it won't be connected to any PRs14:00
Habbie if i understand the question correctly, the point is not to immediately merge them all14:00
thblt fury: what Habbie says :) I just want to have them handy while I start to experiment with the existing code.14:01
fury ah14:01
akemhp_ joined14:01
Habbie thblt, have them handy locally?14:01
thblt on my clone on github, with the conversation, or anyway somewhere that isn't just upstream. I was hoping for a magic import script.'14:02
tufteddeer left14:02
akemhp left14:04
tufteddeer joined14:04
lembron joined14:05
im0nde1im0nde14:05
fury thblt: does this sound like it might work? older, but maybe the APIs it uses are still there... https://github.com/IQAndreas/github-issues-import14:06
jguddas-tr left14:07
lembron uhm, git on windows - a while ago i did "a git split" (aka branch,rename,modify,merge 1 file to 2 to "split with history") - thats all fine, but now gitk stops working from time to time and throws me "filename to long" errors - for the last weeks hard-reload helped, but now im getting a full errormessage and things "break" - where do dig from here? https://pastebin.com/wifMwiy3 'couldn't execute14:07
"git": file name too long'14:07
thblt fury: thanks, I'll look into it, it looks like a great start!14:08
spuc joined14:09
royal_screwup21 joined14:09
thebope left14:12
thebope joined14:12
dtux joined14:13
nowhere_man joined14:14
thiago joined14:14
javaJake joined14:18
dtux left14:18
roadie left14:19
royal_screwup21 left14:21
pedroteosousa left14:24
sq-one joined14:24
thomasross joined14:25
vdamewood left14:28
royal_screwup21 joined14:29
Stoot left14:29
Stoot joined14:30
omnireq_ left14:37
welovfree joined14:38
welovfree left14:38
Zevv left14:41
TomyWork left14:45
TomyWork joined14:46
thiago left14:46
nowhere_man left14:48
jguddas-tr joined14:49
lembron oh great, git-fow-windows itself also is broken in the current release? - all issues closed, but nether stable nor the nightlyRC fixes anything ;(14:49
Inline left14:49
TomyWork left14:50
royal_screwup21 left14:50
TomyWork joined14:51
nika_ left14:52
jlosito joined14:54
jguddas-tr left14:54
malmalmal left14:55
lembron oh wtf... did i brick my system now or what is this =(14:56
cdown left14:56
nika_ joined14:56
royal_screwup21 joined14:56
cdown joined14:57
lembron "bash: /dev/fd/63: No such file or directory" -- while cleanly showing a link "/dev/fd -> /proc/self/fd/" and all of `<(cmd)` is now broken.14:57
boombatower joined15:00
thblt lembron: your day sounds fun15:01
Assault left15:02
royal_screwup21 left15:02
lembron literally just turned super-shit-hole ;( -- from "gitk nudges for 2 seconds every few days" to "gitk is broken" to "bash is broken" - cant do anything now15:02
Assault joined15:05
thblt fwiw googling "git: file name too long" returns a few intersting things15:06
Kartagis left15:10
lembron whelp, leveling _everything_ and on the 5th reinstall things started working again15:12
omnireq joined15:13
dtux joined15:15
dtux left15:19
qqx left15:20
qqx joined15:20
thomasross left15:23
algiss joined15:23
nika_ left15:28
sangy okay, I bet I'm being silly but my brain is being stupid today15:32
doesn't this transport/remote-helper work │fatal: unable to find remote helper for 'git+https' ?15:32
(I know I can use this with vanilla https)15:32
dionysus69 left15:33
nika_ joined15:33
roadie joined15:36
gareppa joined15:37
TheFuzzball left15:40
dtux joined15:46
thiago joined15:50
diogenese left15:51
akem__ joined15:51
diogenese joined15:51
greggerz left15:51
greggerz joined15:52
akemhp_ left15:53
TheFuzzball joined15:54
pedroteosousa joined15:56
akem__ left15:57
blackmesa joined15:57
HumanG33k joined16:00
Noti left16:05
fflam left16:07
jguddas-tr joined16:07
fflam joined16:09
jguddas-tr left16:15
mat001 joined16:18
jrnieder sangy: yeah, I think you're looking for https://16:18
sangy: there's git+ssh:// and ssh+git:// but those are considered to have been a mistake16:18
thblt r16:21
pedroteosousa left16:21
thblt (sorry)16:21
sangy jrnieder: thanks! yeah I realized this is an upper-layer speak. I thought it was just blindly passed to git16:23
TomyWork left16:30
fannagoganna joined16:36
_ADN_ left16:38
orbyt_ joined16:38
fannagoganna Hi, I am trying to change history, by changing one email address of commit to another. I follow instructions in https://www.git-tower.com/learn/git/faq/change-author-name-email and section "Editing the author of past commits." Specifically, suggested command that starts with "git filter-branch."16:39
I run that command, but when I do a "git log" I can still see old email addresses. Old email addresses haven't changed.16:39
_ikke_ fannagoganna: What is the actual command that you ran16:40
fannagoganna https://www.irccloud.com/pastebin/UwgUh4K7/example+git+filter+branch.txt16:41
Old email is one I want to change to new email, in this case "tanim.islam@gmail.com"16:41
nicexe joined16:43
Exec1N left16:45
_ikke_ fannagoganna: there is a new tool called filter-repo16:45
https://github.com/newren/git-filter-repo16:45
tgummerer joined16:45
_ikke_ It should make these kinds of operations easier16:45
bitwinery joined16:45
_ikke_ for your usecase, there is a --mailmap option16:45
fannagoganna _ikke_: thanks I will try it out16:46
igemnace left16:46
gxt joined16:48
dionysus69 joined16:57
prepend joined17:02
Xiti left17:02
Xiti joined17:03
igemnace joined17:06
sq-one left17:07
g00s joined17:11
fk left17:12
fk joined17:14
captain42 left17:19
fromBeyond joined17:19
TheFuzzball left17:19
cbreak left17:20
cbreak joined17:21
fromBeyond Hi. Suppose I have 3 Projects, each in its own repo. We have that R2 depends on R1, and R3 depends on both R1 and R2. How should I structure this? When all I had was R2 and R1, I simply added R1 as a submodule of R2. But i am unsure how to do it now. I hope my wording was understandable17:22
Goplat joined17:22
paraxial left17:22
paraxial joined17:23
orbyt_ left17:25
f8e3 git summary --line does it count per lines remaining or lines commited ?17:26
paraxial left17:28
f8e3 the doc is silent: Summarize with lines other than commits. , so probably total17:31
qqx left17:32
nika_ left17:32
qqx joined17:32
paraxial joined17:35
g00s left17:36
nika joined17:41
cvcxc_ joined17:41
orbyt_ joined17:42
j416 fromBeyond: git is not a dependency manager; use a proper dependency manager or put them in one repo17:43
JanC left17:43
cvcxc left17:44
JanC joined17:45
m0viefreak left17:48
tang^ joined17:49
tang^ left17:49
nika left17:53
dijitol joined17:55
roadie left17:57
roadie joined17:58
Sasazuka joined18:06
greggerz left18:12
greggerz joined18:12
prepend left18:15
wootehfoot joined18:16
fission6 joined18:18
Phylock joined18:20
nurdie_ left18:22
nurdie joined18:22
algiss left18:23
Blackpajamas joined18:25
nicexe left18:26
Phylock left18:27
nurdie left18:27
gareppa left18:27
nicexe joined18:28
blackmesa left18:29
tufteddeer left18:31
tufteddeer joined18:31
Keytap_ joined18:33
royal_screwup21 joined18:33
Blackpajamas left18:35
Keytap_ Afternoon all. Just making sure, but there's no flag I can give to 'git update-index --assume-unchanged [...]' to make it only last until the next time the specified files change, is there?18:35
BlackMaria left18:35
_ikke_ No, that's kind of contradictory :)18:35
cbreak Keytap_: it doesn't change18:35
tufteddeer left18:36
Keytap_ WOuldn't have thought. I'm probably going about what I"m trying to do the wrong way anyways.18:36
Blackpajamas joined18:36
fission6 left18:37
_ikke_ there is --skip-worktree, which is better suited for this purpose, but still, there is no option to have that flag disappear when the file changes18:37
cbreak the point of assume-unchanged is to prevent git from wasting time checking things for changes that don't change18:38
a performance optimization18:38
unless you have gigantic repositories or a very slow file system, you probably don't need it18:38
_ikke_ yes, indeed, that's the contradictory part18:38
cbreak Keytap_: have you considered getting a better file system? :)18:39
_ikke_ What is it what you are trying to achieve?18:39
Phylock joined18:40
beastDiv_ joined18:42
Keytap_ cbreak,_ikke_: I'm building a docker container and I'm replacing one of the files with a proxy script that calls the command inside the container (as a convenience tool for the developer), but the proxy script completely rewrites the content of the original file, so I'm currently doing --assume-unchanged so the proxy script doesn't accidentally get added to source control18:42
BlackMaria joined18:42
cbreak just give the script a different name18:42
and gitignore it18:43
tufteddeer joined18:43
blackmesa joined18:55
Blackpajamas left18:56
nurdie joined18:56
rath joined18:58
l4sh joined18:59
dionysus69 left19:01
dionysus69 joined19:01
iam730 left19:04
iam730 joined19:06
duderonomy joined19:09
duderonomy left19:10
lucasb left19:10
Blackpajamas joined19:13
Phylock left19:14
fannagoganna left19:15
thiago left19:18
sentriz left19:22
soju joined19:23
sentriz joined19:23
pedroteosousa joined19:24
cyberpear Keytap_: you could probably do some magic with git replace19:25
leeN joined19:25
Blackpajamas left19:26
cyberpear Several years ago, filter Branch did not properly rewrite replaced blobs19:26
nurdie left19:26
Blackpajamas joined19:27
gioyik joined19:27
gioyik left19:27
nurdie joined19:27
gioyik joined19:29
crose joined19:30
gioyik left19:30
ricks_ left19:31
steven__ left19:31
nurdie left19:32
royal_screwup21 left19:33
cyberpear you could lie to git and tell it that your modified file is the file in the most recent commit. Be aware that if someone commits changes to the file, it will look like they are committing a smaller change than they actually are committing as your previously hidden modifications would be included in the new commit19:34
(In theory)19:34
Keytap_: ^19:35
( attempting to answer "how could you do it", not "should you do it")19:36
bvdw left19:38
bvdw joined19:39
fstd_ joined19:41
emsjessec left19:42
fstd left19:45
fstd_fstd19:45
nabil joined19:48
nabil left19:49
nabil joined19:49
nabil_ left19:50
tufteddeer left19:54
jfariasf joined19:54
tufteddeer joined19:54
swalladge joined19:56
tufteddeer left19:58
feriman left19:59
nabil_ joined19:59
throstur left20:01
nabil left20:02
nabil__ joined20:03
nabil_ left20:05
soju left20:08
mszyszko joined20:10
mszyszko left20:10
mszyszko joined20:11
tufteddeer joined20:12
thiago joined20:12
Blackpajamas left20:13
throstur joined20:14
fattredd_ joined20:15
Blackpajamas joined20:15
mszyszko_ joined20:15
mszyszko left20:16
Inline joined20:17
mszyszko_ left20:19
fattredd_ left20:20
Decobus left20:22
Blackpajamas left20:24
soju joined20:24
is_null left20:25
Exec1N joined20:28
n001g joined20:30
ExeciN left20:30
mcerb joined20:30
mcerb I appear to be in a detached head state20:30
n000g left20:30
n001gn000g20:30
Sasazuka if I do cherry-pick with "-n" is there a way to undo that?20:31
igghibu joined20:31
greatgatsby joined20:31
throstur left20:33
mcerb I've never been more afraid of losing my HEAD than I am in this moment20:34
Habbie mcerb, if you are worried about losing your head, 'git branch pleasesavemyhead' will give it a name20:35
_ikke_ !detached20:35
gitinfo A detached HEAD (aka "no branch") occurs when your HEAD does not point at a branch. New commits will NOT be added to any branch, and can easily be !lost. This can happen if you a) check out a tag, remote tracking branch, or SHA; or b) if you are in a submodule; or you are in the middle of a c) am or d) rebase that is stuck/conflicted. See !reattach20:35
Habbie !reattach20:35
gitinfo Letters refer to !detached. (a) and (b): 'git checkout branchname' to continue working on another branch, or 'git checkout -b branchname' to start a new one here; (c) git am --continue; (d) git rebase --continue20:35
throstur joined20:36
Wetmelon joined20:36
mcerb ah good, there it is20:36
beastDiv_ left20:36
tufteddeer left20:36
mcerb so now I'm back to my real problem, I commited something locally to the wrong branch20:36
tufteddeer joined20:36
mcerb and I want my last two commits to be in a different branch20:36
dionysus69 left20:37
dionysus70 joined20:37
jgrim joined20:38
dionysus70dionysus6920:39
vishal mcerb: do you care about the history (i.e. the sha IDs of the commits)?20:39
mcerb I suppose not particularly20:39
vishal IOW, have those been pushed anywhere in a way someone could have used them for basing more work off?20:39
you cherry-pick them to whatever branch you want, but that will !rewrite those commits20:40
gitinfo Rewriting public history is not recommended. Everyone who has pulled the old history will have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push --force-with-lease <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum20:40
soju_ joined20:40
mcerb ok so I suppose I do care about the history20:41
but only inasmuch as I don't want it to mess up anyone else20:41
I think I can just make my new branch and then delete the old branch20:42
vishal if the branch on which they are is significant, and you want them gone from this branch, then you will have to revert them20:42
mcerb they're not significant20:43
dionysus69 left20:43
vishal you can still cherry-pick them to the new branch, they will look like new commits with new sha IDs20:43
soju left20:43
vishal then you can just reset --hard the old branch if they're just on top, or rebase -i and drop them if they are further back in the history20:43
reset --hard is considered as a history rewrite and you will have to force push the branch20:44
nabil joined20:44
mcerb I think that last part is innaccurate20:46
vishal hm?20:46
mcerb I just did git reset --hard and then git push and nothing errored on me20:46
vishal did you have it pushed /before/ the reset?20:46
nabil__ left20:46
mcerb no20:46
vishal well then it is not a problem :)20:47
mcerb ok good20:47
I have thus far avoided having to force push anything20:47
vishal its only a rewrite if you end up deleting the commits you pushed20:47
mcerb I suppose that makes me not a very experienced Jedi20:47
b0nn --force-with-lease20:47
roadie left20:47
beastDiv_ joined20:48
rath left20:48
Ploppz joined20:50
cahoots joined20:52
cahoots hi, i want to have a hook run on cherry-picks, is there any way to do this?20:53
Ploppz I have a feature branch with many commits ahead of (and 1 commit behind) master. I want to rebase it on top of master. I find it overly difficult to do this the usual way which seems to be per commit. These commits span back many months ago and I can't remember exactly what change I did back then. Is there any alternative to just sort of accept20:53
all changes done IN TOTAL by the feature branch, and only resolves when there is some conflict between CURRENT master and CURRENT feature branch?20:53
Hope you understand my query20:53
soju_ left20:54
rafasc joined20:54
Ploppz When I started rebasing the first commit, it seemed like I was working with very old code, and for example it had files that are now long gone ... so I wonder if there is a way where I don't have to deal with these intermediate files that are not even relevant anymore20:54
rafasc left20:54
dtux left20:56
g00s joined20:59
thiago left21:01
cdunklau Ploppz: git isn't magic, it's just as dumb as any program21:02
nurdie joined21:03
gareppa joined21:03
cdunklau Ploppz: first step is really understanding the differences in the history (git log --oneline --decorate yourbranch)21:04
ferdna joined21:04
cdunklau Ploppz: if it's simple enough, you could squash all the commits not on master to make it simpler to look at21:04
tmager left21:05
Ploppz ahh I think it would be beneficial to keep the history :(21:05
cdunklau "accept all changes done IN TOTAL by the feature branch" <- this can't be done in general, with any real reasoning21:05
Ploppz ok I do understand it given I want to rewrite the entire history of the feature branch..21:06
thanks21:06
cdunklau in some circumstances it could21:06
Ploppz: but !dots might be helpful21:06
gitinfo Ploppz: A..B = stuff that happened between A and B (if A and B are related; otherwise refer to "man gitrevisions"), A...B = (a) in history viewers: stuff that isn't in both A and B yet; (b) in "git diff": stuff that happened in B since the two diverged; (c) in "git checkout": the merge base of A and B. "master.." is the same as "master..HEAD" and "..master" is the same as "HEAD..master", and so forth.21:06
cdunklau say, git log master..feature21:06
Ploppz: if you don't have any merges in your feature branch, it'll be pretty easy to figure out what happened21:07
nurdie left21:08
cdunklau git log master...feature might be enlighting too, especially in comparison with master..feature (two dots)21:08
rafasc joined21:10
blackmesa1 joined21:10
roadie joined21:12
blackmesa left21:12
g00s left21:16
GunArm joined21:16
GunArm I'm struggling to deal with a bunch of problems caused by differeing autocrlf settings on a series of machines working on the same repo. am I correct that I should be able to use .gitattributes to make per-repo settings that override whatever their local git config says about that?21:18
gareppa left21:19
GunArm just wanted to bounce this off someone before I do it and make a ruckus about everyone merging it21:19
thiago joined21:19
g00s joined21:19
rafasc GunArm: more or less. Once the the project is in good place, and a gitattributes is in effect, it should be harder to introduce eol errors.21:20
sazop joined21:20
igghibu left21:20
rafasc but it's not a panacea.21:21
crose left21:21
GunArm sure. i realize someone could still force it21:22
rafasc '* text=auto' will fix most of the problems.21:23
but you'll need to git add --renormalize . ; once after you change it.21:23
g00s left21:26
g00s joined21:28
thomasross joined21:31
soju joined21:33
beastDiv_ left21:35
Ori_B left21:35
soju left21:38
Ori_B joined21:40
blackmesa joined21:41
blackmesa1 left21:41
Ploppz thanks21:44
Now, during rebase: `git rebase master` (in the feature branch). In merge conflicts, what does HEAD refer to?21:44
there is one part called "HEAD" and then one part called with the name of the commit currently being rebased21:45
not sure which part belongs to master and which to the feature branch21:45
g00s left21:46
Ploppz seems like the HEAD part is the master part21:46
Honestly why can I not just for every commit, select the past form the feature branch (that is not HEAD / belonging to master)?21:48
g00s joined21:48
rafasc left21:48
_ikke_ HEAD is the commit that already exists, the other part is the commit that is being applied21:50
Ploppz ok thanks21:53
I'm just going to go ahead and systematically remove the HEAD part anyway21:53
soju joined21:54
beastDiv_ joined21:55
beastDiv_ left21:55
g00s left21:56
blackmesa1 joined21:57
dtux joined21:57
cahoots left21:58
soju left21:58
blackmesa left21:59
cbreak left22:01
cbreak joined22:02
dtux left22:03
thblt left22:05
crose joined22:05
mattfly joined22:06
mattfly How do i delete my last local comit?22:07
_ikke_ git reset --hard HEAD~ # cannot be undonde22:08
undone22:08
mattfly and how do I go 2 back?22:08
_ikke_ git reset --hard HEAD~222:08
mattfly okay...22:08
_ikke_ man gitrevisions22:08
gitinfo the gitrevisions manpage is available at https://gitirc.eu/gitrevisions.html22:08
yonder joined22:13
pedroteosousa left22:13
tufteddeer left22:16
tufteddeer joined22:16
l4sh left22:20
tufteddeer left22:21
greggerz left22:21
tufteddeer joined22:22
greggerz joined22:25
Shentino joined22:27
greggerz left22:27
Shentino left22:28
m0viefreak joined22:28
Shentino joined22:28
LearnAllTheTime joined22:28
jgrim left22:34
soju joined22:35
Shentino left22:38
Shentino_ joined22:38
soju left22:40
royal_screwup21 joined22:41
localhorse joined22:41
jguddas-tr joined22:44
rafasc joined22:44
CodeSlingerPaul left22:45
dijitol left22:48
cvcxc_ left22:48
jguddas-tr left22:49
omnireq left22:53
ferdna left22:55
dtux joined22:58
vicfred joined23:01
soju_ joined23:03
dtux left23:03
shabius left23:11
Rovanion left23:12
dtux joined23:13
Rovanion joined23:16
tufteddeer left23:17
tufteddeer joined23:27
thebope left23:29
Brainium joined23:31
tufteddeer left23:32
soju_ left23:32
clemons left23:32
tubaman left23:33
clemons joined23:33
snappy so i have a series of commits, i want to ensure they all build; so i do git rebase -exec ./check.sh master - it drops me into the rebase conflict; i was hoping instead it'd just print the commit and short comment, and continue23:33
my other thought was to use git bisect for this - but bisect doesn't seem to limit search to master, but it's also for finding a single commit instead of multiple commits.23:34
thebope joined23:34
rafasc snappy: git rebase flattens history, you would need at least --rebase-merges23:34
snappy oh good point23:35
but even rebase-merges isn't a guarantee if i recall23:35
rafasc but neither auto-resolves conflicts.23:35
gxt left23:35
rafasc you're better off checking out each commit, and running it.23:35
snappy right, i just want to detect which commits have a "conflict" (i.e. exec fails)23:36
rafasc exec failing isn't a conflict.23:36
snappy er maybe i used the wrong terminology.23:36
rafasc snappy: what do you want? a) ensure all commits pass check.sh? b) find the commit that broke check.sh?23:37
snappy it'll drop you into rebase mode if the execution fails.23:37
rafasc: (a)23:37
and if a commit fails, i want (b) without dropping into rebase exec failure mode, just print the commit.23:38
so i can see all failing commits.23:38
cd left23:38
thebope left23:39
mattfly left23:39
Ploppz More question about rebasing. Actually.. there's no way it should be as hard as it is right now, when I do `git rebase upstream/master`. I'm trying to rebase the branch of this PR ( https://github.com/TLmaK0/rustneat/pull/39 ) onto the master branch of that repo. As you can see it is ONE commit behind master. And that commit is this one23:40
https://github.com/TLmaK0/rustneat/commit/0a9f13683a39c0c6b0c875f0ee6159b485042dca .23:40
rafasc snappy: then parse git rev-list A..B; check out each commit, test it, print if fails23:40
snappy ok23:40
Ploppz when I do `git rebase upstream/master` on my feature branch, I have to go through every commit and I get conflicts in every single one of them, all of which I have no idea how to solve23:41
Newami joined23:41
snappy Ploppz: are they repeated conflicts?23:41
dege left23:41
Newami left23:42
rafasc snappy: git rev-list master~10..master | while read -r rev; do git checkout "$rev"; if ! ./check.sh; then printf '%s is bad' "$rev" ; done23:42
bash oneliner23:42
snappy cheers23:42
rafasc snappy: with errors included, like forgetting to close the if clause.23:42
and you'll probably want to use checkout -f, so it doesn't fail.23:43
Ploppz @snappy some were repeated I think, but also new ones were introduced23:43
snappy Ploppz: for repeated ones, you can use git rerere -- but what might be easier if it's been so long, is to branch from where you are, reset to upstream/master and incrementally redoing your code.23:44
workingjubilee joined23:45
Ploppz what do you mean with reset to upstream/master?23:45
snappy basically start a new branch from upstream/master; git branch fixeverything upstream/master23:46
and then just stage your code changes on top of that.23:46
tufteddeer joined23:47
snappy that's how i would do it anyway, particularly if you've been working out of sync from upstream/master for way too long.23:47
Ploppz That would erase the history then (I mean not include it in master)?23:48
royal_screwup21 left23:48
Ploppz But look, it's only one commit behind master, one which only changes a line in README. There must be some easy way to rebase it?23:48
behind upstream/master*23:48
if only that one line was not changes - if that latest commit on upstream master was not there, then it would be trivial!23:49
snappy is that what git diff upstream/master says?23:49
er rather git fetch upstream && git diff upstream/master23:49
hold up, let me pull this in.23:50
workingjubilee left23:51
workingjubilee joined23:51
omnireq joined23:51
snappy git diff upstream/master says otherwise.23:52
Ploppz git diff upstream/master has thousands of lines because my own branch (let's call it origin/master since I call my fork remote origin) is many commits ahead. But only one commit behind.23:52
tufteddeer left23:53
Ploppz if you go here https://github.com/Ploppz/rustneat it says "This branch is 74 commits ahead, 1 commit behind TLmaK0:master. "23:53
tufteddeer joined23:53
snappy oh yeah i see, origin last commit was 1 year ago.23:53
Ploppz and if it were not for that one latest commit to TLmaK0:master, rebase would be trivial23:53
snappy hold up.23:53
you can probably interactive rebase on your own and cherry-pick in the commit.23:54
sazop left23:54
mattfly joined23:55
fromBeyond left23:55
Ploppz sorry what do you mean?23:56
duderonomy joined23:57
Ploppz I could give up and merge upstream/master -> origin/master instead...23:58
perhaps I will23:58
rafasc Ploppz: First things first. Your branch has some merges, what do you want to do with them?23:58
and commits like "15b68b5 ."23:59

Logs Search ←Prev date Next date→ Channels Documentation