IRCloggy #git 2020-01-12

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.

2020-01-12

sebastian_nielse left00:04
seebyr joined00:07
_homme__ joined00:08
theorangeone left00:11
sbeyer left00:11
theorangeone joined00:11
emmanuelux left00:12
storrgie joined00:13
Jitta left00:15
ChanServ set mode: +o00:17
jimender2 joined00:17
Eugene changed the topic to: Welcome to #git | First visit? https://gitirc.eu | Current stable version: 2.24.1 | Getting "cannot send to channel"? /msg gitinfo .voice | This channel is logged: https://gitirc.eu/log | Hadn't been for merge-eyed Joe, Ida been commited long time ago00:17
Eugene kicked Eugene (de-op)00:17
Eugene joined00:17
Jitta joined00:18
sidetrack joined00:21
sgn left00:22
Jitta left00:26
oatmealraisin joined00:28
__salt left00:33
lacrymology left00:36
sgn joined00:36
mr_ab left00:41
crose left00:44
learningc left00:52
plexigras left01:03
jhulten joined01:04
fatpointer left01:09
fatpointer joined01:10
Wetmelon joined01:13
arekm left01:17
arekm joined01:17
pandakekok9 joined01:18
learningc joined01:20
mowcat left01:21
fragamus joined01:22
owlscientist left01:30
jhulten left01:31
seebyr left01:31
owlscientist joined01:33
owlscientist left01:33
fragamus left01:35
Onionnion left01:40
sauvin left01:42
CryptoDavid left01:48
sauvin joined01:52
oatmealraisin left01:52
oatmealraisin joined01:54
Lunatrius left01:56
im0nde left01:58
im0nde joined01:59
Aquazi left02:00
Onionnion joined02:02
cd left02:03
pandakek1k9 joined02:04
Lunatrius joined02:05
pandakekok9 left02:05
pandakek1k9pandakekok902:05
F0rTex left02:06
F0rTex joined02:08
MylesBorins left02:09
MylesBorins joined02:10
duderonomy joined02:20
jrm rewt: Thanks again. I'll try gitk.02:20
Arcaelyx left02:26
sentinal8473 joined02:28
duderonomy left02:29
davispuh left02:30
jhulten joined02:31
sentinal8473 left02:32
davispuh joined02:33
sperry joined02:35
finalbeta left02:38
YuGiOhJCJ joined02:39
perrier-jouet I want to add my pass .password-store to my dotfiles, should I create the pass git init inside dotfiles ?02:39
pandakekok9 left02:40
dedowsdi joined02:40
dedowsdi left02:41
dedowsdi joined02:42
sidetrack left02:43
Narrat left02:44
sidetrack joined02:45
davispuh left02:45
Vampire0 joined02:45
Vampire0 left02:45
davispuh joined02:45
ChrisLane left02:46
finalbeta joined02:48
duderonomy joined02:48
Wetmelon left02:48
ChrisLane joined02:48
duderonomy left02:50
sidetrack left02:50
lankanmon joined02:51
sidetrack joined02:54
bambanx joined02:54
sidetrack left02:55
sidetrack joined02:55
_salt joined02:57
Narrat joined02:58
pandakekok9 joined03:00
Narrat left03:01
jstein left03:01
hendry left03:03
duderonomy joined03:06
duderonomy left03:09
nowhere_man left03:09
Cabanossi left03:10
CCR5-D32 left03:11
duderonomy joined03:11
jhulten left03:11
nowhere_man joined03:12
duderonomy left03:12
SwiftMatt joined03:13
Cabanossi joined03:18
duderonomy joined03:21
Stoot left03:22
duderonomy left03:22
SwiftMatt left03:25
duderonomy joined03:29
midnightmagicmidnight03:31
lagothrix left03:32
lagothrix joined03:32
fatpointer\v03:36
\vr\03:36
r\\R\03:36
mArtale joined03:37
\R\ left03:37
mArtale left03:37
SwiftMatt joined03:38
sborza left03:39
sborza joined03:39
Heirlung left03:40
Heirlung joined03:41
jhulten joined03:48
terrehbyte left03:50
Heirlung left03:51
natechan joined03:53
rewt jrm, np... I just had another look at the repo, and am a bit confused; originally you said 7fc3de has a problem but 7025d3 does not... but the contents of these commits are identical... could there be a fragile test during the build that's causing the problem?03:56
jhulten left03:59
Heirlung joined03:59
_homme__ left04:00
SwiftMatt left04:01
Newami joined04:02
pandakekok9pandakekok9|away04:03
Newami left04:05
Anthaas left04:16
Anthaas joined04:19
donofrio joined04:22
hendry joined04:30
sidetrack left04:31
chrisml left04:32
chrisml joined04:33
altendky left04:33
Bigcheese left04:34
gjnoonan left04:34
Jeebiss left04:34
OvermindDL1 left04:34
nuxdie left04:34
pandakekok9|away left04:34
prit left04:34
blowry left04:34
Manouchehri left04:34
KennosiS left04:34
blowry joined04:34
timwis left04:34
Manouchehri joined04:35
timwis joined04:35
Bigcheese joined04:35
nuxdie joined04:35
gjnoonan joined04:35
altendky joined04:36
Fenhl left04:36
OvermindDL1 joined04:36
Jeebiss joined04:36
no_maam left04:36
madduck left04:37
Fenhl joined04:37
madduck joined04:37
prit joined04:37
_flow_ left04:38
kanzure left04:38
kanzure joined04:39
AllenJB left04:39
SCHAPiE left04:39
Helenah left04:39
AllenJB joined04:40
SCHAPiE joined04:41
hagabaka left04:41
Helenah joined04:41
FutureTense left04:42
hagabaka joined04:42
KennosiS joined04:42
jackedin joined04:43
pandakekok9|away joined04:45
pandakekok9|awaypandakekok904:46
natechan left04:46
jackedin left04:53
CycoCid left04:54
sperry left04:54
sperry joined04:55
duderonomy left04:59
duderonomy joined04:59
pks_ joined05:02
pks left05:03
pks_pks05:03
jetchisel left05:03
dartmouthed left05:06
_flow_ joined05:07
no_maam joined05:07
duderonomy left05:09
_flow_ left05:11
sidetrack joined05:12
nowhere_man left05:12
_flow_ joined05:18
donofrio left05:21
FH_thecat left05:27
perrier-jouet hi all05:34
anyone here ?05:34
pandakekok9pandakekok9|away05:37
inkbottle joined05:37
zebrag left05:39
sperry left05:39
jleclanche left05:40
FH_thecat joined05:47
FH_thecat left05:51
FH_thecat joined05:52
bvdw left05:55
bvdw joined05:56
kent\n left05:58
kent\n joined05:59
pandakekok9|awaypandakekok906:02
g4570n left06:04
doug16k left06:08
doug16k joined06:09
FH_thecat left06:24
gordonfish left06:24
pandakekok9 left06:24
b0nn no06:25
FH_thecat joined06:26
gordonfish- joined06:28
gordonfish-gordonfish06:29
perrier-jouet please help06:29
am trying yo setup this https://woile.github.io/gopass-cheat-sheet/06:30
I want my .password-store in github, how can I add the submodule ? on github I have already github/user/keys.git06:31
sidetrack left06:39
duderonomy joined06:45
darkbit joined06:51
cbreak left06:54
bambanx left06:55
begui left06:55
beastDiv_ joined06:55
cbreak joined06:56
kreyren is there some way for git to handle mirroring? For example making one remote for two URIs ?07:01
kreyren is trying to mirror github with gitlab07:02
kreyren (2-way mirror)07:02
FH_thecat left07:03
kreyren ` git remote set-url –add –push origin URI` ?07:05
gpanders left07:06
FH_thecat joined07:07
jamm joined07:11
Wetmelon joined07:13
Anthaas left07:14
danielzgtg joined07:14
Anthaas joined07:15
kreyren `git sync-remote URI1 URI2` ?07:16
Wetmelon left07:19
g00s joined07:26
ferdna left07:32
orbyt_ left07:33
jimender2 left07:45
robh71 joined07:51
gitter1234 joined07:54
FH_thecat left07:54
FH_thecat joined07:55
FH_thecat left07:55
dviola joined07:57
g00s left08:00
Elundia joined08:02
g00s joined08:02
thebope joined08:03
Heirlung- joined08:03
Elundia left08:03
Elundia joined08:03
jamm left08:04
Heirlung left08:04
Elundia left08:04
Heirlung-Heirlung08:04
Elundia joined08:04
Elundia left08:04
Elundia joined08:06
thebope left08:07
milkt left08:08
beastDiv_ left08:08
beastDiv_ joined08:13
milkt joined08:13
Elundia left08:13
Elundia joined08:16
kjartan left08:23
kjartan joined08:25
yawkat`yawkat08:28
Elundia left08:28
Elundia joined08:29
FH_thecat joined08:33
oatmealraisin left08:34
FH_thecat left08:36
FH_thecat joined08:37
iNs_ joined08:38
FH_thecat left08:38
duderonomy left08:39
iNs left08:39
jesopo left08:42
sidetrack joined08:50
learningc left08:52
feriman joined08:53
sidetrack left08:54
mat001 left08:55
cbreak left08:56
cbreak joined08:58
ChrisLane left08:59
ChrisLane joined09:00
Goplat left09:06
tsujp left09:14
learningc joined09:20
crose joined09:24
Noti joined09:25
Noti left09:29
pd098pd06409:31
pd064pd06609:31
pd066pd06809:31
Mattiaslndstrm joined09:31
pd068pd07009:31
pd070pd07209:31
javashin joined09:32
javashin left09:34
javashin joined09:34
wootehfoot joined09:38
Elundia left09:40
fphilipe joined09:40
duderonomy joined09:42
JanC left09:43
misuto5 joined09:43
bleb left09:43
JanC joined09:44
misuto left09:45
JanC left09:46
darkbit left09:46
JanC joined09:46
bleb joined09:48
yamppa joined10:00
veegee left10:00
veegee joined10:03
dionysus69 joined10:04
j416 perhaps a one-way sync would be better10:04
you could of course do the former (set-url [...]), but it'd of course assume you're the only one working on the project10:06
kreyren: ^10:06
mowcat joined10:15
paws_ joined10:17
kreyren j416, it's expected that multiple people are working on it10:18
Elench joined10:22
Noti joined10:22
gitinfo set mode: +v10:23
feriman left10:24
g00s left10:26
j416 there are probably articles about this10:26
spontaneously I'm thinking cron -> clone --mirror + push10:27
kreyren j416, i found few but none that mensions 2-way mirror10:27
j416 but of course you'd need to remove anything that might have been added to the mirror, too10:27
kreyren about cron i would rather want something that triggers on commit10:27
j416 I don't think 2-way sync is sane10:27
kreyren why not?10:27
j416 how would you handle a conflict?10:28
kreyren if everything works as it should it should never conflict since it would basically be changing the same repository10:28
j416 there are two repositories.10:28
if it were the same you wouldn't need a sync10:29
why do you need 2-way sync?10:29
kreyren it's one repository that i want available on two hosters with same commits, merge requests and issues10:29
well multiple hosters10:29
j416 in that case git won't be enough10:30
kreyren j416, what do you propose?10:30
j416 you'd need to build something using the APIs of github and gitlab10:30
FH_thecat joined10:30
j416 I propose you pick just one.10:30
kreyren for issues i assume, trying to resolve the git part now10:31
(issues including merge requests)10:31
j416 if you must have two, I'd suggest that either one is a read-only copy, at the very least for the main branch(es).10:31
kreyren i want both writable10:32
j416 .s/either//10:32
kreyren: have fun with that10:32
kreyren since my contributors like to use github and gitlab10:32
j416 the only way I can think of is if you set up something in front of these that you push to10:33
that will in turn push to both, so that they can be kept read-only10:33
but you can't have write access to two separate things and expect there to be no conflicts10:34
theoceaniscool joined10:35
fphilipe left10:48
fphilipe joined10:50
tsujp joined10:52
kreyren conflicts would be resolved in MR itself in that case no? Neither of them won't approve merge if it's conflicting10:57
fphilipe left11:06
j416 I don't mean code conflicts11:07
I mean repo conflicts.11:07
kreyren eh?11:07
j416 what if two people create a new branch by the same name and push their code to it, one to github and one to gitlab?11:07
how is the sync going to know which one wins?11:08
kreyren Shoudn't happend since i'm the only one managing branches11:08
j416 so then why do you need push access at all11:08
work with one remote and mirror to the other11:09
moo joined11:09
j416 if I understand correctly, you pull changes from people and then you push those to branches on the remote?11:10
others don't push directly to github/gitlab11:10
tsujp left11:10
j416 sounds like an odd workflow, but if that's the case, I suppose the risk of conflict would be quite small indeed.11:11
wootehfoot left11:11
j416 a script to fetch everything from one repo and push it all to the other (clone --mirror + subsequent fetches), and vice versa.11:12
you'd still need to think about how to handle conflicts, though.11:12
kreyren to simplify it i have contributors using gitlab only and i have other contributors using only GitHub so i want to satisfy both for development11:12
j416 kreyren: are they pushing their branches directly to each remote?11:13
st-gourichon-fid left11:13
kreyren Since they are working on the same project so it has to work like it's one hoster11:14
j416 kreyren: then tell me, how are you managing these branches to avoid two different branches of the same name being pushed to each respective remote?11:14
kreyren for example i might get 5 commits from gitlab and 2 from github per day11:15
i don't resolve branches since i will be the only one making them11:15
j416 then how do they push commits?11:15
kreyren planing to make a logic for it in the future11:15
using `git` through merge requests11:15
j416 merge requests of whaat11:15
whaat*11:15
.. sorry, a key is acting up11:16
kreyren: I'm trying to tell you that they are pushing branches.11:16
kreyren merge requests of contributions and new functions11:16
they are using their forks to push merge requests to be approved and check by QA11:16
j416 this is irrelevant11:17
they are pushing commits by using branches11:17
kreyren in their forks?11:17
ah i see if contributor makes the same branch used in the merge request as source?11:17
j416 so they _don't_ have write access to these repos like you mentioned?11:18
Stoot joined11:18
kreyren they do have write access as long as it passes QA then it gets auto-approved11:18
j416 then you have no control over branch naming11:18
dartmouthed joined11:19
j416 but if the only workflow is merginb by pull requests, perhaps that does avoid branch name conflicts11:19
tsujp joined11:19
j416 I still would recommend you stick to one provider11:19
kreyren contributor's branch naming for their forks should be irelevant though github has a way to recognize the branch per repository afik11:19
*afaik11:20
j416 in a fork yes11:20
kreyren sticking to one provider is not an option..11:20
j416 why?11:20
you don't need to tell me, just think about it11:20
kreyren since my contributors wont use github and vice-versa11:20
j416 it'd simplify things a lot11:20
why won't they?11:21
kreyren one is owned by microsoft and the other has terrible gui11:21
j416 and why do you need to spend hours on end managing this monster?11:21
kreyren to satisfy their need and follow fsf phylosophy to support everything11:21
j416 what if they want to contribute using svn11:22
another sync?11:22
what you are asking for is of course doable (anything is), but it won't be without issues11:22
kreyren another thing to be resolved but svn is not important atm11:22
j416 ...11:22
I've given you a few alternatives, anyway.11:23
I'm off o/11:23
kreyren i'm going to lower priority for it then and investigate later, write a backend for it if needed O.o11:23
i have the power of regex so nothing is impossible! :p11:24
tsujp left11:27
dionysus69 left11:28
dionysus69 joined11:31
nowhere_man joined11:32
pandakekok9 joined11:36
Heirlung left11:38
fphilipe joined11:41
javashin left11:42
dviola left11:44
tsujp joined11:45
systemhalted joined11:50
bvdw left11:55
bvdw joined11:55
Mattiaslndstrm left11:56
systemhalted left11:57
magic_ninja left11:57
magic_ninja joined12:00
Mattiaslndstrm joined12:01
neunon joined12:02
lioh joined12:02
lioh hi. i am using gitweb and have realized that my html blob is not displayed in the correct charset (umlauts are not rendered correctly): https://my.freedombox.rocks/gitweb/LinuxKurs.git/blob_plain/HEAD:/Installation.html12:03
do you have any idea what can be the root cause?12:03
royal_screwup21 joined12:04
CarloWood Is there a way to run git submodule foreach --recursive ... and return a non-zero value when any invocation of the script returns a non-zero value, but not stop when that happens? I want the script to be run on all submodules, and then return 0 only when all of them returned 0.12:04
j416 kreyren: you might want to check how large open-source projects handle similar situations, having their own preferred way to accept patches and then one or more additional ways.12:04
kreyren: some have just one way of course, but some have several.12:04
omnireq_ joined12:06
pks_ joined12:07
Brainium joined12:07
j416 lioh: either your file is of the wrong encoding, your html isn't specifying the encoding correctly, or something simply ignores all of it12:08
kreyren: it looks to me like the file itself is UTF-8.12:08
pks left12:08
pks_pks12:08
j416 kreyren: if you set your browser to UTF-8, it displays correctly12:09
omnireq left12:09
j416 not kreyren; sorry12:09
lioh: ^12:09
lioh: the server specifies a response header: Content-Type: text/html; charset=ISO-8859-112:10
that's likely it.12:10
vishal left12:10
maxwilliamson left12:11
vishal joined12:13
maxwilliamson joined12:13
omnireq_ left12:13
omnireq_ joined12:14
_xor left12:16
lioh j416, so you think it is most likely an webserver configuration issue (apache2 in this case)?12:17
or something that has to be configured in gitweb? because when i put the same html file just in a webroot on the same server it is displayed correctly.12:17
i was thinking it might have to do with the encoding settings in the gitweb configuration but changing e.g. $fallback_encoding does not result in anything visible.12:19
j416 lioh: web server yes12:26
dunno if gitweb sets headers; maybe it does.12:26
tryte left12:26
tryte joined12:27
lioh looks like. because adding AddDefaultCharset UTF-8 to the apache conf does not seem to have any effect on gitweb12:27
nedbat is there one command that will do the same as: git checkout some-branch; git reset --hard some-commit # that is, make some-branch refer to some-commit12:28
FH_thecat left12:30
CarloWood git branch [--track | --no-track] [-f] <branchname> [<start-point>]12:30
git branch -f some-branch some-commit12:30
Well12:30
that doesn't checkout12:30
it just moves your branch 'tag' to some-commit.12:31
so, you will lose anything that some-branch was pointing to before, if that wasn't merged into some other branch.12:31
nedbat CarloWood: no, that's perfect. i didn't need to have it checked out, that's just how i new to move it. thanks.12:32
shored left12:33
shored joined12:34
Heirlung joined12:35
Mattiaslndstrm left12:35
qsx`qsx12:37
omnireq_ left12:38
FH_thecat joined12:39
lioh j416, ah, it's the mime lookup which sets it. going to define an own mime table now.12:40
omnireq joined12:44
sebastian_nielse joined12:47
sebastian_nielse If I modify a file out of many already staged, and then commit. What is then in the snapshot created by me commiting? Is it only the modified file, or is it all the files in my directory?12:48
osse sebastian_nielse: what is staged is commited12:50
sebastian_nielse Okay, so all the files in my working tree (directory) is commited and thus in the newly created snapshot?12:51
_ikke_ sebastian_nielse: What is part of the snapshot is what is staged\12:51
any change not staged won't be part of the next commit12:52
sebastian_nielse Okay, got it, thanks :)12:52
kreyren j416, do you know about such project? usually the mirror is self-hosted and mirrored12:52
yonder left12:53
BtbN left12:54
BtbN joined12:58
omnireq left13:01
omnireq joined13:01
qsx left13:07
qsx joined13:09
matheusmoreira left13:11
matheusmoreira joined13:12
Noti left13:12
qsx left13:15
qsx joined13:16
perrier-jouet hi all13:20
I am trying to store my password store in github, am following this https://woile.github.io/gopass-cheat-sheet/13:23
I have a anyone here use pass with github ?13:24
gitter1234 left13:30
jstein joined13:32
royal_screwup21 left13:33
greatgatsby joined13:34
pandakek1k9 joined13:35
pandakekok9 left13:36
pandakek1k9pandakekok913:36
jesopo joined13:37
beastDiv_ left13:38
algiss joined13:40
algiss left13:41
algiss joined13:41
devster31 left13:42
perrier-jouet nm13:45
devster31 joined13:45
eqw 1. Is it true that the only place where the name of branch is stored(connected to particular commits) is .git/refs/heads/<branchname> ? 2. If so, does that mean that it is not possible to say whether commits were made to particular branch if they are parent to a merge commit?13:56
nedbat eqw: it's true that commits don't record the branch they were a part of (unlike mercurial)13:57
osse eqw: you can tell *which* parent leads to a commit, which is often good enough13:59
quackgyver left14:01
_ikke_ eqw: recent mailing list post about that: https://lore.kernel.org/git/CAEW0o+jV+r1UMZReRXa3g_fyqCYxHTVYVf6pWvjB7_isofbBaw@mail.gmail.com/14:07
mat001 joined14:08
beastDiv_ joined14:13
st-gourichon-fid joined14:13
g4570n joined14:18
cbreak eqw: branches in git are transient pointers14:21
they are not part of history, and not recorded anywhere14:21
other than default commit messages of merge commits :D14:21
dzho yay for merge commits then ;-)14:22
I know a lot of people hate them, is why I bother to mention that14:22
not so much to irritate them as to offer a counterpoint14:22
sebastian_nielse Branches in git are lightweight moveable pointers* (just read that from git pro)14:24
I am reading about branches atm14:24
CarloWood made an alias 'git upsh' which is the same 'git push' but first UPdates the Submodule gitlinks before pushing.14:26
jetchisel joined14:26
dzho nice14:27
CarloWood :)14:27
https://gyazo.com/67bec0d3ff7ed68117ff1387a554304414:31
So, I did a commit in submodule cwds there and then a 'git upsh' in the root of the project. The result is kinda like as if cwds was just a normal subdirectory.14:33
Eryn_1983_FL left14:35
pandakekok9 left14:35
storrgie left14:43
storrgie joined14:45
algiss left14:49
thebope joined14:52
BluesKaj joined14:53
BluesKaj left14:54
jaziz left14:55
sweatsuit left14:56
thebope left14:57
satifant joined14:58
dedowsdi left15:00
R2robot left15:00
Trieste joined15:01
R2robot joined15:05
Eryn_1983_FL joined15:05
sweatsuit joined15:07
dionysus69 left15:07
dskull left15:08
misuto5 left15:08
misuto joined15:12
dimi1947 joined15:21
dsnow left15:22
xcm left15:25
dsnow joined15:25
xcm joined15:25
Belliash left15:27
thebope joined15:30
sebastian_nielse left15:31
jrm rewt: Sorry, commit 7fc3def builds fine. I'm not sure how I screwed that up. Commit 2f073d8 fails to build, but 747b6c3 is fine, so it seems 2f073d8 introduces the problem.15:32
Belliash joined15:33
thebope left15:38
Helenah left15:39
alich joined15:40
Helenah joined15:40
gpanders joined15:43
wondiws joined15:46
wondiws is it possible to remove the last commit from git on github (that has been pushed)?15:46
Habbie !force15:48
gitinfo [!force_push] If you need to overwrite the history of a remote git repository (be carefull, see !rewrite), you can do so with `git push --force-with-lease`. Note that the remote server may reject this. See man git-config and search for receive.denyNonFastForwards. Best practice is for upstream servers to denyNonFastForwards.15:48
sperry joined15:48
sperry left15:49
sperry joined15:49
jleclanche joined15:50
gitter1234 joined15:54
alich left15:55
R2robot left15:57
apetresc left15:58
apetresc joined16:02
natechan joined16:02
dskull joined16:04
Brainium left16:08
feriman joined16:10
apetresc left16:11
alich joined16:15
apetresc joined16:15
storrgie left16:16
storrgie joined16:18
theoceaniscool left16:27
JanC left16:30
JanC joined16:30
feriman left16:32
emmanuelux joined16:32
feriman joined16:33
Newami joined16:33
Newami left16:35
moo left16:37
wootehfoot joined16:37
st-gourichon-f joined16:38
st-gourichon-fid left16:38
wondiws left16:45
nowhere_man left16:48
lioh left16:56
R2robot joined16:58
tsujp left16:59
royal_screwup21 joined17:00
Mattiaslndstrm joined17:02
xSke left17:05
xSke joined17:06
sbeyer joined17:09
fstd_ joined17:10
Murr left17:11
Murr joined17:14
fstd left17:15
fstd_fstd17:15
sidetrack joined17:15
theoceaniscool joined17:19
Trieste left17:20
Trieste joined17:20
begui joined17:22
royal_screwup21 left17:27
sidetrack left17:28
mad_moses joined17:29
mad_moses hi17:29
sidetrack joined17:30
mad_moses I added within my git project a submodule with the command "git submodule add urltorepsoitory.git". Is it possible to rename the added root submodule folder? I tried to use "git mv" but it is creating a new folder and addind into the folder a submodule. Thats not what I wanted17:31
natechan left17:32
natechan joined17:34
_xor joined17:36
sidetrack left17:47
sidetrack joined17:47
bvdw left17:55
bvdw joined17:56
Goplat joined18:00
jackedin joined18:05
thebope joined18:07
kleisli left18:10
thebope left18:12
simpl_e joined18:18
CarloWood git mv should just work18:19
xcm left18:19
gpanders left18:20
xcm joined18:20
CarloWood If 'git submodule add https://urlto/repository.git' cloned stuff into 'repository', then you can do 'git mv repository newname'18:20
Provided you don't have an ancient git version.18:20
owlscientist joined18:21
natechan left18:27
gitter1234 Isn't there an easier way than rebasing if you want to force send a file back to a commit? Like in just one command? Rebasing takes several plus often tends to run into conflicts.18:28
royal_screwup21 joined18:29
gitter1234 Such a feature would make life so much easier!18:29
_ikke_ gitter1234: I don't think so18:30
CarloWood I have no idea what you mean.18:30
_ikke_ Moving a change to an earier commit18:30
CarloWood What means 'force send a file back to a commit' ... I mean, a commit is basically a hash of the whole repository, so what does that have to do with a file - and how can you send a file heh to it?18:31
gitter1234 I was just speaking in layman's terms CarloWood18:31
CarloWood Ok, so reverting a file back to what it was in an earlier commit.18:31
gitter1234 Yup18:31
CarloWood I'd just copy it over.18:32
gitter1234 Or wait, no18:32
CarloWood Make a new commit thus.18:32
gitter1234 I don't wanna18:32
sidetrack left18:32
CarloWood A commit is a snapshot of the WHOLE repository - there isn't such a thing as going back for a single file - its the whole repository or nothing.18:33
gitter1234 You're making things too complicated18:33
You know what I mean, don't you?18:33
CarloWood yes18:33
If you change just one file back, but nothing everything - then the result is a new repository state (snapshot) that never existed before. So, there is no related hash and you will just have to create it with a new commit.18:34
lucasb joined18:34
milkt left18:34
CarloWood Hence, get the old file, copy it over the existing file and commit that.18:34
but not* everything18:34
sgen joined18:35
CarloWood It's not complicated - it's how you have to get used to think about sha1's and git :/18:35
milkt joined18:36
gitter1234 I've made changes to a file. Those changes are too tiny and insignificant to make a new commit out of, and in addition, they ought to be part of a commit I made last night.18:36
Rebasing gets tedious after a while. If there just was a way to cheat :) I'm aware it would rewrite my entire history but that's okay, I haven't shared my repo with anybody so.18:37
Tedious is the wrong word. Tiresome, sorry18:37
dimi1947 left18:40
fragamus joined18:41
CarloWood Sounds like that is exactly what you (actually) want though: rewrite the history.18:41
So, that would be a rebase... Personally I don't give a *** about the history; just don't look at it lol.18:42
gitter1234 lol18:42
Stoot left18:42
CarloWood You won't laugh anymore after looking at this: https://gyazo.com/165aaab1d7740cdc181a0d1a31b2019518:43
And that isn't even spagethi! lol18:43
gitter1234 I guess. but rebasing is like 7 steps. and that's without the merge conflicts somebody with my luck is guaranteed to run into18:43
orbyt_ joined18:43
gitter1234 Oh dear :D18:44
CarloWood I work differently when I work on a project that has a team ;).18:44
Here it's just me... so I use git as a glorified backup system18:45
milkt left18:45
bvdw left18:46
gitter1234 hehe me too18:46
I was just about to profess my newfound love for Git before I thought of this feature request18:46
bvdw joined18:47
bvdw left18:47
CarloWood Right now I need to figure out how to get hunter to build a package that needs autotools :/ *sigh*18:47
gitter1234 Is there a way to get heard among the main git developers? I guess posting an issue over at https://github.com/git/git?18:48
plexigras joined18:49
qsx left18:50
qsx joined18:50
southernvg joined18:51
Elench left18:52
Narrat joined18:54
qsx left18:55
Trieste left18:57
qsx joined18:58
Trieste joined18:58
gitter1234 Something along the lines of "git rebase --off-she-goes <file> <hash>" maybe? As opposed to "git stash && git rebase --interactive '<hash>^' && <change pick => edit> && <apply changes manually> && git add <file> && git commit --amend && git rebase --continue && git stash pop && <merge conflict that requires manual intervention> && git rebase --continue && git stash pop && <still a conflict> && <go to IRC and beg for18:58
help>"18:58
bvdw joined18:58
bvdw left19:00
bvdw joined19:01
xcm left19:02
xcm joined19:02
troulouliou_div2 joined19:07
_salt left19:11
shored left19:12
shored joined19:13
troulouliou_div2 left19:14
CryptoDavid joined19:17
royal_screwup21 left19:17
thebope joined19:17
duderonomy left19:18
Fernando-Basso joined19:19
Kaivo left19:19
FH_thecat left19:20
brettgilio joined19:21
jackedin left19:22
jackedin joined19:26
jackedin left19:27
troulouliou_div2 joined19:28
jackedin joined19:28
jackedin left19:29
jackedin joined19:30
troulouliou_div2 left19:38
jackedin left19:39
jackedin joined19:39
theoceaniscool left19:47
vicfred joined19:48
fragamus left19:49
southernvg left19:50
natechan joined19:50
Mattiaslndstrm left19:51
southernvg joined19:52
FH_thecat joined20:02
bvdw8 joined20:05
bvdw8 left20:06
bvdw4 joined20:06
bvdw left20:06
bvdw4bvdw20:06
fragamus joined20:07
thebope left20:08
xSke left20:08
thebope joined20:09
mad_moses left20:10
howdoi joined20:10
mad_moses joined20:11
sgen left20:11
southernvg left20:11
duderonomy joined20:12
YuGiOhJCJ left20:13
thebope left20:13
southernvg joined20:13
thebope joined20:17
duderonomy left20:17
mad_moses left20:17
natechan left20:22
cpackham gitter1234: the main communication with the git devs is via the mailing list [email@hidden.address] (note you don't need to subscribe to the list just send an email to that address) some do hang out here occasionally and I believe there is a #git-devel IRC channel as well20:23
gitter1234 Cool thanks cpackham20:24
mat001 left20:25
cpackham @gitter20:25
cd joined20:26
gitter1234 :D20:26
spacefrog joined20:27
cpackham gitter1234: skiming the IRC logs I think what you might be after is `git add; git commit --fixup=<sha1-of-commit-to-fix>; git rebase --interactive --autosquash`20:27
I use that all the time to juggle commits to clean them up before they get published20:28
gitter1234 nice20:29
really nice!20:29
seems i got a similar answer from the mailinglist.. thanks a lot man!20:29
cpackham: curious, are there any other neat commands like that that you tend to use all the time?20:30
jedsharp left20:30
sgen joined20:31
brettgilio left20:31
cpackham `git rebase --interactive` is definitely the command I use heavily. It means I can commit away and sort things out into a coherent series later. I also have an alias that does `git log --oneline --graph @{u}..` that shows me the things that I haven't published20:33
Basically it tells me the "safe" range I can rebase20:33
gitter1234 hmmm20:33
southernvg left20:34
gitter1234 very cool!20:35
gpanders joined20:35
jackedin left20:37
jackedin joined20:37
gitter1234 cpackham: regarding `git add; git commit --fixup=<sha1-of-commit-to-fix>; git rebase --interactive --autosquash` - the guy from the mailinglist mentioned git stash but only if necessary, before the rebasing.. when is it necessary to rebase?20:38
beastDiv_ left20:39
beastDiv_ joined20:39
heftig left20:40
heftig joined20:41
gitter1234 i should probably read the docs at this point :-)20:41
again tho i really appreciate the the help!20:41
cpackham There are two times you might want to rebase. The first is when there are upstream changes that you want to incorporate but you also want to keep a linear history so you do a `git fetch && git rebase` which is the long way of saying `git pull -r`20:42
thebope left20:43
cpackham The second is when you've been hacking away committing as you go and you want to turn the pile of commits into a coherent series to publish20:43
dionysus69 joined20:43
cpackham That's when I use `git rebase --interactive HEAD~N` (where N is the number of commits back you want to juggle)20:44
fphilipe_ joined20:44
beastDiv_ left20:45
cpackham Using the interactive mode I can re-arrange the commits to tell a story or squash commits together so they are one logical change. You can even split big commits up again to follow the one logical change per commit rule.20:46
There is the usual caveat about re-writing history20:46
In particular you don't want to rebase changes that have been published20:47
fphilipe left20:47
sgen left20:47
jackedin left20:47
stux|RC-only left20:49
natechan joined20:50
cpackham Stashing has it's place. Its effectively the same as `git commit -a -m"temp"; git pull -r; git reset HEAD^`20:51
It's not a silver bullet that will help you avoid conflicts20:51
If there is a conflict it needs to be resolved one way or the other.20:52
gareppa joined20:52
gitter1234 wow20:52
rcartax left20:53
gitter1234 im falling more and more in love with git for every day that passes :)20:53
a coherent history is indeed what im after...20:54
CarlFK joined20:57
gitter1234 came across this the other day, i believe the same principle applies to ones git repos: CLEAN YOUR ROOM - Powerful Life Advice | Jordan Peterson: https://www.youtube.com/watch?v=Vp9599kwnhM20:57
especially mine..20:57
thanks again man! i gotta go take a break been staring at the screen for 15 hours straight. peace20:58
Phylock joined20:59
untermensch joined21:01
duderonomy joined21:02
gareppa left21:04
gpanders left21:09
stux|RC-only joined21:09
mat001 joined21:09
j416 kreyren: https://go.googlesource.com/go for example21:11
duderonomy left21:12
_salt joined21:13
mat001 left21:13
duderonomy joined21:14
royal_screwup21 joined21:15
untermensch left21:16
untermensch joined21:16
iam730 left21:18
R2robot left21:19
salsa20 joined21:19
iam730 joined21:20
alich left21:20
R2robot joined21:20
Soni joined21:20
Soni so given that I have a repo with two repos inside it, do I just manually rebase/cherry-pick the stuff I wanna split off?21:21
like, I had a project, then I made a side project to help me with that project21:22
now I wanna bring that side project into its own project with its own repo21:22
but I'd like to keep the full history21:22
(also not gonna touch the main project's commits. those stay.)21:22
royal_screwup21 left21:24
j416 Soni: when you say repo with repo inside it, do you mean that it's a submodule?21:26
Soni no21:27
j416 please clarify21:27
Soni I mean I have commits for two different projects in the same repo21:27
j416 so it's just one repo21:27
Soni in the same branch, even21:27
j416: I have 2 logical repos on one physical repo21:27
j416 I don't know what that means.21:27
Soni eh w/e21:28
j416 ok21:28
Soni anyway how do I split a file off a branch?21:28
j416 whatever.21:28
Soni with full history for that file21:28
clone the repo, git rebase the whole thing?21:29
_ikke_ Soni: so you have 2 projects in one git repo I guess?21:30
Soni yeah21:30
Stoot joined21:30
osse Soni: git filter-branch21:31
simpl_e left21:32
natechan left21:37
fphilipe joined21:38
fphilipe_ left21:41
untermensch left21:41
Soni @_@21:42
I... think I'll go with the rebase/manual approach21:42
Jackneill joined21:46
feriman left21:48
beastDiv_ joined21:48
Kulrak joined21:51
beastDiv_ left21:53
CarlFK left21:55
Jackneill left21:58
Trieste left22:03
osse if there are many commits that might be problematic22:03
yonder joined22:03
Trieste joined22:04
wootehfoot left22:04
gioyik joined22:04
sidetrack joined22:05
beastDiv_ joined22:10
kleisli joined22:10
natechan joined22:13
JanC left22:13
JanC joined22:14
misuto8 joined22:15
royal_screwup21 joined22:15
fragamus left22:16
Xiti left22:16
webstrand left22:17
webstran- joined22:17
webstran-webstrand22:18
dmc left22:19
null1337 joined22:19
polyzen joined22:19
misuto left22:20
Inline left22:24
Phylock left22:24
davispuhh joined22:26
gioyik left22:27
davispuh left22:28
mat001 joined22:31
mat001_ joined22:31
jackedin joined22:34
wootehfoot joined22:36
mat001 left22:36
Wetmelon joined22:36
Phylock joined22:38
Phylock left22:43
Fernando-Basso left22:46
natechan left22:46
plexigras left22:47
sgen joined22:48
safe joined22:49
greatgatsby left22:49
sgen left22:50
sgen joined22:50
Khisanth left22:51
dionysus69 left22:52
salsa20 left22:55
veegee left22:59
b1101 joined22:59
b1101 left22:59
gioyik joined23:00
b1101 joined23:00
royal_screwup21 left23:00
b1101 can someone assist me in getting to this commit within the source. https://github.com/pond3r/ggpo/pull/52/commits/86673e87b9b9040d6e119699ae6948dd8dfc9f2c#23:01
veegee joined23:04
Khisanth joined23:04
Newami joined23:05
sidetrack left23:06
Newami left23:06
cbreak b1101: what's wrong with checking it out?23:07
b1101 I think there are 12 commits that I require total23:08
in order to get to that one with all the changes, to make it build as the page says.23:08
cbreak that is one commit23:08
b1101 so just checkout followed by the hash?23:09
cbreak yes. the newest commit23:09
b1101 because that didn't work. I think I'm on the wrong branch then23:09
even though it's supposed to be on master23:10
cbreak that pull request is not merged yet23:10
it's not on master23:10
b1101 remote master? or where is it23:11
cbreak Shugyousha:linuxpr23:11
it's in a different repository23:11
but pull requests often get a new ref too23:11
so do a git ls-remote thatrepo23:12
and you might see a pr 52 ref23:12
(if you see one, git fetch and check that one out)23:12
sgen left23:13
gitter1234 left23:13
sidetrack joined23:14
sidetrack left23:14
sidetrack joined23:14
b1101 cbreak: ls-remote "http link of repo" ? because that didn't work23:15
cbreak I use ssh23:15
but if you want to use https, sure, that'll work just as well23:15
natechan joined23:16
polyzen left23:16
Wetmelon left23:17
b1101 was able to clone that repo and checkout that commit. thanks23:18
dmc joined23:22
xcm left23:27
xcm joined23:27
Decobus left23:28
dedowsdi joined23:29
ozzloy joined23:34
Wetmelon joined23:34
ozzloy i have a commit from another contributor. i'd like to break it up into smaller commits, all with the same author and date as the original. is there a way i can do something like 'git commit --date=use-date-from-commit-abc123 --author=use-author-from-commit-abc123' ?23:36
Timvde ozzloy: --reuse-message takes commit message, author and timestamp23:38
cbreak -C23:38
ozzloy awesome!23:38
Timvde If you use --reedit-message, git will put you in vim so you can still edit the message23:38
ozzloy kk23:39
Timvde -C like cbreak says is --reuse-message, -c is reedit-message, fwiw23:39
ozzloy thanks Timvde and cbreak23:39
TheJollyRoger joined23:41
duderonomy left23:42
g4570n left23:42
g4570n joined23:42
jackedin left23:44
jackedin joined23:45
jackedin left23:46
jackedin joined23:47
buckworst joined23:49
natechan left23:50
natechan joined23:51
buckworst left23:54
bvdw left23:55
bvdw joined23:56
sidetrack left23:56

Logs Search ←Prev date Next date→ Channels Documentation