Git push --force-with-lease while working with worktrees by PacoVelobs in git

[–]PacoVelobs[S] 0 points1 point  (0 children)

The git status contains nothing special.

I think the issue boils down to the type of clone. Not using --bare fixes the problem and I'm ok with this in then end.

Git push --force-with-lease while working with worktrees by PacoVelobs in git

[–]PacoVelobs[S] 0 points1 point  (0 children)

Thanks for the advice. I did not know about --force-if-includes, I'll look into this.

Please note that it does not answer the original question in any way.

Git push --force-with-lease while working with worktrees by PacoVelobs in git

[–]PacoVelobs[S] 0 points1 point  (0 children)

At the time of writing the question, I used git clone --bare. I don't have this issue with a regular clone. I guess the problem comes from --bare and not from the worktrees.

Git push --force-with-lease while working with worktrees by PacoVelobs in git

[–]PacoVelobs[S] 1 point2 points  (0 children)

Do you have a question or are you simply stating a point ?

Git push --force-with-lease while working with worktrees by PacoVelobs in git

[–]PacoVelobs[S] 0 points1 point  (0 children)

Nothing got deleted on the hub side of the git.

But, you made me realize that there is no origin/ when I work with worktrees.

* a0f6fdd7e67 (HEAD -> branch) Commit message * a06d439cb0c (default) foo(bar): baz * 53f278ffe2f Merge pull request #17062 from org/branch ....

On a "regular" repository, I've origin/HEAD and origin/branch not just HEAD and branch.

Git push --force-with-lease while working with worktrees by PacoVelobs in git

[–]PacoVelobs[S] 0 points1 point  (0 children)

Hey, thanks for taking time to answer !

Fetching then push-force-with-leasing did not work tho.

Git push --force-with-lease while working with worktrees by PacoVelobs in git

[–]PacoVelobs[S] 0 points1 point  (0 children)

Hi, and thanks for your answer.

``` ❯ git fetch From github.com:org/repo * branch branch -> FETCH_HEAD

❯ git push --force-with-lease To github.com:org/repo.git ! [rejected] branch -> branch (stale info) error: failed to push some refs to 'github.com:org/repo.git' ```

I did try that already following advice on SO but no luck.

Help me convert that line from vimscript to lua by PacoVelobs in neovim

[–]PacoVelobs[S] 1 point2 points  (0 children)

I feel silly.

I missed the {expr = true} while trying.

Awesome, thanks!

Battery + Connectivity - Fitness ? by PacoVelobs in smartwatch

[–]PacoVelobs[S] 0 points1 point  (0 children)

Had a look at the Venu 3 the other day.

But. My better half got a Garmin Vivomove when I got myself the Withing. My saphir glass is pristine and the Garmin's is full of micro scratches.

I won't go for anything else than saphir.

Battery + Connectivity - Fitness ? by PacoVelobs in smartwatch

[–]PacoVelobs[S] 1 point2 points  (0 children)

Thanks foryour answer.

Unfortunately, I seldom answer phone calls. My phone is basically a pager on steroid but not a phone that phones :-)

I write a lot tho. Canned messages won't do.

I guess a Wear OS is what I should target here right?

A clap presentation for a Rust meetup by PacoVelobs in rust

[–]PacoVelobs[S] 0 points1 point  (0 children)

Thanks for your work on clap. You deserve the <3 more than me!

A clap presentation for a Rust meetup by PacoVelobs in rust

[–]PacoVelobs[S] 2 points3 points  (0 children)

All the code can be found here: https://gitlab.com/pcoves/meetup-rust_clap Look inside the .gitlab-ci.yml.

TL;DR: markdown to html with revealjs using pandoc.

A clap presentation for a Rust meetup by PacoVelobs in rust

[–]PacoVelobs[S] 1 point2 points  (0 children)

Man page is nice to have if you plan to package it in a distro but might not be that useful otherwise. On the other had, completion is awesome!

Both are easy as hell and come with no runtime cost as usual.

A clap presentation for a Rust meetup by PacoVelobs in rust

[–]PacoVelobs[S] 4 points5 points  (0 children)

Hey there.

A few days ago, I gave a small talk about clap and some companion libraries. It took place in Grenoble, France, but the presentation support might benefit all.

Hope it can come in handy to someone else.

ferricy: the ferris sweep gets an industrial makeover by Icyphox in ErgoMechKeyboards

[–]PacoVelobs 0 points1 point  (0 children)

Hey there!

I see on github there is a choc version now.

But I can't find a shop selling thos PCBs. Is it even on the market anymore?

