Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for GrantMoyerâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: How do I customize merge behavior for a shared git repo? Frame challenge, the "bubbles" aren't useless First off, I'll challenge the premise of the question: the "merge bubbles" are not useless, because they represent meaningful development history. In particular, given the toplogy below: ```text A -- B -- C -- H master (hook declined) error: fail... (more) |
— | 8 months ago |
Answer | — |
A: `git submodule foreach git pull` in parallel Git can't do this natively, but you can use git in combination with another command, such as GNU xargs First of all, fetching many repos in parallel is likely not worth it. Git fetch is likely to be limited by network speed or drive IO speed, not single core processing speed. Multiple instances of... (more) |
— | 8 months ago |
Answer | — |
A: Storing more bytes than a union member has, but less than the union size, with memcpy(3) Reading from a union member who's size is larger than that of the last written member is explicitly allowed since C99, but the value of the extra bytes is unspecified. From the cppreference page on C unions: > If the size of the new type is larger than the size of the last-written type, the conten... (more) |
— | 12 months ago |