IRCloggy #git 2018-11-05

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.

2018-11-05

Bombe joined00:00
Essadon left00:04
pity_ joined00:04
finalbeta left00:04
dege left00:05
pity left00:05
muelleme joined00:06
ixian left00:07
fstd_ joined00:09
lig left00:09
Bombe left00:10
mollusk joined00:11
CodingRacoon joined00:12
fstd left00:12
fstd_fstd00:12
olalonde left00:12
lig joined00:13
muelleme left00:13
ixian joined00:14
kerframil left00:14
Bombe joined00:14
kapil____ joined00:14
jlamur left00:15
kerframil joined00:17
afuentes joined00:18
thebope left00:18
weltall joined00:19
lig1 joined00:20
boombatower joined00:21
pity_ left00:23
lig left00:23
JoshuaD left00:24
weltall left00:26
Bombe left00:26
RoriconKnight left00:27
dilfridge left00:27
profmac left00:28
Garbanzo joined00:29
venmx left00:29
t0dd1v left00:29
sanches joined00:30
weltall joined00:31
pionen joined00:31
novumsensum|00:34
n3wborn left00:34
|n^00:34
boombatower left00:35
dilfridge joined00:36
weltall left00:36
monr0e left00:36
sanches left00:38
Bombe joined00:40
n^^\s\zs\w\{-}00:41
pionen left00:42
weltall joined00:42
pionen joined00:42
^\s\zs\w\{-}n^00:43
dilfridge left00:46
profmac joined00:47
CodingRacoon left00:47
Bombe left00:47
thebope joined00:48
profmac left00:48
andyhuzhill joined00:49
profmac joined00:49
Tykling left00:50
pionen left00:50
Tykling joined00:50
tled left00:51
liefer left00:54
weltall left01:01
sanches joined01:05
weltall joined01:05
mlopezviedma left01:06
JoshuaD joined01:07
justanotheruser left01:08
JoshuaD left01:09
maheshpec joined01:09
yohnnyjoe left01:11
Tykling left01:12
orbyt_ left01:12
Bombe joined01:12
nurdie joined01:16
cagomez joined01:17
cagomez left01:18
weltall left01:18
Acelogic left01:19
cagomez joined01:19
nurdie left01:20
thebope left01:21
justanotheruser joined01:22
jasmith left01:23
weltall joined01:23
t0dd1v joined01:24
Tykling joined01:24
peacememories joined01:25
Acelogic joined01:25
liefer joined01:26
weltall left01:29
Bombe left01:30
realig joined01:30
lig1 left01:33
lolmac__ left01:33
lolmac joined01:34
jstein left01:34
LeMike__ left01:34
weltall joined01:35
LeMike_ left01:35
weltall left01:36
weltall joined01:37
libertyprime joined01:38
orbyt_ joined01:39
weltall left01:39
weltall joined01:40
Bombe joined01:41
weltall left01:42
maheshpec left01:43
cagomez left01:43
cagomez joined01:44
cagomez left01:44
weltall joined01:45
SpeakerToMeat_ left01:48
SpeakerToMeat_ joined01:50
ilmostro left01:50
jtrzebiatowski left01:51
Bombe left01:51
ilmostro joined01:52
mollusk left01:52
weltall left01:54
fassl left01:55
thebope joined01:56
mollusk joined01:58
jakogut_ left01:58
esrse joined02:00
Bombe joined02:00
weltall joined02:01
prakashdanish joined02:02
jetchisel left02:02
peacememories left02:03
finalbeta joined02:03
igemnace joined02:03
nurdie joined02:04
jetchisel joined02:07
weltall left02:07
cagomez joined02:09
Bombe left02:12
nurdie left02:15
parallel21 joined02:16
Bombe joined02:17
cagomez left02:19
cagomez joined02:20
mollusk left02:21
weltall joined02:23
Bombe left02:23
prakashdanish left02:24
xco joined02:24
xco hi. how do i checkout to a branch that’s a PR on my upstream remote?02:25
i have two remotes; origin and upstream02:25
on upstream someone submitted a PR i want to pull down to check02:25
if it were origin (the one i cloned) i’d just do something like ‘git checkout the-remote-branch-for-the-pr02:26
but now that it’s on a different remote i’m not sure how to checkout into someone’s pr02:26
any ideas?02:27
thebope left02:29
Bombe joined02:30
orbyt_ git fetch remote_name && git checkout -b some_branch remote_name/some_branch02:32
or...something like that02:32
m0viefreak left02:33
mofai left02:35
nurdie joined02:36
McKraken_zzzzzMcKraken02:39
foul_owl left02:41
nurdie_ joined02:41
nurdie_ left02:42
F0rTex left02:43
F0rTex joined02:45
nurdie left02:45
archergodson left02:46
Mattiaslndstrm left02:49
Bombe left02:49
nurdie joined02:50
nurdie_ joined02:51
prakashdanish joined02:54
nurdie left02:54
foul_owl joined02:56
thebope joined02:57
mollusk joined02:59
Bombe joined03:03
mollusk left03:04
nurdie_ left03:07
Bombe left03:08
nurdie joined03:08
xco left03:09
sanches left03:10
Bombe joined03:11
nurdie left03:12
wreed left03:15
jetchisel left03:15
cfoch joined03:16
jetchisel joined03:17
wreed joined03:17
nephyrin left03:19
Bombe left03:20
Bombe joined03:20
CheckDavid left03:24
mollusk joined03:24
Toadisattva1 joined03:25
Toadisattva left03:26
thebope left03:30
nurdie joined03:33
g00s joined03:37
nurdie left03:37
Bombe left03:43
Bombe joined03:45
sanches joined03:46
Toadisattva1 left03:46
sanches left03:50
monr0e joined03:51
nurdie joined03:53
stuser joined03:53
liefer left03:54
liefer joined03:55
lagothrixGuest8359103:56
Guest83591 left03:56
lagothrix joined03:56
stuser I'm looking to read the documentation of a project when I'm offline, but I don't need all of the code from the actual project. Is there a way to clone a repo, remove files I don't need, then track commits to the remaining files?03:58
thiago no03:59
dka left03:59
nurdie left04:00
Bombe left04:00
howdoi joined04:01
dka joined04:01
stuser darn. I was hoping there was some low-level mechanism for doing such a thing04:03
mrCyborg|zzz left04:05
monr0e left04:05
mrCyborg|zzz joined04:05
thebope joined04:06
Bombe joined04:07
n^ left04:08
cagomez left04:12
timj left04:18
hendry how do i checkout a file i deleted in the last commit? `git checkout .env.sample HEAD~1` doesn't work04:19
Bombe left04:19
SJr left04:20
hendry ah; git checkout HEAD~1 -- .env.sample # works04:21
SJr joined04:21
andyhuzhill left04:23
andyhuzhill joined04:23
[[]] joined04:24
timj joined04:32
matsaman joined04:32
matsaman left04:33
netj left04:36
netj joined04:36
nurdie joined04:36
thebope left04:39
Bombe joined04:39
sanches joined04:39
ayjay_t stuser: who is the git remote server?04:40
stuser: and are you an admin on it?04:40
nurdie left04:41
mooasaurus left04:42
mooasaurus joined04:42
sanches left04:43
Goplat joined04:47
Bombe left04:48
t0dd1v left04:49
stuser ayjay_t: various projects (some github hosted, some not), none of which I have admin to. It was just an idea to read project docs on my tablet during long trips without wifi, then git pull when I was able to connect. I was hoping to save space by not pulling the source code- just the documentation04:50
prakashdanish left04:52
pks_ joined05:01
pks left05:02
pks_pks05:02
prakashdanish joined05:07
VaultTec joined05:07
libertyprime left05:09
Flaim left05:10
thebope joined05:11
jasmith joined05:15
TheRuckus left05:25
libertyprime joined05:26
crimastergogo joined05:29
Bombe joined05:30
stuser If I have a nested submodule (i.e. superproject, submodule of superproject, and submodule of that submodule) will "git submodule update" update the sub-sub-module?05:37
miczac joined05:37
libertyprime left05:38
Kaisyu joined05:39
andyhuzhill left05:39
andyhuzhill_ joined05:39
andyhuzhill_andyhuzhill05:40
Bombe left05:42
jiji606 joined05:43
thebope left05:45
jim left05:46
jim joined05:47
_xor left05:48
_xor joined05:48
bn_work what was the git command to split apart multiple changes from staged files (index?) into separate commits?05:52
git 2.13.605:52
Bombe joined05:53
xcm left06:00
xcm joined06:00
realig left06:00
Mattiaslndstrm joined06:01
stuser left06:07
miczac_ joined06:08
miczac left06:08
bn_work was it `git add --patch` or `git add -i`?06:09
igemnace bn_work: --patch splits apart changes from UNstaged files, then stages the hunks you want06:10
you can get to patch from add -i as well06:10
mooasaurus left06:13
mooasaurus joined06:13
ferdna left06:14
neunon_ joined06:15
neunon left06:15
sanches joined06:15
neunon_neunon06:15
thebope joined06:18
prakashdanish left06:18
sanches left06:20
prakashdanish joined06:21
Arokh left06:25
libertyprime joined06:26
igemnace left06:28
vjacob_ left06:28
vjacob_ joined06:28
prakashd1 joined06:30
prakashdanish left06:32
mollusk left06:32
GreenJello left06:32
igemnace joined06:32
GreenJello joined06:33
miklcct left06:33
thiago left06:34
miczac_ left06:34
miklcct joined06:35
kerframil left06:39
Bobdude left06:41
orbyt_ left06:41
kanzure left06:42
gooooootime joined06:44
pity joined06:44
sQVe joined06:45
dg_vrani left06:46
thebope left06:52
Acelogic left06:59
oxymoron93 joined07:00
djapo left07:02
nydel09 joined07:06
Goplat left07:09
donofrio left07:11
shabius joined07:13
dsx_ joined07:14
dreiss joined07:14
yyy joined07:14
kapil____ left07:14
dsx_ left07:16
st-gourichon-fid joined07:18
pawle joined07:18
sQVe left07:21
VaultTec left07:21
chele joined07:22
thebope joined07:23
st-gourichon-fid left07:23
st-gourichon-fid joined07:24
dreiss left07:29
m_ joined07:29
Mat001 left07:32
jlamur joined07:36
VaultTec joined07:39
Garbanzo left07:40
ExoUNX left07:40
kent\n left07:40
Riviera left07:41
g00s left07:41
akushner left07:45
dilfridge joined07:46
PEG joined07:52
muelleme joined07:54
crimastergogo left07:55
yyy left07:55
thebope left07:55
crimastergogo joined07:56
sanches joined07:58
mollusk joined07:58
Jackneill joined07:58
muelleme left07:59
sanches left08:03
thebope joined08:06
n3wborn joined08:07
thebope left08:10
venmx joined08:10
g00s joined08:11
mona_x joined08:15
mollusk left08:17
rsrx joined08:18
crimastergogo left08:20
crimastergogo joined08:21
dege joined08:22
sQVe joined08:22
m_ left08:27
Noti joined08:29
jlamur left08:29
dege left08:29
dege joined08:30
plexigras joined08:30
Tobbi_ left08:31
veegee left08:32
Tobbi_ joined08:33
pawle left08:37
prakashd1 left08:37
mofai joined08:41
sylario joined08:41
oxymoron93 left08:41
_wrksxwrksx08:41
g00s left08:43
staafl_ left08:43
austin987 left08:43
staafl_ joined08:43
thebope joined08:46
doubtful joined08:49
oxymoron93 joined08:50
afuentes left08:56
tomfarr joined09:01
ZyX-I joined09:03
Impaloo left09:04
Impaloo joined09:05
eduardas_m joined09:07
floppydh joined09:08
Impaloo left09:09
Impaloo joined09:10
prakashd1 joined09:12
jim bn_work, if you have committing to do, you can add just what you want per commit, using git add -e and in this variant, you're given all the changes you'd see in git diff, and you're literally editing the diff itself09:12
fairuz joined09:12
dcpc007 hi, i add another remote on my local git. i fetch updates from this one (same base history, but newer branches/commits)09:12
now i do a git checkout remote2/master and it warns me about detached head !09:13
think it's not what should happens09:13
oxymoron93 dcpc007: that happens when you checkout remote tracking branch09:13
!detached09:14
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 !reattach09:14
dcpc007 ha ... don't remember this :-(09:14
janx|awayjanx09:15
dcpc007 yes but from memory when i git co remote2/branch, he automatically add the track locally too09:15
and in the prompt i got the granch name09:15
then i "only" have to add the tracking manually this time09:15
fjasle left09:16
dcpc007 (boring to have to maintain 2 different central repo !)09:16
oxymoron93 you do not remember seei .. oh wait wrong line.. you don't remember well, you used `git checkout <branch>` and git automatically created local branch with tracking info09:16
dcpc007 oxymoron93, yes for me it should, but not the case09:17
i check the .git/config, i have the remote2 configured but no branch tracking09:17
i have 3 blocks : remote for origin, branch master for origin, remote for repo209:18
thebope left09:19
oxymoron93 hm... git checkout <branch> does not create local <branch> when you already have <remote>/<branch>, is that what you are saying? then there is something more I don't know , and probably involves having more than one remote repository09:20
crimastergogo left09:21
Noti left09:21
dcpc007 ha ok it works for a different branch, but not for remote2/master because already a local master tracking origin/master09:21
if i do git co remote2/branch1 it works !09:21
branch "branch1" is set to track "remote2/branch1"09:22
if i try to force like 'git co --track remote2/master' i got09:22
crimastergogo joined09:23
dcpc007 fatal : a branch 'master' already exists09:23
oxymoron93 well as expected09:23
dcpc007 i don't remember how i do that before09:23
lol ! i remember09:23
sanches joined09:23
oxymoron93 don't do it, you should only have one `master` which works with both repositories, but default is origin09:23
if you wan't to have explicit new branch which tracks repo2/master09:24
dcpc007 my second remote is fir gitlab, and asi use protected branches, i was never working in the master :)09:24
then think it should be like that that since start, but never try to git co remote2/master maybe09:24
elsheepo joined09:25
dcpc007 but strange i never do that check before ... i work like this sonce more than 1 year09:25
cfoch left09:25
dcpc007 (as project of migrate gitolite -> gitlab is in stand-by ...)09:25
archergodson joined09:25
mollusk joined09:25
dcpc007 my workflow is : working solo in gitlab with issues and MR, when all is finished and branch merged, i push history to origin09:26
to maintain both sources uptodate09:26
to keep09:26
maybe i can name my remote2/master in a local "remote2_master" ?09:27
oxymoron93 yeah, was about to tell you that, if that suits you09:28
I really have no idea what your workflow is, but if it works for you then yeah09:28
sanches left09:28
crimastergogo left09:28
dcpc007 boring workflow, ... need to update all works 2 times09:29
only me on gitlab09:29
all users are still on gitolite09:29
but need to works with gitlab to learn it and try implement it for all users ...09:30
cd joined09:31
andyhuzhill left09:32
mollusk left09:32
psprint_ joined09:33
[[]] left09:34
crimastergogo joined09:35
nakkht joined09:36
staafl_ left09:36
sQVe left09:37
sQVe joined09:37
nakkht left09:37
nakkht joined09:37
staafl_ joined09:39
psprint_ left09:41
zulutango joined09:43
elsheepo left09:45
nakkht left09:45
dpyro left09:48
thebope joined09:49
justanotheruser left09:49
PsyStemUpdate joined09:50
PsyStemUpdate does anyone else here manager a git server using one git user through ssh but with different public private keypairs all representing different users? if so, how do you guys tell who is working on what if everyone uses the same user?09:51
elsheepo joined09:51
Kulrak joined09:53
PsyStemUpdate or do you guys create a user on the linux server for each person with access to only one folder which has one git repo mounted to that mountpoint?09:53
many users all with the same target mounted to a folder(the repo folder) they are stuck in?09:54
grawity PsyStemUpdate: for more than 1 user, let Gitolite deal with it09:55
it works out who's connecting to git@ based on extra parameters in the authorized_keys file09:55
PsyStemUpdate havent heard of it, ill look into it. before gitolite came along though, was this the solution(all users having a mountpoint to the same target?or maybe a hard link)?09:58
rkta joined09:59
realig joined10:00
Raimondii joined10:00
grawity before gitolite there was gitosis10:01
before gitosis, I dunno, just regular file permissions10:02
bsaboia joined10:02
realiglig10:02
grawity not sure why you'd need each user to have a mountpoint – they can all access the same path directly10:02
as long as they're not chrooted, that is10:02
Raimondi left10:03
RaimondiiRaimondi10:03
justanotheruser joined10:03
tomfarr left10:09
steven_ joined10:11
MrSpookyMrC10:11
raven-au left10:11
steven left10:12
dcpc007 psYchotic, same this is how gitolite works. but i'm switching to gitlab soon10:12
more easy to manage and a lot more complete :)10:12
nurdie joined10:12
gooooootime left10:13
psYchotic PsyStemUpdate: I think that ^ was meant for you =)10:13
dcpc007 and i start have problems with some cases like a user using 2 ssh keys, i can't affect both to the same user ... then i need to create fake users like "user_bis" and duplicate the access rights10:13
with the common next problem, forget to update both account when modifying rights10:13
but if you have a very few people, and repo, and basics access rules, and no need of nothing unless a basic share git (without the many functionalities possible), gitolite is simple and ok10:15
sunri5e left10:15
sunri5e joined10:15
dcpc007 psYchotic, oups yes :)))10:15
nurdie left10:17
catsup left10:17
catsup joined10:18
catsup left10:18
catsup joined10:18
genius_monkey left10:18
lig left10:20
AWindowsKrill left10:22
thebope left10:23
nowhere_man joined10:23
PsyStemUpdate grawity ya my chroot was the problem.10:24
AWindowsKrill joined10:24
mona_x left10:24
PsyStemUpdate it made me have to have a folder put in each of their jail folders but copying the repo wasnt an option10:24
so i thought of hard linking or mounting which i havent done before, im not even sure u can have a target mounted to several mountpoints at once.10:25
grawity `mount --bind` if you mean Linux10:32
MrJones joined10:37
MrJones hi10:37
crimastergogo left10:37
MrJones I'm having trouble checking out the master branch of a remote to a local branch of another name10:37
$ git checkout -b tlsfix tlsfix/master < complains that 'tlsfix/master' is not a commit. isn't the syntax <remote>/<branch>? I'm not sure what I'm doing wrong10:37
(the remote is named 'tlsfix', and I want to have its master as local branch 'tlsfix')10:37
Luyin left10:38
cdown left10:38
n3wborn left10:39
selckin does it show it in' git branch -a' ?10:40
steven_steven10:40
MrJones selckin: interesting, it doesn't :O I did git fetch tlsfix though10:40
no branches of that origin are listed there, I don't know why10:41
flippedouttt left10:41
MrJones (other origins are listed fine)10:41
selckin and fetch doesn't error?10:41
kerframil joined10:41
kerframil left10:42
MrJones selckin: no, gives zero output and exit code is 010:42
doubtful left10:42
selckin how did you add the remote? you can configure to limit the branches you want etc10:42
crimastergogo joined10:43
jtrzebiatowski joined10:44
MrJones selckin: ah nice, bingo. had the branches set up to be added as remote/origin/ which of course doesn't make sense, now it works10:44
Raimondi left10:44
esrse left10:46
dcpc007 i forget how to import with history a small repo inside a main repo (with no duplicated path/data)10:48
i have both repo locally, and the small to import = one folder + 2 files (easy case this time)10:49
i remember an option to not frget like --allow-external-xxx or similar (boring, not written the process)10:50
(i need to find a centralized way to store all those mini procedures)10:50
hussam left10:55
LondonAppDev joined10:55
thebope joined10:57
pawle joined10:58
gooooootime joined10:59
PsyStemUpdate left10:59
lankanmon left11:00
vvor left11:00
LondonAppDev left11:06
sanches joined11:10
dcpc007 found, seems ok, i try this : https://thoughts.t37.net/merging-2-different-git-repositories-without-losing-your-history-de7a06bba80411:10
esran_esran11:15
sanches left11:15
LondonAppDev joined11:17
cdown joined11:17
fairuz left11:19
veegee joined11:21
mona_x joined11:25
halide joined11:31
thebope left11:31
staafl_ left11:31
elsheepo left11:34
rkta left11:37
jlamur joined11:37
hussam joined11:40
gooooootime left11:41
psprint_ joined11:43
PEG left11:46
rockyh joined11:51
staafl_ joined11:52
rockyh Hi!11:53
I tried to make a git clone from a remote repository and I noticed that some directories are (in the web repository page) named `name @ <7_characters_hex_value>'. These directories are created in my local clone, but they are empty, while in the web repository they are not. What could be the reason? I would like to clone them as well as the other ones11:55
cbreak rockyh: git ls-tree -R11:58
thebope joined11:59
cbreak rockyh: if you see "commit" entries, you'll have to clone --recursive.11:59
or later git submodule update --init11:59
AfroThundr|main joined12:02
rockyh cbreak: `-R' gives `error: unknown switch'12:03
_ikke_ it's -r12:03
small12:03
cbreak hmm...12:03
so inconsistent12:03
AfroThundr|main left12:03
_ikke_ with what?12:03
jlamur left12:04
cbreak ls, cp, and so on12:05
staafl_ left12:05
rockyh thanks for the clarification. Should I run `git ls-tree -r' inside the already cloned repository?12:07
_ikke_ git ls-tree -r HEAD12:07
staafl_ joined12:08
cbreak yes, inside the repository12:08
it'll list your chosen tree, recursively12:08
if there are commit entries, that means you have submodules12:08
and you'll have to init and update them (if you want them)12:08
Essadon joined12:09
lankanmon joined12:10
halide left12:11
xcm left12:11
xcm joined12:12
rockyh thanks for `HEAD' and for all the suggestions. There are several `commit' entries. Following your first messages, I ran `git submodule update --init' and they have been cloned12:12
(Yes, I wanted those submodules)12:12
revoltingPeasant joined12:13
eset left12:14
rafasc joined12:15
Kulrak left12:17
LondonAppDev left12:18
LondonAppDev joined12:19
bolovanos joined12:19
crimastergogo left12:20
eset joined12:20
igemnace left12:21
yorick_ joined12:25
yorick_ Hi. I want to merge multiple modules / subprojects with one core project (both with versioning via tags); but what is the best way to do this? I've read something about sub-trees and submodules. In case the modules / subprojects which need to be merged with the core also need to be merged with some files from the core (so not in a sub dir); I'd read that submodules isn't the right options. Is sub-tree the right option to do this?12:28
cbreak submodules track hashes, not tags12:29
yorick_ And what if merging the core and subprojects doesn't need to be a separated repository; is it possible to merge these repositories with composer?12:30
cbreak you can try submodules, it will work, but it won't be without work12:30
what's composer?12:30
yorick_ the composer file which sometime will be sed for versioning of projects (what i'd see a lot @ github). I'm not very fimiliar with it tbh.12:31
thebope left12:32
cbreak never heard of that.12:32
if you want submodules, git supports them12:32
as said, the binding to them works via commit hash12:32
but I think there are ways to make submodules pull from branches via merging, rebasing or similar12:32
if you want to completely absorb a repository, git supports that too12:33
but then, pushing back is probably super annoying12:33
Noti joined12:33
yorick_ but you can't use tags to pull specific versions of a module into the project?12:34
xcm left12:34
xcm joined12:35
_ikke_ You can checkout a tag and then record that hash in the parent repo12:37
cbreak: composer is a package manager for PHP12:37
cbreak so not git related.12:38
_ikke_ no12:38
cbreak good... :)12:38
_ikke_ Though if you use composer, there is little need for submodules (at least for things managed with composer012:39
prakashd1 left12:40
triad left12:41
thebope joined12:42
yorick_ oky, then i will read more about submodules. To be sure I'd understand it correctly; it's possible to merge two repositories into one repository with submodules?12:42
_ikke_ no12:42
They remain seperate repositories12:43
yorick_ so they both need their own directory within the new repo?12:43
oxymoron93 left12:44
shabius_ joined12:44
oxymoron93 joined12:44
shabius left12:46
_ikke_ What do you mean?12:46
thebope left12:47
CodeSlingerPaul joined12:48
PEG joined12:51
xcm left12:51
xcm joined12:52
mona_x left12:53
mona_x joined12:54
mona_x left12:55
PioneerAxon left12:55
cd left12:56
cbreak yorick_: a submodule is exactly one repository in exactly one place in the parent repository12:57
if you want two submodules, they'll better have different paths.12:57
PioneerAxon joined13:00
LondonAppDev left13:03
cd joined13:04
random_yanek left13:05
monr0e joined13:10
wildermind joined13:11
netj left13:14
netj joined13:14
thebope joined13:14
xcm left13:17
xcm joined13:18
random_yanek joined13:18
tonyj left13:22
rasb left13:25
TheRuckus joined13:26
yyy joined13:26
rockyh left13:26
Raimondi joined13:40
fairuz joined13:41
dege left13:41
nurdie joined13:45
mona_x joined13:47
netj left13:47
netj joined13:48
veegee left13:49
thebope left13:49
nurdie left13:49
GreenJello left13:50
cdown left13:51
cdown joined13:52
freeman42x joined13:58
jtrzebiatowski left13:59
gooooootime joined14:01
LondonAppDev joined14:03
yyy left14:03
yyy joined14:04
Mattiaslndstrm left14:06
yyy left14:13
LondonAp_ joined14:13
plasticle left14:15
xcm left14:15
Zexaron joined14:15
plasticle joined14:16
Mattiaslndstrm joined14:16
ilmostro left14:16
LondonAppDev left14:17
Noti left14:18
ilmostro joined14:19
newnick left14:20
sanches joined14:21
xcm joined14:21
rnat joined14:23
Mat001 joined14:23
thebope joined14:24
fairuz left14:26
sanches left14:26
kapil____ joined14:28
Mattiaslndstrm left14:29
apeiros_ joined14:30
apeiros_ hi there. I used `git tag --sort=committerdate` to get tags sorted by date. but now we have some tags which are annotated, and they do not have a commiterdate but instead use taggerdate. how can I get a list of all tags sorted correctly?14:32
i.e. --sort=taggerdate gets unannotated tags out of order, --sort=committerdate gets annotated tags out of order - I look for a way to get all of them in order14:33
yyy joined14:34
kanzure joined14:38
PEG left14:38
VaultTec left14:42
thebetrayer joined14:42
rafasc apeiros_: try creatordate14:42
donofrio joined14:42
dilfridge left14:43
monr0e left14:44
rafasc or: git for-each-ref --format="%(refname:short)" refs/tags --sort=creatordate14:45
jlamur joined14:45
apeiros_ rafasc: hm, I guess in our case that should be indeed the same as taggerdate || committerdate14:46
or close enough at least14:46
apeiros_apeiros14:46
apeiros thanks14:46
rafasc apeiros: creator date is an abstraction to deal with your exact problem.14:46
apeiros my other approach would have been to emit both dates as strict iso and run it through a script which sorts/formats it14:46
oh? interesting. are all the different types of dates, how they come to be and their purposes somewhere concisely listed in the git docs?14:47
TinkerT left14:48
rafasc apeiros: the creatordate is mentioned in git for-each-ref;14:48
revoltingPeasant left14:52
thebetrayer left14:54
apeiros ok, I see it's exactly as you say. thanks a lot.14:56
rafasc apeiros: annotated tags and lightweight tags are stored using different object types. Lightweight tags are just simple pointers to commits, there's no extra information stored. So the 'author/date' information you get is the information from the commit being tagged.14:56
jtrzebiatowski joined14:56
apeiros thanks for the explanation. I actually understood the cause for the issue, I just didn't know the solution :)14:57
rafasc annotated tags, have their own 'object' that is stored.14:57
apeiros *sob*, apparently `git tag --format` does not accept %C(color) like git log --format does :(14:57
plasticle left14:58
apeiros throws hands in the air -- well, properly sorted must suffice for the day :D14:58
YuGiOhJCJ joined14:58
osse apeiros: have you tried --color14:58
thebope left14:58
LondonAp_ left14:59
apeiros osse: na, it's apparently %(color:<colorname>)15:00
rafasc apeiros: log --format and for-each-ref format use different languages.15:01
yyy left15:01
LondonAppDev joined15:02
yyy joined15:02
rafasc I've read on the ML that ideally these two should converge to a unified thing, but when that will happen is TBD.15:02
plasticle joined15:02
apeiros I can imagine that it's not on the top of the list. also because it probably raises the question of "how much old code relying on the 'old' format are we willing to break?"15:04
relipse joined15:04
rafasc apeiros: --format='%(color:yellow bold)tag: %(refname:short)'15:04
apeiros: definitely not on top.. But I am not sure that's the main issue. The main issue is having someone willing to get his hand dirty.15:05
mofai left15:06
rafasc the regular devs are busy with more complex things.15:07
Raed|Laptop joined15:08
apeiros :)15:08
temhawk joined15:08
rafasc hash transition and changes to the protocol to allow partial clones, on top of the usual fix the existing bugs. :)15:09
oxymoron93 left15:10
muelleme joined15:10
rafasc there's also the commit-graph series that promises some nice performance improvements for things that deal with walking the commit history.15:11
temhawk How do I reset a file to the last commit? git-reset refuses me, git-checkout seems to be for whole branches/commits, git-clean is for removing untracked files, git-revert is for remote/public stuff, git-rm is for un-tracking files. I'm confused...15:11
rafasc temhawk: you can use checkout with files: git checkout HEAD -- filename; <- This will discard any uncommited changes!!15:12
temhawk rafasc: ok, thanks mate!15:12
rafasc just be aware that mode is one of the few ways you can lose things without being able to recover.15:13
that will discard any changes in 'filename' without asking for confirmation.15:13
temhawk yup, that's fine15:14
rafasc usually not an issue for things tracked, because you have ways to recover, but untracked changes get nuked.15:14
muelleme left15:15
Mir4g3 left15:16
bsanford joined15:18
sQVe left15:22
D630 joined15:24
Mir4g3 joined15:25
bsanford left15:26
thebope joined15:27
mona_x left15:28
mona_x joined15:29
igemnace joined15:36
jwest left15:41
ilmostro left15:41
jwest joined15:43
ilmostro joined15:43
Raed|Laptop left15:44
yorick_ left15:45
pawle left15:45
ilmostro left15:47
Dougie187 joined15:48
ilmostro joined15:49
tomfarr joined15:49
GreenJello joined15:51
GreenJello left15:51
czart joined15:54
apeiros left15:55
McKrakenMcKraken_zzzzz15:55
AbleBacon joined15:57
ilmostro left15:58
thiago joined15:58
thebope left15:59
ilmostro joined16:00
temhawk left16:01
SpeakerToMeat_ left16:05
dpyro joined16:06
pawle joined16:07
SpeakerToMeat_ joined16:07
SpeakerToMeat_ left16:07
spl33n joined16:08
SpeakerToMeat_ joined16:08
spl33n hello all can i give access on a private gitlab repo some people for only see commit ?16:08
dzho yeah probably16:09
spl33n dzho: do you knows how can i do this ? please16:09
dzho well, are you on a private gitlab instance, or gitlab.com's instance?16:11
spl33n dzho: i have a private instance16:11
dzho so, for starters, if I knew exactly, I probably wouldn't have said "probably" I'd have just said yes.16:12
teward spl33n: I answered you in #gitlab16:12
dzho and though I've worked with ...16:12
aha16:12
teward: thanks16:13
teward crossposting is a pain in the butt so please don't do that :P16:13
dzho: yep.16:13
spl33n teward: i see, but i must let repo private :(16:14
teward dzho: TL;DR: No you can't give access in GitLab private on-prem hosted to see just a single commit, you'd have to give readonly to the entire repository to give them that level of access16:14
spl33n: then you have a mutually exclusive set of circumstances16:14
a discussion which should be taken up with the GitLab developers16:14
SpeakerToMeat_ left16:14
teward about permissions/features changes16:14
(but that's less about git and more about GitLab's UI and permissions implementations, so #gitlab is probably where the convo should continue)16:14
YuGiOhJCJ left16:14
thebope joined16:15
teward spl33n: if the repo must remain private, then you can't give users access to see the single commit. If you want to share the single commit directly from your GitLab, then the repo cannot remain private, or you must give access to the specific users in readonly mode to see commits.16:15
prakashd1 joined16:15
SpeakerToMeat_ joined16:15
teward spl33n: alternatively, take the unified diff of your specific single commit and copy it out to somewhere non-private16:15
that way they can only see the exact commit/change you pointed at16:16
but you won't eb able to do what you're looking to with just GitLab and its existing permissions schema16:16
even if youw ere an Enterprise grade customer.16:16
but as I said earlier, that's less 'git' related and more GitLab related16:16
and you should really be asking GitLab Permisisons related questions in #gitlab and not #git16:16
dzho nods16:17
SpeakerToMeat_ left16:17
dzho I should probably put a little more effort into staying in #gitlab, speaking of16:17
teward *drags dzho into #gitlab, then anchors them there*16:17
:P16:17
gitinfo set mode: +v16:18
SpeakerToMeat_ joined16:18
yyy left16:20
yyy joined16:20
SpeakerToMeat_ left16:20
SpeakerToMeat_ joined16:21
dzho hah16:23
rkta joined16:25
chele left16:26
teward dzho: I think I did a good job summarizing my minor monologue here in #gitlab :P16:28
dzho cool16:29
Mir4g3 left16:29
voolik joined16:35
prakashd1 left16:35
eduardas_m left16:38
Envil joined16:39
SmashingX joined16:39
SmashingX I would like to pull from the repo with "git pull" but I get this error: error: cannot open .git/FETCH_HEAD: Permission denied16:40
I noticed that the file is owned by jenkins, -rw-r--r--. 1 jenkins jenkins 0 Nov 5 09:35 FETCH_HEAD16:41
bsaboia left16:41
lig joined16:42
howdoi left16:42
SpeakerToMeat_ left16:43
LondonAppDev left16:44
SpeakerToMeat_ joined16:45
durham joined16:48
LondonAppDev joined16:48
SpeakerToMeat_ left16:50
jorvis joined16:51
SpeakerToMeat_ joined16:52
jorvis I've inherited a project where a git directory on a server runs production code, and development continued for months with commits to GitHub outside of it. Is there a way to see from within the server's code directory where it is in the timeline of the trunk so I can branch it there?16:53
Tobbi_ left16:53
jorvis That is, I want to ask of the directory "Where are you in relation to the commit history of the master?"16:53
SpeakerToMeat_ left16:53
SpeakerToMeat_ joined16:56
dege joined16:56
lig left16:57
comptroller joined16:58
wildlander joined16:58
Kaisyu left16:58
SpeakerToMeat_ left17:00
SpeakerToMeat_ joined17:01
peacememories joined17:03
peacememories left17:03
SpeakerToMeat_ left17:04
SpeakerToMeat_ joined17:06
rsrx left17:09
D630 left17:09
liefer left17:09
cbrt64 joined17:10
rafasc jorvis: take the last commit that touched that directory: git merge-base master <commit>17:10
thiago left17:10
miczac joined17:11
SpeakerToMeat_ left17:12
jorvis rafasc: Does that change the local directory though? I'm not wanting to change anything, just know where it is. It looks like I found the last pulled commit # by inspecting .git/That is, I want to ask of the directory "Where are you in relation to the commit history of the master?"17:13
Bad paste. By inspecting .git/FETCH_HEAD17:13
gooooootime left17:13
yyy left17:14
rafasc jorvis: git merge-base is just a querying tool. It doesn't change anything.17:14
dawik jorvis: you can do git diff master17:14
SpeakerToMeat_ joined17:14
SpeakerToMeat_ left17:14
dawik asusming you are on the dev branch17:14
rafasc and it does exactly what are you asking: given two branches, find me the common commit in their history.17:14
gooooootime joined17:14
pkx1 joined17:15
jorvis That's the problem, this isn't a branch. They just had a long development path on the trunk but just stopped updating the code on a server. Now they need to know where that one was left off to make a branch and fix something. It's super ugly, but inherited and I'm trying to fix it.17:15
SpeakerToMeat_ joined17:15
rafasc jorvis: use git log -- dir; to figure out what was the last commit that touched that directory. And use that commit.17:16
doubtful joined17:16
jorvis There it is, thank you. The latest commit there matches what I found in FETCH_HEAD, but that command is a cleaner way to do it17:18
GreenJello joined17:18
SpeakerToMeat_ left17:19
liefer joined17:20
SpeakerToMeat_ joined17:20
rsrx joined17:23
floppydh left17:26
mniip left17:26
heroux left17:27
mniip joined17:29
pawle left17:30
D5N_ch3ck joined17:32
jstimm left17:33
pkx1 left17:33
durham left17:33
sanches joined17:33
leeN joined17:33
blackandblue joined17:34
dilfridge joined17:36
Mattiaslndstrm joined17:36
djapo joined17:37
sanches left17:37
SpeakerToMeat_ left17:40
nurdie joined17:41
SpeakerToMeat_ joined17:42
doubtful left17:42
jorvis left17:43
rnat left17:43
jlamur left17:51
miczac left17:53
ilmostro left17:54
miczac joined17:55
ilmostro joined17:56
orbyt_ joined17:56
jlamur joined17:57
LondonAppDev left18:00
rkta left18:01
sanches joined18:01
muelleme joined18:02
thiago joined18:02
diogenese left18:03
diogenese joined18:04
djapo left18:06
m0viefreak joined18:06
Revan- left18:07
muelleme left18:07
Revan- joined18:08
SpeakerToMeat_ left18:11
SpeakerToMeat_ joined18:13
mona_x left18:16
SpeakerToMeat_ left18:16
sauvin left18:17
SpeakerToMeat_ joined18:17
revoltingPeasant joined18:19
D5N_ch3ck left18:21
Mike11 joined18:22
D5N_ch3ck joined18:22
profmac left18:23
opalepatrick left18:25
blackandblue left18:30
mostlybadfly joined18:30
SpeakerToMeat_ left18:32
hbautista joined18:32
durham joined18:32
cdown left18:32
SpeakerToMeat_ joined18:33
gooooootime left18:35
SpeakerToMeat_ left18:35
beefjoe joined18:35
SpeakerToMeat_ joined18:36
igemnace left18:37
peacememories joined18:38
D5N_ch3ck left18:39
opalepatrick joined18:39
SpeakerToMeat_ left18:40
D5N_ch3ck joined18:40
peacememories left18:40
SpeakerToMeat_ joined18:41
venmx left18:41
D5N_ch3ck left18:45
D5N_ch3ck joined18:46
camsbury joined18:46
st-gourichon-fid left18:53
spacesuitdiver joined18:53
yyy joined18:55
Matt|home joined18:59
Matt|home hi .. what's the quickest way to do an overwrite of all files from one branch to another except the .git history thing? in other words: "copy from master to mybranch all files overwriting everything"19:00
SpeakerToMeat_ left19:01
SpeakerToMeat_ joined19:02
noob joined19:04
Sasazuka joined19:05
noob Hi ! I am in one repo and what to find the root level path of another repo . is there a git command for it19:05
want*19:05
SpeakerToMeat_ left19:05
virmin left19:06
profmac joined19:07
SpeakerToMeat_ joined19:07
treehug88 joined19:08
virmin joined19:08
st-gourichon-fid joined19:08
SpeakerToMeat_ left19:09
rafasc noob: your question is not clear.19:10
SpeakerToMeat_ joined19:11
SpeakerToMeat_ left19:11
SpeakerToMeat_ joined19:12
RandomGuyOnIrc If I checkout a tag, is the head in a detached state?19:12
rafasc RandomGuyOnIrc: yes. !detached19:12
gitinfo RandomGuyOnIrc: 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 !reattach19:12
profmac left19:14
revoltingPeasant left19:14
RandomGuyOnIrc thanks19:14
rafasc Matt|home: probably git checkout mybranch; git checkout master -- .;19:14
SpeakerToMeat_ left19:15
profmac joined19:15
rafasc Matt|home: but more often than not, that's tells that there is something wrong with your workflow.19:15
beefjoe left19:16
SpeakerToMeat_ joined19:16
libertyprime left19:17
virmin left19:17
SpeakerToMeat_ left19:18
SpeakerToMeat_ joined19:19
angular_mike_2 left19:19
leeN left19:20
anna-sara joined19:20
angular_mike_2 joined19:21
profmac left19:21
profmac joined19:21
SpeakerToMeat_ left19:23
ilmostro left19:23
wootehfoot joined19:23
SpeakerToMeat_ joined19:24
jrnieder joined19:26
spl33n left19:27
profmac left19:27
goTAN joined19:27
SpeakerToMeat_ left19:27
j416 Matt|home: are you at work?19:29
j416 runs19:29
SpeakerToMeat_ joined19:29
nurdie left19:29
lig joined19:29
AtumT joined19:29
Matt|home j416 : i work remote from home, but yeah at the moment. and rafalcpp : i found out how to do it easy. and yeah the issue with my workflow was that too many people are working on my things at the same time :p19:30
yeah at the moment im working*19:30
j416 Matt|home: ah, it wasn't clear that you were at home.19:30
ilmostro joined19:30
Matt|home :p19:32
so i like git, and it's really powerful.. there are a few idiosyncracies i not happy with and i have a few minor complaints, but i really wish after having used this stupid program for over a year i'd at least memorize all the commands needed -_-19:32
should work on that..19:33
pawle joined19:33
czart left19:34
n3wborn joined19:35
TikityTik joined19:37
triad joined19:37
utrack left19:38
nowhereman joined19:38
nowheremanGuest7079219:39
nowhere_man left19:39
utrack joined19:40
stuser joined19:41
yohnnyjoe joined19:42
Sonderblade joined19:42
rafalcpp Matt|home: do I look like rafasc19:42
_ikke_ yes19:42
Matt|home ah19:43
rafasc , sorry *19:43
rafasc rafalcpp: this isn't the first and will not be the last!19:43
sanches left19:49
anna-sara left19:50
sanscoeur joined19:52
stuser trouble with submodules and remotes: I have a repo, "my-projects", which exists on my laptop (normal repo) and on my server (bare repo). On my laptop, I then create a submodule, "dotfiles", and then commit some stuff to the submodules. I then set the remote and try to push (with --set-upstream) but it fails with this error: https://upaste.de/Rk6 . from this I gather that I have to create the submodule on the server, inside of the existi19:55
maybe I'm getting some concepts mixed up, but how do I ensure that other people on my team can pull the newly create submodule?19:57
TikityTik left19:58
orbyt_ left19:59
dsx_ joined20:00
TikityTik joined20:01
sanscoeur left20:01
tafa2 left20:02
tafa2 joined20:02
profmac joined20:02
dsx_ left20:03
Envil left20:07
virmin joined20:07
j416 the submodule needs its own repo remote20:07
it needs to be accessible via some URL.20:08
plasticle left20:08
j416 a submodule is in essence just a repo contained within a parent repo, locked to a specific revision20:08
nurdie joined20:09
j416 what's your use-case?20:09
BooK_ left20:09
plasticle joined20:11
j416 stuser: ^20:13
stuser j416: my use case: I'm working on a project with my team and want to share my config files (dotfiles) with my team. We all use git, and I'm looking to VC my dotfiles, so I thought sharing them as a submodule would be good20:16
kerframil joined20:16
j416 why do you need a submodule?20:17
(if you don't know why, I'd suggest you don't use a submodule until you figure out why)20:19
revoltingPeasant joined20:23
jiji606 left20:26
stuser j416: I don't know why, but I have concerns about having many repos. The main concern being that I'll forget to push a repo that I did work in, then end up with conflicts. I thought converting my existing repos into submodules of a superproject would help with the management20:26
_ikke_ You still need to keep the submodules up-to-date20:27
stuser but if I run git status in the superproject, wouldn't it detect a change in the submodule?20:28
Mike11 left20:29
rafasc stuser: I think submodules are not ideal for your usecase. What you want is something like https://myrepos.branchable.com/20:30
sanscoeur joined20:30
rafasc disclaimer: I don't use this.20:30
but it is something that got talked some days ago around here.20:31
stuser ah I'll look into it. thank you20:32
rafasc stuser: yes, it will detect a change in the submodule if you do one. But it won't tell you if that change is pushed or not.20:32
tomfarr left20:33
rafasc it will complain the submodule is not at the recorded hash, until you commit that change in the superproject.20:33
Raging_Hog left20:35
tomfarr joined20:37
mostlybadfly left20:40
pawle left20:41
j416 stuser: submodules are a way to lock versions of things; it's not a way to conveniently manage multiple unrelated repos20:42
D5N_ch3ck left20:42
j416 stuser: as for keeping things up-to-date, does it really matter if it's outdated if you're not using it?20:43
stuser: if you're working on something, it's easy to keep it up-to-date.20:43
stuser: most of my local repos where there are more people than me involved are out of date until I pick up work on them.20:44
works fine.20:44
s/most/all/20:44
even.20:44
yohnnyjoe left20:44
rafasc > The main concern being that I'll forget to push a repo that I did work in, then end up with conflicts.20:45
inkbottle left20:46
jstimm joined20:46
rafasc on top of all j416 said, this bit makes me think if you're not falling in that 'race for master' trap.20:47
j416 while true; do sleep 300; script-that-pops-up-modal-window -message "Don't forget to push your changes"; done20:47
it's a human issue not a git issue20:47
rafasc j416: I find the '>' symbol in my prompt enough of a warning.20:48
j416 what's that20:48
did I forget a quote20:48
rafasc symbol in the git prompt that tells you're ahead of upstream.20:49
j416 oh.20:49
fancy things you have. I don't have that.20:49
rafasc how? o.O20:49
or, better, why? o.O20:49
j416 never knew it existed20:50
is that part of the default contrib prompt?20:50
rafasc yeah..20:50
j416 this is what I have currently https://github.com/jsageryd/.config.d/blob/2e4455283c67/profile/common/git.inc#L7-L1920:51
maybe I forgot something20:51
stuser thank you all, I think I'm understanding submodules better now. but 1 question: suppose I have to wipe my computer or get a new device and I want to get all of my projects quickly. If I have all of my repos setup as submodules of a general "projects" repo, then could "$git clone --recurse-submodules /url/to/projects" get them all in one command?20:51
TikityTik left20:52
j416 submodules still aren't the right approach20:52
get a list of your repos, clone them20:52
or, well, the one(s) you need.20:52
rafasc j416: add this one: GIT_PS1_SHOWUPSTREAM="auto"20:54
j416 ooh.20:54
a > appears20:54
rafasc > < = depending if you're behind ahead or synced20:55
j416 yeah, I read up on it20:56
I'm annoyed by the = though20:56
stuser :/ ah alright. guess I'll make a script. I don't suppose git maintains a list of local repos?20:56
rafasc in relation to the configured upstream20:56
yohnnyjoe joined20:56
j416 stuser: that'd be your filesystem20:56
stuser: "ls"20:56
Acelogic joined20:57
rafasc stuser: why make a script when someone else already did for you? myrepos being just one example.20:57
fukakai joined20:57
j416 or that ^20:57
opalepatrick left20:57
rafasc j416: the = is helpful though, to distinguish when you have an upstream set.21:00
nurdie left21:00
j416 I suppose21:00
I don't like that it's white21:00
nurdie joined21:00
durham left21:01
yyy left21:01
rafasc search for # calculate the result and patch it.21:01
inkbottle joined21:01
j416 nah; hassle21:01
:P21:01
rafasc it isn't configurable...21:02
j416 dunno21:02
armin left21:02
tombusby left21:02
ZetFury joined21:02
armin joined21:02
lig left21:03
tombusby joined21:03
orbyt_ joined21:03
armin left21:04
yyy joined21:04
rafasc that wasn't a question. It was a statement.21:04
j416 fitured21:04
figured*21:04
"auto" doesn't seem to be a thing btw21:04
it just needs to be set afaict21:04
I set it to "foo", works fine21:05
triad left21:07
wootehfoot left21:08
rafasc If you would like to see the difference between HEAD and its upstream, set GIT_PS1_SHOWUPSTREAM="auto".21:08
j416 yeah I saw that21:08
try searching for "auto"21:08
SpeakerToMeat_ left21:09
j416 :P21:09
auto is probably just the "current default"21:09
armin joined21:09
j416 i.e. no logic needed21:09
voolik left21:10
rafasc I think any word that doesn't match the ones that change the behaviour are considered "auto".21:10
j416 yeah21:10
opalepatrick joined21:12
rafasc j416: GIT_PS1_SHOWUPSTREAM=name; doesn't seem to be working though.21:12
nurdie left21:13
avar left21:14
polydo_s joined21:15
armin left21:15
armin joined21:16
armin left21:17
j416 seems to work here21:18
Sonderblade left21:19
rafasc can you show me the result?21:20
j416 2221 q:~/.config.d [master *=] j$21:21
rafasc name was supposed to show the upstream branch too.21:22
Tobbi joined21:22
j416 oh.21:23
Tobbi Is there an easy (one line) code to squash all the last 86 commits on a branch into one?21:23
venmx joined21:23
j416 I thought you meant it didn't show anything. You need verbose though21:23
jtrzebiatowski left21:23
yohnnyjoe left21:24
rafasc j416: yes, but name seems to be undoing verbose in my machine.21:25
j416 just "verbose" gives me 2225 q:~/.config.d [master * u=] j$21:25
"name verbose" gives me 2225 q:~/.config.d [master * u= origin/master] j$21:25
Tobbi: git reset --soft <commit>; then commit again21:26
rafasc j416: derp, I read space-separated as comma-separated.21:26
j416 rafasc: I did too. Took me a minute to figure that out. :D21:26
rafasc <commit> = HEAD~8621:27
yohnnyjoe joined21:27
j416 nod21:27
rafasc depending if their 86 is counting from 0 or not, off-by-one errors might apply.21:28
j416: GIT_PS1_DESCRIBE_STYLE also seems cool. Didn't knew it was configurable.21:30
j416 nod21:31
pretty neat21:32
"branch" seems good21:33
rafasc I was split between tag and branch.21:35
plexigras left21:35
j416 tag seems useless for repos that don't have tags21:35
most of the repos I work on daily don't have tags21:36
also, tags aren't that interesting when doing actual work21:36
at least not to me21:36
rafasc yea, this only applies to labeling the 'detached head' state, so yeah. It will depends if you're interested in comparing with the future or the past.21:37
kapil____ left21:37
goTAN left21:37
j416 also, I think I prefer to see what newer branch or tag _contains_ HEAD, rather than an old one that isn't really realted21:37
it could be based on whatever past21:38
multiple pasts21:38
come to think of it that's true for the opposite as well21:39
rafasc I'll stick with branch for now, I guess using it is the way to find out if I like it.21:39
j416 yeah21:40
rafasc but for people used to describe output, it's also handy: this commits happened 15 commits after some tag.21:40
j416 I think I'll try out "verbose" for the other one21:40
rafasc: yeah. Maybe.21:40
SpeakerToMeat_ joined21:40
jlamur left21:40
rafasc yea, me too. I actually changed for verbose name.21:41
j416 my branches are typically origin/samename anyway21:42
rafasc I changed my prompt to take up two lines anyways. [rafasc@something somepath] \n $21:42
j416 ah.21:42
never liked that21:42
rafasc so the long prompts are not an issue for me.21:42
j416 two lines per newline21:43
but seems handy21:43
cdown joined21:43
j416 might change my mind one day.21:43
rafasc It annoyed me at first, but having to write line wrapped commands annoyed me more I guess.21:44
j416 yeah21:44
that's annoying21:44
jnewt joined21:44
peacememories joined21:44
j416 toyed with the thought of putting the prompt info in the tmux status bar21:44
might work21:44
rafasc give it a try for some days, only way to know.21:45
j416 but perhaps it's useful to be able to see in the history in what directory you were previously21:45
nod; will see.21:45
rafasc Don't use tmux... i3+termite does the job.21:45
d10n-work joined21:46
j416 arch?21:46
rafasc yes.21:46
j416 (it was the first page I got when I googled termite i3)21:46
I'm on a mac so no proper window manager for me21:46
cdown_ joined21:46
rafasc virtual env prompt + git prompt + long paths ... at the end of that I was typing two or the command words then getting line wrapped.21:46
j416 haha21:47
rafasc this way, all the information junk gets its own line, I get one line for myself.21:47
peacememories left21:49
cdown left21:49
cdown_cdown21:49
rafasc triple clicking the line, you get only the '$ some commands'21:49
which is nice to paste, without telling the name of your user/machine.21:50
j416 should be rather easy to copypaste a whole chunk of scrollback too; just remove lines starting with [user21:50
rafasc yeah... sed /[rafasc/d or something like that21:51
durham joined21:53
durham left21:53
MrRothstein joined21:54
TheRuckus left21:56
MrRothstein hello, i have a large directory down in the commit history that is shared between two branches i'd like to remove before pushing to remote. Is there a way to do it without losing the ability to later merge the branches?21:56
cdown left21:57
MrRothstein to clarify... the directory was committed by accident and removed in a later commit. I'm fine squashing the commits that contained the directory, but i'm not sure how to do it in a way that doesnt break merging21:57
Toadisattva joined21:59
majuscule joined22:02
majuscule Why might I be getting this error when cherry-picking from a branch? fatal: empty ident name (for <>) not allowed22:02
jlamur joined22:03
majuscule All I can find about it is that it might have something to do with a broken diff but... this isn't a diff, it's a branch that git has already22:03
netj left22:05
netj joined22:05
leeN joined22:06
mitchellsalad__ joined22:12
rafasc you either don't have your indentity set, or the commit you're trying to cherry-pick has corrupt identity information...22:12
miczac left22:13
xcm left22:14
rafasc left22:15
xcm joined22:16
MrRothstein so... is there a way to squash erroneous commits in a history shared between branches?22:20
kerframil left22:29
wildermind left22:31
TikityTik joined22:31
leeN left22:32
hbautista left22:33
fukakai left22:38
nurdie joined22:39
ZyX-I left22:40
Toadisattva left22:42
nurdie left22:44
yyy left22:46
Dougie187 left22:47
g00s joined22:48
orbyt_ left22:51
MrRothstein left22:54
fassl joined22:55
miczac joined22:56
Fissure left22:57
Revan- left23:05
miczac left23:05
Revan- joined23:06
novumsensum joined23:07
mofai joined23:07
miczac joined23:09
relipse left23:10
miczac left23:10
staafl__ left23:14
igemnace joined23:14
esotericnonsense left23:14
freeman42x left23:14
mklaang joined23:14
spacesuitdiver left23:16
esotericnonsense joined23:16
mklaang left23:18
djapo joined23:20
TikityTik left23:21
revoltingPeasant left23:22
stuser left23:27
Acelogic left23:29
Kaisyu72 left23:32
thiago left23:33
M6HZ left23:33
aLeSD_ joined23:35
aLeSD left23:37
AtumT left23:38
ZetFury left23:42
CodingRacoon joined23:45
fradanovic_ joined23:46
aLeSD joined23:47
aLeSD_ left23:50
venmx left23:51
bolovanos left23:51
opalepatrick left23:52
CodingRacoon left23:55
Peetz0r left23:55
Praxi joined23:56
piggah joined23:57
dege left23:58
Peetz0r joined23:59

Logs Search ←Prev date Next date→ Channels Documentation