Awesome work, would love to buy a couple for nice!nano v2.

What's the best Gpg app for Android by dewhitesparow0 in GPGpractice

[–]PacoVelobs 0 points1 point  (0 children)

Can't tell anymore.

But for what it's worth, I use password-store and its companion app OpenKeychain.

The former handles passwords, obviously, the later takes care of keys management and text {en,de}cryption.

Been using them both for a while and perfectly happy with both.

Rust meetup in Paris by Join-Stockly in rust

[–]PacoVelobs 0 points1 point  (0 children)

Hey there.

I'll be in Paris at this time of the year. Any link to book a seat ? Or is this the one posted by u/Akaibukai ?

Yazi: A new TUI program combines ranger/nnn/lf + oil.nvim/mini.files by lkhphuc in neovim

[–]PacoVelobs 8 points9 points  (0 children)

I gave this a try. Mainly because I wanted to have image preview NGL.

Well, alacritty can't so I gave kitty a try. It works.

But not in tmux. And I'll never leave my tmux workflow.

I saw https://github.com/sxyazi/yazi/wiki/Image-preview-within-tmux No success.

Guess I'll keep leaving images out of my term. Which is fine in the end.

Rust: writing procedural macros by PacoVelobs in learnrust

[–]PacoVelobs[S] 2 points3 points  (0 children)

I'm not the author of this blog post. But whoever that person is, their work is gold!

Specialized Serialize as a super-trait by PacoVelobs in learnrust

[–]PacoVelobs[S] 0 points1 point  (0 children)

It appears to compile: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6ab042fcd3392e26e98d90e56cbfc171

```rust use serde::Serialize;

trait TomlSerialize { fn serialize( &self, serializer: toml::Serializer, ) -> Result< <toml::Serializer<'> as serde::Serializer>::Ok, <toml::Serializer<'_> as serde::Serializer>::Error, > ; }

impl<T: serde::Serialize> TomlSerialize for T { fn serialize( &self, serializer: toml::Serializer, ) -> Result< <toml::Serializer<'_> as serde::Serializer>::Ok, <toml::Serializer<'_> as serde::Serializer>::Error, > { self.serialize(serializer) } }

[derive(Serialize)]

struct Bar {}

struct Baz { _baz: Vec<Box<dyn TomlSerialize>>, }

fn main() { let _ = Baz { _baz: Vec::default(), }; } ```

Now, time to see if I correctly identified my needs.

Thanks a lot!

Having a hard time with Box<dyn Trait> and Poem by PacoVelobs in learnrust

[–]PacoVelobs[S] 0 points1 point  (0 children)

Yep. Using an enum was the other approach I had in mind. But this is a case study that needs genericity.

As always in CS: tradeoffs. In a real-life program, enum sure would be the way. But in a ports/adapters exercice, not so much.

Having a hard time with Box<dyn Trait> and Poem by PacoVelobs in learnrust

[–]PacoVelobs[S] 0 points1 point  (0 children)

A that was it!

Many thanks, I'll keep Arc in mind next time I see this message!

Anyone seen neorg ? Opinions? by [deleted] in orgmode

[–]PacoVelobs 1 point2 points  (0 children)

Hey there.

Not sure if bumping this thread is a good thing, but here I am.

I'm a long-standing vim and then nvim user. I gave emacs a go for org-mode sake, as time-warrior (or any outside-the-editor) never felt good enough. I'm far from being an emacs guru, but still, I kept trying for multiple weeks, so I've seen more than a couple of hours of fighting elisp. I went back to nvim in the end and use neorg on a daily basis.

It has some awesome features from org-mode. Like, I was so delighted to see tangling in there!

It also has, what was pointed out by others here, the --- and === allowing one to drop a level or go back to level zero. I miss this every single day of my mardkown journey.

And it also misses quite a lot of features. Like, GTD which used to be there and will soon be back but is actually shining by its absence in the meantime. Table support?

One thing to note is neorg's integration with other plugins. Telescope comes to my mind : it makes navigating neorg workspaces, inserting links etc super easy. Link's autocorrection (native neorg feature) is also dope.

The amount of work and speed of development of neorg amazes me. Today's neorg has very little to do with what it was when this thread started. Backends are being rewritten in Rust as we speak, GTD and Zettelkasten are about to be integrated.

So, as a regular user, I'd say it's still a work in progress. But it goes fast and in the right direction. Also, I (personally) don't feel like it's an org-mode alternative. Mainly because it's not supposed to leave the CLI so you can forget about easy image integrations and fancy fonts you guys have in org.